projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix incorrect burnt-in subtitle colours when burning into a DCP source (#2261).
[dcpomatic.git]
/
src
/
lib
/
change_signaller.h
diff --git
a/src/lib/change_signaller.h
b/src/lib/change_signaller.h
index 55a5f2dc57f90b5d8307fbd882db9894d02714ae..8612cf42672b2c8ca42ae270bb896925a6cd20d4 100644
(file)
--- a/
src/lib/change_signaller.h
+++ b/
src/lib/change_signaller.h
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2018 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2018
-2021
Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
This file is part of DCP-o-matic.
@@
-18,16
+18,24
@@
*/
*/
+
#ifndef DCPOMATIC_CHANGE_SIGNALLER_H
#define DCPOMATIC_CHANGE_SIGNALLER_H
#ifndef DCPOMATIC_CHANGE_SIGNALLER_H
#define DCPOMATIC_CHANGE_SIGNALLER_H
-#include <boost/noncopyable.hpp>
-template <class T>
-class ChangeSignaller : public boost::noncopyable
+enum class ChangeType
+{
+ PENDING,
+ DONE,
+ CANCELLED
+};
+
+
+template <class T, class P>
+class ChangeSignaller
{
public:
{
public:
- ChangeSignaller (T* t,
int
p)
+ ChangeSignaller (T* t,
P
p)
: _thing (t)
, _property (p)
, _done (true)
: _thing (t)
, _property (p)
, _done (true)
@@
-44,6
+52,9
@@
public:
}
}
}
}
+ ChangeSignaller (ChangeSignaller const&) = delete;
+ ChangeSignaller& operator= (ChangeSignaller const&) = delete;
+
void abort ()
{
_done = false;
void abort ()
{
_done = false;
@@
-51,8
+62,9
@@
public:
private:
T* _thing;
private:
T* _thing;
-
int
_property;
+
P
_property;
bool _done;
};
bool _done;
};
+
#endif
#endif