libroot/posix/stdio: Remove unused portions.
[haiku.git] / src / bin / makeudfimage / ConsoleListener.h
blobeec0f322aa1fb4fd4834186ea24282472017005e
1 //----------------------------------------------------------------------
2 // This software is part of the OpenBeOS distribution and is covered
3 // by the MIT License.
4 //
5 // Copyright (c) 2003 Tyler Dauwalder, tyler@dauwalder.net
6 //----------------------------------------------------------------------
8 /*! \file ConsoleListener.h
10 Declarations for a console-based implementation of ProgressListener
11 interface.
14 #ifndef _CONSOLE_LISTENER_H
15 #define _CONSOLE_LISTENER_H
17 #include "ProgressListener.h"
19 class ConsoleListener : public ProgressListener {
20 public:
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; }
30 private:
31 VerbosityLevel fLevel;
34 #endif // _CONSOLE_LISTENER_H