|
1 /* |
|
2 * Copyright (c) 2006-2006 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: Declaration of CIRGeneralSettingsView |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CIRGENERALSETTINGSVIEW_H |
|
20 #define C_CIRGENERALSETTINGSVIEW_H |
|
21 |
|
22 #include "irsettingsviewbase.h" |
|
23 |
|
24 /** |
|
25 * Implements the general settings plugin interface. |
|
26 * |
|
27 * Loads the necessary resources and constructs the view and model of the plugin. |
|
28 */ |
|
29 NONSHARABLE_CLASS( CIRGeneralSettingsView ) : public CIRSettingsViewBase |
|
30 { |
|
31 |
|
32 public: |
|
33 |
|
34 /** |
|
35 * Two-phased constructor. |
|
36 * |
|
37 * @param aInitParams The ECom plugin initialization parameters. |
|
38 * @return The newly created object. |
|
39 */ |
|
40 static CIRGeneralSettingsView* NewL( TAny* aInitParams ); |
|
41 |
|
42 /** |
|
43 * NewLC() |
|
44 * Static constructor. |
|
45 */ |
|
46 static CIRGeneralSettingsView* NewLC(); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 ~CIRGeneralSettingsView(); |
|
52 |
|
53 /** |
|
54 * HandleCommandL() |
|
55 * Command Handler |
|
56 */ |
|
57 void HandleCommandL( TInt aCommand ); |
|
58 |
|
59 /** |
|
60 * DynInitMenuPaneL() |
|
61 * Dynamically initialises a menu pane |
|
62 */ |
|
63 void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); |
|
64 |
|
65 |
|
66 private: |
|
67 |
|
68 /** |
|
69 * Constructor. |
|
70 */ |
|
71 CIRGeneralSettingsView(); |
|
72 |
|
73 /** |
|
74 * Second-phase constructor. |
|
75 */ |
|
76 void ConstructL(); |
|
77 |
|
78 // from base class CAknView |
|
79 |
|
80 /** |
|
81 * Id() |
|
82 * returns the Id of the view |
|
83 */ |
|
84 TUid Id() const; |
|
85 |
|
86 |
|
87 /** |
|
88 * DoActivateL() |
|
89 * Activates the view |
|
90 */ |
|
91 void DoActivateL( const TVwsViewId& aPrevViewId, TUid aCustomMessageId, |
|
92 const TDesC8& aCustomMessage ); |
|
93 |
|
94 |
|
95 // from base class CGSPluginInterface |
|
96 |
|
97 /** GetCaptionL() |
|
98 * Gets the caption of general settings |
|
99 */ |
|
100 void GetCaptionL( TDes& aCaption ) const; |
|
101 |
|
102 /** PluginProviderCategory() |
|
103 * Getter for provider category |
|
104 */ |
|
105 TInt PluginProviderCategory() const; |
|
106 |
|
107 /** CreateIconL() |
|
108 * Creates icon for the general settings |
|
109 */ |
|
110 CGulIcon* CreateIconL( const TUid aIconType ); |
|
111 |
|
112 /** Visible() |
|
113 * Getter for general settings view visibility status |
|
114 */ |
|
115 virtual TBool Visible() const; |
|
116 |
|
117 // from base class CVRSettingsViewBase |
|
118 |
|
119 /** CreateContainerL() |
|
120 * Constructs new container |
|
121 */ |
|
122 void CreateContainerL(); |
|
123 |
|
124 private: |
|
125 |
|
126 /** |
|
127 * iGeneralSettingsResourceLoader |
|
128 * The resource loader for the resource file. |
|
129 */ |
|
130 RConeResourceLoader iGeneralSettingsResourceLoader; |
|
131 |
|
132 }; |
|
133 |
|
134 #endif // C_CIRGENERALSETTINGSVIEW_H |