Make UEFI boot-platform build again
[haiku.git] / src / bin / pkgman / JobStateListener.h
blob155c00c83dd9c3f0ae088e94c0eae7320e5ddd47
1 /*
2 * Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de>
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef JOB_STATE_LISTENER_H
6 #define JOB_STATE_LISTENER_H
9 #include <Job.h>
12 class JobStateListener : public BSupportKit::BJobStateListener {
13 public:
14 enum {
15 EXIT_ON_ERROR = 0x01,
16 EXIT_ON_ABORT = 0x02,
20 public:
21 JobStateListener(
22 uint32 flags = EXIT_ON_ERROR
23 | EXIT_ON_ABORT);
25 virtual void JobStarted(BSupportKit::BJob* job);
26 virtual void JobSucceeded(BSupportKit::BJob* job);
27 virtual void JobFailed(BSupportKit::BJob* job);
28 virtual void JobAborted(BSupportKit::BJob* job);
30 private:
31 uint32 fFlags;
35 #endif // JOB_STATE_LISTENER_H