os/persistentdata/traceservices/tracefw/ulogger/inc/uloggersysconfig.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/persistentdata/traceservices/tracefw/ulogger/inc/uloggersysconfig.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,104 @@
     1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// ULogger config
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +/**
    1.22 + @file
    1.23 + @internalTechnology
    1.24 + @prototype
    1.25 +*/
    1.26 +
    1.27 +
    1.28 +#ifndef ULOGGERSYSCONFIG_H
    1.29 +#define ULOGGERSYSCONFIG_H
    1.30 +
    1.31 +#include <e32base.h> //CBase
    1.32 +
    1.33 +
    1.34 +namespace Ulogger
    1.35 +{
    1.36 +
    1.37 +class CConfigSettingsImpl;
    1.38 +/**
    1.39 +ULogger Configuration settings iterator class
    1.40 +This class is used to iterate all the settings within a
    1.41 +section in the configuration store.
    1.42 +*/
    1.43 +class CConfigSettingsIter : public CBase
    1.44 +{
    1.45 +	friend class CConfigImpl;
    1.46 +public:
    1.47 +	IMPORT_C static CConfigSettingsIter* NewL();
    1.48 +	
    1.49 +	IMPORT_C ~CConfigSettingsIter();
    1.50 +		
    1.51 +	IMPORT_C TBool Next(TPtrC8& aSetting,TPtrC8& aSettingValue);
    1.52 +	
    1.53 +	IMPORT_C void Reset();
    1.54 +	
    1.55 +private:
    1.56 +	CConfigSettingsIter();
    1.57 +	CConfigSettingsImpl* iImpl;
    1.58 +};
    1.59 +
    1.60 +class CConfigImpl;
    1.61 +/**
    1.62 +ULogger Configuration class
    1.63 +This class is provided to allow read and write access to
    1.64 +the configuration store. It also allows the client to be 
    1.65 +notified when there is a configuration change.
    1.66 +*/
    1.67 +class CConfig : public CBase
    1.68 +	{
    1.69 +public:
    1.70 +	IMPORT_C static CConfig* NewL(RHeap* aHeap,TFileName& aFilename);
    1.71 +	IMPORT_C static CConfig* NewLC(RHeap* aHeap,TFileName& aFilename);
    1.72 +	IMPORT_C ~CConfig();
    1.73 +
    1.74 +	IMPORT_C TInt GetSectionValues(const TDesC8& aSectionName,CConfigSettingsIter& aIter);
    1.75 +	IMPORT_C TInt GetOutputPlugins(CConfigSettingsIter& aIter);
    1.76 +	IMPORT_C TInt RemovePluginSettings(const TDesC8& aOutputChanId);
    1.77 +										
    1.78 +	IMPORT_C TInt GetActiveFilters(CConfigSettingsIter& aIter,TInt aFilter);
    1.79 +	IMPORT_C TInt RemoveActiveFilter(const RArray<TUint32>&  aFilter, const TInt &aFilterValue);
    1.80 +	//Get direct setting's value API												
    1.81 +	
    1.82 +	IMPORT_C TInt SetActiveFilter(const RArray<TUint32>& aFilter, const TDesC8 &aSectionName);
    1.83 +	IMPORT_C TInt SetTraceSettings(const TDesC8&  aValue, const TDesC8& aSetting);
    1.84 +
    1.85 +	IMPORT_C TInt SetPluginSetting(const TDesC8& aOutputChanId,
    1.86 +									const TDesC8& aSetting,
    1.87 +									const TDesC8& aValue);
    1.88 +	IMPORT_C TInt SetActiveOutputPlugin(const TDesC8& aMediaName);
    1.89 +	
    1.90 +	IMPORT_C TInt SetActiveInputPlugin(const TDesC8& aMediaName);
    1.91 +	
    1.92 +	IMPORT_C TInt GetActivePlugins(CConfigSettingsIter& aIter);
    1.93 +		
    1.94 +	IMPORT_C TInt GetTraceSettings(CConfigSettingsIter& aIter);
    1.95 +	
    1.96 +	IMPORT_C TInt DeActivateOutputPlugin(const TDesC8& aMediaName);
    1.97 +
    1.98 +	IMPORT_C TInt DeActivateInputPlugin(const TDesC8& aMediaName);
    1.99 +	
   1.100 +private:
   1.101 +
   1.102 +	CConfig();
   1.103 +	CConfigImpl* iImpl;
   1.104 +	};
   1.105 +}
   1.106 +#endif //ULOGGERSYSCONFIG_H
   1.107 +