Initial checkin. Abstract interface for receiving updates about

image building progress.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5463 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Tyler Dauwalder
2003-11-23 22:12:42 +00:00
parent bc4f78089e
commit eb1cf1f2cc
@@ -0,0 +1,31 @@
//----------------------------------------------------------------------
// This software is part of the OpenBeOS distribution and is covered
// by the OpenBeOS license.
//
// Copyright (c) 2003 Tyler Dauwalder, [email protected]
//----------------------------------------------------------------------
/*! \file ProgressListener.h
Interface for receiving progress information updates from an
executing UdfBuilder object.
*/
#ifndef _PROGRESS_LISTENER_H
#define _PROGRESS_LISTENER_H
enum VerbosityLevel {
VERBOSITY_NONE,
VERBOSITY_LOW,
VERBOSITY_HIGH,
};
class ProgressListener {
public:
virtual void OnError(const char *message) const = 0;
virtual void OnWarning(const char *message) const = 0;
virtual void OnUpdate(VerbosityLevel level, const char *message) const = 0;
virtual void OnCompletion(bool successful, const char *message) const = 0;
};
#endif // _PROGRESS_LISTENER_H