|
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: |
|
15 * Declares dialog. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CHANGECONNECTIONDLG_H |
|
21 #define CHANGECONNECTIONDLG_H |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include <commdb.h> |
|
26 #include <aknlistquerydialog.h> |
|
27 #include <agentdialog.h> |
|
28 #include <AknWaitDialog.h> |
|
29 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
30 #include <commsdat.h> |
|
31 #else |
|
32 #include <commsdat.h> |
|
33 #include <commsdat_partner.h> |
|
34 #endif |
|
35 |
|
36 #include "ConnectionInfo.h" |
|
37 #include "ConnectionInfoArray.h" |
|
38 #include "ActiveCChangeConnectionDlg.h" |
|
39 #include "ExpiryTimerCallback.h" |
|
40 |
|
41 class CExpiryTimer; |
|
42 // CLASS DECLARATION |
|
43 |
|
44 /** |
|
45 * CChangeConnectionDlg dialog class |
|
46 * |
|
47 */ |
|
48 NONSHARABLE_CLASS( CChangeConnectionDlg ) : public CAknListQueryDialog, public MExpiryTimerCallback |
|
49 { |
|
50 public: // Constructors and destructor |
|
51 |
|
52 /** |
|
53 * Two-phase construction. |
|
54 * @param |
|
55 * @param |
|
56 */ |
|
57 static CChangeConnectionDlg* NewL( TUint32* aIAPId, |
|
58 CActiveCChangeConnectionDlg* aActiveDlg, |
|
59 TDes& aConnectionName ); |
|
60 |
|
61 /** |
|
62 * Destructor. |
|
63 */ |
|
64 ~CChangeConnectionDlg(); |
|
65 |
|
66 /** |
|
67 * Refersh items of dialog |
|
68 */ |
|
69 void RefreshDialogL(); |
|
70 |
|
71 protected: |
|
72 /** |
|
73 * Constructor. |
|
74 */ |
|
75 CChangeConnectionDlg( TInt aIndex, |
|
76 TUint32* aIAPId, |
|
77 CActiveCChangeConnectionDlg* aActiveDlg, |
|
78 TDes& aConnectionName ); |
|
79 |
|
80 |
|
81 private: |
|
82 |
|
83 // From CAknListQueryDialog |
|
84 virtual void PreLayoutDynInitL(); |
|
85 |
|
86 // From CAknListQueryDialog |
|
87 TBool OkToExitL( TInt aButtonId ); |
|
88 |
|
89 /** |
|
90 * Handle resource change events. |
|
91 * @param aType: The type of resources that have changed |
|
92 */ |
|
93 void HandleResourceChange( TInt aType ); |
|
94 |
|
95 /** |
|
96 * Create dialog. |
|
97 */ |
|
98 void ConstructL(); |
|
99 |
|
100 /** |
|
101 * Dialog expiration timeout callback |
|
102 */ |
|
103 void HandleTimedOut(); |
|
104 |
|
105 private: // New functions |
|
106 |
|
107 /** |
|
108 * Sets graphic icons |
|
109 * @param - |
|
110 */ |
|
111 void SetIconsL(); |
|
112 |
|
113 |
|
114 private: //data |
|
115 TUint32* iIAPId; |
|
116 TBuf<CommsDat::KMaxTextLength> iConnectionName; |
|
117 TBool iIsWLANFeatureSupported; |
|
118 |
|
119 CActiveCChangeConnectionDlg* iActiveDlg; // not owned |
|
120 |
|
121 // Pointer for dialog expiration timer |
|
122 CExpiryTimer* iExpiryTimer; |
|
123 }; |
|
124 |
|
125 |
|
126 |
|
127 |
|
128 #endif |
|
129 |
|
130 // End of File |