author | Pat Downey <patd@symbian.org> |
Wed, 01 Sep 2010 12:19:59 +0100 | |
branch | RCL_3 |
changeset 50 | 03674e5abf46 |
parent 49 | 09b1ac925e3f |
permissions | -rw-r--r-- |
0
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1 |
/* |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2 |
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
3 |
* All rights reserved. |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
5 |
* under the terms of "Eclipse Public License v1.0" |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
8 |
* |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
10 |
* Nokia Corporation - initial contribution. |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
11 |
* |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
12 |
* Contributors: |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
13 |
* |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
14 |
* Description: |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
15 |
* Dialog used for code queries. Inherits AknQueryDialog |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
16 |
* |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
17 |
* |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
18 |
*/ |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
19 |
|
50 | 20 |
|
0
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
21 |
#ifndef __SECUICODEQUERYDIALOG__ |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
22 |
#define __SECUICODEQUERYDIALOG__ |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
23 |
|
50 | 24 |
#include <aknquerydialog.h> |
25 |
#include <aknnotedialog.h> |
|
0
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
26 |
#include <secui.hrh> |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
27 |
|
50 | 28 |
class CCodeQueryDialog : public CAknTextQueryDialog |
0
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
29 |
{ |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
30 |
public://construction and destruction |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
31 |
/** |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
32 |
* C++ Constructor. |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
33 |
* @param aDataText TDes& (code which is entered in query) |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
34 |
* @param aMinLength TInt (code min length) |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
35 |
* @param aMaxLength TInt (code max length) |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
36 |
* @param aMode TInt (mode ESecUiCodeEtelReqest\ESecUiNone) |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
37 |
*/ |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
38 |
IMPORT_C CCodeQueryDialog(TDes& aDataText, TInt aMinLength,TInt aMaxLength,TInt aMode, TBool aIsRemotelockQuery = EFalse); |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
39 |
/** |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
40 |
* Destructor. |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
41 |
*/ |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
42 |
~CCodeQueryDialog(); |
50 | 43 |
public: |
44 |
/** |
|
45 |
* Allows dismissing of code queries. Only mandatory requirement is that PIN |
|
46 |
* queries are dismissed by the # |
|
47 |
* |
|
48 |
* @param aKeyEvent TKeyEvent& |
|
49 |
* @return ETrue query is dismissed |
|
50 |
* EFalse not dismissed |
|
51 |
*/ |
|
52 |
TBool NeedToDismissQueryL(const TKeyEvent& aKeyEvent); |
|
53 |
/** |
|
54 |
* Calls the dialog's TryExitL and passes the reason given as a parameter. |
|
55 |
* |
|
56 |
* @param TInt aReason (The reason for the cancel request) |
|
57 |
*/ |
|
58 |
void TryCancelQueryL(TInt aReason); |
|
0
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
59 |
|
50 | 60 |
protected://from CAknTextQueryDialog |
61 |
/** |
|
62 |
* From CAknTextQueryDialog This function is called by the UIKON dialog framework |
|
63 |
* just before the dialog is activated, after it has called |
|
64 |
* PreLayoutDynInitL() and the dialog has been sized. |
|
65 |
*/ |
|
66 |
void PreLayoutDynInitL(); |
|
67 |
/** |
|
68 |
* From CAknTextQueryDialog This function is called by the UIKON framework |
|
69 |
* if the user activates a button in the button panel. |
|
70 |
* It is not called if the Cancel button is activated, |
|
71 |
* unless the EEikDialogFlagNotifyEsc flag is set. |
|
72 |
* @param aButtonId The ID of the button that was activated |
|
73 |
* @return Should return ETrue if the dialog should exit, and EFalse if it should not. |
|
74 |
*/ |
|
75 |
TBool OkToExitL(TInt aButtonId); |
|
76 |
/** |
|
77 |
* From CAknTextQueryDialog This function is called by the UIKON dialog framework |
|
78 |
* just after a key is pressed |
|
79 |
* @param aKeyEvent TKeyEvent& |
|
80 |
* @param aType TEventCode |
|
81 |
*/ |
|
82 |
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType); |
|
83 |
/** |
|
84 |
* From MAknQueryControlObeserver; overrides the default implementation in CAknQueryDialog. |
|
85 |
* Gets called by framework when editor sends state event |
|
86 |
*/ |
|
87 |
TBool HandleQueryEditorStateEventL(CAknQueryControl* aQueryControl, TQueryControlEvent aEventType, TQueryValidationStatus aStatus); |
|
88 |
||
89 |
TBool CheckIfEntryTextOk() const; |
|
90 |
||
91 |
void UpdateLeftSoftKeyL(); |
|
92 |
private: |
|
93 |
void ShowWarningNoteL(); |
|
94 |
||
95 |
/* |
|
96 |
* SetIncallBubbleAllowedInUsualL |
|
97 |
*/ |
|
98 |
void SetIncallBubbleAllowedInUsualL(TBool aAllowed); |
|
99 |
||
100 |
private: // DATA |
|
101 |
TInt iMinLength; |
|
102 |
TInt iMaxLength; |
|
103 |
TInt iMode; |
|
104 |
TBool iFront; |
|
105 |
TInt iAppKey; |
|
106 |
TInt iVoiceKey1; |
|
107 |
TInt iVoiceKey2; |
|
108 |
TInt iEndKey; |
|
109 |
TBool iIsRemoteLockQuery; |
|
0
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
110 |
}; |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
111 |
#endif |
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
112 |
|
164170e6151a
Revision: 201004
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
113 |
// End of file |