|
1 /* |
|
2 * Copyright (c) 2001-2009 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 the License "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 PAP Notif Dialog Plugin |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 7 % |
|
20 */ |
|
21 |
|
22 #ifndef __PAPNOTIFDLGPLUGIN_H__ |
|
23 #define __PAPNOTIFDLGPLUGIN_H__ |
|
24 |
|
25 |
|
26 // INCLUDES |
|
27 #include <eikdialg.h> |
|
28 #include <e32std.h> |
|
29 #include <e32base.h> |
|
30 #include <cdblen.h> |
|
31 #include <eiknotapi.h> |
|
32 #include <AknForm.h> |
|
33 #include <AknQueryDialog.h> |
|
34 #include <aknPopup.h> |
|
35 #include <EapTtlsPapNotifierStruct.h> |
|
36 |
|
37 |
|
38 // CONSTANTS |
|
39 |
|
40 // UIDs for dialogs |
|
41 |
|
42 // ID of PAP username & password dialog |
|
43 const TUid KUidPapDialog = { 0x200159A9 }; |
|
44 |
|
45 // Channel used for screen |
|
46 const TUid KScreenOutputChannel = { 0x00000123 }; |
|
47 |
|
48 // Number of dialogs in this plugin |
|
49 const TInt KPluginGranularity = 1; |
|
50 |
|
51 // ROM folder |
|
52 _LIT( KDriveZ, "z:" ); |
|
53 |
|
54 // RSC file name. |
|
55 _LIT( KResourceFileName, "papnotifdlgui.rsc" ); |
|
56 |
|
57 |
|
58 // GLOBAL FUNCTIONS |
|
59 |
|
60 /** |
|
61 * Array of connection dialog plugins. |
|
62 * @return A CArray of MEikSrvNotifierBase2 based classes. |
|
63 */ |
|
64 IMPORT_C CArrayPtr< MEikSrvNotifierBase2 >* NotifierArray(); |
|
65 |
|
66 |
|
67 // CLASS DECLARATION |
|
68 |
|
69 class CPapAuthDialog; |
|
70 class CPapChallengeMsgDialog; |
|
71 class CPapChallengeReplyDialog; |
|
72 |
|
73 /** |
|
74 * PAP notifier dialog plugin class |
|
75 */ |
|
76 class CPapNotifDialogPlugin : public CBase, |
|
77 public MEikSrvNotifierBase2 |
|
78 { |
|
79 public: |
|
80 static CPapNotifDialogPlugin* NewL(); |
|
81 |
|
82 ~CPapNotifDialogPlugin(); |
|
83 |
|
84 TNotifierInfo RegisterL(); |
|
85 TNotifierInfo Info() const; |
|
86 |
|
87 TPtrC8 StartL( const TDesC8& aBuffer ); |
|
88 void StartL( const TDesC8& aBuffer, TInt aReplySlot, |
|
89 const RMessagePtr2& aMessage ); |
|
90 |
|
91 TPtrC8 UpdateL( const TDesC8& aBuffer ); |
|
92 void Cancel(); |
|
93 void CompleteL( TInt aStatus ); |
|
94 void Release(); |
|
95 |
|
96 public: // new |
|
97 |
|
98 TDes& Username(); |
|
99 TDes& Password(); |
|
100 |
|
101 void SetAuthDlgDismissed(); |
|
102 void SetChallengeMsgDismissed(); |
|
103 void SetChallengeReplyDismissed(); |
|
104 |
|
105 protected: |
|
106 CPapNotifDialogPlugin(); |
|
107 |
|
108 void ConstructL(); |
|
109 |
|
110 protected: |
|
111 TNotifierInfo iInfo; // Notifier info |
|
112 RMessagePtr2 iMessage; // Message |
|
113 TInt iReplySlot; // Reply slot |
|
114 TBool iCancelled; // ETrue if dialog cancelled |
|
115 |
|
116 private: |
|
117 |
|
118 TInt iResource; // Resource |
|
119 |
|
120 TPapUiNotifierInfo* iDataPtr; |
|
121 TPckg<TPapUiNotifierInfo>* iDataPckgPtr; |
|
122 |
|
123 CPapAuthDialog* iPapAuthDialog; |
|
124 CPapChallengeMsgDialog* iPapChallengeMsgDialog; |
|
125 CPapChallengeReplyDialog*iPapChallengeReplyDialog; |
|
126 |
|
127 TUint iChallengeSize; |
|
128 |
|
129 TBool iAuthDlgDismissed; |
|
130 TBool iChallengeMsgDismissed; |
|
131 TBool iChallengeReplyDismissed; |
|
132 |
|
133 }; |
|
134 |
|
135 |
|
136 #endif // __PAPNOTIFDLGPLUGIN_H__ |
|
137 |
|
138 // End of File |