mmappcomponents/mmmtpdataprovider/mmmtpdpplugins/abstractmediamtpdataprovider/inc/cabstractmediamtpdataprovidergetinterdependentpropdesc.h
changeset 25 d881023c13eb
parent 21 a05c44bc3c61
child 27 cbb1bfb7ebfb
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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CABSTRACTMEDIAMTPDATAPROVIDERGETINTERDEPENTENTPROPDESC_H
       
    20 #define CABSTRACTMEDIAMTPDATAPROVIDERGETINTERDEPENTENTPROPDESC_H
       
    21 
       
    22 #include "crequestprocessor.h"
       
    23 
       
    24 class CMTPTypeInterdependentPropDesc;
       
    25 class MMmMtpDpConfig;
       
    26 
       
    27 /**
       
    28 * Defines abstract media data provider GetInterdependentPropDesc request processor
       
    29 */
       
    30 class CAbstractMediaMtpDataProviderGetInterdependentPropDesc: public CRequestProcessor
       
    31     {
       
    32 public:
       
    33     /**
       
    34     * @param aFramework, The data provider framework
       
    35     * @param aConnection, The connection from which the request comes
       
    36     * @param aWrapper Medadata access
       
    37     * @return A pointer to the created request processor object
       
    38     */
       
    39     static MMmRequestProcessor* NewL( MMTPDataProviderFramework& aFramework,
       
    40         MMTPConnection& aConnection,
       
    41         MMmMtpDpConfig& aDpConfig );
       
    42 
       
    43     /**
       
    44     * Destructor
       
    45     */
       
    46     ~CAbstractMediaMtpDataProviderGetInterdependentPropDesc();
       
    47 
       
    48 private:
       
    49     /**
       
    50     * Standard C++ Constructor
       
    51     * @param aFramework, The data provider framework
       
    52     * @param aConnection, The connection from which the request comes
       
    53     */
       
    54     CAbstractMediaMtpDataProviderGetInterdependentPropDesc( MMTPDataProviderFramework& aFramework,
       
    55         MMTPConnection& aConnection );
       
    56 
       
    57     /**
       
    58     * two-phase construction
       
    59     */
       
    60     void ConstructL();
       
    61 
       
    62 protected:
       
    63     // from CRequestProcessor
       
    64     TMTPResponseCode CheckRequestL();
       
    65 
       
    66     void ServiceL();
       
    67 
       
    68 private:
       
    69     void ServiceAudioWaveCodecL();
       
    70 
       
    71     void ServiceAudioBitrateL();
       
    72 
       
    73     void SetFormForResponseL( TUint16 aPropertyCode, const MMTPType& aForm );
       
    74 
       
    75 private:
       
    76     /** Dataset to store the prop descriptions*/
       
    77     CMTPTypeInterdependentPropDesc* iDataset;
       
    78 
       
    79     TUint32 iFormatCode;
       
    80 
       
    81     };
       
    82 
       
    83 #endif // CABSTRACTMEDIAMTPDATAPROVIDERGETINTERDEPENTENTPROPDESC_H