2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 * @file CompatibilityManager.h
19 * @brief This is the header file for the %CompatibilityManager class.
21 * This header file contains the declarations of the %CompatibilityManager class.
23 #ifndef _COMPATIBILITY_MANAGER_H_
24 #define _COMPATIBILITY_MANAGER_H_
27 * @class CompatibilityManager
28 * @brief This class represents the class of CompatibilityManager.
31 * This class represents the class of CompatibilityManager.
35 class CompatibilityManager
38 CompatibilityManager(void);
39 virtual ~CompatibilityManager(void);
41 static bool PrepareDataCaging(const Tizen::Base::String& rootPath, const Tizen::App::PackageId& packageId);
42 static bool FinalizeDataCaging(const Tizen::Base::String& rootPath);
43 static bool CleanDirectories(const Tizen::Base::String& rootPath, const Tizen::App::PackageId& packageId);
45 static bool LinkOspSharePath(const Tizen::Base::String& rootPath, const Tizen::App::PackageId& packageId);
47 static bool PrepareVirtualRoot(const Tizen::Base::String& rootPath, const Tizen::App::PackageId& packageId);
48 static bool FinalizeVirtualRoot(const Tizen::Base::String& rootPath, const Tizen::App::PackageId& packageId);
51 CompatibilityManager(const CompatibilityManager& value);
52 CompatibilityManager& operator =(const CompatibilityManager& source);
54 static bool CreateOspInternalDirectories(const Tizen::Base::String& rootPath, const Tizen::App::PackageId& packageId);
55 static bool CreateSlpDirectories(void);
56 static bool CreateSymbolicLink(void);
57 static bool CreateVirtualRootDirectories(void);
61 }; // CompatibilityManager
63 #endif // _COMPATIBILITY_MANAGER_H_