/*
- Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2022 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
#include "editable_list.h"
#include "lib/screen.h"
#include <dcp/certificate.h>
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
#include <wx/wx.h>
+LIBDCP_ENABLE_WARNINGS
#include <boost/optional.hpp>
wxString,
std::string name = "",
std::string notes = "",
- boost::optional<dcp::Certificate> c = boost::optional<dcp::Certificate>(),
- std::vector<TrustedDevice> d = std::vector<TrustedDevice>()
+ boost::optional<dcp::Certificate> c = {},
+ boost::optional<std::string> f = {},
+ std::vector<TrustedDevice> d = {}
);
std::string name () const;
std::string notes () const;
boost::optional<dcp::Certificate> recipient () const;
+ boost::optional<std::string> recipient_file () const;
std::vector<TrustedDevice> trusted_devices () {
return _trusted_devices;
}
void download_recipient ();
void setup_sensitivity ();
void set_recipient (boost::optional<dcp::Certificate>);
+ void set_recipient_file(std::string file);
void set_trusted_devices (std::vector<TrustedDevice> d) {
_trusted_devices = d;
wxTextCtrl* _name;
wxTextCtrl* _notes;
wxStaticText* _recipient_thumbprint;
+ wxStaticText* _recipient_file;
+ wxStaticText* _subject_common_name;
+ wxStaticText* _subject_organization_name;
+ wxStaticText* _issuer_common_name;
+ wxStaticText* _issuer_organization_name;
+ wxStaticText* _not_valid_before;
+ wxStaticText* _not_valid_after;
wxButton* _get_recipient_from_file;
wxButton* _download_recipient;
EditableList<TrustedDevice, TrustedDeviceDialog>* _trusted_device_list;