1 // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef XWALK_APPLICATION_TOOLS_TIZEN_XWALK_PACKAGE_INSTALLER_HELPER_H_
6 #define XWALK_APPLICATION_TOOLS_TIZEN_XWALK_PACKAGE_INSTALLER_HELPER_H_
8 #include <pkgmgr_installer.h>
12 class PackageInstallerHelper {
14 explicit PackageInstallerHelper(const std::string& appid);
15 ~PackageInstallerHelper();
16 bool InitializePkgmgrSignal(int argc, const char** argv);
18 bool InstallApplication(const std::string& xmlpath,
19 const std::string& iconpath);
20 bool UninstallApplication();
21 bool UpdateApplication(const std::string& xmlpath,
22 const std::string& iconpath);
23 bool ReinstallApplication();
26 bool InstallApplicationInternal(const std::string& xmlpath,
27 const std::string& iconpath);
28 bool UninstallApplicationInternal();
29 bool UpdateApplicationInternal(const std::string& xmlpath,
30 const std::string& iconpath);
32 bool SendSignal(const std::string& key, const std::string& value);
34 pkgmgr_installer* handle_;
40 #endif // XWALK_APPLICATION_TOOLS_TIZEN_XWALK_PACKAGE_INSTALLER_HELPER_H_