aboutsummaryrefslogtreecommitdiff
path: root/src/viewdefault.h
blob: c9a554d79f95adefdd07636b5df6eb657e01184f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef VIEW_DEFAULT_H
#define VIEW_DEFAULT_H

#include "view.h"

class ViewDefault : public View
{
public:
	ViewDefault();
	virtual ~ViewDefault();

	virtual void beginAction( const Bu::FString &sAction );
	virtual void endAction();

	virtual void skipTarget( const Bu::FString &sProfile,
			const Target &rTarget );
	virtual void beginTarget( const Bu::FString &sProfile,
			const Target &rTarget );
	virtual void processTarget( const Bu::FString &sProfile,
			const Target &rTarget );	
	virtual void endTarget();

	virtual void buildRequires( const Target &rTarget );
	virtual void cmdStarted( const Bu::FString &sCmd );
	virtual void cmdFinished( const Bu::FString &sStdOut,
			const Bu::FString &sStdErr, long iExit );

	virtual void userError( const Bu::FString &sMsg );
	virtual void userWarning( const Bu::FString &sMsg );
	virtual void userNotice( const Bu::FString &sMsg );

	virtual void sysError( const Bu::FString &sMsg );
	virtual void sysWarning( const Bu::FString &sMsg );

private:
	bool bFirst;
	int iDepth;
	int iTotal;
	int iCurrent;
};

#endif