X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fcoreinfodlg.h;h=6eaa32f52fdc90e97a81a548faeca83eafa2899f;hp=15140f791aa297f524502800c82dd1c8c852e1e1;hb=c1cf157116de7fc3da96203aa6f03c38c7ebb650;hpb=744080e8b9e6d32aaeb3d08eaf1a576076735957 diff --git a/src/qtui/coreinfodlg.h b/src/qtui/coreinfodlg.h index 15140f79..6eaa32f5 100644 --- a/src/qtui/coreinfodlg.h +++ b/src/qtui/coreinfodlg.h @@ -22,33 +22,50 @@ #include -#include "ui_coreinfodlg.h" #include "coreinfo.h" #include "coresessionwidget.h" -class CoreInfoDlg : public QDialog { -Q_OBJECT +#include "ui_coreinfodlg.h" + +class CoreInfoDlg : public QDialog +{ + Q_OBJECT public: - explicit CoreInfoDlg(QWidget *parent = nullptr); + explicit CoreInfoDlg(QWidget* parent = nullptr); public slots: - void coreInfoChanged(const QVariantMap &); + void coreInfoChanged(const QVariantMap&); protected: - void timerEvent(QTimerEvent *) override { updateUptime(); } + void timerEvent(QTimerEvent*) override { updateUptime(); } private slots: + /** + * Requests resynchronization of CoreInfo object for legacy (pre-0.13) cores + * + * This provides compatibility with updating core information for legacy cores, and can be + * removed after protocol break. + */ + void refreshLegacyCoreInfo(); + + /** + * Handler for recreation of CoreInfo object, including first-time setup + * + * Applies existing CoreInfo information to the dialog, too. + */ + void coreInfoResynchronized(); + void on_closeButton_clicked() { reject(); } void updateUptime(); void disconnectClicked(int peerId); /** - * Event handler for core unspported Details button - */ + * Event handler for core unspported Details button + */ void on_coreUnsupportedDetails_clicked(); private: Ui::CoreInfoDlg ui; - QMap _widgets; + QMap _widgets; };