mmappcomponents/mmmtpdataprovider/mmmtpdpplugins/mediamtpdataprovider/inc/cmediamtpdataprovidergetinterdependentpropdesc.h
branchCompilerCompatibility
changeset 13 da1f3efa404b
parent 11 5529f24b6aaf
parent 10 835a21e50645
child 16 7338708f87ae
equal deleted inserted replaced
11:5529f24b6aaf 13:da1f3efa404b
     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 CMEDIAMTPDATAPROVIDERGETINTERDEPENTENTPROPDESC_H
       
    20 #define CMEDIAMTPDATAPROVIDERGETINTERDEPENTENTPROPDESC_H
       
    21 
       
    22 #include <mtp/cmtptypeobjectpropdesc.h>
       
    23 #include "crequestprocessor.h"
       
    24 
       
    25 class CMTPTypeInterdependentPropDesc;
       
    26 class CMTPTypeInterdependentProperties;
       
    27 class MMmMtpDpConfig;
       
    28 
       
    29 /**
       
    30 * Defines media data provider GetInterDependentPropDesc request processor
       
    31 */
       
    32 class CMediaMtpDataProviderGetInterDependentPropDesc: public CRequestProcessor
       
    33     {
       
    34 public:
       
    35     /**
       
    36     * @param aFramework, The data provider framework
       
    37     * @param aConnection, The connection from which the request comes
       
    38     * @param aWrapper Medadata access
       
    39     * @return A pointer to the created request processor object
       
    40     */
       
    41     static MMmRequestProcessor* NewL( MMTPDataProviderFramework& aFramework,
       
    42         MMTPConnection& aConnection,
       
    43         MMmMtpDpConfig& aDpConfig );
       
    44 
       
    45     /**
       
    46     * Destructor
       
    47     */
       
    48     ~CMediaMtpDataProviderGetInterDependentPropDesc();
       
    49 
       
    50 private:
       
    51     /**
       
    52     * Standard C++ Constructor
       
    53     * @param aFramework, The data provider framework
       
    54     * @param aConnection, The connection from which the request comes
       
    55     */
       
    56     CMediaMtpDataProviderGetInterDependentPropDesc( MMTPDataProviderFramework& aFramework,
       
    57         MMTPConnection& aConnection );
       
    58 
       
    59 protected:
       
    60     // from CRequestProcessor
       
    61     TMTPResponseCode CheckRequestL();
       
    62     void ServiceL();
       
    63 
       
    64 private:
       
    65     /**
       
    66     * two-phase construction
       
    67     */
       
    68     void ConstructL();
       
    69 
       
    70     void ServiceAudioWaveCodecL();
       
    71     void ServiceAudioBitrateL();
       
    72 
       
    73     void ServiceVideoFourCCCodecL();
       
    74     void ServiceVideoBitrateL();
       
    75 
       
    76     void ServiceRangeFormDescriptionL( TUint16 aPropCode,
       
    77         TUint32 aMinValue,
       
    78         TUint32 aMaxValue,
       
    79         TUint32 aStepValue,
       
    80         TBool aIsReadOnly = EFalse);
       
    81 
       
    82     void SetFormForResponseL( TUint16 aPropertyCode,
       
    83                 CMTPTypeObjectPropDesc::TPropertyInfo& aPropInfo,
       
    84                 const MMTPType* aForm );
       
    85 
       
    86 private:
       
    87     /** Dataset to store the prop descriptions*/
       
    88     CMTPTypeInterdependentPropDesc* iDataset;
       
    89 
       
    90     /**support configuration correctly*/
       
    91     CMTPTypeInterdependentProperties* iProperties;
       
    92 
       
    93     TUint32 iFormatCode;
       
    94 
       
    95     };
       
    96 
       
    97 #endif // CMEDIAMTPDATAPROVIDERGETINTERDEPENTENTPROPDESC_H