mmappcomponents/mmmtpdataprovider/mmmtpdpplugins/abstractmediamtpdataprovider/inc/cabstractmediamtpdataproviderdescriptionutility.h
changeset 25 d881023c13eb
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: 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     /**
       
    57      * Construct property description of SampleFormat.
       
    58      * @return Property description dataset of sample format.
       
    59      */
       
    60     CMTPTypeObjectPropDesc* NewRepresentativeSampleFormatL();                   
       
    61 
       
    62     /**
       
    63      * Construct property description of SampleSize.
       
    64      * @return Property description dataset of sample size.
       
    65      */
       
    66     CMTPTypeObjectPropDesc* NewRepresentativeSampleSizeL();
       
    67     
       
    68     /**
       
    69      * Construct property description of SampleHeight.
       
    70      * @return Property description dataset of sample height.
       
    71      */
       
    72     CMTPTypeObjectPropDesc* NewRepresentativeSampleHeightL();
       
    73     
       
    74     /**
       
    75      * Construct property description of SampleWidth.
       
    76      * @return Property description dataset of sample width.
       
    77      */
       
    78     CMTPTypeObjectPropDesc* NewRepresentativeSampleWidthL();
       
    79     
       
    80     /**
       
    81      * Construct property description of SampleData.
       
    82      * @return Property description dataset of sample data.
       
    83      */
       
    84     CMTPTypeObjectPropDesc* NewRepresentativeSampleDataL();
       
    85     };
       
    86 
       
    87 #endif // CABSTRACTMEDIAMTPDATAPROVIDERDESCRIPTIONUTILITY_H