|
1 /* |
|
2 * Copyright (c) 2008 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: MBUtils ECOM definition |
|
15 * |
|
16 */ |
|
17 #ifndef C_MRBCPLUGINCREATENEWMRCMD_H |
|
18 #define C_MRBCPLUGINCREATENEWMRCMD_H |
|
19 |
|
20 #include "mmrbcplugincommand.h" |
|
21 #include <e32base.h> |
|
22 #include <magnentryui.h> |
|
23 |
|
24 class MCalenServices; |
|
25 class CESMRViewerController; |
|
26 class CCalEntry; |
|
27 |
|
28 /** |
|
29 * |
|
30 */ |
|
31 NONSHARABLE_CLASS( CMRBCPluginCreateNewMRCmd ) : |
|
32 public CBase, |
|
33 public MMRBCPluginCommand, |
|
34 public MAgnEntryUiCallback |
|
35 { |
|
36 public: // Construction and destruction |
|
37 |
|
38 /** |
|
39 * Creates new CMRBCPluginCreateNewMRCmd command |
|
40 * @param aServices Reference to calednar services |
|
41 */ |
|
42 static CMRBCPluginCreateNewMRCmd* NewL( |
|
43 MCalenServices& aServices ); |
|
44 |
|
45 /** |
|
46 * C++ destructor |
|
47 */ |
|
48 ~CMRBCPluginCreateNewMRCmd(); |
|
49 |
|
50 public: // From base class |
|
51 |
|
52 /** |
|
53 * Executes the command. |
|
54 * @param aCommand Command to be executed |
|
55 */ |
|
56 void ExecuteCommandL( |
|
57 const TCalenCommand& aCommand ); |
|
58 |
|
59 private: // From base class MAgnEntryUiCallback |
|
60 void ProcessCommandL(TInt aCommandId); |
|
61 TInt ProcessCommandWithResultL( TInt aCommandId ); |
|
62 |
|
63 private: // Implementation |
|
64 CMRBCPluginCreateNewMRCmd( |
|
65 MCalenServices& aServices ); |
|
66 void ConstructL(); |
|
67 void LaunchMREditorL( const TCalenCommand& aCommand ); |
|
68 void CreateEntryL( const TCalenCommand& aCommand ); |
|
69 void AddOrganizerL(); |
|
70 void IssueCommandL( MAgnEntryUi::TAgnEntryUiOutParams aOutParams ); |
|
71 |
|
72 private: // Data |
|
73 /// Ref: Reference to calendar services |
|
74 MCalenServices& iServices; |
|
75 /// Own: Editor component |
|
76 CESMRViewerController* iEditor; |
|
77 /// Own: Entry to be created |
|
78 CCalEntry* iEntry; |
|
79 }; |
|
80 |
|
81 #endif // C_MRBCPLUGINCREATENEWMRCMD_H |
|
82 |
|
83 // EOF |