2
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
#ifndef STFLOGGERCSCOMMON_H__
|
|
18 |
#define STFLOGGERCSCOMMON_H__
|
|
19 |
|
|
20 |
#include <stiflogger.h>
|
|
21 |
|
|
22 |
_LIT(KSTFLoggerServerName,"STFLoggingServer");// The server's identity within the client-server framework
|
|
23 |
_LIT(KSTFLoggerServerBinaryName,"STFLoggingServer"); // The name of the server binary (dll or exe)
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
enum TSTFLoggerFunction
|
|
28 |
{
|
|
29 |
ESTFLogger_CreateLogger,
|
|
30 |
ESTFLogger_Log_TInt_TDesC,
|
|
31 |
ESTFLogger_Log_TInt_TDesC8,
|
|
32 |
ESTFLogger_CreationResult,
|
|
33 |
ESTFLogger_OutputType
|
|
34 |
};
|
|
35 |
|
|
36 |
|
|
37 |
class TSTFLoggerCreateData
|
|
38 |
{
|
|
39 |
public:
|
|
40 |
TSTFLoggerCreateData();
|
|
41 |
TSTFLoggerCreateData(const TDesC& aTestPath,
|
|
42 |
const TDesC& aTestFile,
|
|
43 |
CStifLogger::TLoggerType aLoggerType,
|
|
44 |
CStifLogger::TOutput aOutput,
|
|
45 |
TBool aOverWrite,
|
|
46 |
TBool aWithTimeStamp,
|
|
47 |
TBool aWithLineBreak,
|
|
48 |
TBool aWithEventRanking,
|
|
49 |
TBool aThreadIdToLogFile,
|
|
50 |
TBool aCreateLogDir,
|
|
51 |
TInt aStaticBufferSize,
|
|
52 |
TBool aUnicode,
|
|
53 |
TInt aThreadId);
|
|
54 |
|
|
55 |
public:
|
|
56 |
TPath iTestPath;
|
|
57 |
TFileName iTestFile;
|
|
58 |
CStifLogger::TLoggerType iLoggerType;
|
|
59 |
CStifLogger::TOutput iOutput;
|
|
60 |
TBool iOverWrite;
|
|
61 |
TBool iWithTimeStamp;
|
|
62 |
TBool iWithLineBreak;
|
|
63 |
TBool iWithEventRanking;
|
|
64 |
TBool iThreadIdToLogFile;
|
|
65 |
TBool iCreateLogDir;
|
|
66 |
TInt iStaticBufferSize;
|
|
67 |
TBool iUnicode;
|
|
68 |
TInt iThreadId;
|
|
69 |
};
|
|
70 |
|
|
71 |
inline TSTFLoggerCreateData::TSTFLoggerCreateData():
|
|
72 |
iLoggerType(CStifLogger::ETxt),
|
|
73 |
iOutput(CStifLogger::EFile),
|
|
74 |
iOverWrite(ETrue),
|
|
75 |
iWithTimeStamp(ETrue),
|
|
76 |
iWithLineBreak(ETrue),
|
|
77 |
iWithEventRanking(EFalse),
|
|
78 |
iThreadIdToLogFile(ETrue),
|
|
79 |
iCreateLogDir(EFalse),
|
|
80 |
iStaticBufferSize(0),
|
|
81 |
iUnicode(EFalse),
|
|
82 |
iThreadId(0)
|
|
83 |
{
|
|
84 |
};
|
|
85 |
|
|
86 |
inline TSTFLoggerCreateData::TSTFLoggerCreateData(const TDesC& aTestPath,
|
|
87 |
const TDesC& aTestFile,
|
|
88 |
CStifLogger::TLoggerType aLoggerType,
|
|
89 |
CStifLogger::TOutput aOutput,
|
|
90 |
TBool aOverWrite,
|
|
91 |
TBool aWithTimeStamp,
|
|
92 |
TBool aWithLineBreak,
|
|
93 |
TBool aWithEventRanking,
|
|
94 |
TBool aThreadIdToLogFile,
|
|
95 |
TBool aCreateLogDir,
|
|
96 |
TInt aStaticBufferSize,
|
|
97 |
TBool aUnicode,
|
|
98 |
TInt aThreadId):
|
|
99 |
iTestPath(aTestPath),
|
|
100 |
iTestFile (aTestFile),
|
|
101 |
iLoggerType (aLoggerType),
|
|
102 |
iOutput (aOutput),
|
|
103 |
iOverWrite (aOverWrite),
|
|
104 |
iWithTimeStamp (aWithTimeStamp),
|
|
105 |
iWithLineBreak (aWithLineBreak),
|
|
106 |
iWithEventRanking (aWithEventRanking),
|
|
107 |
iThreadIdToLogFile (aThreadIdToLogFile),
|
|
108 |
iCreateLogDir (aCreateLogDir),
|
|
109 |
iStaticBufferSize (aStaticBufferSize),
|
|
110 |
iUnicode (aUnicode),
|
|
111 |
iThreadId (aThreadId)
|
|
112 |
|
|
113 |
{
|
|
114 |
}
|
|
115 |
|
|
116 |
|
|
117 |
#endif // STFLOGGERCSCOMMON_H__
|