mmappcomponents/mmmtpdataprovider/mmmtpdpplugins/abstractmediamtpdataprovider/inc/cabstractmediamtpdataproviderdescriptionutility.h
branchRCL_3
changeset 9 bee149131e4b
child 17 780c925249c1
equal deleted inserted replaced
4:d45095c2f4f3 9: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: Abstract media dp specific property description construction utility.
       
    15 *              Used by all request processors which related to property description
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef CABSTRACTMEDIAMTPDATAPROVIDERDESCRIPTIONUTILITY_H
       
    20 #define CABSTRACTMEDIAMTPDATAPROVIDERDESCRIPTIONUTILITY_H
       
    21 
       
    22 #include "cdescriptionutility.h"
       
    23 
       
    24 class CMTPTypeInterdependentPropDesc;
       
    25 class CMTPTypeObjectPropDesc;
       
    26 
       
    27 class CAbstractMediaMtpDataProviderDescriptionUtility : public CDescriptionUtility
       
    28     {
       
    29 public:
       
    30     static CAbstractMediaMtpDataProviderDescriptionUtility* NewL();
       
    31 
       
    32     ~CAbstractMediaMtpDataProviderDescriptionUtility();
       
    33 
       
    34 private:
       
    35     CAbstractMediaMtpDataProviderDescriptionUtility();
       
    36 
       
    37 public:
       
    38     /**
       
    39      * Construct media dp specific interdependent property description.
       
    40      * according to assigned format code.
       
    41      * @param aFormatCode
       
    42      * @return Interdependent property description dataset.
       
    43      */
       
    44     CMTPTypeInterdependentPropDesc* NewInterdepentPropDescL( MMmMtpDpConfig& aDpConfig, TUint aFormatCode );
       
    45 
       
    46     /**
       
    47      * Construct media dp specific property description
       
    48      * according to assigned format code and property code.
       
    49      * @param aFormatCode
       
    50      * @param aPropCode
       
    51      * @return Property description dataset.
       
    52      */
       
    53     CMTPTypeObjectPropDesc* NewSpecificPropDescL( TUint aFormatCode, TUint16 aPropCode );
       
    54 
       
    55 private:
       
    56     // Example for further extension
       
    57     /**
       
    58      * Construct audio wave codec property description.
       
    59      * @param aFormatCode
       
    60      * @return Property description dataset of audio wave codec.
       
    61      */
       
    62     // CMTPTypeObjectPropDesc* NewAudioWaveCodecPropDescL( TUint aFormatCode );
       
    63 
       
    64     };
       
    65 
       
    66 #endif // CABSTRACTMEDIAMTPDATAPROVIDERDESCRIPTIONUTILITY_H