2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (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://www.apache.org/licenses/LICENSE-2.0
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.
17 * @file wrt_installer_api.h
18 * @author Chung Jihoon (jihoon.chung@samsung.com)
20 * @brief This file contains declarations of wrt_installer_api
23 #ifndef WRT_INSTALLER_API_H_
24 #define WRT_INSTALLER_API_H_
30 #include <pkgmgr_signal_interface.h>
37 typedef void (*WrtInstallerInitCallback)(WrtErrStatus status,
39 typedef void (*WrtPluginInstallerStatusCallback)(WrtErrStatus status,
41 typedef void (*WrtInstallerStatusCallback)(std::string tizenId,
44 typedef void (*WrtProgressCallback)(float percent,
45 const char *description,
50 WRT_INSTALL_MODE_UNKNOWN = 0,
51 WRT_INSTALL_MODE_INSTALL_WGT,
52 WRT_INSTALL_MODE_INSTALL_DIRECTORY,
53 WRT_INSTALL_MODE_INSTALL_PRELOAD,
54 WRT_INSTALL_MODE_REINSTALL
57 void wrt_installer_init(
59 WrtInstallerInitCallback callback);
60 void wrt_installer_shutdown(void);
61 void wrt_install_widget(
64 WrtInstallerStatusCallback status_callback,
65 WrtProgressCallback progress_callback,
66 WrtInstallMode install_mode,
67 std::shared_ptr<PackageManager::IPkgmgrSignal>
70 void wrt_uninstall_widget (
71 const char * const tzAppid,
73 WrtInstallerStatusCallback status_cb,
74 WrtProgressCallback progress_cb,
75 std::shared_ptr<PackageManager::IPkgmgrSignal>
76 pkgmgrSignalInterface);
77 void wrt_install_plugin(const char *pluginDirectory,
79 WrtPluginInstallerStatusCallback statusCallback,
80 WrtProgressCallback progressCallback);
86 #endif /* WRT_INSTALLER_API_H_ */