X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=dev-notes%2Fobsolete%2Fserverlist.h;fp=dev-notes%2Fobsolete%2Fserverlist.h;h=0000000000000000000000000000000000000000;hp=1e0ad973ca2dc0f459efc2d411308b631f13f078;hb=84ba80a6fa4f93a45c8d48f0c467076baec06e0e;hpb=51f2737ece6d43c5d1519d6ef41d736ce97ca1a7 diff --git a/dev-notes/obsolete/serverlist.h b/dev-notes/obsolete/serverlist.h deleted file mode 100644 index 1e0ad973..00000000 --- a/dev-notes/obsolete/serverlist.h +++ /dev/null @@ -1,113 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2005 by the Quassel Project * - * devel@quassel-irc.org * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) version 3. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - ***************************************************************************/ - -#ifndef _SERVERLIST_H_ -#define _SERVERLIST_H_ - -#include -#include -#include -#include - -#include "ui_serverlistdlg.h" -#include "ui_networkeditdlg.h" -#include "ui_servereditdlg.h" - -class ServerListDlg : public QDialog { - Q_OBJECT - - public: - ServerListDlg(QWidget *parent); - virtual ~ServerListDlg(); - - bool showOnStartup(); - - public slots: - void editIdentities(bool end = false); - //virtual void reject() { exit(0); } - virtual void accept(); - - signals: - void requestConnect(QString network); - - private slots: - void updateButtons(); - void updateNetworkTree(); - void on_showOnStartup_stateChanged(int); - void on_addButton_clicked(); - void on_editButton_clicked(); - void on_deleteButton_clicked(); - - private: - Ui::ServerListDlg ui; - - //QVariantMap networks; - //QVariantMap identities; <-- this is now stored in global -}; - -class NetworkEditDlg : public QDialog { - Q_OBJECT - - public: - NetworkEditDlg(QWidget *parent, QVariantMap network); - - QVariantMap getNetwork() { return network; } - public slots: - virtual void accept(); - - private slots: - void on_networkName_textChanged(QString); - void on_addServer_clicked(); - void on_editServer_clicked(); - void on_deleteServer_clicked(); - void on_upServer_clicked(); - void on_downServer_clicked(); - void on_editIdentities_clicked(); - - void updateWidgets(); - void updateServerButtons(); - private: - Ui::NetworkEditDlg ui; - - QVariantMap network; - //QVariantMap identities; - QString oldName; - - QVariantMap createDefaultNetwork(); - QString checkValidity(); -}; - -class ServerEditDlg : public QDialog { - Q_OBJECT - - public: - ServerEditDlg(QWidget *parent, QVariantMap server = QVariantMap()); - - QVariantMap getServer(); - - private slots: - void on_serverAddress_textChanged(); - - private: - Ui::ServerEditDlg ui; - -}; - -#endif