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