X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fqtui%2Fcoreinfodlg.h;h=85a921160886cb1e02e8620039d6a03d7814acab;hb=bd5414d8bfe2be18ba051d4bbf936e9ead0cdf66;hp=5a111f2b0df7a5ecc080aae812c268517e9a38d6;hpb=694f9bfbf7f1af19108461c7e00d133e55082bce;p=quassel.git diff --git a/src/qtui/coreinfodlg.h b/src/qtui/coreinfodlg.h index 5a111f2b..85a92116 100644 --- a/src/qtui/coreinfodlg.h +++ b/src/qtui/coreinfodlg.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-09 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,38 +15,35 @@ * 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. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef COREINFODLG_H -#define COREINFODLG_H +#pragma once -#include "ui_coreinfodlg.h" #include -#include "clientcoreinfo.h" +#include "ui_coreinfodlg.h" +#include "coreinfo.h" +#include "coresessionwidget.h" -class CoreInfoDlg : public QDialog -{ - Q_OBJECT +class CoreInfoDlg : public QDialog { +Q_OBJECT public: - CoreInfoDlg(QWidget *parent = 0); + explicit CoreInfoDlg(QWidget *parent = nullptr); public slots: - void coreInfoAvailable(); + void coreInfoChanged(const QVariantMap &); protected: - virtual void timerEvent(QTimerEvent *) { updateUptime(); } + void timerEvent(QTimerEvent *) override { updateUptime(); } private slots: void on_closeButton_clicked() { reject(); } void updateUptime(); + void disconnectClicked(int peerId); private: Ui::CoreInfoDlg ui; - ClientCoreInfo _coreInfo; + QMap _widgets; }; - - -#endif //COREINFODLG_H