|
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 // Ost Performance Tests ULogger session controller |
|
15 // |
|
16 |
|
17 |
|
18 |
|
19 /** |
|
20 @file te_tracecontrolcmds.h |
|
21 @internalTechnology |
|
22 @prototype |
|
23 */ |
|
24 |
|
25 #ifndef TE_UPTULOGGERCMDS_H |
|
26 #define TE_UPTULOGGERCMDS_H |
|
27 |
|
28 #ifndef __KERNEL_MODE__ |
|
29 #include <e32base.h> |
|
30 #include <f32file.h> |
|
31 #endif |
|
32 #include <uloggerclient.h> |
|
33 //C.A. previously:using namespace UTF; |
|
34 using namespace Ulogger; //CA:added so can use old ulogger api |
|
35 /** |
|
36 This is a user-side utility class to start and configure ulogger for the various upt tests |
|
37 |
|
38 @internalTechnology |
|
39 @prototype |
|
40 */ |
|
41 |
|
42 class CUptULogger: public CBase |
|
43 { |
|
44 public: |
|
45 CUptULogger(); |
|
46 ~CUptULogger(); |
|
47 |
|
48 TInt StartFileL(RULogger& aLogger, const TBool& aGroupIdFiltering, const TBool& aComponentIdFiltering, const TBool& aGroupIdFilterMatch, const TBool& aComponentIdFilterMatch); |
|
49 TInt StartGeneralL(RULogger& aLogger, const TPtrC8& aPluginName, const TPluginConfiguration& aPluginConfiguration, const TBool& aGroupIdFiltering, const TBool& aComponentIdFiltering, const TBool& aGroupIdFilterMatch, const TBool& aComponentIdFilterMatch); |
|
50 TInt GetDataL(TUint8*& aData, TUint& aSize); |
|
51 TInt StopAndDeleteFile(RULogger& aLogger); |
|
52 TInt Stop(RULogger& aLogger); |
|
53 TInt DeleteFile(); |
|
54 void SetFilter(CArrayFixFlat<TUint8>* aFilters); |
|
55 |
|
56 TInt Test(); |
|
57 private: |
|
58 |
|
59 }; |
|
60 |
|
61 #endif |
|
62 |
|
63 |