mmappcomponents/mmmtpdataprovider/mmmtpdpplugins/abstractmediamtpdataprovider/inc/cabstractmediamtpdataproviderdescriptionutility.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:23:05 +0100
branchRCL_3
changeset 25 63223d4fd956
parent 11 780c925249c1
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: Abstract media dp specific property description construction utility.
*              Used by all request processors which related to property description
*
*/

#ifndef CABSTRACTMEDIAMTPDATAPROVIDERDESCRIPTIONUTILITY_H
#define CABSTRACTMEDIAMTPDATAPROVIDERDESCRIPTIONUTILITY_H

#include "cdescriptionutility.h"

class CMTPTypeInterdependentPropDesc;
class CMTPTypeObjectPropDesc;

class CAbstractMediaMtpDataProviderDescriptionUtility : public CDescriptionUtility
    {
public:
    static CAbstractMediaMtpDataProviderDescriptionUtility* NewL();

    ~CAbstractMediaMtpDataProviderDescriptionUtility();

private:
    CAbstractMediaMtpDataProviderDescriptionUtility();

public:
    /**
     * Construct media dp specific interdependent property description.
     * according to assigned format code.
     * @param aFormatCode
     * @return Interdependent property description dataset.
     */
    CMTPTypeInterdependentPropDesc* NewInterdepentPropDescL( MMmMtpDpConfig& aDpConfig, TUint aFormatCode );

    /**
     * Construct media dp specific property description
     * according to assigned format code and property code.
     * @param aFormatCode
     * @param aPropCode
     * @return Property description dataset.
     */
    CMTPTypeObjectPropDesc* NewSpecificPropDescL( TUint aFormatCode, TUint16 aPropCode );

private:
    /**
     * Construct property description of SampleFormat.
     * @return Property description dataset of sample format.
     */
    CMTPTypeObjectPropDesc* NewRepresentativeSampleFormatL();                   

    /**
     * Construct property description of SampleSize.
     * @return Property description dataset of sample size.
     */
    CMTPTypeObjectPropDesc* NewRepresentativeSampleSizeL();
    
    /**
     * Construct property description of SampleHeight.
     * @return Property description dataset of sample height.
     */
    CMTPTypeObjectPropDesc* NewRepresentativeSampleHeightL();
    
    /**
     * Construct property description of SampleWidth.
     * @return Property description dataset of sample width.
     */
    CMTPTypeObjectPropDesc* NewRepresentativeSampleWidthL();
    
    /**
     * Construct property description of SampleData.
     * @return Property description dataset of sample data.
     */
    CMTPTypeObjectPropDesc* NewRepresentativeSampleDataL();
    };

#endif // CABSTRACTMEDIAMTPDATAPROVIDERDESCRIPTIONUTILITY_H