Fix the crash while installing of ServiceApp
[platform/framework/native/installer.git] / src / Manager / PermissionManager.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  * @file        PermissionManager.h
19  * @brief       This is the header file for the %PermissionManager class.
20  *
21  * This header file contains the declarations of the %PermissionManager class. @n
22  */
23 #ifndef _PERMISSION_MANAGER_H_
24 #define _PERMISSION_MANAGER_H_
25
26 #include "InstallationContext.h"
27
28 /**
29  * @class               PermissionManager
30  * @brief               This class represents the class of PermissionManager.
31  * @since               1.0
32  *
33  * This class represents the class of PermissionManager.
34  *
35  */
36 class PermissionManager
37 {
38 public:
39         PermissionManager(void);
40         virtual ~PermissionManager(void);
41
42         static bool SetDirectory(InstallationContext* pContext);
43         static bool SetFile(InstallationContext* pContext);
44
45 private:
46         static bool SetSymLink(InstallationContext* pContext);
47     static bool PrepareDataCaging(InstallationContext* pContext);
48
49 }; // PermissionManager
50
51 #endif // _PERMISSION_MANAGER_H_