mtpdataproviders/mtpimagedp/inc/cmtpimagedpgetpartialobject.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  @internalTechnology
       
    19 */
       
    20 
       
    21 #ifndef CMTPIMAGEDPGETPARTIALOBJECT_H
       
    22 #define CMTPIMAGEDPGETPARTIALOBJECT_H
       
    23 
       
    24 #include "cmtprequestprocessor.h"
       
    25 
       
    26 class MMTPObjectMgr;
       
    27 class RFs;
       
    28 class CMTPTypePartialFile;
       
    29 class CMTPImageDataProvider;
       
    30 class CMTPImageDpObjectPropertyMgr;
       
    31 /** 
       
    32 Defines file data provider GetObject request processor
       
    33 
       
    34 @internalTechnology
       
    35 */
       
    36 class CMTPImageDpGetPartialObject : public CMTPRequestProcessor
       
    37     {
       
    38 public:
       
    39     static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection,CMTPImageDataProvider& aDataProvider);	
       
    40     ~CMTPImageDpGetPartialObject();	
       
    41     
       
    42 private:	
       
    43     CMTPImageDpGetPartialObject(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection, CMTPImageDataProvider& aDataProvider);
       
    44     void ConstructL();
       
    45 
       
    46 private:	//from CMTPRequestProcessor
       
    47     virtual TMTPResponseCode CheckRequestL();
       
    48     virtual void ServiceL();
       
    49     virtual TBool DoHandleResponsePhaseL();
       
    50 
       
    51 private:
       
    52     //helper
       
    53     TBool VerifyParametersL();
       
    54     void BuildPartialDataL();
       
    55     
       
    56 private:
       
    57     /**
       
    58     FLOGGER debug trace member variable.
       
    59      */
       
    60     __FLOG_DECLARATION_MEMBER_MUTABLE;
       
    61 
       
    62     RFs&                  iFs;
       
    63     TUint32               iOffset;
       
    64     TUint32               iMaxLength;
       
    65     TUint32               iPartialDataLength;
       
    66     CMTPTypeFile*         iFileObject;
       
    67     CMTPObjectMetaData*   iObjectMeta;
       
    68     };
       
    69     
       
    70 #endif  //CMTPIMAGEDPGETPARTIALOBJECT_H