mobilemessaging/mmsui/mtminc/MmsMtmUiData.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2002 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:  
       
    15 *       CMmsMtmUiData - UI DATA part of the MMS MTM type to Symbian OS Messaging
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MMSMTMUIDATA_H
       
    22 #define MMSMTMUIDATA_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <mtudcbas.h>
       
    26 #include <MtmExtendedCapabilities.hrh>
       
    27 
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32  * CMmsMtmUiData - UI DATA part of the MMS MTM type to Symbian OS Messaging
       
    33  *
       
    34  * @since 0.9
       
    35  */
       
    36 class CMmsMtmUiData :public CBaseMtmUiData
       
    37     {
       
    38     public:  // Constructors and destructor
       
    39         
       
    40         /**
       
    41          * Symbian OS constructor
       
    42          * @param aRegisteredMtmDll registry dll
       
    43          * @return a new MMS MTM UI object.
       
    44          */
       
    45         static CMmsMtmUiData* NewL(CRegisteredMtmDll& aRegisteredDll);
       
    46         
       
    47         /**
       
    48          * Destructor.
       
    49          */
       
    50         ~CMmsMtmUiData();
       
    51 
       
    52     public: // Functions from base classes
       
    53 
       
    54         /**
       
    55          * From CBaseMtmUiData - can the given operation be performed for the given entry
       
    56          */
       
    57         TInt OperationSupportedL(TInt aOperationId, const TMsvEntry& aContext) const;
       
    58         
       
    59         /**
       
    60          * From CBaseMtmUiData Capabilities - defines what we can do
       
    61          * @param aFunctionId asked capability
       
    62          * @param aResponse response depends on the capability
       
    63          * @return KErrNone if supported, otherwise KErrNotSupported
       
    64          */
       
    65         TInt QueryCapability(TUid aFunctionId, TInt& aResponse) const;
       
    66 
       
    67         /**
       
    68          * From CBaseMtmUiData
       
    69          */
       
    70         HBufC* StatusTextL(const TMsvEntry& aContext) const;
       
    71 
       
    72         /**
       
    73          * From CBaseMtmUiData - not supported in Series 60
       
    74          */
       
    75         TBool CanCreateEntryL(const TMsvEntry& aParent, 
       
    76             TMsvEntry& aNewEntry, 
       
    77             TInt& aReasonResourceId) const;
       
    78 
       
    79         /**
       
    80          * From CBaseMtmUiData
       
    81          * Check whether it is ok to reply to a message
       
    82          */
       
    83         TBool CanReplyToEntryL(const TMsvEntry& aContext, TInt& aReasonResourceId) const;
       
    84 
       
    85         /**
       
    86          * From CBaseMtmUiData - not supported in Series 60
       
    87          */
       
    88         TBool CanForwardEntryL(const TMsvEntry& aContext, TInt& aReasonResourceId) const;   
       
    89 
       
    90         /**
       
    91          * From CBaseMtmUiData - not supported in Series 60
       
    92          */
       
    93         TBool CanEditEntryL(const TMsvEntry& aContext, TInt& aReasonResourceId) const;
       
    94 
       
    95         /**
       
    96          * From CBaseMtmUiData - not supported in Series 60
       
    97          */
       
    98         TBool CanViewEntryL(const TMsvEntry& aContext, TInt& aReasonResourceId) const;
       
    99 
       
   100         /**
       
   101          * From CBaseMtmUiData - not supported in Series 60
       
   102          */
       
   103         TBool CanOpenEntryL(const TMsvEntry& aContext, TInt& aReasonResourceId) const;
       
   104 
       
   105         /**
       
   106          * From CBaseMtmUiData - not supported in Series 60
       
   107          */
       
   108         TBool CanCloseEntryL(const TMsvEntry& aContext, TInt& aReasonResourceId) const;
       
   109 
       
   110         /**
       
   111          * From CBaseMtmUiData - not supported in Series 60
       
   112          */
       
   113         TBool CanDeleteFromEntryL(const TMsvEntry& aContext, TInt& aReasonResourceId) const;
       
   114 
       
   115         /**
       
   116          * From CBaseMtmUiData - not supported in Series 60
       
   117          */
       
   118         TBool CanDeleteServiceL(const TMsvEntry& aService, TInt& aReasonResourceId) const;
       
   119 
       
   120         /**
       
   121          * From CBaseMtmUiData - not supported in Series 60
       
   122          */
       
   123         TBool CanCopyMoveToEntryL(const TMsvEntry& aContext, TInt& aReasonResourceId) const;
       
   124 
       
   125         /**
       
   126          * From CBaseMtmUiData - not supported in Series 60
       
   127          */
       
   128         TBool CanCopyMoveFromEntryL(const TMsvEntry& aContext, TInt& aReasonResourceId) const;  
       
   129 
       
   130         /**
       
   131          * From CBaseMtmUiData - not supported in Series 60
       
   132          */
       
   133         TBool CanCancelL(const TMsvEntry& aContext, TInt& aReasonResourceId) const;
       
   134 
       
   135         /**
       
   136          * From CBaseMtmUiData Icons for the entry having context.
       
   137          * @param aContext entry in question
       
   138          * @param aStateFlags
       
   139          * @return array of bitmaps
       
   140          */
       
   141         const CBitmapArray& ContextIcon(const TMsvEntry& aContext, TInt aStateFlags) const;
       
   142 
       
   143     private:
       
   144 
       
   145         /**
       
   146          * By default Symbian OS constructor is private.
       
   147          */
       
   148         void ConstructL();
       
   149 
       
   150         /**
       
   151          * C++ constructor
       
   152          * @param aRegisteredMtmDll registry dll
       
   153          */
       
   154         CMmsMtmUiData( CRegisteredMtmDll& aRegisteredDll );
       
   155 
       
   156         /**
       
   157          * Populate icon array
       
   158          */
       
   159         void PopulateArraysL();
       
   160 
       
   161         /**
       
   162          * Gives the resource file
       
   163          * @param storage for the filename.
       
   164          */
       
   165         void GetResourceFileName( TFileName& aFileName ) const;
       
   166 
       
   167         /**
       
   168          * 
       
   169          * 
       
   170          */
       
   171         void CreateSkinnedBitmapsL(
       
   172             const TDesC& aBitmapFile,
       
   173             TInt aStartBitmap,
       
   174             TInt aEndBitmap );
       
   175             
       
   176     private:
       
   177         TBool   iDeliveryStatusSupported;
       
   178         
       
   179    };
       
   180 
       
   181 #endif      // MMSMTMUIDATA_H
       
   182             
       
   183 // End of File