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