1 /* |
|
2 * Copyright (c) 2002 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 class CSelectExplicitDialog. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __SELECTEXPLICITDIALOG_H__ |
|
20 #define __SELECTEXPLICITDIALOG_H__ |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <aknlistquerydialog.h> |
|
26 #include "ExpiryTimerCallback.h" |
|
27 |
|
28 // FORWARD DECLARATION |
|
29 class CConnectionInfoArray; |
|
30 class CSelectConnectionDialog; |
|
31 class CExpiryTimer; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 /** |
|
35 * Class implementing SelectExplicit dialog |
|
36 */ |
|
37 NONSHARABLE_CLASS( CSelectExplicitDialog ) : public CAknListQueryDialog, public MExpiryTimerCallback |
|
38 { |
|
39 private: |
|
40 /** |
|
41 * CSelectExplicitDialog constructor |
|
42 * @param aPlugin plugin pointer |
|
43 */ |
|
44 CSelectExplicitDialog( CSelectConnectionDialog* aCallerDialog ); |
|
45 |
|
46 |
|
47 /** |
|
48 * Symbian default constructor. |
|
49 */ |
|
50 void ConstructL(); |
|
51 |
|
52 |
|
53 public: |
|
54 /** |
|
55 * NewL function |
|
56 * @param aPlugin plugin pointer |
|
57 * return CSelectExplicitDialog* |
|
58 */ |
|
59 static CSelectExplicitDialog* NewL( |
|
60 CSelectConnectionDialog* aCallerDialog ); |
|
61 |
|
62 |
|
63 /** |
|
64 * ~CSelectExplicitDialog destructor |
|
65 */ |
|
66 ~CSelectExplicitDialog(); |
|
67 |
|
68 /** |
|
69 * Exit function OF the CSelectExplicitDialog |
|
70 * @param aButtonId button exit id |
|
71 * @return TBool exit or no |
|
72 */ |
|
73 virtual TBool OkToExitL( TInt aButtonId ); |
|
74 |
|
75 void PrepareAndRunLD( CConnectionInfoArray* aIAP, |
|
76 CArrayPtr< CGulIcon >* aIcons, |
|
77 TBool aIsReallyRefreshing ); |
|
78 |
|
79 /** |
|
80 * Dialog refreshing |
|
81 */ |
|
82 void RefreshDialogL( CConnectionInfoArray* aIAP, |
|
83 CArrayPtr< CGulIcon >* aIcons, |
|
84 TBool aIsReallyRefreshing ); |
|
85 |
|
86 /** |
|
87 * |
|
88 * @return The value of iFromOkToExit. |
|
89 */ |
|
90 inline TBool GetOkToExit(); |
|
91 |
|
92 /** |
|
93 * from CCoeControl |
|
94 * @param aKeyEvent Event to handled. |
|
95 * @param aType Type of the key event. |
|
96 * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). |
|
97 */ |
|
98 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, |
|
99 TEventCode aType); |
|
100 |
|
101 /** |
|
102 * Dialog expiration timeout callback |
|
103 */ |
|
104 void HandleTimedOut(); |
|
105 private: |
|
106 /** |
|
107 * PreLayoutDynInitL |
|
108 * @param - |
|
109 */ |
|
110 virtual void PreLayoutDynInitL(); |
|
111 |
|
112 |
|
113 private: // Data |
|
114 |
|
115 // Pointer to the plugin, not owned |
|
116 CSelectConnectionDialog* iCallerDialog; |
|
117 |
|
118 RArray<TUint> iIAPIds; |
|
119 |
|
120 TBool iFromOkToExit; ///< closed the dialof from OkToExitL or not |
|
121 |
|
122 TInt iDummy; |
|
123 |
|
124 CArrayPtr< CGulIcon >* iIcons; |
|
125 |
|
126 // Pointer for dialog expiration timer |
|
127 CExpiryTimer* iExpiryTimer; |
|
128 |
|
129 }; |
|
130 |
|
131 |
|
132 #include "SelectExplicitDialog.inl" |
|
133 |
|
134 #endif |
|
135 |
|
136 |
|
137 // End of File |
|