Better error handling.
[dcpomatic.git] / src / wx / server_dialog.h
index 05630c377bf416ded597e32bc14f208206269c93..a6f48fe7b71a5e82d296bff1ad3ed55ae329680b 100644 (file)
 #include <wx/wx.h>
 #include <wx/spinctrl.h>
 
-class Server;
+class ServerDescription;
 
 class ServerDialog : public wxDialog
 {
 public:
-       ServerDialog (wxWindow *, Server *);
+       ServerDialog (wxWindow *);
 
-       Server* server () const;
+       void set (ServerDescription);
+       ServerDescription get () const;
 
 private:
-       void host_changed (wxCommandEvent &);
-       void threads_changed (wxCommandEvent &);
-
-       Server* _server;
        wxTextCtrl* _host;
        wxSpinCtrl* _threads;
 };