1 /***************************************************************************
2 * Copyright (C) 2005 by The Quassel Team *
3 * devel@quassel-irc.org *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
21 #ifndef _SERVERLIST_H_
22 #define _SERVERLIST_H_
30 #include "ui_serverlistdlg.h"
31 #include "ui_networkeditdlg.h"
32 #include "ui_servereditdlg.h"
34 class ServerListDlg : public QDialog {
38 ServerListDlg(QWidget *parent);
39 virtual ~ServerListDlg();
44 void editIdentities(bool end = false);
45 //virtual void reject() { exit(0); }
46 virtual void accept();
49 void requestConnect(QStringList networks);
53 void updateNetworkTree();
54 void on_showOnStartup_stateChanged(int);
55 void on_addButton_clicked();
56 void on_editButton_clicked();
57 void on_deleteButton_clicked();
63 //VarMap identities; <-- this is now stored in global
66 class NetworkEditDlg : public QDialog {
70 NetworkEditDlg(QWidget *parent, VarMap network);
72 VarMap getNetwork() { return network; }
74 virtual void accept();
77 void on_networkName_textChanged(QString);
78 void on_addServer_clicked();
79 void on_editServer_clicked();
80 void on_deleteServer_clicked();
81 void on_upServer_clicked();
82 void on_downServer_clicked();
83 void on_editIdentities_clicked();
86 void updateServerButtons();
88 Ui::NetworkEditDlg ui;
94 VarMap createDefaultNetwork();
95 QString checkValidity();
98 class ServerEditDlg : public QDialog {
102 ServerEditDlg(QWidget *parent, VarMap server = VarMap());
107 void on_serverAddress_textChanged();
110 Ui::ServerEditDlg ui;