|
1 /* |
|
2 * Copyright (c) 2004 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 * |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef BROWSERSCRIPTPROMPTDIALOG_H |
|
21 #define BROWSERSCRIPTPROMPTDIALOG_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <aknquerydialog.h> |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Class definition |
|
30 */ |
|
31 class CBrowserScriptPromptDialog : public CAknTextQueryDialog |
|
32 { |
|
33 public: // Constructors and destructor |
|
34 |
|
35 /** |
|
36 * C++ default constructor. |
|
37 * @param aMsg User name (it may contains default value). |
|
38 * @param aResp Password. |
|
39 */ |
|
40 CBrowserScriptPromptDialog( TDes& aDefInput, HBufC*& aRetBuf ); |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 virtual ~CBrowserScriptPromptDialog(){}; |
|
46 |
|
47 private: // from CEikDialog |
|
48 |
|
49 /** |
|
50 * Fills the edwins with default values. |
|
51 */ |
|
52 void PreLayoutDynInitL(); |
|
53 |
|
54 /** |
|
55 * Set the password if the user pressed Ok. |
|
56 * @param aKeyCode The ID of the pushed button. |
|
57 * @return May the dialog exit? |
|
58 */ |
|
59 TBool OkToExitL( TInt aKeycode ); |
|
60 |
|
61 // MAknQueryControlObserver |
|
62 TBool HandleQueryEditorStateEventL( CAknQueryControl* aQueryControl, |
|
63 TQueryControlEvent aEventType, |
|
64 TQueryValidationStatus aStatus); |
|
65 |
|
66 private: // Data |
|
67 |
|
68 HBufC*& iRetBuf;// not owned; left on the cleanup stack as a return type |
|
69 }; |
|
70 |
|
71 #endif |
|
72 |
|
73 // End of File |