X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fcoreinfodlg.h;h=c3ed6761b0d3496f4d5b425fbd9cbc67cdae2eb3;hb=8426fae7e92dfb7608f66be926c68c304b97cb01;hp=0636534bf39d6cee81fd6ccea8aeeaeff5bd0138;hpb=e375f7a6a6de045735a897ef05bf6dcc82770ff5;p=quassel.git diff --git a/src/qtui/coreinfodlg.h b/src/qtui/coreinfodlg.h index 0636534b..c3ed6761 100644 --- a/src/qtui/coreinfodlg.h +++ b/src/qtui/coreinfodlg.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2019 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -22,23 +22,33 @@ #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 * @@ -51,11 +61,11 @@ private slots: 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; };