1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0"" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CELLULARDATASETTINGS_H |
|
19 #define CELLULARDATASETTINGS_H |
|
20 |
|
21 // System includes |
|
22 |
|
23 #include <QObject> |
|
24 |
|
25 // User includes |
|
26 |
|
27 // Forward declarations |
|
28 |
|
29 class CellularDataSettingsPrivate; |
|
30 |
|
31 // External data types |
|
32 |
|
33 // Constants |
|
34 |
|
35 // Class declaration |
|
36 |
|
37 class CellularDataSettings : public QObject |
|
38 { |
|
39 Q_OBJECT |
|
40 |
|
41 public: |
|
42 |
|
43 // Data types |
|
44 |
|
45 // Setting values for "Data usage in home network" |
|
46 enum DataUsageHome { |
|
47 DataUsageHomeAutomatic = 0, // These values must match the indexes in dropdown menu |
|
48 DataUsageHomeConfirm, |
|
49 DataUsageHomeWlanOnly |
|
50 }; |
|
51 |
|
52 // Setting values for "Data usage when roaming" |
|
53 enum DataUsageAbroad { |
|
54 DataUsageAbroadAutomatic = 0, // These values must match the indexes in dropdown menu |
|
55 DataUsageAbroadConfirm, |
|
56 DataUsageAbroadWlanOnly |
|
57 }; |
|
58 |
|
59 explicit CellularDataSettings(); |
|
60 virtual ~CellularDataSettings(); |
|
61 |
|
62 int dataUseHome(); |
|
63 void setDataUseHome(int value); |
|
64 |
|
65 int dataUseRoam(); |
|
66 void setDataUseRoam(int value); |
|
67 |
|
68 signals: |
|
69 |
|
70 public slots: |
|
71 |
|
72 protected: |
|
73 |
|
74 protected slots: |
|
75 |
|
76 private: |
|
77 |
|
78 Q_DISABLE_COPY(CellularDataSettings) |
|
79 |
|
80 private slots: |
|
81 |
|
82 private: // data |
|
83 |
|
84 // Friend classes |
|
85 |
|
86 // Private implementation |
|
87 CellularDataSettingsPrivate *d_ptr; |
|
88 }; |
|
89 |
|
90 #endif // CELLULARDATASETTINGS_H |
|