summaryrefslogtreecommitdiff
path: root/src/lib/kdm_util.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-11-19 21:34:56 +0100
committerCarl Hetherington <cth@carlh.net>2023-11-20 07:31:44 +0100
commit16557827b252bd653b15eead479ec5699eda7360 (patch)
treef94f6822143802f2676c44e711984029eb3fb6cc /src/lib/kdm_util.h
parent9d1d75e474bc92d8b0f823141073ad9dd639c8e0 (diff)
Add a dialog to show which screens have potentially-problematic
certificate validity periods when making KDMs (#2645).
Diffstat (limited to 'src/lib/kdm_util.h')
-rw-r--r--src/lib/kdm_util.h28
1 files changed, 25 insertions, 3 deletions
diff --git a/src/lib/kdm_util.h b/src/lib/kdm_util.h
index 398819ae0..8dba1ff98 100644
--- a/src/lib/kdm_util.h
+++ b/src/lib/kdm_util.h
@@ -32,21 +32,43 @@ namespace dcp {
}
-enum class KDMCertificatePeriod {
+enum class KDMCertificateOverlap {
KDM_WITHIN_CERTIFICATE,
KDM_OVERLAPS_CERTIFICATE,
KDM_OUTSIDE_CERTIFICATE
};
+struct KDMCertificatePeriod
+{
+ KDMCertificatePeriod(std::string cinema_name_, std::string screen_name_, dcp::LocalTime from_, dcp::LocalTime to_)
+ : cinema_name(std::move(cinema_name_))
+ , screen_name(std::move(screen_name_))
+ , from(std::move(from_))
+ , to(std::move(to_))
+ {}
+
+ std::string cinema_name;
+ std::string screen_name;
+ KDMCertificateOverlap overlap = KDMCertificateOverlap::KDM_WITHIN_CERTIFICATE;
+ dcp::LocalTime from;
+ dcp::LocalTime to;
+};
+
+
/** @param recipient Some KDM recipient certificate.
* @param kdm_from Proposed KDM start time.
* @param kdm_to Proposed KDM end time.
* @return Relationship between certificate and KDM validity periods.
*/
-KDMCertificatePeriod
-check_kdm_and_certificate_validity_periods(dcp::Certificate const& recipient, dcp::LocalTime kdm_from, dcp::LocalTime kdm_to);
+KDMCertificatePeriod check_kdm_and_certificate_validity_periods(
+ std::string const& cinema_name,
+ std::string const& screen_name,
+ dcp::Certificate const& recipient,
+ dcp::LocalTime kdm_from,
+ dcp::LocalTime kdm_to
+ );
#endif