|
1 /* |
|
2 * Copyright (c) 2001-2009 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: Implementation of Gtc Response Query Dialog. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: tr1cfwln#11 % |
|
20 */ |
|
21 |
|
22 // INCLUDE FILES |
|
23 #include "GtcNotifDlgPlugin.h" |
|
24 #include "GTCResponseQueryDialog.h" |
|
25 |
|
26 |
|
27 // ----------------------------------------------------------------------------- |
|
28 // CGTCResponseQueryDialog::CGTCResponseQueryDialog |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 CGTCResponseQueryDialog::CGTCResponseQueryDialog( TDes& aResponse, |
|
32 CGtcDialogPlugin* aPlugin ) |
|
33 : CAknTextQueryDialog( aResponse ), |
|
34 iPlugin( aPlugin ) |
|
35 { |
|
36 } |
|
37 |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // CGTCResponseQueryDialog::~CGTCResponseQueryDialog |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 CGTCResponseQueryDialog::~CGTCResponseQueryDialog() |
|
44 { |
|
45 } |
|
46 |
|
47 |
|
48 // ----------------------------------------------------------------------------- |
|
49 // CGTCResponseQueryDialog::NewL |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 CGTCResponseQueryDialog* CGTCResponseQueryDialog::NewL( TDes& aResponse, |
|
53 CGtcDialogPlugin* aPlugin ) |
|
54 { |
|
55 CGTCResponseQueryDialog* self = new( ELeave ) CGTCResponseQueryDialog( |
|
56 aResponse, aPlugin ); |
|
57 return self; |
|
58 } |
|
59 |
|
60 |
|
61 // ----------------------------------------------------------------------------- |
|
62 // CGTCResponseQueryDialog::OkToExitL |
|
63 // ----------------------------------------------------------------------------- |
|
64 // |
|
65 TBool CGTCResponseQueryDialog::OkToExitL( TInt aButtonId ) |
|
66 { |
|
67 if ( CAknTextQueryDialog::OkToExitL( aButtonId ) ) |
|
68 { |
|
69 // This will be the case always since there is no "cancel" in this dialog. |
|
70 if ( aButtonId==EAknSoftkeyOk ) |
|
71 { |
|
72 iPlugin->CompleteL( KErrNone ); |
|
73 } |
|
74 else |
|
75 { |
|
76 // Everything else is for cancel. |
|
77 iPlugin->CompleteL( KErrCancel ); |
|
78 } |
|
79 |
|
80 return( ETrue ); |
|
81 } |
|
82 |
|
83 return( EFalse ); |
|
84 } |
|
85 |
|
86 |
|
87 // ----------------------------------------------------------------------------- |
|
88 // CGTCResponseQueryDialog::HandleResourceChange |
|
89 // ----------------------------------------------------------------------------- |
|
90 // |
|
91 void CGTCResponseQueryDialog::HandleResourceChange( TInt aType ) |
|
92 { |
|
93 CAknTextQueryDialog::HandleResourceChange( aType ); |
|
94 if ( aType == KAknsMessageSkinChange ) |
|
95 { |
|
96 } |
|
97 } |
|
98 |
|
99 |
|
100 // End of File |