equal
deleted
inserted
replaced
32 /** |
32 /** |
33 * Definition for the dialog class |
33 * Definition for the dialog class |
34 */ |
34 */ |
35 class CSCPQueryDialog : public CAknTextQueryDialog, public MAknEcsObserver |
35 class CSCPQueryDialog : public CAknTextQueryDialog, public MAknEcsObserver |
36 { |
36 { |
|
37 public: |
|
38 enum TKeypadContext { |
|
39 ENumeric = 0, |
|
40 EAlphaNumeric, |
|
41 EContextSensitive |
|
42 }; |
|
43 |
37 public: // Construction and destruction |
44 public: // Construction and destruction |
38 |
45 |
39 /** |
46 /** |
40 * C++ Constructor. |
47 * C++ Constructor. |
41 * @param aDataText TDes& (code which is entered in query) |
48 * @param aDataText TDes& (code which is entered in query) |
45 */ |
52 */ |
46 CSCPQueryDialog( TDes& aDataText, |
53 CSCPQueryDialog( TDes& aDataText, |
47 RSCPClient::TSCPButtonConfig aButtonsShown, |
54 RSCPClient::TSCPButtonConfig aButtonsShown, |
48 TInt aMinLength, |
55 TInt aMinLength, |
49 TInt aMaxLength, |
56 TInt aMaxLength, |
50 TBool aECSSupport |
57 TBool aECSSupport, |
|
58 TKeypadContext aContext = EContextSensitive |
51 ); |
59 ); |
52 /** |
60 /** |
53 * Destructor. |
61 * Destructor. |
54 */ |
62 */ |
55 ~CSCPQueryDialog(); |
63 ~CSCPQueryDialog(); |
|
64 |
56 public: |
65 public: |
57 /** |
66 /** |
58 * Allows dismissing of code queries. Only mandatory requirement is that PIN |
67 * Allows dismissing of code queries. Only mandatory requirement is that PIN |
59 * queries are dismissed by the # |
68 * queries are dismissed by the # |
60 * |
69 * |
89 */ |
98 */ |
90 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType); |
99 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType); |
91 |
100 |
92 void HandleEcsEvent(CAknEcsDetector* aDetector, CAknEcsDetector::TState aUpdatedState); |
101 void HandleEcsEvent(CAknEcsDetector* aDetector, CAknEcsDetector::TState aUpdatedState); |
93 void ShowWarningNoteL(); |
102 void ShowWarningNoteL(); |
|
103 |
|
104 void PostLayoutDynInitL(); |
94 |
105 |
95 private: |
106 private: |
96 |
107 |
97 /* |
108 /* |
98 * SetIncallBubbleAllowedInUsualL |
109 * SetIncallBubbleAllowedInUsualL |
118 TBuf<KSCPPasscodeMaxLength+1> iTextBuffer; |
129 TBuf<KSCPPasscodeMaxLength+1> iTextBuffer; |
119 TBuf<KSCPPasscodeMaxLength+1> iTmpBuffer; |
130 TBuf<KSCPPasscodeMaxLength+1> iTmpBuffer; |
120 TBool iPrioritySet; |
131 TBool iPrioritySet; |
121 TBool iPriorityDropped; |
132 TBool iPriorityDropped; |
122 TBool isCallSoftkeyAdded; |
133 TBool isCallSoftkeyAdded; |
|
134 TKeypadContext iContextSensitive; |
123 /** An integer variable to define the input mode of the lock code query */ |
135 /** An integer variable to define the input mode of the lock code query */ |
124 TInt def_mode; |
136 TInt def_mode; |
125 TInt iKeyUsed; |
137 TInt iKeyUsed; |
126 CSCPLockObserver* iDeviceLockStatusObserver; |
138 CSCPLockObserver* iDeviceLockStatusObserver; |
127 CSCPLockObserver* iCallStatusObserver; |
139 CSCPLockObserver* iCallStatusObserver; |