19
|
1 |
/*
|
|
2 |
* Copyright (c) 2007 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: VCommand control panel plugin implementation.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef VCCONTROLPANELPLUGIN_H
|
|
19 |
#define VCCONTROLPANELPLUGIN_H
|
|
20 |
|
|
21 |
#include <gsplugininterface.h>
|
|
22 |
#include <aknview.h>
|
|
23 |
#include <ConeResLoader.h>
|
|
24 |
#include <eikclb.h>
|
|
25 |
#include <AknServerApp.h>
|
|
26 |
#include "vccontrolpanelpluginuids.hrh"
|
|
27 |
|
|
28 |
class CAknNavigationDecorator;
|
|
29 |
class CAknViewAppUi;
|
|
30 |
class CAknNullService;
|
|
31 |
|
|
32 |
// This plugin's UID.
|
|
33 |
const TUid KDllTUid = { KDllUid };
|
|
34 |
// UID of VCommand application
|
|
35 |
const TUid KVCommandAppTUid = { KVCommandAppUid };
|
|
36 |
|
|
37 |
// CLASS DECLARATION
|
|
38 |
/**
|
|
39 |
* CVcControlPanelPlugin.
|
|
40 |
*/
|
|
41 |
class CVcControlPanelPlugin : public CGSPluginInterface,
|
|
42 |
public MAknServerAppExitObserver
|
|
43 |
{
|
|
44 |
public:
|
|
45 |
|
|
46 |
/**
|
|
47 |
* Symbian OS two-phased constructor
|
|
48 |
* @param aInitParams initialization parameters.
|
|
49 |
* @return new instance of CVcControlPanelPlugin.
|
|
50 |
*/
|
|
51 |
static CVcControlPanelPlugin* NewL( TAny* aInitParams );
|
|
52 |
|
|
53 |
/**
|
|
54 |
* Destructor.
|
|
55 |
*/
|
|
56 |
~CVcControlPanelPlugin();
|
|
57 |
|
|
58 |
/**
|
|
59 |
* From CAknView.
|
|
60 |
* This view's Id.
|
|
61 |
* @return This plugin's UID.
|
|
62 |
*/
|
|
63 |
TUid Id() const;
|
|
64 |
|
|
65 |
/**
|
|
66 |
* From CGSPluginInterface.
|
|
67 |
* @param aCaption this plugin's caption.
|
|
68 |
*/
|
|
69 |
void GetCaptionL( TDes& aCaption ) const;
|
|
70 |
|
|
71 |
/**
|
|
72 |
* From CGSPluginInterface.
|
|
73 |
* @param aIconType icon type
|
|
74 |
*/
|
|
75 |
CGulIcon* CreateIconL( const TUid aIconType );
|
|
76 |
|
|
77 |
/**
|
|
78 |
* From CGSPluginInterface.
|
|
79 |
* @return this plugin's provider category.
|
|
80 |
*/
|
|
81 |
TInt PluginProviderCategory() const;
|
|
82 |
|
|
83 |
/**
|
|
84 |
* From CGSPluginInterface.
|
|
85 |
* @return this plugin's item type.
|
|
86 |
*/
|
|
87 |
TGSListboxItemTypes ItemType();
|
|
88 |
|
|
89 |
/**
|
|
90 |
* From CGSPluginInterface.
|
|
91 |
* @param aKey key name.
|
|
92 |
* @param aValue key value.
|
|
93 |
*/
|
|
94 |
void GetValue( const TGSPluginValueKeys aKey,
|
|
95 |
TDes& aValue );
|
|
96 |
|
|
97 |
/**
|
|
98 |
* From CGSPluginInterface.
|
|
99 |
* @param aSelectionType selection type.
|
|
100 |
*/
|
|
101 |
void HandleSelection( const TGSSelectionTypes aSelectionType );
|
|
102 |
|
|
103 |
private:
|
|
104 |
|
|
105 |
/**
|
|
106 |
* C++ default constructor.
|
|
107 |
*/
|
|
108 |
CVcControlPanelPlugin();
|
|
109 |
|
|
110 |
/**
|
|
111 |
* Symbian OS default constructor.
|
|
112 |
*/
|
|
113 |
void ConstructL();
|
|
114 |
|
|
115 |
/**
|
|
116 |
* From CAknView.
|
|
117 |
* This implementation is empty because this class, being just a dialog,
|
|
118 |
* does not implement the CAknView finctionality.
|
|
119 |
*/
|
|
120 |
void DoActivateL( const TVwsViewId& aPrevViewId,
|
|
121 |
TUid aCustomMessageId,
|
|
122 |
const TDesC8& aCustomMessage );
|
|
123 |
|
|
124 |
/**
|
|
125 |
* From CAknView.
|
|
126 |
* This implementation is empty because this class, being just a dialog,
|
|
127 |
* does not implement the CAknView finctionality.
|
|
128 |
*/
|
|
129 |
void DoDeactivate();
|
|
130 |
|
|
131 |
/**
|
|
132 |
* Opens localized resource file.
|
|
133 |
*/
|
|
134 |
void OpenLocalizedResourceFileL(
|
|
135 |
const TDesC& aResourceFileName,
|
|
136 |
RConeResourceLoader& aResourceLoader );
|
|
137 |
|
|
138 |
/**
|
|
139 |
* Launches provisioning application.
|
|
140 |
*/
|
|
141 |
void LaunchVCommandAppL();
|
|
142 |
|
|
143 |
private: // Data
|
|
144 |
|
|
145 |
/**
|
|
146 |
* Resource loader for this plugin's resources.
|
|
147 |
*/
|
|
148 |
RConeResourceLoader iResources;
|
|
149 |
|
|
150 |
/**
|
|
151 |
* AVKON NULL Service.
|
|
152 |
* Own.
|
|
153 |
*/
|
|
154 |
CAknNullService* iNullService;
|
|
155 |
};
|
|
156 |
|
|
157 |
#endif // VCCONTROLPANELPLUGIN_H
|
|
158 |
// End of File
|