00001
00002
00003
00004
00005
00006 #if !defined(__TXTI_H__)
00007 #define __TXTI_H__
00008
00009
00010 #include <msvstd.h>
00011 #include <mtudcbas.h>
00012
00013
00014
00015
00016
00017
00018 class CTxtiMtmUiData : public CBaseMtmUiData
00019 {
00020 public:
00021
00022 static CTxtiMtmUiData* NewL(CRegisteredMtmDll& aRegisteredDll);
00023 ~CTxtiMtmUiData();
00024 virtual void PopulateArraysL();
00025 virtual void GetResourceFileName(TFileName& aFileName) const;
00026
00027
00028 virtual TInt OperationSupportedL(TInt aOperationId, const TMsvEntry& aContext) const;
00029 virtual TInt QueryCapability(TUid aCapability, TInt& aResponse) const;
00030
00031
00032 virtual TBool CanEditEntryL(const TMsvEntry& aContext, TInt& aReasonResourceId) const;
00033 virtual TBool CanViewEntryL(const TMsvEntry& aContext, TInt& aReasonResourceId) const;
00034 virtual TBool CanOpenEntryL(const TMsvEntry& aContext, TInt& aReasonResourceId) const;
00035 virtual TBool CanCloseEntryL(const TMsvEntry& aContext, TInt& aReasonResourceId) const;
00036 virtual TBool CanDeleteFromEntryL(const TMsvEntry& aContext, TInt& aReasonResourceId) const;
00037 virtual TBool CanCopyMoveToEntryL(const TMsvEntry& aContext, TInt& aReasonResourceId) const;
00038 virtual TBool CanCopyMoveFromEntryL(const TMsvEntry& aContext, TInt& aReasonResourceId) const;
00039 virtual TBool CanReplyToEntryL(const TMsvEntry& aContext, TInt& aReasonResourceId) const;
00040 virtual TBool CanForwardEntryL(const TMsvEntry& aContext, TInt& aReasonResourceId) const;
00041 virtual TBool CanCreateEntryL(const TMsvEntry& aContext,TMsvEntry& aNewEntry, TInt& aReasonResourceId) const;
00042 virtual TBool CanDeleteServiceL(const TMsvEntry& aService, TInt& aReasonResourceId) const;
00043 virtual TBool CanCancelL(const TMsvEntry& aContext, TInt& aReasonResourceId) const;
00044
00045 virtual HBufC* StatusTextL(const TMsvEntry& aContext) const;
00046
00047
00048 virtual const CBitmapArray& ContextIcon(const TMsvEntry& aContext,TInt aStateFlags) const;
00049
00050 private:
00051 CTxtiMtmUiData(CRegisteredMtmDll& aRegisteredDll);
00052 void TxtConstructL();
00053 void TxtCreateBitmapsL(TInt aNumZoomStates, const TDesC& aBitmapFile, TInt aStartBitmap, TInt aEndBitmap);
00054
00055
00056 private:
00057 TInt iNewResourceFileOffset;
00058 HBufC* iResourceFileName;
00059 };
00060
00061 #endif // __TXTI_H__