|
1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * Password dialog |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef BROWSERAUTHENTICATIONDIALOG_H |
|
22 #define BROWSERAUTHENTICATIONDIALOG_H |
|
23 |
|
24 |
|
25 // INCLUDE FILES |
|
26 #include <aknquerydialog.h> |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * Undocumented dialog class from Nokia. |
|
32 * @lib Browser.app |
|
33 * @since Series 60 1.2 |
|
34 */ |
|
35 class CBrowserAuthenticationDialog : public CAknMultiLineDataQueryDialog |
|
36 { |
|
37 public: // Constructors and destructor |
|
38 |
|
39 /** |
|
40 * C++ default constructor. |
|
41 * @since Series 60 1.2 |
|
42 * @param aMsg User name (it may contains default value) |
|
43 * @param aPassword Password |
|
44 */ |
|
45 static CBrowserAuthenticationDialog* NewL( TDes& aUsername, |
|
46 TDes& aPassword ); |
|
47 |
|
48 protected: |
|
49 |
|
50 /** |
|
51 * CBrowserAuthenticationDialog default constructor. |
|
52 */ |
|
53 CBrowserAuthenticationDialog(); |
|
54 |
|
55 /** |
|
56 * Second phase constructor. Leaves on failure. |
|
57 */ |
|
58 void ConstructL( TDes* aUsername, |
|
59 TDes* aPassword ); |
|
60 |
|
61 private: // from CEikDialog |
|
62 |
|
63 /** |
|
64 * Fills the edwins with default values. |
|
65 * @since Series 60 1.2 |
|
66 */ |
|
67 void PreLayoutDynInitL(); |
|
68 |
|
69 /** |
|
70 * Set the password if the user pressed Ok. |
|
71 * @since Series 60 1.2 |
|
72 * @param aKeyCode The ID of the pushed button |
|
73 * @return May the dialog exit? |
|
74 */ |
|
75 TBool OkToExitL( TInt aKeycode ); |
|
76 |
|
77 /** |
|
78 * Setting focus to second line + see CEikDialog |
|
79 * @since Series 60 1.2 |
|
80 */ |
|
81 virtual void SetInitialCurrentLineL(); |
|
82 |
|
83 /** |
|
84 * Enables/disables left softkey |
|
85 * @since Series 60 1.2 |
|
86 * @param aQueryControl Pointer to query control |
|
87 * which sent the event |
|
88 * @param aEventType Type of the event |
|
89 * @param aStatus Editor validation status |
|
90 */ |
|
91 TBool HandleQueryEditorStateEventL(CAknQueryControl* aQueryControl, |
|
92 TQueryControlEvent aEventType, |
|
93 TQueryValidationStatus aStatus); |
|
94 |
|
95 private: // Data |
|
96 |
|
97 TBool iEmptyName; |
|
98 TBool iEmptyPassword; |
|
99 TDes* iUsername; |
|
100 TDes* iPassword; |
|
101 }; |
|
102 |
|
103 #endif |
|
104 |
|
105 // End of File |