btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / bin / makeudfimage / ProgressListener.h
blobe8999f5eb6b3f4b47102bea5e8646554bcb7cf20
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 ProgressListener.h
10 Interface for receiving progress information updates from an
11 executing UdfBuilder object.
14 #ifndef _PROGRESS_LISTENER_H
15 #define _PROGRESS_LISTENER_H
17 #include "Statistics.h"
19 enum VerbosityLevel {
20 VERBOSITY_NONE,
21 VERBOSITY_LOW,
22 VERBOSITY_MEDIUM,
23 VERBOSITY_HIGH,
26 class ProgressListener {
27 public:
28 virtual void OnStart(const char *sourceDirectory, const char *outputFile,
29 const char *udfVolumeName, uint16 udfRevision) const = 0;
30 virtual void OnError(const char *message) const = 0;
31 virtual void OnWarning(const char *message) const = 0;
32 virtual void OnUpdate(VerbosityLevel level, const char *message) const = 0;
33 virtual void OnCompletion(status_t result, const Statistics &statistics) const = 0;
36 #endif // _PROGRESS_LISTENER_H