sl@0: // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // ULogger config sl@0: // sl@0: sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: @prototype sl@0: */ sl@0: #ifndef ULOGGERCONFIGMANAGER_H_ sl@0: #define ULOGGERCONFIGMANAGER_H_ sl@0: #include "uloggersysconfig.h" sl@0: sl@0: namespace Ulogger sl@0: { sl@0: sl@0: class CConfigFileManager : public CBase sl@0: { sl@0: public: sl@0: IMPORT_C static CConfigFileManager* NewL(); sl@0: IMPORT_C TInt RefreshConfigFiles(); sl@0: IMPORT_C TInt GetSectionValues(const TDesC8& aSectionName, CConfigSettingsIter& aIter); sl@0: IMPORT_C TInt GetOutputPlugins(CConfigSettingsIter& aIter); sl@0: IMPORT_C TInt RemovePluginSettings(const TDesC8& aOutputChanId); sl@0: IMPORT_C TInt GetActiveFilters(CConfigSettingsIter& aIter,TInt aFilter); sl@0: IMPORT_C TInt RemoveActiveFilter(const RArray& aFilter, const TInt &aFilterValue); sl@0: //Get direct setting's value API sl@0: IMPORT_C TInt SetActiveFilter(const RArray& aFilter, const TDesC8 &aSectionName); sl@0: IMPORT_C TInt SetTraceSettings(const TDesC8& aValue, const TDesC8& aSetting); sl@0: IMPORT_C TInt SetPluginSetting(const TDesC8& aOutputChanId, sl@0: const TDesC8& aSetting, sl@0: const TDesC8& aValue); sl@0: IMPORT_C TInt SetActiveOutputPlugin(const TDesC8& aMediaName); sl@0: IMPORT_C TInt SetActiveInputPlugin(const TDesC8& aMediaName); sl@0: IMPORT_C TInt GetActiveInputPlugins(CConfigSettingsIter& aIter); sl@0: IMPORT_C TInt GetPluginSettings(CConfigSettingsIter& aIter); sl@0: IMPORT_C TInt DeActivateOutputPlugin(const TDesC8& aMediaName); sl@0: IMPORT_C TInt DeActivateInputPlugin(const TDesC8& aMediaName); sl@0: private: sl@0: TInt ConstructL(); sl@0: TInt InitializeFilesL(); sl@0: TInt CheckIfFileExistsInPathL(const TDesC& aFilename, const TDesC& aPath, TFileName& aFullFilePath); sl@0: TInt CopyFileToSystemDriveL(TFileName &aFilePath); sl@0: private: sl@0: CConfig* iConfig; sl@0: TFileName iFilename; sl@0: }; sl@0: sl@0: }//namespace sl@0: #endif /*ULOGGERCONFIGMANAGER_H_*/