2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 * @file global_dao_read_only.h
18 * @author Pawel Sikorski (p.sikorski@samsung.com)
20 * @brief This file contains the declaration of global dao
23 #ifndef WRT_SRC_CONFIGURATION_GLOBAL_DAO_READ_ONLY_H_
24 #define WRT_SRC_CONFIGURATION_GLOBAL_DAO_READ_ONLY_H_
30 #include <dpl/string.h>
31 #include <dpl/exception.h>
33 #include <dpl/wrt-dao-ro/common_dao_types.h>
37 typedef std::list<DPL::String> WidgetPackageList;
38 typedef std::set<DPL::String> DeviceCapabilitySet;
40 //#ifdef USE_BROWSER_SETTING
41 //typedef DPL::DB::ORM::wrt::UserAgents::key_value::ColumnType UserAgent;
42 //#endif //USE_BROWSER_SETTING
44 class GlobalDAOReadOnly
48 * GlobalDAOReadOnly Exception classes
53 DECLARE_EXCEPTION_TYPE(DPL::Exception, Base)
54 DECLARE_EXCEPTION_TYPE(Base, DatabaseError)
59 static bool IsValidSubTag(const DPL::String& tag, int type);
62 * Retrieve list of deffered widget packages to be installed
64 * @return Widget package list
66 static WidgetPackageList GetDefferedWidgetPackageInstallationList();
68 static bool GetDeveloperMode();
70 static bool GetSecureByDefault();
72 static bool getComplianceMode();
74 static std::string getComplianceFakeImei();
76 static std::string getComplianceFakeMeid();
78 static WidgetAccessInfoList GetWhiteURIList();
80 enum NetworkAccessMode
88 * This method returns network access mode for home network.
90 * @return Access mode for home network.
92 static NetworkAccessMode GetHomeNetworkDataUsage();
95 * This method returns network access mode while roaming is enabled.
97 * @return Access mode for home network.
99 static NetworkAccessMode GetRoamingDataUsage();
101 static DPL::String GetUserAgentValue(const DPL::String &key);
104 * This method returns set of device capabilities used by apifeature.
106 static DeviceCapabilitySet GetDeviceCapability(
107 const DPL::String &apifeature);
117 #endif // WRT_SRC_CONFIGURATION_GLOBAL_DAO_READ_ONLY_H_