mtpfws/mtpfw/inc/cmtpdataproviderconfig.h
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalTechnology
       
    19 */
       
    20 
       
    21 #ifndef CMTPDATAPROVIDERCONFIG_H
       
    22 #define CMTPDATAPROVIDERCONFIG_H
       
    23 
       
    24 #include <mtp/mmtpdataproviderconfig.h>
       
    25 #include <mtp/mtpdataproviderapitypes.h>
       
    26 
       
    27 #include <e32std.h>
       
    28 
       
    29 class TResourceReader;
       
    30 
       
    31 /**
       
    32 Implements the data provider configurability parameter data interface. Each 
       
    33 loaded data provider is required to supply a compiled resource file which 
       
    34 implements a number of configurability parameters. These parameters are read 
       
    35 accessible only.
       
    36 @internalTechnology
       
    37  
       
    38 */
       
    39 class CMTPDataProviderConfig : 
       
    40     public CBase, 
       
    41     public MMTPDataProviderConfig
       
    42     {
       
    43 public:
       
    44 
       
    45     static CMTPDataProviderConfig* NewL(TResourceReader& aReader, const TDesC& aFileName);
       
    46     virtual ~CMTPDataProviderConfig();
       
    47     
       
    48     TBool ModeSupported(TMTPOperationalMode aMode) const;
       
    49 
       
    50 public: // From MMTPDataProviderConfig
       
    51 
       
    52     TUint UintValue(TParameter aParam) const;
       
    53     TBool BoolValue(TParameter aParam) const;
       
    54     const TDesC& DesCValue(TParameter aParam) const;
       
    55     const TDesC8& DesC8Value(TParameter aParam) const;
       
    56     void GetArrayValue(TParameter aParam, RArray<TUint>& aArray) const;
       
    57         
       
    58 private:
       
    59 
       
    60     CMTPDataProviderConfig();
       
    61     void ConstructL(TResourceReader& aReader, const TDesC& aFileName);
       
    62 
       
    63 private:
       
    64 
       
    65     TMTPDataProviderTypes   iType;
       
    66     TInt                    iVersion;
       
    67     TBool                   iObjectEnumerationPersistent;
       
    68     TUint32                 iSupportedModes;
       
    69     HBufC*                  iServerName;
       
    70     HBufC*                  iServerImageName;
       
    71     TUint32                 iOpaqueResource;
       
    72     HBufC*                  iResourceFileName;
       
    73     TUint8                  iEnumerationPhase;
       
    74     };
       
    75 
       
    76 #endif // CMTPDATAPROVIDERCONFIG_H