|
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: Declaration of CConnectingViaDiscreetPopup |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CCONNECTINGVIADISCREETPOPUP_H |
|
19 #define CCONNECTINGVIADISCREETPOPUP_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32base.h> // For CActive, link against: euser.lib |
|
23 #include <cmmanager.h> |
|
24 |
|
25 #include "connectingviadiscreetpopupnotif.h" |
|
26 |
|
27 /** |
|
28 * CConnectingViaDiscreetPopup class |
|
29 */ |
|
30 NONSHARABLE_CLASS( CConnectingViaDiscreetPopup ) : public CActive |
|
31 { |
|
32 public: |
|
33 /** |
|
34 * Destructor |
|
35 * Cancel and destroy |
|
36 */ |
|
37 ~CConnectingViaDiscreetPopup(); |
|
38 |
|
39 /** |
|
40 * NewL function |
|
41 * Two-phased constructor. |
|
42 * @param aNotif a pointer to notifier plugin |
|
43 */ |
|
44 static CConnectingViaDiscreetPopup* NewL( |
|
45 CConnectingViaDiscreetPopupNotif* aNotif); |
|
46 |
|
47 /** |
|
48 * NewL function |
|
49 * Two-phased constructor. |
|
50 * @param aNotif a pointer to notifier plugin |
|
51 */ |
|
52 static CConnectingViaDiscreetPopup* NewLC( |
|
53 CConnectingViaDiscreetPopupNotif* aNotif); |
|
54 |
|
55 public: |
|
56 /** |
|
57 * StartL Function for making the initial request |
|
58 */ |
|
59 void StartL(TUint32 aIapId, TBool aConnectionAlreadyActive); |
|
60 |
|
61 private: |
|
62 /** |
|
63 * C++ constructor |
|
64 */ |
|
65 CConnectingViaDiscreetPopup(CConnectingViaDiscreetPopupNotif* aNotif); |
|
66 |
|
67 /** |
|
68 * Second-phase constructor |
|
69 */ |
|
70 void ConstructL(); |
|
71 |
|
72 private: |
|
73 /** |
|
74 * From CActive |
|
75 */ |
|
76 void RunL(); |
|
77 |
|
78 /** |
|
79 * From CActive |
|
80 */ |
|
81 void DoCancel(); |
|
82 |
|
83 /** |
|
84 * From CActive |
|
85 */ |
|
86 TInt RunError(TInt aError); |
|
87 |
|
88 private: |
|
89 |
|
90 // Used for complete runl, not owned |
|
91 TRequestStatus* iClientStatus; |
|
92 |
|
93 // Pointer to notifer, not owned |
|
94 CConnectingViaDiscreetPopupNotif* iNotif; |
|
95 |
|
96 // Handle to cmmanager interface |
|
97 RCmManager icmManager; |
|
98 |
|
99 // Bearer type from cmmanager |
|
100 TUint iBearerType; |
|
101 |
|
102 // Connection name - owned |
|
103 HBufC* iConnectionName; |
|
104 |
|
105 // Popup flags |
|
106 TInt iPopupFlags; |
|
107 |
|
108 }; |
|
109 |
|
110 #endif // CCONNECTINGVIADISCREETPOPUP_H |