upload tizen1.0 source
[framework/web/wrt-commons.git] / modules / widget_dao / include / dpl / wrt-dao-rw / global_dao.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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  * @file    global_dao.h
18  * @author  Pawel Sikorski (p.sikorski@samsung.com)
19  * @version 1.0
20  * @brief   This file contains the declaration of global dao
21  */
22
23 #ifndef WRT_SRC_CONFIGURATION_GLOBAL_DAO_H_
24 #define WRT_SRC_CONFIGURATION_GLOBAL_DAO_H_
25
26 #include <dpl/wrt-dao-ro/global_dao_read_only.h>
27
28 namespace WrtDB {
29
30 class GlobalDAO : public GlobalDAOReadOnly
31 {
32   public:
33     /**
34      * Add deffered widget packages to be installed
35      */
36     static void AddDefferedWidgetPackageInstallation(const DPL::String &path);
37
38     /**
39      * Remove deffered widget packages to be installed
40      */
41     static void RemoveDefferedWidgetPackageInstallation(const DPL::String &arg);
42
43     static void SetDeveloperMode(bool mode);
44
45     static void SetSecureByDefault(bool secureByDefault);
46
47     static void setComplianceMode(bool mode);
48
49     static void setComplianceFakeImei(const std::string &imei);
50
51     static void setComplianceFakeMeid(const std::string &meid);
52
53     static void AddWhiteURI(const std::string &value, bool subDomain);
54
55     static void RemoveWhiteURI(const std::string &uri);
56
57     /**
58      * This method changes network access mode while roaming is enabled.
59      *
60      */
61     static void SetHomeNetworkDataUsage(NetworkAccessMode newMode);
62
63     /**
64      * This method changes network access mode while roaming is enabled.
65      *
66      */
67     static void SetRoamingDataUsage(NetworkAccessMode newMode);
68
69   private:
70     GlobalDAO()
71     {
72     }
73 };
74
75 } // namespace WrtDB
76
77 #endif /* WRT_SRC_CONFIGURATION_GLOBAL_DAO_H_ */