sync with tizen_2.0
[platform/framework/native/appfw.git] / src / app / inc / FApp_PackageManagerProxy.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 /**
19  * @file        FApp_PackageManagerProxy.h
20  * @brief       This is the header file of the _PackageManagerProxy class.
21  */
22
23 #ifndef _FAPP_INTERNAL_PACKAGE_MANAGER_PROXY_H_
24 #define _FAPP_INTERNAL_PACKAGE_MANAGER_PROXY_H_
25
26 #include <FBaseObject.h>
27 #include <FBaseString.h>
28 #include <FAppTypes.h>
29 #include <FAppPkgPackageManager.h>
30
31 #include "FApp_Types.h"
32
33 namespace Tizen { namespace Io { class _IpcClient; } }
34
35 namespace Tizen { namespace App { namespace Package {
36 class IPackageInstallationResponseListener;
37 class IPackageUninstallationResponseListener;
38 }}}
39
40 namespace Tizen { namespace App
41 {
42
43 /**
44  * @class        _PackageManagerProxy
45  * @brief
46  * @since 2.1
47  */
48 class _PackageManagerProxy
49         : public Tizen::Base::Object
50 {
51 public:
52         _PackageManagerProxy(void);
53         virtual ~_PackageManagerProxy(void);
54
55         result Construct(void);
56
57         result InstallPackage(const PackageId& packageId, const Tizen::Base::String& packagePath, Tizen::App::Package::IPackageInstallationResponseListener* pListener);
58         result UninstallPackage(const PackageId& packageId, Tizen::App::Package::IPackageUninstallationResponseListener* pListener);
59
60 private:
61         _PackageManagerProxy(const _PackageManagerProxy& rhs);
62         _PackageManagerProxy& operator =(const _PackageManagerProxy& rhs);
63
64 private:
65         Tizen::Io::_IpcClient* __pIpcClient;
66
67 }; // _PackageManagerProxy
68
69 } } // Tizen::App
70
71 #endif // _FAPP_INTERNAL_PACKAGE_MANAGER_PROXY_H_