|
1 /* |
|
2 * Copyright (c) 2005 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: Data Call Settings model. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef GSDATACALLPLUGINMODEL_H |
|
20 #define GSDATACALLPLUGINMODEL_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <cdblen.h> |
|
24 #include <e32base.h> |
|
25 |
|
26 // CONSTANTS |
|
27 // autodisconnect time unlimited |
|
28 const TUint KGSTimeUnlimited = KMaxTUint; |
|
29 // autodisconnect time 0 minutes |
|
30 const TInt KGSZeroMinutes = 0; |
|
31 // autodisconnect time 1 minute |
|
32 const TInt KGSOneMinute = 1; |
|
33 |
|
34 // MACROS |
|
35 |
|
36 // DATA TYPES |
|
37 |
|
38 // FUNCTION PROTOTYPES |
|
39 |
|
40 // FORWARD DECLARATIONS |
|
41 class CCommsDatabase; |
|
42 class CCommsDbTableView; |
|
43 |
|
44 // CLASS DEFINITION |
|
45 /** |
|
46 * CGSDataCallPluginModel is the model class of GS display plugin. |
|
47 * It provides functions to get and set setting values. |
|
48 * @lib GSDisplayPlugin.lib |
|
49 * @since Series 60_3.1 |
|
50 |
|
51 */ |
|
52 class CGSDataCallPluginModel : public CBase |
|
53 { |
|
54 public: // Constructor and destructor |
|
55 /** |
|
56 * Two-phased constructor |
|
57 */ |
|
58 static CGSDataCallPluginModel* NewL(); |
|
59 |
|
60 /** |
|
61 * Destructor |
|
62 */ |
|
63 ~CGSDataCallPluginModel(); |
|
64 |
|
65 public: // new ones |
|
66 |
|
67 /** |
|
68 * Returns the period after the data call is disconnected |
|
69 * if it has been unused. |
|
70 * @return Minutes between 0 and 99. |
|
71 */ |
|
72 TInt AutodisconnectTimeL(); |
|
73 |
|
74 /** |
|
75 * Sets the period after the data call is disconnected |
|
76 * if it has been unused. |
|
77 * @param aTime Autodisconnect time (minutes). |
|
78 * @return ETrue: no errors |
|
79 * EFalse: an error has occurred |
|
80 */ |
|
81 TBool SetAutodisconnectTimeL( const TInt aTime ); |
|
82 |
|
83 private: // Private constructors |
|
84 /** |
|
85 * Default C++ contructor |
|
86 */ |
|
87 CGSDataCallPluginModel(); |
|
88 |
|
89 /** |
|
90 * Symbian OS default constructor |
|
91 * @return void |
|
92 */ |
|
93 void ConstructL(); |
|
94 |
|
95 private: |
|
96 //handle to CommsDB |
|
97 CCommsDatabase* iCommDb; |
|
98 |
|
99 }; |
|
100 |
|
101 #endif //GSDATACALLPLUGINMODEL_H |
|
102 |
|
103 // End of File |