From eb1cf1f2ccc8bc280ad2428f76f432fe29acdf7d Mon Sep 17 00:00:00 2001 From: Tyler Dauwalder Date: Sun, 23 Nov 2003 22:12:42 +0000 Subject: [PATCH] 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 --- src/apps/bin/makeudfimage/ProgressListener.h | 31 ++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/apps/bin/makeudfimage/ProgressListener.h diff --git a/src/apps/bin/makeudfimage/ProgressListener.h b/src/apps/bin/makeudfimage/ProgressListener.h new file mode 100644 index 0000000000..407564a3de --- /dev/null +++ b/src/apps/bin/makeudfimage/ProgressListener.h @@ -0,0 +1,31 @@ +//---------------------------------------------------------------------- +// This software is part of the OpenBeOS distribution and is covered +// by the OpenBeOS license. +// +// Copyright (c) 2003 Tyler Dauwalder, tyler@dauwalder.net +//---------------------------------------------------------------------- + +/*! \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