1 /* |
|
2 * Copyright (c) 2008 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: Compa mode Settings model. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef AKNCOMPAGSMODEL_H |
|
20 #define AKNCOMPAGSMODEL_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 class CRepository; |
|
25 |
|
26 /** |
|
27 * CAknCompaGSModel is the model class for akncompamode GS plugin. |
|
28 * It provides functions to get and set setting values. |
|
29 * @since Series 60_5.0 |
|
30 */ |
|
31 class CAknCompaGSModel : public CBase |
|
32 { |
|
33 public: // Constructor and destructor |
|
34 /** |
|
35 * Two-phased constructor |
|
36 */ |
|
37 static CAknCompaGSModel* NewL(); |
|
38 |
|
39 /** |
|
40 * Destructor |
|
41 */ |
|
42 ~CAknCompaGSModel(); |
|
43 |
|
44 public: // new ones |
|
45 |
|
46 /** |
|
47 * Retrieve compa-mode feature enabled status |
|
48 */ |
|
49 TBool FeatureEnabled(); |
|
50 |
|
51 /** |
|
52 * Retrieve setting state |
|
53 */ |
|
54 TBool CompaAppState(); |
|
55 |
|
56 /** |
|
57 * Store setting state |
|
58 */ |
|
59 void SetCompaAppState(TBool aState); |
|
60 |
|
61 private: // Private constructors |
|
62 /** |
|
63 * Default C++ contructor |
|
64 */ |
|
65 CAknCompaGSModel(); |
|
66 |
|
67 /** |
|
68 * Symbian OS default constructor |
|
69 * @return void |
|
70 */ |
|
71 void ConstructL(); |
|
72 |
|
73 private: |
|
74 TInt iFeatures; |
|
75 TInt iSettings; |
|
76 CRepository* iRepository; |
|
77 }; |
|
78 |
|
79 #endif //AKNCOMPAGSMODEL_H |
|
80 |
|
81 // End of File |
|