Move server code into library; Server -> ServerDescription.
[dcpomatic.git] / src / wx / server_dialog.cc
index 0ae34b1fcac3888ddc2d4da2feda6ce71d052139..ad0f7a567e7fcab00c1f46d6d56129a7f6587806 100644 (file)
 #include "server_dialog.h"
 #include "wx_util.h"
 
-ServerDialog::ServerDialog (wxWindow* parent, Server* server)
+ServerDialog::ServerDialog (wxWindow* parent, ServerDescription* server)
        : wxDialog (parent, wxID_ANY, wxString (_("Server")))
 {
        if (server) {
                _server = server;
        } else {
-               _server = new Server ("localhost", 1);
+               _server = new ServerDescription ("localhost", 1);
        }
                
        wxFlexGridSizer* table = new wxFlexGridSizer (2, 4, 4);
@@ -73,7 +73,7 @@ ServerDialog::threads_changed (wxCommandEvent &)
        _server->set_threads (_threads->GetValue ());
 }
 
-Server *
+ServerDescription *
 ServerDialog::server () const
 {
        return _server;