diff options
Diffstat (limited to 'src/gui/serverdialog.h')
-rw-r--r-- | src/gui/serverdialog.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/serverdialog.h b/src/gui/serverdialog.h index 611f65e9..1d7db0b2 100644 --- a/src/gui/serverdialog.h +++ b/src/gui/serverdialog.h @@ -116,7 +116,13 @@ class ServerDialog : public Window, MutexLocker lock() { return MutexLocker(&mMutex); } friend class CustomServerDialog; - void saveCustomServers(const ServerInfo ¤tServer = ServerInfo()); + /** + * Saves the new server entry in the custom server list. + * Removes the given entry when the serverInfo is empty. + * Modifies the server entry given at index when it's not -1. + */ + void saveCustomServers(const ServerInfo ¤tServer = ServerInfo(), + int index = -1); private: /** @@ -134,6 +140,7 @@ class ServerDialog : public Window, Button *mQuitButton; Button *mConnectButton; Button *mManualEntryButton; + Button *mModifyButton; Button *mDeleteButton; ListBox *mServersList; |