56
|
1 |
// Copyright (c) 2007-2010 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 |
// TraceCore configuration message subscriber
|
|
15 |
//
|
|
16 |
|
|
17 |
#ifndef __TRACECORECONFIGURATION_H__
|
|
18 |
#define __TRACECORECONFIGURATION_H__
|
|
19 |
|
|
20 |
#include <klib.h>
|
|
21 |
|
|
22 |
/**
|
|
23 |
* TTraceCoreConfiguration function to choosed in DTraceCoreConfiguration::GetSet.
|
|
24 |
*/
|
|
25 |
enum TTraceCoreConfiguration
|
|
26 |
{
|
|
27 |
EGetCurrentWriterType = 0, // Return type TWriterType
|
|
28 |
ESetWriter = 1, // Return KErrNone/KErrNotFound
|
|
29 |
ELastFunction // Return KErrNotSupported
|
|
30 |
};
|
|
31 |
|
|
32 |
|
|
33 |
class DTraceCoreConfiguration : public DBase
|
|
34 |
{
|
|
35 |
public:
|
|
36 |
DTraceCoreConfiguration();
|
|
37 |
virtual ~DTraceCoreConfiguration();
|
|
38 |
|
|
39 |
/**
|
|
40 |
* Initializes configuration
|
|
41 |
*/
|
|
42 |
TInt Init();
|
|
43 |
|
|
44 |
|
|
45 |
/**
|
|
46 |
* @param aFunc Function choosed (@see TTraceCoreConfiguration)
|
|
47 |
* @return Depending of aFunc paramter (@see TTraceCoreConfiguration9
|
|
48 |
*/
|
|
49 |
IMPORT_C static TUint32 GetSet(TTraceCoreConfiguration aFunc, TUint32 aParam);
|
|
50 |
};
|
|
51 |
|
|
52 |
#endif /* __TRACECORECONFIGURATION_H__*/
|
|
53 |
|
|
54 |
// End of File
|