46
|
1 |
/*
|
|
2 |
* Copyright (c) 2001-2009 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 the License "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: Declares dialog
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
/*
|
|
19 |
* %version: 17 %
|
|
20 |
*/
|
|
21 |
|
|
22 |
#ifndef __EAPPLUGINCONFIGURATIONDLG_H__
|
|
23 |
#define __EAPPLUGINCONFIGURATIONDLG_H__
|
|
24 |
|
|
25 |
|
|
26 |
// INCLUDES
|
|
27 |
#include <aknselectionlist.h>
|
|
28 |
#include <commdb.h>
|
|
29 |
|
|
30 |
#include "EAPPluginList.h"
|
|
31 |
|
|
32 |
|
|
33 |
// FORWARD DECLARATIONS
|
|
34 |
class CAknTitlePane;
|
|
35 |
class CEAPPluginConfigurationModel;
|
|
36 |
|
|
37 |
|
|
38 |
// CONSTANTS
|
|
39 |
/**
|
|
40 |
* Maximum length of a SSID in BYTES
|
|
41 |
*/
|
|
42 |
const TUint8 KMaxSSIDLength = 32;
|
|
43 |
|
|
44 |
|
|
45 |
// CLASS DECLARATION
|
|
46 |
/**
|
|
47 |
* CEAPPluginConfigurationDlg dialog class
|
|
48 |
*/
|
|
49 |
class CEAPPluginConfigurationDlg : public CAknSelectionListDialog
|
|
50 |
{
|
|
51 |
public: // Constructors and destructor
|
|
52 |
|
|
53 |
/**
|
|
54 |
* Constructor.
|
|
55 |
* @param aButtonId Button used to close the dialog
|
|
56 |
* @param aModel UI model.
|
|
57 |
*/
|
|
58 |
CEAPPluginConfigurationDlg( TInt& aButtonId,
|
|
59 |
CEAPPluginConfigurationModel& aModel,
|
|
60 |
const TUint32 iIapId );
|
|
61 |
/**
|
|
62 |
* Create and launch dialog.
|
|
63 |
* @param aPlugins Plugin list
|
|
64 |
* @param aTitle Title of the dialog
|
|
65 |
* @return The ID of the button that closed the dialog
|
|
66 |
*/
|
|
67 |
TInt ConstructAndRunLD( const REAPPluginList& aPlugins,
|
|
68 |
const TDesC& aTitle );
|
|
69 |
|
|
70 |
|
|
71 |
/**
|
|
72 |
* Destructor.
|
|
73 |
*/
|
|
74 |
~CEAPPluginConfigurationDlg();
|
|
75 |
|
|
76 |
/**
|
|
77 |
* Handles list box events.
|
|
78 |
* @param aListBox The originating list box.
|
|
79 |
* @param aEventType A code for the event.
|
|
80 |
*/
|
|
81 |
void HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aEventType );
|
|
82 |
|
|
83 |
|
|
84 |
private:
|
|
85 |
|
|
86 |
/**
|
|
87 |
* This function is called by the dialog framework before the dialog is
|
|
88 |
* sized and laid out.
|
|
89 |
*/
|
|
90 |
virtual void PreLayoutDynInitL();
|
|
91 |
|
|
92 |
|
|
93 |
/**
|
|
94 |
* Handles a dialog button press for the specified button
|
|
95 |
* @param aButtonId The ID of the button that was activated.
|
|
96 |
* @return ETrue to validate and exit the dialog,
|
|
97 |
* EFalse to keep the dialog active
|
|
98 |
*/
|
|
99 |
TBool OkToExitL( TInt aButtonId );
|
|
100 |
|
|
101 |
|
|
102 |
/**
|
|
103 |
* Processes user commands.
|
|
104 |
* @param aCommandId ID of the command to respond to.
|
|
105 |
*/
|
|
106 |
virtual void ProcessCommandL( TInt aCommandId );
|
|
107 |
|
|
108 |
|
|
109 |
/**
|
|
110 |
* Get help context.
|
|
111 |
* @param aContext Help context is returned here.
|
|
112 |
*/
|
|
113 |
void GetHelpContext( TCoeHelpContext& aContext ) const;
|
|
114 |
|
|
115 |
|
|
116 |
/**
|
|
117 |
* Initialize menu pane.
|
|
118 |
* @param aResourceId Menu pane resource id.
|
|
119 |
* @param aMenuPane Menu pane.
|
|
120 |
*/
|
|
121 |
void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
|
|
122 |
|
|
123 |
|
|
124 |
/**
|
|
125 |
* Catch offered key events.
|
|
126 |
* @param aKeyEvent Key event
|
|
127 |
* @param aModifiers Modifiers
|
|
128 |
* @return EKeyWasConsumed or EKeyWasNotConsumed, appropriately.
|
|
129 |
*/
|
|
130 |
TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent,
|
|
131 |
TEventCode aModifiers );
|
|
132 |
|
|
133 |
void SetIconsL();
|
|
134 |
void HandleResourceChange( TInt aType );
|
|
135 |
|
|
136 |
/**
|
|
137 |
* @see CEikDialog
|
|
138 |
*/
|
|
139 |
void HandleDialogPageEventL( TInt aEventID );
|
|
140 |
|
|
141 |
void ConfigureL( TBool aQuick );
|
|
142 |
|
|
143 |
private: //data
|
|
144 |
|
|
145 |
// Stores the name of the connection, to be showed as the title.
|
|
146 |
TBuf<KMaxSSIDLength> iConnectionName;
|
|
147 |
|
|
148 |
// Title pane. Not owned.
|
|
149 |
CAknTitlePane* iTitlePane;
|
|
150 |
|
|
151 |
// Pointer to the old title. Owned.
|
|
152 |
HBufC* iOldTitleText;
|
|
153 |
|
|
154 |
REAPPluginList iPlugins;
|
|
155 |
|
|
156 |
TInt* iButtonId;
|
|
157 |
|
|
158 |
// For base class, unused.
|
|
159 |
TInt iDummy;
|
|
160 |
|
|
161 |
// UI model. Not owned.
|
|
162 |
CEAPPluginConfigurationModel* iModel;
|
|
163 |
|
|
164 |
TUint32 iIapId;
|
|
165 |
|
|
166 |
// For exiting dialog
|
|
167 |
TBool iExiting;
|
|
168 |
|
|
169 |
};
|
|
170 |
|
|
171 |
|
|
172 |
#endif // __EAPPLUGINCONFIGURATIONDLG_H__
|
|
173 |
|
|
174 |
// End of File
|