|
1 /* |
|
2 * Copyright (c) 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 "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: ESMR viewer dialog |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CESMRRESPONSEDIALOG_H |
|
20 #define CESMRRESPONSEDIALOG_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <AknDialog.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CAknsBasicBackgroundControlContext; |
|
27 class CESMRResponseDialogView; |
|
28 class TLogicalFont; |
|
29 |
|
30 /** |
|
31 * CESMRResponseDialog implements the response dialog for meeting requests. |
|
32 * |
|
33 * @lib esmrgui.lib |
|
34 */ |
|
35 NONSHARABLE_CLASS( CESMRResponseDialog ) : public CAknDialog |
|
36 { |
|
37 public: |
|
38 /** |
|
39 * Two-phased constructor. |
|
40 * @param aText reference pointer to the text that user writes as a response |
|
41 */ |
|
42 IMPORT_C static CESMRResponseDialog* NewL( HBufC*& aText ); |
|
43 |
|
44 /* |
|
45 * Destructor. |
|
46 */ |
|
47 ~CESMRResponseDialog(); |
|
48 |
|
49 public:// From CAknDialog |
|
50 SEikControlInfo CreateCustomControlL( TInt aType ); |
|
51 TBool OkToExitL (TInt aButtonId); |
|
52 void ProcessCommandL( TInt aCommand ); |
|
53 |
|
54 public:// From CCoeControl |
|
55 TKeyResponse OfferKeyEventL(const TKeyEvent& aEvent, TEventCode aType); |
|
56 IMPORT_C TInt ExecuteDlgLD(); |
|
57 |
|
58 private://Implementation |
|
59 CESMRResponseDialog( HBufC*& aText ); |
|
60 void ConstructL(); |
|
61 |
|
62 private: // data |
|
63 /** |
|
64 * Ref: View for dialog, deletion handed by framework |
|
65 */ |
|
66 CESMRResponseDialogView* iView; |
|
67 |
|
68 /** |
|
69 * Ref: Pointer to buffer where the text is written |
|
70 */ |
|
71 HBufC*& iText; |
|
72 /// To record if the toolbar in previous view is visible. |
|
73 TBool iPreviousVisibility; |
|
74 }; |
|
75 |
|
76 #endif // CESMRRESPONSEDIALOG_H |