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 "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 CWPCODEQUERYDIALOG_H |
|
21 #define CWPCODEQUERYDIALOG_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <AknQueryDialog.h> |
|
25 #include <aknnotedialog.h> |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * Sortable |
|
31 */ |
|
32 class CWPCodeQueryDialog : public CAknTextQueryDialog |
|
33 { |
|
34 public: |
|
35 /** |
|
36 * C++ default constructor. |
|
37 */ |
|
38 CWPCodeQueryDialog(TDes& aDataText); |
|
39 |
|
40 /** |
|
41 * Destructor. |
|
42 */ |
|
43 ~CWPCodeQueryDialog(); |
|
44 |
|
45 public: |
|
46 /** |
|
47 * Allows dismissing of code queries. Only mandatory requirement is that PIN |
|
48 * queries are dismissed by the # |
|
49 * |
|
50 * @param aKeyEvent TKeyEvent& |
|
51 * @return ETrue query is dismissed |
|
52 * EFalse not dismissed |
|
53 */ |
|
54 TBool NeedToDismissQueryL(const TKeyEvent& aKeyEvent); |
|
55 |
|
56 protected://from CAknTextQueryDialog |
|
57 /** |
|
58 * From CAknTextQueryDialog This function is called by the UIKON dialog framework |
|
59 * just before the dialog is activated, after it has called |
|
60 * PreLayoutDynInitL() and the dialog has been sized. |
|
61 */ |
|
62 // void PreLayoutDynInitL(); |
|
63 /** |
|
64 * From CAknTextQueryDialog This function is called by the UIKON framework |
|
65 * if the user activates a button in the button panel. |
|
66 * It is not called if the Cancel button is activated, |
|
67 * unless the EEikDialogFlagNotifyEsc flag is set. |
|
68 * @param aButtonId The ID of the button that was activated |
|
69 * @return Should return ETrue if the dialog should exit, and EFalse if it should not. |
|
70 */ |
|
71 TBool OkToExitL(TInt aButtonId); |
|
72 /** |
|
73 * From CAknTextQueryDialog This function is called by the UIKON dialog framework |
|
74 * just after a key is pressed |
|
75 * @param aKeyEvent TKeyEvent& |
|
76 * @param aType TEventCode |
|
77 */ |
|
78 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType); |
|
79 |
|
80 |
|
81 }; |
|
82 |
|
83 #endif // CWPCodeQueryDialog_H |
|
84 |
|
85 // End of File |
|