1 //----------------------------------------------------------------------
2 // This software is part of the OpenBeOS distribution and is covered
5 // Copyright (c) 2003 Tyler Dauwalder, tyler@dauwalder.net
6 //----------------------------------------------------------------------
8 /*! \file ConsoleListener.h
10 Declarations for a console-based implementation of ProgressListener
14 #ifndef _CONSOLE_LISTENER_H
15 #define _CONSOLE_LISTENER_H
17 #include "ProgressListener.h"
19 class ConsoleListener
: public ProgressListener
{
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;
29 VerbosityLevel
Level() const { return fLevel
; }
31 VerbosityLevel fLevel
;
34 #endif // _CONSOLE_LISTENER_H