X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fabstractui.h;h=ab332d5275d017272343bbb17b9e33c81873fa81;hb=6c561d2b7b1bb303cfcd8a013179b1838d315910;hp=2231f55f47c717bcbbe1cb19d76f5775ae97ae57;hpb=e8a39b4c3c92e193ab861a3fea84a261bb6fbd24;p=quassel.git diff --git a/src/client/abstractui.h b/src/client/abstractui.h index 2231f55f..ab332d52 100644 --- a/src/client/abstractui.h +++ b/src/client/abstractui.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2020 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -38,17 +38,18 @@ class CLIENT_EXPORT AbstractUi : public QObject Q_OBJECT public: - AbstractUi(QObject *parent = nullptr) : QObject(parent) {} - ~AbstractUi() override {} - virtual void init() = 0; // called after the client is initialized - virtual MessageModel *createMessageModel(QObject *parent) = 0; - virtual AbstractMessageProcessor *createMessageProcessor(QObject *parent) = 0; - -protected slots: + AbstractUi(QObject* parent = nullptr) + : QObject(parent) + {} + virtual void init() = 0; // called after the client is initialized + virtual MessageModel* createMessageModel(QObject* parent) = 0; + virtual AbstractMessageProcessor* createMessageProcessor(QObject* parent) = 0; + +public slots: virtual void connectedToCore() {} virtual void disconnectedFromCore() {} signals: - void connectToCore(const QVariantMap &connInfo); + void connectToCore(const QVariantMap& connInfo); void disconnectFromCore(); };