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 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 |
/**
|
|
73 |
* Remove hidden Connection Methods from the Array
|
|
74 |
*/
|
|
75 |
void ClearHiddenCMsFromArrayL( RArray<TUint32>& aCmIds );
|
|
76 |
|
|
77 |
public: // From MCmCommsDatWatcher
|
|
78 |
|
|
79 |
/**
|
|
80 |
* Watch changes in CommsDat
|
|
81 |
*/
|
|
82 |
void CommsDatChangesL();
|
|
83 |
|
|
84 |
private: // Constructor
|
|
85 |
|
|
86 |
/**
|
|
87 |
* Default constructor.
|
|
88 |
*/
|
|
89 |
CUncatDlg( CCmManagerImpl* aCmManager );
|
|
90 |
|
|
91 |
private : // from CEikDialog
|
|
92 |
|
|
93 |
/**
|
|
94 |
* Set the gateway's IP address, if the user pressed OK.
|
|
95 |
* @param aButtonId The ID of the pressed button.
|
|
96 |
* @return May the dialog exit?
|
|
97 |
*/
|
|
98 |
void InitTextsL();
|
|
99 |
|
|
100 |
/**
|
|
101 |
* Returns the currently focused connection method in the list
|
|
102 |
*/
|
|
103 |
CCmPluginBase* CurrentCML();
|
|
104 |
|
|
105 |
/**
|
|
106 |
* Returns the connection method in the list at the specified index
|
|
107 |
*/
|
|
108 |
CCmPluginBase* CMByIndexL( TInt aIndex );
|
|
109 |
|
|
110 |
/**
|
|
111 |
* Returns the connection mehtod count
|
|
112 |
*/
|
|
113 |
TInt CMCount();
|
|
114 |
|
|
115 |
/**
|
|
116 |
* Cleans up iCmUncatItems
|
|
117 |
*
|
|
118 |
* @param aReuse whether the array will be used again or not
|
|
119 |
* @since S60 3.2
|
|
120 |
*/
|
|
121 |
void CleanupUncatArray( TBool aReuseArray = EFalse );
|
|
122 |
|
|
123 |
protected:
|
|
124 |
|
|
125 |
RArray<TUncatItem> iCmUncatItems;
|
|
126 |
};
|
|
127 |
|
|
128 |
#endif
|
|
129 |
|
|
130 |
// End of File
|