|
1 /* |
|
2 * Copyright (c) 2005 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 CActiveCChangeConnectionDlg. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef ACTIVE_CHANGECONNECTIONDLG_H |
|
21 #define ACTIVE_CHANGECONNECTIONDLG_H |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include "ActiveIAPListing.h" |
|
26 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
27 #include <commsdat.h> |
|
28 #else |
|
29 #include <commsdat.h> |
|
30 #include <commsdat_partner.h> |
|
31 #endif |
|
32 |
|
33 |
|
34 // FORWARD DECLARATION |
|
35 class CChangeConnectionDlg; |
|
36 |
|
37 /** |
|
38 * CActiveCChangeConnectionDlg class, |
|
39 * an active object for CChangeConnectionDlg |
|
40 */ |
|
41 NONSHARABLE_CLASS( CActiveCChangeConnectionDlg ) : public CActiveIAPListing |
|
42 { |
|
43 public: |
|
44 /** |
|
45 * NewL function |
|
46 * @param aIAPId iap id |
|
47 * @param aPrefs preferences pointer |
|
48 */ |
|
49 static CActiveCChangeConnectionDlg* NewL( TUint32* aIAPId, |
|
50 const TConnectionPrefs& aPrefs, |
|
51 TDes& aConnectionName ); |
|
52 |
|
53 /** |
|
54 * StartSearchIAPs setactive and starts active object |
|
55 * @return ETrue if Select Soft key was pressed, |
|
56 * EFalse if Cancel Soft key was selected on the dialog. |
|
57 */ |
|
58 TBool StartSearchIAPsL(); |
|
59 |
|
60 /** |
|
61 * Destructor |
|
62 */ |
|
63 virtual ~CActiveCChangeConnectionDlg(); |
|
64 |
|
65 /** |
|
66 * Cancels the active object |
|
67 */ |
|
68 void Cancel(); |
|
69 |
|
70 inline void SetSelected( TBool aSelected ); |
|
71 |
|
72 inline CConnectionInfoArray* ActIAPs(); |
|
73 |
|
74 |
|
75 protected: |
|
76 /** |
|
77 * ConstructL |
|
78 */ |
|
79 void ConstructL(); |
|
80 |
|
81 /** |
|
82 * Constructor |
|
83 * @param aIAPId iap id |
|
84 * @param aPrefs preferences pointer |
|
85 */ |
|
86 CActiveCChangeConnectionDlg( TUint32* aIAPId, |
|
87 const TConnectionPrefs& aPrefs, |
|
88 TDes& aConnectionName ); |
|
89 |
|
90 /** |
|
91 * DoCancel from CActive |
|
92 */ |
|
93 virtual void DoCancel(); |
|
94 |
|
95 /** |
|
96 * RunL from CActive |
|
97 */ |
|
98 virtual void RunL(); |
|
99 |
|
100 /** |
|
101 * Gives back, refresh interval of scan for network |
|
102 */ |
|
103 TInt GetRefreshInterval(); |
|
104 |
|
105 protected: |
|
106 |
|
107 CChangeConnectionDlg* iDialog; ///< a pointer to dialog, not owned |
|
108 |
|
109 TBool isDialogDeleting; |
|
110 |
|
111 TUint32* iIAPId; // ID of IAP |
|
112 |
|
113 TBuf<CommsDat::KMaxTextLength> iConnectionName; |
|
114 |
|
115 CActiveSchedulerWait iWait; |
|
116 |
|
117 TBool iSelected; |
|
118 |
|
119 }; |
|
120 |
|
121 #include "ActiveCChangeConnectionDlg.inl" |
|
122 |
|
123 #endif // ACTIVE_CHANGECONNECTIONDLG_H |
|
124 |
|
125 // End of File |