projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Various playlist editor developments and fixes.
[dcpomatic.git]
/
src
/
lib
/
spl.h
diff --git
a/src/lib/spl.h
b/src/lib/spl.h
index b19ef7e7a1c9f9d7e267a2aab9a9e1ad18a87b93..8dd8eed925b7038f7ef172873eb29b2011efaa10 100644
(file)
--- a/
src/lib/spl.h
+++ b/
src/lib/spl.h
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2018 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2018
-2020
Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
This file is part of DCP-o-matic.
@@
-23,6
+23,7
@@
#include "spl_entry.h"
#include <dcp/util.h>
#include "spl_entry.h"
#include <dcp/util.h>
+#include <boost/signals2.hpp>
class ContentStore;
class ContentStore;
@@
-34,6
+35,13
@@
public:
, _missing (false)
{}
, _missing (false)
{}
+ SPL (std::string name)
+ : _id (dcp::make_uuid())
+ , _name (name)
+ , _missing (false)
+ {}
+
+
void add (SPLEntry e) {
_spl.push_back (e);
}
void add (SPLEntry e) {
_spl.push_back (e);
}
@@
-65,10
+73,17
@@
public:
return _name;
}
return _name;
}
+ void set_name (std::string name) {
+ _name = name;
+ NameChanged ();
+ }
+
bool missing () const {
return _missing;
}
bool missing () const {
return _missing;
}
+ boost::signals2::signal<void ()> NameChanged;
+
private:
std::string _id;
std::string _name;
private:
std::string _id;
std::string _name;