mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/inc/cpropertysettingutility.h
branchRCL_3
changeset 8 bee149131e4b
child 9 05b0d2323768
equal deleted inserted replaced
4:d45095c2f4f3 8:bee149131e4b
       
     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 
       
    18 #ifndef CPROPERTYSETTINGUTILITY_H
       
    19 #define CPROPERTYSETTINGUTILITY_H
       
    20 
       
    21 #include <mtp/mtpprotocolconstants.h>   // TMTPResponseCode
       
    22 
       
    23 class MMmMtpDpConfig;
       
    24 class MMTPType;
       
    25 class CMTPObjectMetaData;
       
    26 class CMTPTypeObjectPropListElement;
       
    27 
       
    28 class CPropertySettingUtility : public CBase
       
    29     {
       
    30 protected:
       
    31     IMPORT_C CPropertySettingUtility();
       
    32 
       
    33 public:
       
    34     IMPORT_C virtual ~CPropertySettingUtility();
       
    35 
       
    36 public:
       
    37     /**
       
    38     * Set metadata to database for processors which need set common property list
       
    39     * @param aDpConfig, handler to get db access wrapper
       
    40     * @param aPropCode, specify property code of aMediaProp
       
    41     * @param aNewData, object property value which will be get from
       
    42     *    aObjectMetaData
       
    43     * @param aObjectMetaData, owner of the property which should be
       
    44     *    inserted or updated into database
       
    45     * @return response code
       
    46     */
       
    47     IMPORT_C TMTPResponseCode SetMetaDataToWrapperL( MMmMtpDpConfig& aDpConfig,
       
    48         const TUint16 aPropCode,
       
    49         MMTPType& aNewData,
       
    50         const CMTPObjectMetaData& aObjectMetaData );
       
    51 
       
    52     /**
       
    53      * Interface to set metadata to database for dp specific objectproplist
       
    54      * @param aDpConfig, handler to get db access wrapper
       
    55      * @param aPropCode, specify property code of aMediaProp
       
    56      * @param aObjectMetaData, owner of the property which should be
       
    57      *    inserted or updated into database
       
    58      * @param aElement, property list element
       
    59      */
       
    60     virtual TMTPResponseCode SetSpecificObjectPropertyL( MMmMtpDpConfig& aDpConfig,
       
    61         TUint16 aPropCode,
       
    62         const CMTPObjectMetaData& aObject,
       
    63         const CMTPTypeObjectPropListElement& aElement ) = 0;
       
    64 
       
    65     };
       
    66 
       
    67 #endif // CPROPERTYSETTINGUTILITY_H