meetingrequest/mricalviewer/inc/cesmricalviewercanviewmr.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007-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:  Definition for can view message command
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CESMRICALVIEWERCANVIEWMR_H
       
    20 #define CESMRICALVIEWERCANVIEWMR_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include "cesmricalviewercommandbase.h"
       
    24 
       
    25 /**
       
    26  * CESMRImapIcalRetriever is responsible for parsing iCal information
       
    27  * from email message and importing it to calendar entry.
       
    28  */
       
    29 NONSHARABLE_CLASS( CESMRIcalViewerCanViewMsgCmd ) :
       
    30         public CESMRIcalViewerCommandBase
       
    31     {
       
    32 public: // Construction and destruction
       
    33     /**
       
    34      * Creates and initializes new CESMRIcalViewerCanViewMsgCmd command.
       
    35      * After execution the flag contains information whether message can be
       
    36      * viewed or not.
       
    37      *
       
    38      * @param aCalSession Reference to calendar database session.
       
    39      * @param aFlag Reference to boolean flag
       
    40      * @return Pointer to CESMRInfoIcalRetriever object.
       
    41      */
       
    42     static CESMRIcalViewerCanViewMsgCmd* NewL(
       
    43             CCalSession& aCalSession,
       
    44             TBool& aFlag );
       
    45 
       
    46     /**
       
    47      * C++ destructor.
       
    48      */
       
    49     ~CESMRIcalViewerCanViewMsgCmd();
       
    50 
       
    51 public: // From MESMRIcalViewerCommand through CESMRIcalViewerCommandBase
       
    52     void ExecuteCommandL(
       
    53             CFSMailMessage& aMessage,
       
    54             MESMRIcalViewerObserver& aObserver );
       
    55     void CancelCommand();
       
    56 
       
    57 private: // Implementation
       
    58     CESMRIcalViewerCanViewMsgCmd(
       
    59             CCalSession& aCalSession,
       
    60             TBool& aFlag );
       
    61     void ConstructL();
       
    62 
       
    63 private: // Data
       
    64     /// Own: Command result
       
    65     MESMRIcalViewerObserver::TIcalViewerOperationResult iResult;
       
    66     /// Ref: Reference to flag.
       
    67     TBool& iFlag;
       
    68     };
       
    69 
       
    70 #endif // CESMRIcalViewerCanViewMr_h
       
    71 
       
    72 // EOF