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_model.h
18 * @author Przemyslaw Dobrowolski (p.dobrowolsk@samsung.com)
20 #ifndef WRT_COMMON_GLOBAL_MODEL_H_
21 #define WRT_COMMON_GLOBAL_MODEL_H_
24 #include <dpl/event/model.h>
25 #include <dpl/event/property.h>
26 #include <dpl/type_list.h>
27 #include <dpl/shared_ptr.h>
29 class GlobalModel : public DPL::Event::Model
34 * Network access mode enum.
36 enum NetworkAccessMode
43 DPL::Event::Property<NetworkAccessMode,
44 DPL::Event::PropertyReadOnly,
45 DPL::Event::PropertyStorageDynamicCached> HomeNetworkAccess;
47 DPL::Event::Property<NetworkAccessMode,
48 DPL::Event::PropertyReadOnly,
49 DPL::Event::PropertyStorageDynamicCached> RoamingNetworkAccess;
51 DPL::Event::Property<bool,
52 DPL::Event::PropertyReadOnly,
53 DPL::Event::PropertyStorageDynamicCached> DeveloperMode;
58 // Custom read write delegates
59 static NetworkAccessMode HomeNetworkAccessReadProperty(DPL::Event::Model *model);
61 static NetworkAccessMode RoamingNetworkAccessReadProperty(DPL::Event::Model *model);
63 static bool ReadDeveloperMode(DPL::Event::Model *model);
66 #endif // WRT_COMMON_GLOBAL_MODEL_H_