diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-11-15 20:16:42 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-11-15 20:16:42 +0000 |
| commit | 3a67f024a614687a811ecb5c96a56fc664f04c3a (patch) | |
| tree | ab8860e151c11b838d88d031c9bb6dc9c3630877 /src/wx/screen_dialog.h | |
| parent | f6caaae7747ed481fbaddcaa6afcfdefbbfc545a (diff) | |
Add user interface for trusted devices.
Diffstat (limited to 'src/wx/screen_dialog.h')
| -rw-r--r-- | src/wx/screen_dialog.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/wx/screen_dialog.h b/src/wx/screen_dialog.h index 7e03b160d..edfb619b5 100644 --- a/src/wx/screen_dialog.h +++ b/src/wx/screen_dialog.h @@ -17,15 +17,16 @@ */ -#include "table_dialog.h" +#include "editable_list.h" #include <dcp/certificate.h> #include <wx/wx.h> #include <boost/shared_ptr.hpp> #include <boost/optional.hpp> class Progress; +class FileDialogWrapper; -class ScreenDialog : public TableDialog +class ScreenDialog : public wxDialog { public: ScreenDialog (wxWindow *, std::string, std::string name = "", boost::optional<dcp::Certificate> c = boost::optional<dcp::Certificate> ()); @@ -38,11 +39,23 @@ private: void load_recipient (boost::filesystem::path); void download_recipient (); void setup_sensitivity (); + void set_recipient (boost::optional<dcp::Certificate>); + std::vector<dcp::Certificate> trusted_devices () { + return _trusted_devices; + } + + void set_trusted_devices (std::vector<dcp::Certificate> d) { + _trusted_devices = d; + } + + wxGridBagSizer* _sizer; wxTextCtrl* _name; wxStaticText* _recipient_thumbprint; wxButton* _get_recipient_from_file; wxButton* _download_recipient; + EditableList<dcp::Certificate, FileDialogWrapper>* _trusted_device_list; boost::optional<dcp::Certificate> _recipient; + std::vector<dcp::Certificate> _trusted_devices; }; |
