X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fcoreinfodlg.h;h=15140f791aa297f524502800c82dd1c8c852e1e1;hp=24ba25fa5f787d38dc4eacbeabd46d2c92a7e9e7;hb=aec9c711900a443bfa7860fa86c6e9c86b81a3e7;hpb=76db8cdfbeffaaba359c8e80cf2146da9e9e7f8a diff --git a/src/qtui/coreinfodlg.h b/src/qtui/coreinfodlg.h index 24ba25fa..15140f79 100644 --- a/src/qtui/coreinfodlg.h +++ b/src/qtui/coreinfodlg.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 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 * @@ -18,35 +18,37 @@ * 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); + + /** + * Event handler for core unspported Details button + */ + void on_coreUnsupportedDetails_clicked(); private: Ui::CoreInfoDlg ui; - ClientCoreInfo _coreInfo; + QMap _widgets; }; - - -#endif //COREINFODLG_H