mmappcomponents/mmmtpdataprovider/mmmtpdpplugins/abstractmediamtpdataprovider/inc/cabstractmediamtpdataproviderdescriptionutility.h
author Simon Howkins <simonh@symbian.org>
Thu, 18 Nov 2010 13:26:55 +0000
branchRCL_3
changeset 69 71775bb0f6c0
parent 17 780c925249c1
permissions -rw-r--r--
Adjusted to avoid exports, etc, from a top-level bld.inf

/*
* 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