sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
* FILEOUTPUT.H
|
sl@0
|
16 |
*
|
sl@0
|
17 |
*/
|
sl@0
|
18 |
|
sl@0
|
19 |
|
sl@0
|
20 |
#ifndef __FILEOUTPUT_H
|
sl@0
|
21 |
#define __FILEOUTPUT_H
|
sl@0
|
22 |
|
sl@0
|
23 |
#include <e32std.h>
|
sl@0
|
24 |
#include <f32file.h>
|
sl@0
|
25 |
#include <badesca.h>
|
sl@0
|
26 |
/**
|
sl@0
|
27 |
@file
|
sl@0
|
28 |
@internalComponent
|
sl@0
|
29 |
*/
|
sl@0
|
30 |
class CTextView;
|
sl@0
|
31 |
/**
|
sl@0
|
32 |
Class used by CBandValidator to log results of tests
|
sl@0
|
33 |
Writes information about document being tested to a file.
|
sl@0
|
34 |
If any test fails detailed output will be written to a file
|
sl@0
|
35 |
detailing the contents of the views.
|
sl@0
|
36 |
*/
|
sl@0
|
37 |
class CFileOutput : public CBase
|
sl@0
|
38 |
{
|
sl@0
|
39 |
public:
|
sl@0
|
40 |
IMPORT_C static CFileOutput* NewL();
|
sl@0
|
41 |
// log document attributes
|
sl@0
|
42 |
virtual void WriteDocumentAttributesL(const CTextView& aView);
|
sl@0
|
43 |
// log document positions
|
sl@0
|
44 |
virtual void WriteDocumentPositionsL(const RArray<TInt>& aPositions);
|
sl@0
|
45 |
// log the test view visible lines
|
sl@0
|
46 |
virtual void WriteVisibleTestLinesL(const CDesCArray& aTestLines);
|
sl@0
|
47 |
// log the reference view visible lines
|
sl@0
|
48 |
virtual void WriteVisibleReferenceLinesL(const CDesCArray& aTestLines);
|
sl@0
|
49 |
// log the details of operation being performed
|
sl@0
|
50 |
virtual void WriteOperationDetails(const TDesC& aDesc);
|
sl@0
|
51 |
~CFileOutput();
|
sl@0
|
52 |
protected:
|
sl@0
|
53 |
CFileOutput();
|
sl@0
|
54 |
private:
|
sl@0
|
55 |
virtual void ConstructL();
|
sl@0
|
56 |
void WriteLinesL(const CDesCArray& aLines, RFile& aFile);
|
sl@0
|
57 |
RFs iFs;
|
sl@0
|
58 |
RFile iFile;
|
sl@0
|
59 |
RFile iTestErrorFile;
|
sl@0
|
60 |
RFile iReferenceErrorFile;
|
sl@0
|
61 |
};
|
sl@0
|
62 |
|
sl@0
|
63 |
#endif
|