2
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 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: This file contains the header file of the CNullOutput.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef NULLOUTPUT_H
|
|
19 |
#define NULLOUTPUT_H
|
|
20 |
|
|
21 |
// INCLUDES
|
|
22 |
#include "Output.h"
|
|
23 |
|
|
24 |
// CONSTANTS
|
|
25 |
// None
|
|
26 |
|
|
27 |
// MACROS
|
|
28 |
// None
|
|
29 |
|
|
30 |
// DATA TYPES
|
|
31 |
// None
|
|
32 |
|
|
33 |
// FUNCTION PROTOTYPES
|
|
34 |
// None
|
|
35 |
|
|
36 |
// FORWARD DECLARATIONS
|
|
37 |
// None
|
|
38 |
|
|
39 |
// CLASS DECLARATION
|
|
40 |
// None
|
|
41 |
|
|
42 |
// DESCRIPTION
|
|
43 |
// CNullOutput is a STIF Test Framework StifLoggerBase class.
|
|
44 |
// CNullOutput's methods purpose is to look like logging although it don't
|
|
45 |
// do any logging operations.
|
|
46 |
|
|
47 |
class CNullOutput
|
|
48 |
:public COutput
|
|
49 |
{
|
|
50 |
public: // Enumerations
|
|
51 |
|
|
52 |
private: // Enumerations
|
|
53 |
|
|
54 |
public: // Constructors and destructor
|
|
55 |
|
|
56 |
/**
|
|
57 |
* Two-phased constructor.
|
|
58 |
*/
|
|
59 |
static CNullOutput* NewL();
|
|
60 |
|
|
61 |
/**
|
|
62 |
* Destructor.
|
|
63 |
*/
|
|
64 |
~CNullOutput();
|
|
65 |
|
|
66 |
public: // New functions
|
|
67 |
|
|
68 |
/**
|
|
69 |
* C++ default constructor.
|
|
70 |
*/
|
|
71 |
CNullOutput();
|
|
72 |
|
|
73 |
/**
|
|
74 |
* Write log information or data to the file.
|
|
75 |
* 16 bit.
|
|
76 |
*/
|
|
77 |
TInt Write( TBool aWithTimeStamp,
|
|
78 |
TBool aWithLineBreak,
|
|
79 |
TBool aWithEventRanking,
|
|
80 |
const TDesC& aData );
|
|
81 |
|
|
82 |
/**
|
|
83 |
* Write log information or data to the file.
|
|
84 |
* 8 bit.
|
|
85 |
*/
|
|
86 |
TInt Write( TBool aWithTimeStamp,
|
|
87 |
TBool aWithLineBreak,
|
|
88 |
TBool aWithEventRanking,
|
|
89 |
const TDesC8& aData );
|
|
90 |
|
|
91 |
public: // Functions from base classes
|
|
92 |
|
|
93 |
protected: // New functions
|
|
94 |
|
|
95 |
protected: // Functions from base classes
|
|
96 |
|
|
97 |
private:
|
|
98 |
|
|
99 |
/**
|
|
100 |
* By default Symbian OS constructor is private.
|
|
101 |
*/
|
|
102 |
void ConstructL();
|
|
103 |
|
|
104 |
public: // Data
|
|
105 |
|
|
106 |
protected: // Data
|
|
107 |
|
|
108 |
private: // Data
|
|
109 |
|
|
110 |
public: // Friend classes
|
|
111 |
|
|
112 |
protected: // Friend classes
|
|
113 |
|
|
114 |
private: // Friend classes
|
|
115 |
|
|
116 |
};
|
|
117 |
|
|
118 |
#endif // NULLOUTPUT_H
|
|
119 |
|
|
120 |
// End of File
|