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 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"
26 class ProgressListener
{
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