2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Flora License, Version 1.1 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://floralicense.org/license/
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * This file contains the Tizen C++ application entry point.
21 #include "InstallerService.h"
23 using namespace Tizen::Base;
24 using namespace Tizen::Base::Collection;
32 OspMain(int argc, char* pArgv[])
34 AppLog("Application started.");
35 ArrayList args(SingleObjectDeleter);
37 for (int i = 0; i < argc; i++)
39 args.Add(new (std::nothrow) String(pArgv[i]));
42 result r = Tizen::App::ServiceApp::Execute(InstallerServiceApp::CreateInstance, &args);
43 AppLogExceptionIf(IsFailed(r), "[%s] Application execution failed", GetErrorMessage(r));
44 AppLog("Application finished.");
46 return static_cast<int>(r);