1//----------------------------------------------------------------------
2//  This software is part of the OpenBeOS distribution and is covered
3//  by the OpenBeOS license.
4//
5//  Copyright (c) 2003 Tyler Dauwalder, tyler@dauwalder.net
6//----------------------------------------------------------------------
7
8/*! \file ConsoleListener.h
9
10	Declarations for a console-based implementation of ProgressListener
11	interface.
12*/
13
14#ifndef _CONSOLE_LISTENER_H
15#define _CONSOLE_LISTENER_H
16
17#include "ProgressListener.h"
18
19class ConsoleListener : public ProgressListener {
20public:
21	ConsoleListener(VerbosityLevel level);
22	virtual void OnStart(const char *sourceDirectory, const char *outputFile,
23	                     const char *udfVolumeName, uint16 udfRevision) const;
24	virtual void OnError(const char *message) const;
25	virtual void OnWarning(const char *message) const;
26	virtual void OnUpdate(VerbosityLevel level, const char *message) const;
27	virtual void OnCompletion(status_t result, const Statistics &statistics) const;
28
29	VerbosityLevel Level() const { return fLevel; }
30private:
31	VerbosityLevel fLevel;
32};
33
34#endif	// _CONSOLE_LISTENER_H
35