mtpdataproviders/mtppictbridgedp/inc/cmtppictbridgegetformatcapabilities.h
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent
       
    19  */
       
    20 
       
    21 
       
    22 #ifndef CMTPPICTBRIDGEGETFORMATCAPABILITIES_H_
       
    23 #define CMTPPICTBRIDGEGETFORMATCAPABILITIES_H_
       
    24 
       
    25 #include <mtp/cmtptypeformatcapabilitylist.h>
       
    26 #include "cmtprequestprocessor.h"
       
    27 #include "cmtppictbridgedp.h"
       
    28 #include "mtpdpconst.h"
       
    29 
       
    30 /** 
       
    31 Implements the file data provider CMTPGetFormatCapabilities request processor.
       
    32 @internalComponent
       
    33 */
       
    34 class CMTPPictBridgeDpGetFormatCapabilities : public CMTPRequestProcessor
       
    35     {
       
    36 public:
       
    37     static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection, CMTPPictBridgeDataProvider& aDataProvider);    
       
    38     ~CMTPPictBridgeDpGetFormatCapabilities();    
       
    39 
       
    40 private: // From CMTPRequestProcessor
       
    41     void ServiceL();
       
    42     TMTPResponseCode CheckRequestL();
       
    43     
       
    44 private:
       
    45     CMTPPictBridgeDpGetFormatCapabilities(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection, CMTPPictBridgeDataProvider& aDataProvider);
       
    46     void ConstructL();
       
    47     void BuildFormatScriptL();
       
    48     CMTPTypeObjectPropDesc* ServiceProtectionStatusL();
       
    49     CMTPTypeObjectPropDesc* ServiceNonConsumableL();
       
    50     TUint16 GetPropertyGroupNumber(const TUint16 aPropCode) const;
       
    51     
       
    52 private: // Owned
       
    53     CMTPPictBridgeDataProvider&   iPictBridgeDP;
       
    54     TUint                         iFormatCode;
       
    55     /* 
       
    56      * CMTPTypeCapabilityList dataset.
       
    57      */
       
    58     CMTPTypeFormatCapabilityList* iCapabilityList;
       
    59     /**
       
    60     FLOGGER debug trace member variable.
       
    61     */
       
    62     __FLOG_DECLARATION_MEMBER_MUTABLE;
       
    63     };
       
    64 
       
    65 #endif /* CMTPPICTBRIDGEGETFORMATCAPABILITIES_H_ */
       
    66