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 InstallApplication(const std::string& xmlpath,
17 const std::string& iconpath);
18 bool UninstallApplication();
19 bool UpdateApplication(const std::string& xmlpath,
20 const std::string& iconpath);
23 bool InstallApplicationInternal(const std::string& xmlpath,
24 const std::string& iconpath);
25 bool UninstallApplicationInternal();
26 bool UpdateApplicationInternal(const std::string& xmlpath,
27 const std::string& iconpath);
29 bool SendSignal(const std::string& key, const std::string& value);
31 pkgmgr_installer* handle_;
36 #endif // XWALK_APPLICATION_TOOLS_TIZEN_XWALK_PACKAGE_INSTALLER_HELPER_H_