|
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: Declaration of CConfirmationQueryNotif |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __CONFIRMATIONQUERYNOTIF_H__ |
|
21 #define __CONFIRMATIONQUERYNOTIF_H__ |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include "ConnectionDialogsNotifBase.h" |
|
26 #include "ConnectionUiUtilitiesCommon.h" |
|
27 #include <etel3rdparty.h> |
|
28 #include <ConnectionUiUtilities.h> |
|
29 #include <e32base.h> |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class CConfirmationQuery; |
|
33 class CConfirmationQueryVisitor; |
|
34 class CRoamingInfo; |
|
35 |
|
36 /** |
|
37 * OfflineWlanNoteNotif class |
|
38 */ |
|
39 NONSHARABLE_CLASS( CConfirmationQueryNotif ) |
|
40 : public CConnectionDialogsNotifBase |
|
41 { |
|
42 public: |
|
43 |
|
44 /** |
|
45 * Constructor. |
|
46 */ |
|
47 CConfirmationQueryNotif(); |
|
48 |
|
49 /** |
|
50 * NewL function |
|
51 * @param - |
|
52 * return CConfirmationQueryNotif* |
|
53 */ |
|
54 static CConfirmationQueryNotif* NewL( |
|
55 const TBool aResourceFileResponsible ); |
|
56 |
|
57 /** |
|
58 * ~CConfirmationQueryNotif() destructor |
|
59 * @param - |
|
60 * return - |
|
61 */ |
|
62 virtual ~CConfirmationQueryNotif(); |
|
63 |
|
64 /** |
|
65 * RegisterL register the client notifier function |
|
66 * @param - |
|
67 * return TNotifierInfo |
|
68 */ |
|
69 TNotifierInfo RegisterL(); |
|
70 |
|
71 /** |
|
72 * Start the Notifier |
|
73 * @param aBuffer Buffer |
|
74 * @param aReplySlot Identifies which message argument to use for the |
|
75 * reply. This message argument will refer to a |
|
76 * modifiable descriptor, a TDes8 type, into which |
|
77 * data can be returned. |
|
78 * @param aMessage Message |
|
79 * return - |
|
80 */ |
|
81 void StartL( const TDesC8& aBuffer, TInt aReplySlot, |
|
82 const RMessagePtr2& aMessage ); |
|
83 |
|
84 /** |
|
85 * Cancel() the notifier |
|
86 * @param - |
|
87 * return - |
|
88 */ |
|
89 void Cancel(); |
|
90 |
|
91 |
|
92 public: |
|
93 |
|
94 /** |
|
95 * CompleteL the notifier is complete |
|
96 * @param aStatus status |
|
97 * return - |
|
98 */ |
|
99 void CompleteL( TInt aStatus ); |
|
100 |
|
101 /** |
|
102 * Sets the selected choise |
|
103 * @param aChoice TInt |
|
104 * return - |
|
105 */ |
|
106 void SetSelectedChoiceL ( TInt aChoice ); |
|
107 |
|
108 void SetVisitorNetwork(); |
|
109 |
|
110 private: |
|
111 |
|
112 /** |
|
113 * Callback is called to launch dialog asynchronously |
|
114 * @param aObject Pointer to notifier object. |
|
115 * return Error code |
|
116 */ |
|
117 static TInt LaunchDialogL( TAny* aObject ); |
|
118 |
|
119 /** |
|
120 * Callback is called to launch dialog asynchronously |
|
121 * @param aObject Pointer to notifier object. |
|
122 * return Error code |
|
123 */ |
|
124 static TInt LaunchDialogVisitorL( TAny* aObject ); |
|
125 |
|
126 private: |
|
127 TBool iTryNextBest; |
|
128 TUint32 iConnMethod; |
|
129 CConfirmationQuery* iDialog; // Home network dialog |
|
130 CConfirmationQueryVisitor* iDialogVisitor; // Visitor network dialog |
|
131 TBool iIsVisitorNetwork; |
|
132 TMsgQueryLinkedResults iChoice; |
|
133 TConnUiUiDestConnMethodNoteId iNoteInfo; |
|
134 CAsyncCallBack *iLaunchDialogAsync; // One shot active object |
|
135 }; |
|
136 |
|
137 #endif // __CONFIRMATIONQUERYNOTIF_H__ |
|
138 |
|
139 // End of File |