equal
deleted
inserted
replaced
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 // INCLUDE FILES |
19 // INCLUDE FILES |
20 #include "PsuiQueryDialog.h" |
20 #include "PsuiQueryDialog.h" |
21 |
21 |
22 // ================= MEMBER FUNCTIONS ======================= |
22 // ================= MEMBER FUNCTIONS ======================= |
23 |
23 |
24 // C++ default constructor can NOT contain any code, that |
24 // C++ default constructor can NOT contain any code, that |
25 // might leave. |
25 // might leave. |
26 // |
26 // |
27 CPsuiQueryDialog::CPsuiQueryDialog( CAknQueryDialog::TTone aTone ) : |
27 CPsuiQueryDialog::CPsuiQueryDialog( CAknQueryDialog::TTone aTone ) : |
28 CAknQueryDialog( aTone ) |
28 CAknQueryDialog( aTone ) |
29 { |
29 { |
30 } |
30 } |
31 |
31 |
32 // --------------------------------------------------------------------------- |
32 // --------------------------------------------------------------------------- |
33 // Symbian OS two-phased constructor. |
33 // Symbian OS two-phased constructor. |
51 // --------------------------------------------------------------------------- |
51 // --------------------------------------------------------------------------- |
52 // |
52 // |
53 TKeyResponse CPsuiQueryDialog::OfferKeyEventL( const TKeyEvent& aKeyEvent, |
53 TKeyResponse CPsuiQueryDialog::OfferKeyEventL( const TKeyEvent& aKeyEvent, |
54 TEventCode aType ) |
54 TEventCode aType ) |
55 { |
55 { |
56 if ( ( aKeyEvent.iScanCode == EStdKeyNo || aKeyEvent.iCode == EKeyNo ) && |
56 if ( ( aKeyEvent.iScanCode == EStdKeyNo || aKeyEvent.iCode == EKeyNo ) && |
57 aType == EEventKeyUp ) |
57 aType == EEventKeyUp ) |
58 { |
58 { |
59 // End -key was pressed, so exit this query dialog |
59 // End -key was pressed, so exit this query dialog |
60 TryExitL( EKeyNo ); |
60 TryExitL( EKeyNo ); |
61 } |
61 } |
62 |
62 |
63 return EKeyWasNotConsumed; |
63 return EKeyWasNotConsumed; |
64 } |
64 } |
65 |
65 |
66 // --------------------------------------------------------------------------- |
66 // --------------------------------------------------------------------------- |
67 // CPsuiQueryDialog::OkToExitL |
67 // CPsuiQueryDialog::OkToExitL |
68 // --------------------------------------------------------------------------- |
68 // --------------------------------------------------------------------------- |
69 // |
69 // |
70 TBool CPsuiQueryDialog::OkToExitL( TInt /*aCommand*/ ) |
70 TBool CPsuiQueryDialog::OkToExitL( TInt /*aCommand*/ ) |
71 { |
71 { |
72 // Dismiss query |
72 // Dismiss query |
73 return ETrue; |
73 return ETrue; |
74 } |
74 } |
75 |
75 |
76 // End of File |
76 // End of File |