traceservices/tracefw/ulogger/inc/uloggerconfigmanager.h
changeset 0 08ec8eefde2f
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     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 // ULogger config
       
    15 //
       
    16 
       
    17 
       
    18 
       
    19 /**
       
    20  @file
       
    21  @internalTechnology
       
    22  @prototype
       
    23 */
       
    24 #ifndef ULOGGERCONFIGMANAGER_H_
       
    25 #define ULOGGERCONFIGMANAGER_H_
       
    26 #include "uloggersysconfig.h"
       
    27 
       
    28 namespace Ulogger
       
    29 	{
       
    30 	
       
    31 	class CConfigFileManager : public CBase
       
    32 	{
       
    33 	public:
       
    34 		IMPORT_C static CConfigFileManager* NewL();
       
    35 		IMPORT_C TInt RefreshConfigFiles();
       
    36 		IMPORT_C TInt GetSectionValues(const TDesC8& aSectionName, CConfigSettingsIter& aIter);
       
    37 		IMPORT_C TInt GetOutputPlugins(CConfigSettingsIter& aIter);
       
    38 		IMPORT_C TInt RemovePluginSettings(const TDesC8& aOutputChanId);
       
    39 		IMPORT_C TInt GetActiveFilters(CConfigSettingsIter& aIter,TInt aFilter);
       
    40 		IMPORT_C TInt RemoveActiveFilter(const RArray<TUint32>&  aFilter, const TInt &aFilterValue);
       
    41 		//Get direct setting's value API
       
    42 		IMPORT_C TInt SetActiveFilter(const RArray<TUint32>& aFilter, const TDesC8 &aSectionName);
       
    43 		IMPORT_C TInt SetTraceSettings(const TDesC8&  aValue, const TDesC8& aSetting);
       
    44 		IMPORT_C TInt SetPluginSetting(const TDesC8& aOutputChanId,
       
    45 										const TDesC8& aSetting,
       
    46 										const TDesC8& aValue);
       
    47 		IMPORT_C TInt SetActiveOutputPlugin(const TDesC8& aMediaName);
       
    48 		IMPORT_C TInt SetActiveInputPlugin(const TDesC8& aMediaName);
       
    49 		IMPORT_C TInt GetActiveInputPlugins(CConfigSettingsIter& aIter);
       
    50 		IMPORT_C TInt GetPluginSettings(CConfigSettingsIter& aIter);
       
    51 		IMPORT_C TInt DeActivateOutputPlugin(const TDesC8& aMediaName);
       
    52 		IMPORT_C TInt DeActivateInputPlugin(const TDesC8& aMediaName);
       
    53 	private:
       
    54 		TInt ConstructL();
       
    55 		TInt InitializeFilesL();
       
    56 		TInt CheckIfFileExistsInPathL(const TDesC& aFilename, const TDesC& aPath, TFileName& aFullFilePath);
       
    57 		TInt CopyFileToSystemDriveL(TFileName &aFilePath);
       
    58 	private:
       
    59 		CConfig*	iConfig;
       
    60 		TFileName iFilename;
       
    61 	};
       
    62 
       
    63 }//namespace
       
    64 #endif /*ULOGGERCONFIGMANAGER_H_*/