localconnectivityservice/obexreceiveservices/mtmuibluetooth/inc/btmtmuidata.h
branchRCL_3
changeset 39 4096754ee773
parent 38 3dcb815346df
child 40 52a167391590
equal deleted inserted replaced
38:3dcb815346df 39:4096754ee773
     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 *     Bluetooth Mtm Ui data part.
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef CBTMTMUIDATA_H
       
    22 #define CBTMTMUIDATA_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <mtudcbas.h>
       
    26 #include <obexutilsuilayer.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  CBtMtmUiData -
       
    35 *  contains Bluetooth specific MTM UI data.
       
    36 */
       
    37 class CBtMtmUiData : public CBaseMtmUiData
       
    38 	{
       
    39     public: // Constructors and destructor
       
    40         
       
    41         /**
       
    42         * Two-phased constructor.
       
    43         */
       
    44         static CBtMtmUiData* NewL(CRegisteredMtmDll& aRegisteredDll);
       
    45 	
       
    46         /**
       
    47         * Destructor.
       
    48         */
       
    49         virtual ~CBtMtmUiData();
       
    50 
       
    51         /**
       
    52         * Constructor
       
    53         */
       
    54         void ConstructL();
       
    55 
       
    56     public: // Functions from base classes
       
    57 
       
    58         /**
       
    59         * From CBaseMtmUiData function query.
       
    60         * @param aOperationId Id for function.
       
    61         * @param aContext messaging store entry.
       
    62         * @return TInt error code.
       
    63         */
       
    64 	    virtual TInt OperationSupportedL(
       
    65             TInt aOperationId, 
       
    66             const TMsvEntry& aContext) const;
       
    67 
       
    68         /**
       
    69         * From CBaseMtmUiData MTM capability check.
       
    70         * @param aCapability Uid for message type.
       
    71         * @param aResponse response for capability check.
       
    72         * @return TInt error code.
       
    73         */
       
    74 	    virtual TInt QueryCapability(
       
    75             TUid aCapability, 
       
    76             TInt& aResponse) const;
       
    77 
       
    78         /**
       
    79         * From CBaseMtmUiData MTM related context icons.
       
    80         * @param aContext Messaging entry refence.
       
    81         * @param aStateFlags Flags for icon.
       
    82         * @return TInt error code.
       
    83         */
       
    84 	    virtual const CBitmapArray& ContextIcon(
       
    85             const TMsvEntry& aContext, 
       
    86             TInt aStateFlags) const;
       
    87 
       
    88         /**
       
    89         * From CBaseMtmUiData Provide context-specific function information.
       
    90         * @param aParent Messaging entry refence.
       
    91         * @param aNewEntry Messaging entry refence(created entry).
       
    92         * @param aReasonResourceId ResourceID.
       
    93         * @return TBool inform that mtm can provice function or not.
       
    94         */
       
    95 	    virtual TBool CanCreateEntryL(
       
    96             const TMsvEntry& aParent, 
       
    97             TMsvEntry& aNewEntry, 
       
    98             TInt& aReasonResourceId) const;
       
    99 
       
   100         /**
       
   101         * From CBaseMtmUiData Provide context-specific function information.
       
   102         * @param aContext Messaging entry refence.
       
   103         * @param aReasonResourceId Resource id.
       
   104         * @return TBool inform that mtm can provice function or not.
       
   105         */
       
   106 	    virtual TBool CanReplyToEntryL(
       
   107             const TMsvEntry& aContext, 
       
   108             TInt& aReasonResourceId) const;
       
   109 
       
   110         /**
       
   111         * From CBaseMtmUiData Provide context-specific function information.
       
   112         * @param aContext Messaging entry refence.
       
   113         * @param aReasonResourceId Resource id.
       
   114         * @return TBool inform that mtm can provice function or not.
       
   115         */
       
   116 	    virtual TBool CanForwardEntryL(
       
   117             const TMsvEntry& aContext, 
       
   118             TInt& aReasonResourceId) const;
       
   119 
       
   120         /**
       
   121         * From CBaseMtmUiData Provide context-specific function information.
       
   122         * @param aContext Messaging entry refence.
       
   123         * @param aReasonResourceId Resource id.
       
   124         * @return TBool inform that mtm can provice function or not.
       
   125         */
       
   126 	    virtual TBool CanEditEntryL(
       
   127             const TMsvEntry& aContext, 
       
   128             TInt& aReasonResourceId) const;
       
   129 
       
   130         /**
       
   131         * From CBaseMtmUiData Provide context-specific function information.
       
   132         * @param aContext Messaging entry refence.
       
   133         * @param aReasonResourceId Resource id.
       
   134         * @return TBool inform that mtm can provice function or not.
       
   135         */
       
   136 	    virtual TBool CanViewEntryL(const TMsvEntry& aContext, 
       
   137             TInt& aReasonResourceId) const;
       
   138 
       
   139         /**
       
   140         * From CBaseMtmUiData Provide context-specific function information.
       
   141         * @param aContext Messaging entry refence.
       
   142         * @param aReasonResourceId Resource id.
       
   143         * @return TBool inform that mtm can provice function or not.
       
   144         */
       
   145 	    virtual TBool CanOpenEntryL(
       
   146             const TMsvEntry& aContext, 
       
   147             TInt& aReasonResourceId) const;
       
   148 
       
   149         /**
       
   150         * From CBaseMtmUiData Provide context-specific function information.
       
   151         * @param aContext Messaging entry refence.
       
   152         * @param aReasonResourceId Resource id.
       
   153         * @return TBool inform that mtm can provice function or not.
       
   154         */
       
   155 	    virtual TBool CanCloseEntryL(
       
   156             const TMsvEntry& aContext, 
       
   157             TInt& aReasonResourceId) const;
       
   158 
       
   159         /**
       
   160         * From CBaseMtmUiData Provide context-specific function information.
       
   161         * @param aContext Messaging entry refence.
       
   162         * @param aReasonResourceId Resource id.
       
   163         * @return TBool inform that mtm can provice function or not.
       
   164         */
       
   165 	    virtual TBool CanDeleteFromEntryL(
       
   166             const TMsvEntry& aContext, 
       
   167             TInt& aReasonResourceId) const;
       
   168 
       
   169         /**
       
   170         * From CBaseMtmUiData Provide context-specific function information.
       
   171         * @param aContext Messaging entry refence.
       
   172         * @param aReasonResourceId Resource id.
       
   173         * @return TBool inform that mtm can provice function or not.
       
   174         */
       
   175 	    virtual TBool CanDeleteServiceL(
       
   176             const TMsvEntry& aService, 
       
   177             TInt& aReasonResourceId) const;
       
   178 
       
   179         /**
       
   180         * From CBaseMtmUiData Provide context-specific function information.
       
   181         * @param aContext Messaging entry refence.
       
   182         * @param aReasonResourceId Resource id.
       
   183         * @return TBool inform that mtm can provice function or not.
       
   184         */
       
   185 	    virtual TBool CanCopyMoveToEntryL(
       
   186             const TMsvEntry& aContext, 
       
   187             TInt& aReasonResourceId) const;
       
   188 
       
   189         /**
       
   190         * From CBaseMtmUiData Provide context-specific function information.
       
   191         * @param aContext Messaging entry refence.
       
   192         * @param aReasonResourceId Resource id.
       
   193         * @return TBool inform that mtm can provice function or not.
       
   194         */
       
   195 	    virtual TBool CanCopyMoveFromEntryL(
       
   196             const TMsvEntry& aContext, 
       
   197             TInt& aReasonResourceId) const;
       
   198 
       
   199         /**
       
   200         * From CBaseMtmUiData Provide context-specific function information.
       
   201         * @param aContext Messaging entry refence.
       
   202         * @param aReasonResourceId Resource id.
       
   203         * @return TBool inform that mtm can provice function or not.
       
   204         */
       
   205         virtual TBool CanCancelL(const TMsvEntry& aContext, 
       
   206             TInt& aReasonResourceId) const;
       
   207 
       
   208         /**
       
   209         * From CBaseMtmUiData Provide context-specific function information.
       
   210         * @param aContext Messaging entry refence.
       
   211         * @return HBufC* Statustext for sending.
       
   212         */
       
   213         virtual HBufC* StatusTextL(const TMsvEntry& aContext) const;
       
   214 
       
   215     protected:  // Functions from base classes
       
   216 
       
   217         /**
       
   218         * From CBaseMtmUiData Populate icon array
       
   219         */
       
   220 	    virtual void PopulateArraysL();
       
   221 
       
   222         /**
       
   223         * From CBaseMtmUiData gets resource filename.
       
   224         */
       
   225 	    virtual void GetResourceFileName(TFileName& aFileName) const;
       
   226 
       
   227     protected: 
       
   228 
       
   229         /**
       
   230         * C++ default constructor.
       
   231         */
       
   232         CBtMtmUiData(CRegisteredMtmDll& aRegisteredDll);
       
   233 
       
   234     protected: // New functions
       
   235 
       
   236         /**
       
   237         * Checks is the entry valid.
       
   238         * @param aContext reference to the entry.
       
   239         * @return TBool 
       
   240         */
       
   241 	    TBool CheckEntry(const TMsvEntry& aContext) const;
       
   242 
       
   243 	};
       
   244 
       
   245 
       
   246 #endif // CBTMTMUIDATA_H
       
   247 // End of File