diff -r 000000000000 -r 8466d47a6819 meetingrequest/mricalviewer/inc/cesmricalviewercanviewmr.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/meetingrequest/mricalviewer/inc/cesmricalviewercanviewmr.h Thu Dec 17 08:39:21 2009 +0200 @@ -0,0 +1,72 @@ +/* +* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Definition for can view message command +* +*/ + + +#ifndef CESMRICALVIEWERCANVIEWMR_H +#define CESMRICALVIEWERCANVIEWMR_H + +#include +#include "cesmricalviewercommandbase.h" + +/** + * CESMRImapIcalRetriever is responsible for parsing iCal information + * from email message and importing it to calendar entry. + */ +NONSHARABLE_CLASS( CESMRIcalViewerCanViewMsgCmd ) : + public CESMRIcalViewerCommandBase + { +public: // Construction and destruction + /** + * Creates and initializes new CESMRIcalViewerCanViewMsgCmd command. + * After execution the flag contains information whether message can be + * viewed or not. + * + * @param aCalSession Reference to calendar database session. + * @param aFlag Reference to boolean flag + * @return Pointer to CESMRInfoIcalRetriever object. + */ + static CESMRIcalViewerCanViewMsgCmd* NewL( + CCalSession& aCalSession, + TBool& aFlag ); + + /** + * C++ destructor. + */ + ~CESMRIcalViewerCanViewMsgCmd(); + +public: // From MESMRIcalViewerCommand through CESMRIcalViewerCommandBase + void ExecuteCommandL( + CFSMailMessage& aMessage, + MESMRIcalViewerObserver& aObserver ); + void CancelCommand(); + +private: // Implementation + CESMRIcalViewerCanViewMsgCmd( + CCalSession& aCalSession, + TBool& aFlag ); + void ConstructL(); + +private: // Data + /// Own: Command result + MESMRIcalViewerObserver::TIcalViewerOperationResult iResult; + /// Ref: Reference to flag. + TBool& iFlag; + }; + +#endif // CESMRIcalViewerCanViewMr_h + +// EOF