|
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 displaying and editing legacy connection methods |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef UNCATDIALOG_H |
|
19 #define UNCATDIALOG_H |
|
20 |
|
21 // INCLUDES |
|
22 #include "cmdlg.h" |
|
23 |
|
24 // CLASS DECLARATION |
|
25 class CEikStatusPane; |
|
26 class CAknTitlePane; |
|
27 class CAknNavigationControlContainer; |
|
28 class CAknNavigationDecorator; |
|
29 |
|
30 typedef struct |
|
31 { |
|
32 CCmPluginBase* iPlugin; |
|
33 TUint32 iCmId; |
|
34 }TUncatItem; |
|
35 |
|
36 /** |
|
37 * Dialog for displaying and editing legacy iaps |
|
38 * |
|
39 * @lib cmmanager.lib |
|
40 * @since S60 v3.2 |
|
41 */ |
|
42 NONSHARABLE_CLASS( CUncatDlg ) : public CCmDlg |
|
43 { |
|
44 public : // construction |
|
45 |
|
46 /** Epoc constructor */ |
|
47 static CUncatDlg* NewL( CCmManagerImpl* aCmManager ); |
|
48 |
|
49 /** Destructor. */ |
|
50 ~CUncatDlg(); |
|
51 |
|
52 public: // New functions |
|
53 |
|
54 /** |
|
55 * Create and launch dialog. |
|
56 * @return The code returned by the dialogs' ExecuteLD |
|
57 */ |
|
58 TInt ConstructAndRunLD( TUint32 aHighLight, TUint32& aSelected ); |
|
59 |
|
60 // From MEikMenuObserver |
|
61 void DynInitMenuPaneL( TInt aResourceId, |
|
62 CEikMenuPane* aMenuPane ); |
|
63 |
|
64 // From MEikCommandObserver |
|
65 void ProcessCommandL( TInt aCommandId ) ; |
|
66 |
|
67 /** |
|
68 * Updates listbox data |
|
69 */ |
|
70 void ConstructCMArrayL( RArray<TUint32>& aCmIds ); |
|
71 |
|
72 public: // From MCmCommsDatWatcher |
|
73 |
|
74 /** |
|
75 * Watch changes in CommsDat |
|
76 */ |
|
77 void CommsDatChangesL(); |
|
78 |
|
79 private: // Constructor |
|
80 |
|
81 /** |
|
82 * Default constructor. |
|
83 */ |
|
84 CUncatDlg( CCmManagerImpl* aCmManager ); |
|
85 |
|
86 private : // from CEikDialog |
|
87 |
|
88 /** |
|
89 * Set the gateway's IP address, if the user pressed OK. |
|
90 * @param aButtonId The ID of the pressed button. |
|
91 * @return May the dialog exit? |
|
92 */ |
|
93 void InitTextsL(); |
|
94 |
|
95 /** |
|
96 * Returns the currently focused connection method in the list |
|
97 */ |
|
98 CCmPluginBase* CurrentCML(); |
|
99 |
|
100 /** |
|
101 * Returns the connection method in the list at the specified index |
|
102 */ |
|
103 CCmPluginBase* CMByIndexL( TInt aIndex ); |
|
104 |
|
105 /** |
|
106 * Returns the connection mehtod count |
|
107 */ |
|
108 TInt CMCount(); |
|
109 |
|
110 /** |
|
111 * Cleans up iCmUncatItems |
|
112 * |
|
113 * @param aReuse whether the array will be used again or not |
|
114 * @since S60 3.2 |
|
115 */ |
|
116 void CleanupUncatArray( TBool aReuseArray = EFalse ); |
|
117 |
|
118 protected: |
|
119 |
|
120 RArray<TUncatItem> iCmUncatItems; |
|
121 }; |
|
122 |
|
123 #endif |
|
124 |
|
125 // End of File |