mmappcomponents/mmmtpdataprovider/mmmtpdpplugins/abstractmediamtpdataprovider/inc/cabstractmediamtpdataprovidersendobject.h
changeset 25 d881023c13eb
parent 21 a05c44bc3c61
child 27 cbb1bfb7ebfb
equal deleted inserted replaced
21:a05c44bc3c61 25:d881023c13eb
     1 /*
       
     2 * Copyright (c) 2009 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 */
       
    16 
       
    17 #ifndef CABSTRACTMEDIAMTPDATAPROVIDERSENDOBJECT_H_
       
    18 #define CABSTRACTMEDIAMTPDATAPROVIDERSENDOBJECT_H_
       
    19 
       
    20 #include "csendobject.h"
       
    21 
       
    22 /**
       
    23 * Defines media data provider SetObjectPropsList request processor
       
    24 */
       
    25 class CAbstractMediaMtpDataProviderSendObject: public CSendObject
       
    26     {
       
    27 public:
       
    28     /**
       
    29     * @param aFramework, The data provider framework
       
    30     * @param aConnection, The connection from which the request comes
       
    31     * @param aWrapper Medadata access
       
    32     * @return A pointer to the created request processor object
       
    33     */
       
    34     static MMmRequestProcessor* NewL( MMTPDataProviderFramework& aFramework,
       
    35         MMTPConnection& aConnection,
       
    36         MMmMtpDpConfig& aDpConfig );
       
    37 
       
    38     /**
       
    39     * Destructor
       
    40     */
       
    41     ~CAbstractMediaMtpDataProviderSendObject();
       
    42 
       
    43 private:
       
    44     /**
       
    45     * Standard C++ Constructor
       
    46     * @param aFramework, The data provider framework
       
    47     * @param aConnection, The connection from which the request comes
       
    48     * @param aWrapper Medadata access
       
    49     */
       
    50     CAbstractMediaMtpDataProviderSendObject( MMTPDataProviderFramework& aFramework,
       
    51         MMTPConnection& aConnection,
       
    52         MMmMtpDpConfig& aDpConfig );
       
    53 
       
    54     /**
       
    55     * 2nd Phase Constructor
       
    56     */
       
    57     void ConstructL();
       
    58 
       
    59 protected:
       
    60     // from CSendObjectInfo
       
    61     TMTPResponseCode SetSpecificObjectPropertyL( TUint16 aPropCode,
       
    62         const CMTPObjectMetaData& aObject,
       
    63         const CMTPTypeObjectPropListElement& aElement );
       
    64 
       
    65     TMTPResponseCode CheckSepecificPropType( TUint16 aPropCode, TUint16 aDataType );
       
    66 
       
    67     TInt HandleSpecificWrapperError(TInt aError,
       
    68             const CMTPObjectMetaData& aObject);
       
    69 
       
    70     };
       
    71 
       
    72 #endif /*CABSTRACTMEDIAMTPDATAPROVIDERSENDOBJECT_H_*/