meetingrequest/mrbcplugin/bcmrevent/inc/cmrbcpluginopenmrviewercmd.h
branchRCL_3
changeset 12 4ce476e64c59
child 16 b5fbb9b25d57
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
       
     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_MRBCPLUGINOPENMRVIEWERCMD_H
       
    18 #define C_MRBCPLUGINOPENMRVIEWERCMD_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( CMRBCPluginOpenMRViewerCmd ) : 
       
    32         public CBase,
       
    33         public MMRBCPluginCommand,
       
    34         public MAgnEntryUiCallback
       
    35     {
       
    36 public: // Construction and destruction
       
    37     
       
    38     /**
       
    39      * Creates new CMRBCPluginOpenMRViewerCmd command
       
    40      * @param aServices Reference to calednar services
       
    41      */
       
    42     static CMRBCPluginOpenMRViewerCmd* NewL(
       
    43             MCalenServices& aServices );
       
    44     
       
    45     /**
       
    46      * C++ destructor
       
    47      */
       
    48     ~CMRBCPluginOpenMRViewerCmd();
       
    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     CMRBCPluginOpenMRViewerCmd(
       
    65             MCalenServices& aServices );
       
    66     void ConstructL();
       
    67     void LaunchMRViewerL(
       
    68             const TCalenCommand& aCommand );
       
    69     void GetEntryL( 
       
    70             const TCalenCommand& aCommand );
       
    71     
       
    72     void IssueNotifyL(
       
    73             const TCalenCommand& aCommand,
       
    74             MAgnEntryUi::TAgnEntryUiOutParams aOutParams );
       
    75     
       
    76     void IssueCommandL( 
       
    77             MAgnEntryUi::TAgnEntryUiOutParams aOutParams );
       
    78     
       
    79 private: // Data
       
    80     /// Ref: Reference to calendar services
       
    81     MCalenServices& iServices;
       
    82     /// Own: Editor component
       
    83     CESMRViewerController* iEditor;
       
    84     /// Own: Entry to be created
       
    85     CCalEntry* iEntry;
       
    86     };
       
    87 
       
    88 #endif // C_MRBCPLUGINOPENMRVIEWERCMD_H
       
    89 
       
    90 // EOF