mtpfws/mtpfw/inc/cmtpframeworkconfig.h
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2006-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 CMTPFRAMEWORKCONFIG_H
       
    22 #define CMTPFRAMEWORKCONFIG_H
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <mtp/mmtpframeworkconfig.h>
       
    26 
       
    27 class CRepository;
       
    28 
       
    29 /**
       
    30 Implements the framework configurability parameter data interface. 
       
    31 
       
    32 The MTP framework implements a number of configurability parameters using a 
       
    33 central repository. The initial set of configurability parameters are loaded 
       
    34 from a compiled (binary) initialisation file. Read only access to the MTP 
       
    35 framework configurability parameter data is unrestricted. Write access is 
       
    36 restricted to the MTP framework. 
       
    37 @internalTechnology
       
    38  
       
    39 */
       
    40 class CMTPFrameworkConfig : 
       
    41     public CBase,
       
    42     public MMTPFrameworkConfig
       
    43     {
       
    44 public:
       
    45 
       
    46     static CMTPFrameworkConfig* NewL();
       
    47     ~CMTPFrameworkConfig();
       
    48 		
       
    49 public:
       
    50 
       
    51     IMPORT_C void GetValueL(TParameter aParam, TDes& aValue) const;
       
    52     IMPORT_C HBufC* ValueL(TParameter aParam) const;
       
    53     IMPORT_C void GetValueL(TParameter aParam, TUint& aValue) const;
       
    54     IMPORT_C void GetValueL(TParameter aParam, TBool& aValue) const;
       
    55     IMPORT_C void GetValueL(TParameter aParam, RArray<TUint>& aArray) const;
       
    56    
       
    57 private:
       
    58 
       
    59 	CMTPFrameworkConfig();
       
    60 	void ConstructL();
       
    61 
       
    62 private: // Owned
       
    63 
       
    64 	/**
       
    65 	The configurability parameter data repository.
       
    66 	*/
       
    67 	CRepository* iRepository;
       
    68 	
       
    69 	/**
       
    70 	 To save the value of EDownState 
       
    71 	 */
       
    72 	TInt         iAbnormalDownValue;
       
    73     };
       
    74     
       
    75 #endif // CMTPFRAMEWORKCONFIG_H