examples/ForumNokia/S60_3rd_Edition_TextMTM_Example/modules/UI/inc/txtmtmeditop.h

00001 //
00002 // � 2004 Nokia Corporation.  All rights reserved.
00003 //
00004 
00005 #ifndef __TXTMTMEDITOP_H__
00006 #define __TXTMTMEDITOP_H__
00007 
00008 // system include
00009 #include <msvapi.h>
00010 
00011 // user include
00012 #include "txtu.h"        //CTextMtmUi
00013 
00014 //
00015 //      CTxtMtmEditRemoteOperation: remote edit operation that copies a remote
00016 //  entry to the inbox before invoking the editor/viewer on the copy
00017 //
00018 class CTxtMtmEditRemoteOperation : public CMsvOperation
00019         {
00020     public:
00021             enum TEditRemoteState
00022                     {
00023                     EStateFinished=0,
00024                     EStateEditing,
00025                     EStateCopying
00026                     };
00027         
00028         public:
00029                 CTxtMtmEditRemoteOperation(CTextMtmUi& aMtmUi, CMsvSession& aMsvSession, 
00030                         TInt aPriority, TRequestStatus& aObserverRequestStatus);
00031                 ~CTxtMtmEditRemoteOperation();
00032 
00033     public:
00034         void StartL(TMsvEntry& aSourceEntry);
00035 
00036         public: // from CMsvOperation           
00037                 virtual const TDesC8& ProgressL();
00038 
00039         private:        // from CActive
00040                 virtual void DoCancel();
00041                 virtual void RunL();
00042         virtual TInt RunError(TInt aError);
00043 
00044         protected:
00045                 CTextMtmUi& iMtmUi;
00046         private:
00047                 
00048                 TBuf8<10> iProgress;
00049                 CMsvOperation* iCopyOperation;
00050                 CMsvOperation* iEditOperation;
00051                 TEditRemoteState iState;
00052         };
00053 
00054 #endif  // __TXTMTMEDITOP_H__

Generated by  doxygen 1.6.2