0da3aa27f5a46f5b32c9a55fb830582dbcebc169
[platform/framework/native/appfw.git] / src / server / inc / FAppPkg_PackageManagerServer.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
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
7 //
8 //     http://www.apache.org/licenses/LICENSE-2.0
9 //
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.
15 //
16
17 /**
18  * @file        FAppPkg_PackageManagerServer.h
19  * @brief       This is the header file for the _PackageManagerServer class.
20  */
21
22 #ifndef _FAPP_PKG_INTERNAL_PACKAGE_MANAGER_SERVER_H_
23 #define _FAPP_PKG_INTERNAL_PACKAGE_MANAGER_SERVER_H_
24
25 #include <FAppPkgPackageManager.h>
26 #include <FApp_Types.h>
27
28 namespace Tizen { namespace Base
29 {
30 class String;
31 }}
32
33 namespace Tizen { namespace App { namespace Package
34 {
35
36 class PackageInfo;
37
38 class _OSP_EXPORT_ _PackageManagerServer
39         : public Tizen::Base::Object
40 {
41 public:
42         static _PackageManagerServer* GetInstance(void);
43
44         PackageInfo* GetPackageInfoFromFileN(const Tizen::Base::String& filePath) const;
45         PackageType GetType(const Tizen::App::PackageId& packageId) const;
46
47
48 private:
49         _PackageManagerServer(void);
50         virtual ~_PackageManagerServer(void);
51
52
53 }; // _PackageManagerServer
54
55 } } } // Tizen::App::Package
56
57 #endif // _FAPP_PKG_INTERNAL_PACKAGE_MANAGER_SERVER_H_