58
|
1 |
/*
|
|
2 |
* Copyright (c) 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: Dialog for setting the gateway. It's used temporarily.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef C_CMCONNSELECTRBPAGE_H
|
|
19 |
#define C_CMCONNSELECTRBPAGE_H
|
|
20 |
|
|
21 |
#include <aknradiobuttonsettingpage.h>
|
|
22 |
#include <csxhelp/cp.hlp.hrh>
|
|
23 |
#include <cmcommonconstants.h>
|
|
24 |
|
|
25 |
#include "cmmanagerimpl.h"
|
|
26 |
#include "cmconnsettingsuiimpl.h"
|
|
27 |
|
|
28 |
/**
|
|
29 |
* Application Settings UI radio button page
|
|
30 |
*
|
|
31 |
* @lib cmmanager.lib
|
|
32 |
* @since S60 3.2
|
|
33 |
*/
|
|
34 |
NONSHARABLE_CLASS(CCMConnSelectRBPage) : public CAknRadioButtonSettingPage
|
|
35 |
{
|
|
36 |
|
|
37 |
public: // construction/destruction
|
|
38 |
|
|
39 |
/**
|
|
40 |
* Constructor
|
|
41 |
*
|
|
42 |
* @since S60 3.2
|
|
43 |
* @param aDialogResourceId resource id for the dialog
|
|
44 |
* @param aCurrentSelectionIndex the item to be highlighted
|
|
45 |
* @param aItemArray the items to be displayed
|
|
46 |
* @param aCmManagerImpl reference to the cm manager
|
|
47 |
* @param aSelectionMode the selected item type
|
|
48 |
* @param aHelpContext help context to use when Help menuitem is selected
|
|
49 |
*/
|
|
50 |
CCMConnSelectRBPage( TInt aDialogResourceId,
|
|
51 |
TInt& aCurrentSelectionIndex,
|
|
52 |
const MDesCArray* aItemArray,
|
|
53 |
CCmManagerImpl& aCmManagerImpl,
|
|
54 |
CMManager::TCmDCSettingSelectionMode& aSelectionMode,
|
|
55 |
RArray<TUint32>& aDestinations,
|
|
56 |
TBool areDestinations,
|
|
57 |
TBool aOpenDestination,
|
|
58 |
TCoeContextName& aHelpContext );
|
|
59 |
|
|
60 |
/**
|
|
61 |
* Destructor
|
|
62 |
*/
|
|
63 |
~CCMConnSelectRBPage();
|
|
64 |
|
|
65 |
public: // derived functions
|
|
66 |
|
|
67 |
/**
|
|
68 |
* From CCoeControl
|
|
69 |
*
|
|
70 |
* @since S60 3.2
|
|
71 |
* @param aKeyEvent The key event.
|
|
72 |
* @param aType Key event type.
|
|
73 |
* @return key response (was the key event consumed?).
|
|
74 |
*/
|
|
75 |
TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent,
|
|
76 |
TEventCode aType );
|
|
77 |
|
|
78 |
/**
|
|
79 |
* Returns the help context
|
|
80 |
* From CCoeControl
|
|
81 |
*
|
|
82 |
* @since S60 3.2
|
|
83 |
* @param aContext the returned help context
|
|
84 |
*/
|
|
85 |
void GetHelpContext( TCoeHelpContext& aContext ) const;
|
|
86 |
|
|
87 |
/**
|
|
88 |
* Handle list box events
|
|
89 |
* From CCoeControl
|
|
90 |
*
|
|
91 |
* @since S60 5.0
|
|
92 |
* @param aListBox Reference to list box object.
|
|
93 |
* @param aEventType Type of event.
|
|
94 |
*/
|
|
95 |
void HandleListBoxEventL(CEikListBox* aListBox, MEikListBoxObserver::TListBoxEvent aEventType);
|
|
96 |
|
|
97 |
private: // derived functions
|
|
98 |
|
|
99 |
/*
|
|
100 |
* From CEikDialog
|
|
101 |
*
|
|
102 |
* @since S60 3.2
|
|
103 |
* @param aButtonId
|
|
104 |
*/
|
|
105 |
TBool OkToExitL( TInt aButtonId );
|
|
106 |
|
|
107 |
/*
|
|
108 |
* From MEikMenuObserver
|
|
109 |
*
|
|
110 |
* @since S60 3.2
|
|
111 |
* @param aResourceId
|
|
112 |
* @param aMenuPane
|
|
113 |
*/
|
|
114 |
void DynInitMenuPaneL( TInt aResourceId,
|
|
115 |
CEikMenuPane* aMenuPane );
|
|
116 |
|
|
117 |
/**
|
|
118 |
* From MEikCommandObserver
|
|
119 |
*
|
|
120 |
* @since S60 3.2
|
|
121 |
* @param aCommandId
|
|
122 |
*/
|
|
123 |
void ProcessCommandL( TInt aCommandId );
|
|
124 |
|
|
125 |
private: // data
|
|
126 |
|
|
127 |
/**
|
|
128 |
* Resource id of the used dialog type
|
|
129 |
*/
|
|
130 |
TInt iDialogResourceId;
|
|
131 |
|
|
132 |
/**
|
|
133 |
* reference to the cm manager
|
|
134 |
*/
|
|
135 |
CCmManagerImpl& iCmManagerImpl;
|
|
136 |
|
|
137 |
/**
|
|
138 |
* The selection made by the user
|
|
139 |
*/
|
|
140 |
CMManager::TCmDCSettingSelectionMode& iSelectionMode;
|
|
141 |
|
|
142 |
/**
|
|
143 |
* A list of destination ids
|
|
144 |
*/
|
|
145 |
RArray<TUint32>& iDestinations;
|
|
146 |
/**
|
|
147 |
* Indicates whether iDestinations holds destinatos or CMs
|
|
148 |
*/
|
|
149 |
TBool iAreDestinations;
|
|
150 |
/**
|
|
151 |
* Indicates whether iDestinations should be openable
|
|
152 |
*/
|
|
153 |
TBool iOpenDestination;
|
|
154 |
/**
|
|
155 |
* help context
|
|
156 |
*/
|
|
157 |
TCoeContextName iHelpContext;
|
|
158 |
/**
|
|
159 |
* Previously selected item
|
|
160 |
*/
|
|
161 |
TInt iPrevItem;
|
|
162 |
/*
|
|
163 |
* pressing the enter key first time will be handled as an uparrow key
|
|
164 |
*/
|
|
165 |
TBool iFirstEnter;
|
|
166 |
};
|
|
167 |
|
|
168 |
#endif // C_CMAPPSETTRBPAGE_H
|