1 /* |
1 /* |
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
18 |
18 |
19 #ifndef CESMRRESPONSEDIALOG_H |
19 #ifndef CESMRRESPONSEDIALOG_H |
20 #define CESMRRESPONSEDIALOG_H |
20 #define CESMRRESPONSEDIALOG_H |
21 |
21 |
22 // INCLUDES |
22 // INCLUDES |
23 #include <AknDialog.h> |
23 #include <akndialog.h> |
24 #include <akntoolbarobserver.h> |
|
25 |
24 |
26 // FORWARD DECLARATIONS |
25 // FORWARD DECLARATIONS |
27 class CAknsBasicBackgroundControlContext; |
26 class CAknsBasicBackgroundControlContext; |
28 class CESMRResponseDialogView; |
27 class CESMRResponseDialogView; |
29 class TLogicalFont; |
28 class TLogicalFont; |
31 /** |
30 /** |
32 * CESMRResponseDialog implements the response dialog for meeting requests. |
31 * CESMRResponseDialog implements the response dialog for meeting requests. |
33 * |
32 * |
34 * @lib esmrgui.lib |
33 * @lib esmrgui.lib |
35 */ |
34 */ |
36 NONSHARABLE_CLASS( CESMRResponseDialog ) : public CAknDialog, |
35 NONSHARABLE_CLASS( CESMRResponseDialog ) : public CAknDialog |
37 public MAknToolbarObserver |
|
38 { |
36 { |
39 public: |
37 public: |
40 /** |
38 /** |
41 * Two-phased constructor. |
39 * Two-phased constructor. |
42 * @param aText reference pointer to the text that user writes as a response |
40 * @param aText reference pointer to the text that user writes as a response |
50 |
48 |
51 public:// From CAknDialog |
49 public:// From CAknDialog |
52 SEikControlInfo CreateCustomControlL( TInt aType ); |
50 SEikControlInfo CreateCustomControlL( TInt aType ); |
53 TBool OkToExitL (TInt aButtonId); |
51 TBool OkToExitL (TInt aButtonId); |
54 void ProcessCommandL( TInt aCommand ); |
52 void ProcessCommandL( TInt aCommand ); |
55 void DynInitMenuPaneL( /*TInt aResourceId,*/ |
|
56 CEikMenuPane* aMenuPane ); |
|
57 |
|
58 public: // From MAknToolbarObserver |
|
59 virtual void OfferToolbarEventL( TInt aCommand ); |
|
60 |
53 |
61 public:// From CCoeControl |
54 public:// From CCoeControl |
62 TKeyResponse OfferKeyEventL(const TKeyEvent& aEvent, TEventCode aType); |
55 TKeyResponse OfferKeyEventL(const TKeyEvent& aEvent, TEventCode aType); |
63 IMPORT_C TInt ExecuteDlgLD(); |
56 IMPORT_C TInt ExecuteDlgLD(); |
64 |
57 |
65 private://Implementation |
58 private://Implementation |
66 CESMRResponseDialog( HBufC*& aText ); |
59 CESMRResponseDialog( HBufC*& aText ); |
67 void ConstructL(); |
60 void ConstructL(); |
68 void MakeResponseToolbarL(); |
|
69 void RestoreMrGuiToolbarL(); |
|
70 |
61 |
71 private: // data |
62 private: // data |
72 /** |
63 /** |
73 * Ref: View for dialog, deletion handed by framework |
64 * Ref: View for dialog, deletion handed by framework |
74 */ |
65 */ |