diff --git a/src/core/abstractwebsocket.h b/src/core/abstractwebsocket.h index 6878e21c..3f63e137 100644 --- a/src/core/abstractwebsocket.h +++ b/src/core/abstractwebsocket.h @@ -1,59 +1,59 @@ /* Copyright (c) 2017-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ABSTRACTWEBSOCKET_H #define ABSTRACTWEBSOCKET_H #include #include #include #include #include "libruqola_private_export.h" class LIBRUQOLACORE_TESTS_EXPORT AbstractWebSocket : public QObject { Q_OBJECT public: explicit AbstractWebSocket(QObject *parent = nullptr); - ~AbstractWebSocket(); + ~AbstractWebSocket() override; virtual void openUrl(const QUrl &url) = 0; virtual qint64 sendTextMessage(const QString &message) = 0; virtual bool isValid() const = 0; virtual void flush() = 0; virtual void close() = 0; virtual QAbstractSocket::SocketError error() const = 0; virtual QUrl requestUrl() const = 0; virtual QWebSocketProtocol::CloseCode closeCode() const = 0; virtual QString closeReason() const = 0; virtual qint64 sendBinaryMessage(const QByteArray &data) = 0; virtual void ignoreSslErrors() = 0; Q_SIGNALS: void disconnected(); void connected(); void textMessageReceived(const QString &message); void sslErrors(const QList &errors); void socketError(QAbstractSocket::SocketError error, const QString &errorString); private: Q_DISABLE_COPY(AbstractWebSocket) }; #endif // ABSTRACTWEBSOCKET_H diff --git a/src/core/accountmanager.h b/src/core/accountmanager.h index e8fa517b..ca9af34b 100644 --- a/src/core/accountmanager.h +++ b/src/core/accountmanager.h @@ -1,72 +1,72 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ACCOUNTMANAGER_H #define ACCOUNTMANAGER_H #include #include "libruqolacore_export.h" class RocketChatAccountModel; class RocketChatAccount; class RocketChatAccountFilterProxyModel; class LIBRUQOLACORE_EXPORT AccountManager : public QObject { Q_OBJECT Q_PROPERTY(QString currentAccount READ currentAccount WRITE setCurrentAccount NOTIFY currentAccountChanged) Q_PROPERTY(RocketChatAccount *account READ account NOTIFY currentAccountChanged) Q_PROPERTY(RocketChatAccountModel *rocketChatAccountModel READ rocketChatAccountModel CONSTANT) Q_PROPERTY(RocketChatAccountFilterProxyModel *rocketChatAccountProxyModel READ rocketChatAccountProxyModel CONSTANT) public: explicit AccountManager(QObject *parent = nullptr); - ~AccountManager(); + ~AccountManager() override; Q_INVOKABLE void removeAccount(const QString &accountName); Q_INVOKABLE void addAccount(const QString &accountName, const QString &username, const QString &url, bool enabled = true); RocketChatAccount *account() const; RocketChatAccountModel *rocketChatAccountModel() const; RocketChatAccountFilterProxyModel *rocketChatAccountProxyModel() const; void addAccount(RocketChatAccount *account); void setCurrentAccount(const QString &accountName); Q_REQUIRED_RESULT QString currentAccount() const; void selectAccount(const QString &accountName); void modifyAccount(const QString &accountName, const QString &username, const QString &url, bool enabled); Q_SIGNALS: void logoutAccountDone(const QString &accountName); void updateNotification(bool hasAlert, int nbUnread, const QString &accountName); void notification(const QString &title, const QString &message, const QPixmap &pixmap); void currentAccountChanged(); private: Q_DISABLE_COPY(AccountManager) void loadAccount(); RocketChatAccount *mCurrentAccount = nullptr; RocketChatAccountModel *mRocketChatAccountModel = nullptr; RocketChatAccountFilterProxyModel *mRocketChatAccountProxyModel = nullptr; }; #endif // ACCOUNTMANAGER_H diff --git a/src/core/authenticationmanager.h b/src/core/authenticationmanager.h index bc91cc81..1f990b4e 100644 --- a/src/core/authenticationmanager.h +++ b/src/core/authenticationmanager.h @@ -1,90 +1,90 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef AUTHENTICATIONMANAGER_H #define AUTHENTICATIONMANAGER_H #include #include #include "libruqolacore_export.h" #include class PluginAuthentication; class PluginUtilData { public: PluginUtilData() { } QStringList mExtraInfo; QString mIdentifier; QString mName; }; class AuthenticationManagerInfo { public: AuthenticationManagerInfo() { } QString metaDataFileNameBaseName; QString metaDataFileName; PluginUtilData pluginData; PluginAuthentication *plugin = nullptr; }; class LIBRUQOLACORE_EXPORT AuthenticationManager : public QObject { Q_OBJECT public: enum OauthType { Unknown = 0, Twitter = 1, FaceBook = 2, GitHub = 4, GitLab = 8, Google = 16, Linkedin = 32, Wordpress = 64, Password = 128 }; Q_ENUMS(OauthType) Q_DECLARE_FLAGS(OauthTypes, OauthType) explicit AuthenticationManager(QObject *parent = nullptr); - ~AuthenticationManager(); + ~AuthenticationManager() override; static AuthenticationManager *self(); Q_REQUIRED_RESULT QVector pluginsList() const; private: Q_DISABLE_COPY(AuthenticationManager) bool initializePluginList(); void loadPlugin(AuthenticationManagerInfo *item); PluginUtilData createPluginMetaData(const KPluginMetaData &metaData); QVector mPluginList; QVector mPluginDataList; }; Q_DECLARE_METATYPE(AuthenticationManager::OauthTypes) Q_DECLARE_METATYPE(AuthenticationManager::OauthType) #endif // AUTHENTICATIONMANAGER_H diff --git a/src/core/autotests/accountmanagertest.h b/src/core/autotests/accountmanagertest.h index d050f251..b8e67a53 100644 --- a/src/core/autotests/accountmanagertest.h +++ b/src/core/autotests/accountmanagertest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ACCOUNTMANAGERTEST_H #define ACCOUNTMANAGERTEST_H #include class AccountManagerTest : public QObject { Q_OBJECT public: explicit AccountManagerTest(QObject *parent = nullptr); - ~AccountManagerTest() = default; + ~AccountManagerTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldAddAccount(); }; #endif // ACCOUNTMANAGERTEST_H diff --git a/src/core/autotests/accountroomsettingstest.h b/src/core/autotests/accountroomsettingstest.h index 4281b5d3..c4a4f3b3 100644 --- a/src/core/autotests/accountroomsettingstest.h +++ b/src/core/autotests/accountroomsettingstest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ACCOUNTROOMSETTINGSTEST_H #define ACCOUNTROOMSETTINGSTEST_H #include class AccountRoomSettingsTest : public QObject { Q_OBJECT public: explicit AccountRoomSettingsTest(QObject *parent = nullptr); - ~AccountRoomSettingsTest() = default; + ~AccountRoomSettingsTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // ACCOUNTROOMSETTINGSTEST_H diff --git a/src/core/autotests/authenticationinfotest.h b/src/core/autotests/authenticationinfotest.h index 45a643f0..656ddd2d 100644 --- a/src/core/autotests/authenticationinfotest.h +++ b/src/core/autotests/authenticationinfotest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef AUTHENTICATIONINFOTEST_H #define AUTHENTICATIONINFOTEST_H #include class AuthenticationInfoTest : public QObject { Q_OBJECT public: explicit AuthenticationInfoTest(QObject *parent = nullptr); - ~AuthenticationInfoTest() = default; + ~AuthenticationInfoTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldAssignValue(); void shouldBeValid(); }; #endif // AUTHENTICATIONINFOTEST_H diff --git a/src/core/autotests/autotranslatelanguagesmodeltest.h b/src/core/autotests/autotranslatelanguagesmodeltest.h index 38a98e95..62916cd8 100644 --- a/src/core/autotests/autotranslatelanguagesmodeltest.h +++ b/src/core/autotests/autotranslatelanguagesmodeltest.h @@ -1,35 +1,35 @@ /* Copyright (c) 2019-2020 Laurent Montel This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef AUTOTRANSLATELANGUAGESMODELTEST_H #define AUTOTRANSLATELANGUAGESMODELTEST_H #include class AutotranslateLanguagesModelTest : public QObject { Q_OBJECT public: explicit AutotranslateLanguagesModelTest(QObject *parent = nullptr); - ~AutotranslateLanguagesModelTest() = default; + ~AutotranslateLanguagesModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // AUTOTRANSLATELANGUAGESMODELTEST_H diff --git a/src/core/autotests/autotranslatelanguagestest.h b/src/core/autotests/autotranslatelanguagestest.h index 0179e81c..3eae59b9 100644 --- a/src/core/autotests/autotranslatelanguagestest.h +++ b/src/core/autotests/autotranslatelanguagestest.h @@ -1,35 +1,35 @@ /* Copyright (c) 2019-2020 Laurent Montel This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef AUTOTRANSLATELANGUAGESTEST_H #define AUTOTRANSLATELANGUAGESTEST_H #include class AutotranslateLanguagesTest : public QObject { Q_OBJECT public: explicit AutotranslateLanguagesTest(QObject *parent = nullptr); - ~AutotranslateLanguagesTest() = default; + ~AutotranslateLanguagesTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // AUTOTRANSLATELANGUAGESTEST_H diff --git a/src/core/autotests/autotranslatelanguagetest.h b/src/core/autotests/autotranslatelanguagetest.h index 49f3d343..f549c969 100644 --- a/src/core/autotests/autotranslatelanguagetest.h +++ b/src/core/autotests/autotranslatelanguagetest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2019-2020 Laurent Montel This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef AUTOTRANSLATELANGUAGETEST_H #define AUTOTRANSLATELANGUAGETEST_H #include class AutotranslateLanguageTest : public QObject { Q_OBJECT public: explicit AutotranslateLanguageTest(QObject *parent = nullptr); - ~AutotranslateLanguageTest() = default; + ~AutotranslateLanguageTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); }; #endif // AUTOTRANSLATELANGUAGETEST_H diff --git a/src/core/autotests/channeltest.h b/src/core/autotests/channeltest.h index 2d90535d..511ed40f 100644 --- a/src/core/autotests/channeltest.h +++ b/src/core/autotests/channeltest.h @@ -1,42 +1,42 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELTEST_H #define CHANNELTEST_H #include class ChannelTest : public QObject { Q_OBJECT public: explicit ChannelTest(QObject *parent = nullptr); - ~ChannelTest() = default; + ~ChannelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldAssignValue(); void shouldCopyValue(); void shouldParseChannel_data(); void shouldParseChannel(); }; #endif // CHANNELTEST_H diff --git a/src/core/autotests/clipboardproxytest.h b/src/core/autotests/clipboardproxytest.h index 5150bb1d..cc0e7c40 100644 --- a/src/core/autotests/clipboardproxytest.h +++ b/src/core/autotests/clipboardproxytest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CLIPBOARDPROXYTEST_H #define CLIPBOARDPROXYTEST_H #include class ClipboardProxyTest : public QObject { Q_OBJECT public: explicit ClipboardProxyTest(QObject *parent = nullptr); - ~ClipboardProxyTest() = default; + ~ClipboardProxyTest() override = default; private Q_SLOTS: void shouldEmitSignals(); }; #endif // CLIPBOARDPROXYTEST_H diff --git a/src/core/autotests/convertertextabstractjobtest.h b/src/core/autotests/convertertextabstractjobtest.h index 5e3cc763..8ffe4267 100644 --- a/src/core/autotests/convertertextabstractjobtest.h +++ b/src/core/autotests/convertertextabstractjobtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CONVERTERTEXTABSTRACTJOBTEST_H #define CONVERTERTEXTABSTRACTJOBTEST_H #include class ConverterTextAbstractJobTest : public QObject { Q_OBJECT public: explicit ConverterTextAbstractJobTest(QObject *parent = nullptr); - ~ConverterTextAbstractJobTest() = default; + ~ConverterTextAbstractJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); }; #endif // CONVERTERTEXTABSTRACTJOBTEST_H diff --git a/src/core/autotests/discussionsfilterproxymodeltest.h b/src/core/autotests/discussionsfilterproxymodeltest.h index 91b864d6..953095c9 100644 --- a/src/core/autotests/discussionsfilterproxymodeltest.h +++ b/src/core/autotests/discussionsfilterproxymodeltest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef DISCUSSIONSFILTERPROXYMODELTEST_H #define DISCUSSIONSFILTERPROXYMODELTEST_H #include class DiscussionsFilterProxyModelTest : public QObject { Q_OBJECT public: explicit DiscussionsFilterProxyModelTest(QObject *parent = nullptr); - ~DiscussionsFilterProxyModelTest() = default; + ~DiscussionsFilterProxyModelTest() override = default; private Q_SLOTS: void shouldAssignValue(); void shouldHaveDefaultValues(); }; #endif // DISCUSSIONSFILTERPROXYMODELTEST_H diff --git a/src/core/autotests/discussionsmodeltest.h b/src/core/autotests/discussionsmodeltest.h index bcd57669..84f2cdca 100644 --- a/src/core/autotests/discussionsmodeltest.h +++ b/src/core/autotests/discussionsmodeltest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef DISCUSSIONSMODELTEST_H #define DISCUSSIONSMODELTEST_H #include class DiscussionsModelTest : public QObject { Q_OBJECT public: explicit DiscussionsModelTest(QObject *parent = nullptr); - ~DiscussionsModelTest() = default; + ~DiscussionsModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); void shouldAssignValues(); }; #endif // DISCUSSIONSMODELTEST_H diff --git a/src/core/autotests/discussionstest.h b/src/core/autotests/discussionstest.h index dbaa2bfe..0af304c8 100644 --- a/src/core/autotests/discussionstest.h +++ b/src/core/autotests/discussionstest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2019-2020 Laurent Montel This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef DISCUSSIONSTEST_H #define DISCUSSIONSTEST_H #include class DiscussionsTest : public QObject { Q_OBJECT public: explicit DiscussionsTest(QObject *parent = nullptr); - ~DiscussionsTest() = default; + ~DiscussionsTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); void shouldLoadDiscussions_data(); void shouldLoadDiscussions(); }; #endif // DISCUSSIONSTEST_H diff --git a/src/core/autotests/discussiontest.h b/src/core/autotests/discussiontest.h index 0eb68458..c8e07700 100644 --- a/src/core/autotests/discussiontest.h +++ b/src/core/autotests/discussiontest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2019-2020 Laurent Montel This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef DISCUSSIONTEST_H #define DISCUSSIONTEST_H #include class DiscussionTest : public QObject { Q_OBJECT public: explicit DiscussionTest(QObject *parent = nullptr); - ~DiscussionTest() = default; + ~DiscussionTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); }; #endif // DISCUSSIONTEST_H diff --git a/src/core/autotests/emojimanagertest.h b/src/core/autotests/emojimanagertest.h index 86a98445..5e57b00a 100644 --- a/src/core/autotests/emojimanagertest.h +++ b/src/core/autotests/emojimanagertest.h @@ -1,43 +1,43 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef EMOJIMANAGERTEST_H #define EMOJIMANAGERTEST_H #include class EmojiManagerTest : public QObject { Q_OBJECT public: explicit EmojiManagerTest(QObject *parent = nullptr); - ~EmojiManagerTest() = default; + ~EmojiManagerTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateHtml(); void shouldChangeServerUrl(); void shouldParseEmoji_data(); void shouldParseEmoji(); }; #endif // EMOJIMANAGERTEST_H diff --git a/src/core/autotests/emojitest.h b/src/core/autotests/emojitest.h index 4236440a..df5fb8fc 100644 --- a/src/core/autotests/emojitest.h +++ b/src/core/autotests/emojitest.h @@ -1,45 +1,45 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef EMOJITEST_H #define EMOJITEST_H #include class EmojiTest : public QObject { Q_OBJECT public: explicit EmojiTest(QObject *parent = nullptr); - ~EmojiTest() = default; + ~EmojiTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldAssignValue(); void shouldCopyValue(); void shouldClearCachedHtml(); void shouldParseEmoji_data(); void shouldParseEmoji(); void shouldGenerateHtml_data(); void shouldGenerateHtml(); }; #endif // EMOJITEST_H diff --git a/src/core/autotests/emoticoncategoriesmodeltest.h b/src/core/autotests/emoticoncategoriesmodeltest.h index 45237546..6ebdbd9f 100644 --- a/src/core/autotests/emoticoncategoriesmodeltest.h +++ b/src/core/autotests/emoticoncategoriesmodeltest.h @@ -1,35 +1,35 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef EMOTICONCATEGORIESMODELTEST_H #define EMOTICONCATEGORIESMODELTEST_H #include class EmoticonCategoriesModelTest : public QObject { Q_OBJECT public: explicit EmoticonCategoriesModelTest(QObject *parent = nullptr); - ~EmoticonCategoriesModelTest() = default; + ~EmoticonCategoriesModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // EMOTICONCATEGORIESMODELTEST_H diff --git a/src/core/autotests/emoticoncategorytest.h b/src/core/autotests/emoticoncategorytest.h index e0826b98..d2985192 100644 --- a/src/core/autotests/emoticoncategorytest.h +++ b/src/core/autotests/emoticoncategorytest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef EMOTICONCATEGORYTEST_H #define EMOTICONCATEGORYTEST_H #include class EmoticonCategoryTest : public QObject { Q_OBJECT public: explicit EmoticonCategoryTest(QObject *parent = nullptr); - ~EmoticonCategoryTest() = default; + ~EmoticonCategoryTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // EMOTICONCATEGORYTEST_H diff --git a/src/core/autotests/emoticonmodeltest.h b/src/core/autotests/emoticonmodeltest.h index e93dede8..1295c462 100644 --- a/src/core/autotests/emoticonmodeltest.h +++ b/src/core/autotests/emoticonmodeltest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef EMOTICONMODELTEST_H #define EMOTICONMODELTEST_H #include class EmoticonModelTest : public QObject { Q_OBJECT public: explicit EmoticonModelTest(QObject *parent = nullptr); - ~EmoticonModelTest() = default; + ~EmoticonModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldAssignCategory(); }; #endif // EMOTICONMODELTEST_H diff --git a/src/core/autotests/fileattachmentstest.h b/src/core/autotests/fileattachmentstest.h index b6de4ff5..5b51fa9c 100644 --- a/src/core/autotests/fileattachmentstest.h +++ b/src/core/autotests/fileattachmentstest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef FILEATTACHMENTSTEST_H #define FILEATTACHMENTSTEST_H #include class FileAttachmentsTest : public QObject { Q_OBJECT public: explicit FileAttachmentsTest(QObject *parent = nullptr); - ~FileAttachmentsTest() = default; + ~FileAttachmentsTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // FILEATTACHMENTSTEST_H diff --git a/src/core/autotests/filesforroomfilterproxymodeltest.h b/src/core/autotests/filesforroomfilterproxymodeltest.h index c083ed18..2e9058a5 100644 --- a/src/core/autotests/filesforroomfilterproxymodeltest.h +++ b/src/core/autotests/filesforroomfilterproxymodeltest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef FILESFORROOMFILTERPROXYMODELTEST_H #define FILESFORROOMFILTERPROXYMODELTEST_H #include class FilesForRoomFilterProxyModelTest : public QObject { Q_OBJECT public: explicit FilesForRoomFilterProxyModelTest(QObject *parent = nullptr); - ~FilesForRoomFilterProxyModelTest() = default; + ~FilesForRoomFilterProxyModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldHaveDefaultValues(); void shouldAssignValue(); }; #endif // FILESFORROOMFILTERPROXYMODELTEST_H diff --git a/src/core/autotests/filesforroommodeltest.h b/src/core/autotests/filesforroommodeltest.h index a443fcb6..8093e418 100644 --- a/src/core/autotests/filesforroommodeltest.h +++ b/src/core/autotests/filesforroommodeltest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef FILESFORROOMMODELTEST_H #define FILESFORROOMMODELTEST_H #include class FilesForRoomModelTest : public QObject { Q_OBJECT public: explicit FilesForRoomModelTest(QObject *parent = nullptr); - ~FilesForRoomModelTest() = default; + ~FilesForRoomModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldAddFiles(); void shouldVerifyData(); }; #endif // FILESFORROOMMODELTEST_H diff --git a/src/core/autotests/filetest.h b/src/core/autotests/filetest.h index 32619216..aea3d878 100644 --- a/src/core/autotests/filetest.h +++ b/src/core/autotests/filetest.h @@ -1,40 +1,40 @@ /* Copyright (c) 2018-2020 Laurent Montel This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef FILETEST_H #define FILETEST_H #include class FileTest : public QObject { Q_OBJECT public: explicit FileTest(QObject *parent = nullptr); - ~FileTest() = default; + ~FileTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldAssignValue(); void shouldCopyValue(); void shouldParseFile_data(); void shouldParseFile(); }; #endif // FILESTEST_H diff --git a/src/core/autotests/inputcompletermodeltest.h b/src/core/autotests/inputcompletermodeltest.h index ebe68d10..41d7b3ee 100644 --- a/src/core/autotests/inputcompletermodeltest.h +++ b/src/core/autotests/inputcompletermodeltest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef INPUTCOMPLETERMODELTEST_H #define INPUTCOMPLETERMODELTEST_H #include class InputCompleterModelTest : public QObject { Q_OBJECT public: explicit InputCompleterModelTest(QObject *parent = nullptr); - ~InputCompleterModelTest() = default; + ~InputCompleterModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldAssignValues(); void shouldLoadValueFromJson(); void shouldClearModel(); }; #endif // INPUTCOMPLETERMODELTEST_H diff --git a/src/core/autotests/inputtextmanagertest.h b/src/core/autotests/inputtextmanagertest.h index 95c58994..8db27c59 100644 --- a/src/core/autotests/inputtextmanagertest.h +++ b/src/core/autotests/inputtextmanagertest.h @@ -1,43 +1,43 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef INPUTTEXTMANAGERTEST_H #define INPUTTEXTMANAGERTEST_H #include class InputTextManagerTest : public QObject { Q_OBJECT public: explicit InputTextManagerTest(QObject *parent = nullptr); - ~InputTextManagerTest() = default; + ~InputTextManagerTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldReplaceWord_data(); void shouldReplaceWord(); void shouldSearchWord_data(); void shouldSearchWord(); }; #endif // INPUTTEXTMANAGERTEST_H diff --git a/src/core/autotests/listmessagesmodelfilterproxymodeltest.h b/src/core/autotests/listmessagesmodelfilterproxymodeltest.h index 26612e87..7410fb9e 100644 --- a/src/core/autotests/listmessagesmodelfilterproxymodeltest.h +++ b/src/core/autotests/listmessagesmodelfilterproxymodeltest.h @@ -1,35 +1,35 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef PINNEDMESSAGEMODELFILTERPROXYMODELTEST_H #define PINNEDMESSAGEMODELFILTERPROXYMODELTEST_H #include class ListMessagesModelFilterProxyModelTest : public QObject { Q_OBJECT public: explicit ListMessagesModelFilterProxyModelTest(QObject *parent = nullptr); - ~ListMessagesModelFilterProxyModelTest() = default; + ~ListMessagesModelFilterProxyModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // PINNEDMESSAGEMODELFILTERPROXYMODELTEST_H diff --git a/src/core/autotests/listmessagesmodeltest.h b/src/core/autotests/listmessagesmodeltest.h index 7c4c0149..e69b17ad 100644 --- a/src/core/autotests/listmessagesmodeltest.h +++ b/src/core/autotests/listmessagesmodeltest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef PINNEDMESSAGEMODELTEST_H #define PINNEDMESSAGEMODELTEST_H #include class ListMessagesModelTest : public QObject { Q_OBJECT public: explicit ListMessagesModelTest(QObject *parent = nullptr); - ~ListMessagesModelTest() = default; + ~ListMessagesModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // PINNEDMESSAGEMODELTEST_H diff --git a/src/core/autotests/loadrecenthistorymanagertest.h b/src/core/autotests/loadrecenthistorymanagertest.h index c7b1ea01..e15a0c5b 100644 --- a/src/core/autotests/loadrecenthistorymanagertest.h +++ b/src/core/autotests/loadrecenthistorymanagertest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef LOADRECENTHISTORYMANAGERTEST_H #define LOADRECENTHISTORYMANAGERTEST_H #include class LoadRecentHistoryManagerTest : public QObject { Q_OBJECT public: explicit LoadRecentHistoryManagerTest(QObject *parent = nullptr); - ~LoadRecentHistoryManagerTest() = default; + ~LoadRecentHistoryManagerTest() override = default; private Q_SLOTS: void shouldIncreaseTimer(); }; #endif // LOADRECENTHISTORYMANAGERTEST_H diff --git a/src/core/autotests/loginmethodmodeltest.h b/src/core/autotests/loginmethodmodeltest.h index 86447eb9..82301c76 100644 --- a/src/core/autotests/loginmethodmodeltest.h +++ b/src/core/autotests/loginmethodmodeltest.h @@ -1,40 +1,40 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef LOGINMETHODMODELTEST_H #define LOGINMETHODMODELTEST_H #include class LoginMethodModelTest : public QObject { Q_OBJECT public: explicit LoginMethodModelTest(QObject *parent = nullptr); - ~LoginMethodModelTest() = default; + ~LoginMethodModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldClearModel(); void shouldAssignValues(); void shouldEmitLoginMethodChanged(); }; #endif // LOGINMETHODMODELTEST_H diff --git a/src/core/autotests/managerdatapathstest.h b/src/core/autotests/managerdatapathstest.h index cfbc53a5..ca43d8c0 100644 --- a/src/core/autotests/managerdatapathstest.h +++ b/src/core/autotests/managerdatapathstest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MANAGERDATAPATHSTEST_H #define MANAGERDATAPATHSTEST_H #include class ManagerDataPathsTest : public QObject { Q_OBJECT public: explicit ManagerDataPathsTest(QObject *parent = nullptr); - ~ManagerDataPathsTest() = default; + ~ManagerDataPathsTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); }; #endif // MANAGERDATAPATHSTEST_H diff --git a/src/core/autotests/messageattachmenttest.h b/src/core/autotests/messageattachmenttest.h index cdc443f0..d0edd921 100644 --- a/src/core/autotests/messageattachmenttest.h +++ b/src/core/autotests/messageattachmenttest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2017-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MESSAGEATTACHMENTTEST_H #define MESSAGEATTACHMENTTEST_H #include class MessageAttachmentTest : public QObject { Q_OBJECT public: explicit MessageAttachmentTest(QObject *parent = nullptr); - ~MessageAttachmentTest() = default; + ~MessageAttachmentTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldSerializeData(); void shouldAllowToDownloadAttachment(); }; #endif // MESSAGEATTACHMENTTEST_H diff --git a/src/core/autotests/messagemodeltest.h b/src/core/autotests/messagemodeltest.h index c6bfc61b..5989c05e 100644 --- a/src/core/autotests/messagemodeltest.h +++ b/src/core/autotests/messagemodeltest.h @@ -1,43 +1,43 @@ /* Copyright (c) 2017-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MESSAGEMODELTEST_H #define MESSAGEMODELTEST_H #include class MessageModelTest : public QObject { Q_OBJECT public: explicit MessageModelTest(QObject *parent = nullptr); - ~MessageModelTest() = default; + ~MessageModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldAddMessage(); void shouldRemoveMessage(); void shouldRemoveNotExistingMessage(); void shouldDetectDateChange(); void shouldAddMessages(); void shouldUpdateFirstMessage(); }; #endif // MESSAGEMODELTEST_H diff --git a/src/core/autotests/messagepinnedtest.h b/src/core/autotests/messagepinnedtest.h index 85dca95d..77669470 100644 --- a/src/core/autotests/messagepinnedtest.h +++ b/src/core/autotests/messagepinnedtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MESSAGEPINNEDTEST_H #define MESSAGEPINNEDTEST_H #include class MessagePinnedTest : public QObject { Q_OBJECT public: explicit MessagePinnedTest(QObject *parent = nullptr); - ~MessagePinnedTest() = default; + ~MessagePinnedTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); }; #endif // MESSAGEPINNEDTEST_H diff --git a/src/core/autotests/messagestarredtest.h b/src/core/autotests/messagestarredtest.h index 9c41ae65..c88c4318 100644 --- a/src/core/autotests/messagestarredtest.h +++ b/src/core/autotests/messagestarredtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MESSAGESTARREDTEST_H #define MESSAGESTARREDTEST_H #include class MessageStarredTest : public QObject { Q_OBJECT public: explicit MessageStarredTest(QObject *parent = nullptr); - ~MessageStarredTest() = default; + ~MessageStarredTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); }; #endif // MESSAGESTARREDTEST_H diff --git a/src/core/autotests/messagetest.h b/src/core/autotests/messagetest.h index 182ffc56..b3e1a8ce 100644 --- a/src/core/autotests/messagetest.h +++ b/src/core/autotests/messagetest.h @@ -1,44 +1,44 @@ /* Copyright (c) 2017-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MESSAGETEST_H #define MESSAGETEST_H #include class MessageTest : public QObject { Q_OBJECT public: explicit MessageTest(QObject *parent = nullptr); - ~MessageTest() = default; + ~MessageTest() override = default; private Q_SLOTS: void shouldParseMessage_data(); void shouldParseMessage(); void shouldSerializeData(); void shouldParseJsonMessage_data(); void shouldParseJsonMessage(); void shouldUpdateJsonMessage_data(); void shouldUpdateJsonMessage(); }; #endif // MESSAGETEST_H diff --git a/src/core/autotests/messagetranslationtest.h b/src/core/autotests/messagetranslationtest.h index af0acb97..f0c9fcb5 100644 --- a/src/core/autotests/messagetranslationtest.h +++ b/src/core/autotests/messagetranslationtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MESSAGETRANSLATIONTEST_H #define MESSAGETRANSLATIONTEST_H #include class MessageTranslationTest : public QObject { Q_OBJECT public: explicit MessageTranslationTest(QObject *parent = nullptr); - ~MessageTranslationTest() = default; + ~MessageTranslationTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // MESSAGETRANSLATIONTEST_H diff --git a/src/core/autotests/messageurltest.h b/src/core/autotests/messageurltest.h index 0f6f148e..a928389e 100644 --- a/src/core/autotests/messageurltest.h +++ b/src/core/autotests/messageurltest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2017-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MESSAGEURLTEST_H #define MESSAGEURLTEST_H #include class MessageUrlTest : public QObject { Q_OBJECT public: explicit MessageUrlTest(QObject *parent = nullptr); - ~MessageUrlTest() = default; + ~MessageUrlTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldSerializeData(); }; #endif // MESSAGEURLTEST_H diff --git a/src/core/autotests/notificationdesktopdurationpreferencemodeltest.h b/src/core/autotests/notificationdesktopdurationpreferencemodeltest.h index b0396269..351c8b76 100644 --- a/src/core/autotests/notificationdesktopdurationpreferencemodeltest.h +++ b/src/core/autotests/notificationdesktopdurationpreferencemodeltest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef NOTIFICATIONDESKTOPDURATIONPREFERENCEMODELTEST_H #define NOTIFICATIONDESKTOPDURATIONPREFERENCEMODELTEST_H #include class NotificationDesktopDurationPreferenceModelTest : public QObject { Q_OBJECT public: explicit NotificationDesktopDurationPreferenceModelTest(QObject *parent = nullptr); - ~NotificationDesktopDurationPreferenceModelTest() = default; + ~NotificationDesktopDurationPreferenceModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); }; #endif // NOTIFICATIONDESKTOPDURATIONPREFERENCEMODELTEST_H diff --git a/src/core/autotests/notificationdesktopsoundpreferencemodeltest.h b/src/core/autotests/notificationdesktopsoundpreferencemodeltest.h index d53cf93f..695641c8 100644 --- a/src/core/autotests/notificationdesktopsoundpreferencemodeltest.h +++ b/src/core/autotests/notificationdesktopsoundpreferencemodeltest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef NOTIFICATIONDESKTOPSOUNDPREFERENCEMODELTEST_H #define NOTIFICATIONDESKTOPSOUNDPREFERENCEMODELTEST_H #include class NotificationDesktopSoundPreferenceModelTest : public QObject { Q_OBJECT public: explicit NotificationDesktopSoundPreferenceModelTest(QObject *parent = nullptr); - ~NotificationDesktopSoundPreferenceModelTest() = default; + ~NotificationDesktopSoundPreferenceModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); }; #endif // NOTIFICATIONDESKTOPSOUNDPREFERENCEMODELTEST_H diff --git a/src/core/autotests/notificationoptionstest.h b/src/core/autotests/notificationoptionstest.h index 834738b1..676c763d 100644 --- a/src/core/autotests/notificationoptionstest.h +++ b/src/core/autotests/notificationoptionstest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef NOTIFICATIONOPTIONSTEST_H #define NOTIFICATIONOPTIONSTEST_H #include class NotificationOptionsTest : public QObject { Q_OBJECT public: explicit NotificationOptionsTest(QObject *parent = nullptr); - ~NotificationOptionsTest() = default; + ~NotificationOptionsTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldAssignValue(); }; #endif // NOTIFICATIONOPTIONSTEST_H diff --git a/src/core/autotests/notificationpreferencemodeltest.h b/src/core/autotests/notificationpreferencemodeltest.h index 6d0cb3e9..9782c7bc 100644 --- a/src/core/autotests/notificationpreferencemodeltest.h +++ b/src/core/autotests/notificationpreferencemodeltest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef NOTIFICATIONPREFERENCEMODELTEST_H #define NOTIFICATIONPREFERENCEMODELTEST_H #include class NotificationPreferenceModelTest : public QObject { Q_OBJECT public: explicit NotificationPreferenceModelTest(QObject *parent = nullptr); - ~NotificationPreferenceModelTest() = default; + ~NotificationPreferenceModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); }; #endif // NOTIFICATIONPREFERENCEMODELTEST_H diff --git a/src/core/autotests/notificationpreferencestest.h b/src/core/autotests/notificationpreferencestest.h index 9c2e82e9..6e56d992 100644 --- a/src/core/autotests/notificationpreferencestest.h +++ b/src/core/autotests/notificationpreferencestest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef NOTIFICATIONPREFERENCESTEST_H #define NOTIFICATIONPREFERENCESTEST_H #include class NotificationPreferencesTest : public QObject { Q_OBJECT public: explicit NotificationPreferencesTest(QObject *parent = nullptr); - ~NotificationPreferencesTest() = default; + ~NotificationPreferencesTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // NOTIFICATIONPREFERENCESTEST_H diff --git a/src/core/autotests/notificationtest.h b/src/core/autotests/notificationtest.h index 67181312..29e8cc92 100644 --- a/src/core/autotests/notificationtest.h +++ b/src/core/autotests/notificationtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef NOTIFICATIONTEST_H #define NOTIFICATIONTEST_H #include class NotificationTest : public QObject { Q_OBJECT public: explicit NotificationTest(QObject *parent = nullptr); - ~NotificationTest() = default; + ~NotificationTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldChangeStatus(); }; #endif // NOTIFICATIONTEST_H diff --git a/src/core/autotests/otrmanagertest.h b/src/core/autotests/otrmanagertest.h index 455f876b..5d8b7e40 100644 --- a/src/core/autotests/otrmanagertest.h +++ b/src/core/autotests/otrmanagertest.h @@ -1,33 +1,33 @@ /* Copyright (c) 2018-2020 Laurent Montel This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef OTRMANAGERTEST_H #define OTRMANAGERTEST_H #include class OtrManagerTest : public QObject { Q_OBJECT public: explicit OtrManagerTest(QObject *parent = nullptr); - ~OtrManagerTest() = default; + ~OtrManagerTest() override = default; }; #endif // OTRMANAGERTEST_H diff --git a/src/core/autotests/otrtest.h b/src/core/autotests/otrtest.h index ba75a83b..add4d239 100644 --- a/src/core/autotests/otrtest.h +++ b/src/core/autotests/otrtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef OTRTEST_H #define OTRTEST_H #include class OtrTest : public QObject { Q_OBJECT public: explicit OtrTest(QObject *parent = nullptr); - ~OtrTest() = default; + ~OtrTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldParseOtr_data(); void shouldParseOtr(); }; #endif // OTRTEST_H diff --git a/src/core/autotests/reactionstest.h b/src/core/autotests/reactionstest.h index efa4a646..116bbcca 100644 --- a/src/core/autotests/reactionstest.h +++ b/src/core/autotests/reactionstest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef REACTIONSTEST_H #define REACTIONSTEST_H #include class ReactionsTest : public QObject { Q_OBJECT public: explicit ReactionsTest(QObject *parent = nullptr); - ~ReactionsTest() = default; + ~ReactionsTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldParseReactions_data(); void shouldParseReactions(); }; #endif // REACTIONSTEST_H diff --git a/src/core/autotests/reactiontest.h b/src/core/autotests/reactiontest.h index cc74db08..39a5b850 100644 --- a/src/core/autotests/reactiontest.h +++ b/src/core/autotests/reactiontest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef REACTIONTEST_H #define REACTIONTEST_H #include class ReactionTest : public QObject { Q_OBJECT public: explicit ReactionTest(QObject *parent = nullptr); - ~ReactionTest() = default; + ~ReactionTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldReturnCount(); void shouldShowReactionsToolTip(); }; #endif // REACTIONTEST_H diff --git a/src/core/autotests/receivetypingnotificationmanagertest.h b/src/core/autotests/receivetypingnotificationmanagertest.h index 7f764783..00ff6203 100644 --- a/src/core/autotests/receivetypingnotificationmanagertest.h +++ b/src/core/autotests/receivetypingnotificationmanagertest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2018-2020 Laurent Montel This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef RECEIVETYPINGNOTIFICATIONMANAGERTEST_H #define RECEIVETYPINGNOTIFICATIONMANAGERTEST_H #include class ReceiveTypingNotificationManagerTest : public QObject { Q_OBJECT public: explicit ReceiveTypingNotificationManagerTest(QObject *parent = nullptr); - ~ReceiveTypingNotificationManagerTest() = default; + ~ReceiveTypingNotificationManagerTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); void shouldAddNotifications(); }; #endif // RECEIVETYPINGNOTIFICATIONMANAGERTEST_H diff --git a/src/core/autotests/rocketchataccountfilterproxymodeltest.h b/src/core/autotests/rocketchataccountfilterproxymodeltest.h index 3d1847e6..b9508386 100644 --- a/src/core/autotests/rocketchataccountfilterproxymodeltest.h +++ b/src/core/autotests/rocketchataccountfilterproxymodeltest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROCKETCHATACCOUNTFILTERPROXYMODELTEST_H #define ROCKETCHATACCOUNTFILTERPROXYMODELTEST_H #include class RocketChatAccountFilterProxyModelTest : public QObject { Q_OBJECT public: explicit RocketChatAccountFilterProxyModelTest(QObject *parent = nullptr); - ~RocketChatAccountFilterProxyModelTest() = default; + ~RocketChatAccountFilterProxyModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); }; #endif // ROCKETCHATACCOUNTFILTERPROXYMODELTEST_H diff --git a/src/core/autotests/rocketchataccountmodeltest.h b/src/core/autotests/rocketchataccountmodeltest.h index 2374ce97..494333b6 100644 --- a/src/core/autotests/rocketchataccountmodeltest.h +++ b/src/core/autotests/rocketchataccountmodeltest.h @@ -1,40 +1,40 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROCKETCHATACCOUNTMODELTEST_H #define ROCKETCHATACCOUNTMODELTEST_H #include class RocketChatAccountModelTest : public QObject { Q_OBJECT public: explicit RocketChatAccountModelTest(QObject *parent = nullptr); - ~RocketChatAccountModelTest() = default; + ~RocketChatAccountModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldRemoveAccount(); void shouldAddAccountValue(); void shouldClearAccounts(); }; #endif // ROCKETCHATACCOUNTMODELTEST_H diff --git a/src/core/autotests/rocketchataccountsettingstest.h b/src/core/autotests/rocketchataccountsettingstest.h index 272afe6f..e539135b 100644 --- a/src/core/autotests/rocketchataccountsettingstest.h +++ b/src/core/autotests/rocketchataccountsettingstest.h @@ -1,49 +1,49 @@ /* Copyright (c) 2017-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROCKETCHATACCOUNTSETTINGSTEST_H #define ROCKETCHATACCOUNTSETTINGSTEST_H #include class RocketChatAccountSettingsTest : public QObject { Q_OBJECT public: explicit RocketChatAccountSettingsTest(QObject *parent = nullptr); - ~RocketChatAccountSettingsTest() = default; + ~RocketChatAccountSettingsTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); void shouldEmitSignalWhenSetServerURLChanged(); void shouldEmitSignalWhenUserNameChanged(); void shouldEmitSignalWhenUserIDChanged(); void shouldEmitSignalWhenLoginStatusChanged(); void shouldSetAccountName(); void shouldSetUserID(); void shouldsetAuthToken(); void shouldSetServerUrl(); void shouldSetUserName(); void shouldSetPassword(); void shouldLogout(); void shouldNotEmitSignalWhenNewUsernameIsSameAsOld(); void shouldNotEmitSignalWhenNewServerUrlIsSameAsOld(); }; #endif // ROCKETCHATACCOUNTSETTINGSTEST_H diff --git a/src/core/autotests/rocketchataccounttest.h b/src/core/autotests/rocketchataccounttest.h index 6f2a6476..fb8551b8 100644 --- a/src/core/autotests/rocketchataccounttest.h +++ b/src/core/autotests/rocketchataccounttest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROCKETCHATACCOUNTTEST_H #define ROCKETCHATACCOUNTTEST_H #include class RocketChatAccountTest : public QObject { Q_OBJECT public: explicit RocketChatAccountTest(QObject *parent = nullptr); - ~RocketChatAccountTest() = default; + ~RocketChatAccountTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); }; #endif // ROCKETCHATACCOUNTTEST_H diff --git a/src/core/autotests/rocketchatcachetest.h b/src/core/autotests/rocketchatcachetest.h index 09adfe84..da76e7d5 100644 --- a/src/core/autotests/rocketchatcachetest.h +++ b/src/core/autotests/rocketchatcachetest.h @@ -1,34 +1,34 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROCKETCHATCACHETEST_H #define ROCKETCHATCACHETEST_H #include class RocketChatCacheTest : public QObject { Q_OBJECT public: explicit RocketChatCacheTest(QObject *parent = nullptr); - ~RocketChatCacheTest() = default; + ~RocketChatCacheTest() override = default; }; #endif // ROCKETCHATCACHETEST_H diff --git a/src/core/autotests/rocketchatmessagetest.h b/src/core/autotests/rocketchatmessagetest.h index 6656a581..ef4a0485 100644 --- a/src/core/autotests/rocketchatmessagetest.h +++ b/src/core/autotests/rocketchatmessagetest.h @@ -1,105 +1,105 @@ /* Copyright (c) 2017-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROCKETCHATMESSAGETEST_H #define ROCKETCHATMESSAGETEST_H #include class RocketChatMessageTest : public QObject { Q_OBJECT public: explicit RocketChatMessageTest(QObject *parent = nullptr); - ~RocketChatMessageTest() = default; + ~RocketChatMessageTest() override = default; private Q_SLOTS: void shouldGenerateSetTemporaryStatus(); void shouldHideRoom(); void shouldLeaveRoom(); void shouldOpenRoom(); void shouldUnarchiveRoom(); void shouldArchiveRoom(); void shouldEraseRoom(); void shouldGetRoomRoles(); void shouldSetRoomTopic(); void shouldToggleFavorite(); void shouldSetRoomName(); void shouldSetRoomDescription(); void shouldSetRoomIsReadOnly(); void shouldSetRoomIsDefault(); void shouldJoinRoom(); void shouldSetRoomJoinCode(); void shouldSetDefaultStatus(); void shouldInformTypingStatus(); void shouldCreateRoom(); void shouldCreateRoom_data(); void shouldCreatePrivateGroup(); void shouldCreatePrivateGroup_data(); void shouldSetReaction(); void shouldDeleteMessage(); void shouldSearchMessage(); void shouldUserAutoComplete(); void shouldSendFileMessage(); #if 0 RocketChatMessage::RocketChatMessageResult RocketChatMessage::getUsersOfRoom(const QString &roomId, bool showAll, quint64 id) RocketChatMessage::RocketChatMessageResult setRoomHasSystemMessages(const QString &roomId, bool systemMessages, quint64 id); RocketChatMessage::RocketChatMessageResult readMessages(const QString &roomID, quint64 id); RocketChatMessage::RocketChatMessageResult getSubscriptions(const QDateTime &lastUpdate, quint64 id); #endif void shouldSetRoomAnnouncement(); void shouldChannelAndPrivateAutocomplete(); void shouldSplotlightWithoutUsers(); void shouldSplotlightWithoutRooms(); void shouldAddUserToRoom(); void shouldLogin(); void shouldLoginCode(); void inputChannelAutocomplete(); void inputUserAutocomplete(); void shouldLoginProvider(); void blockUser(); void unBlockUser(); void disableNotifications(); void hideUnreadStatus(); void audioNotifications(); void desktopNotifications(); void emailNotifications(); void mobilePushNotifications(); void unreadAlert(); void deleteFileMessage(); void shouldSetRoomType(); void ignoreUser(); private: void compareFile(const QString &data, const QString &name); }; #endif // ROCKETCHATMESSAGETEST_H diff --git a/src/core/autotests/rolestest.h b/src/core/autotests/rolestest.h index 22a19373..d3352c61 100644 --- a/src/core/autotests/rolestest.h +++ b/src/core/autotests/rolestest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROLESTEST_H #define ROLESTEST_H #include class RolesTest : public QObject { Q_OBJECT public: explicit RolesTest(QObject *parent = nullptr); - ~RolesTest() = default; + ~RolesTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldFindRoles(); void shouldLoadRoles(); void shouldLoadRoles_data(); }; #endif // ROLESTEST_H diff --git a/src/core/autotests/roletest.h b/src/core/autotests/roletest.h index 0d29e087..800371db 100644 --- a/src/core/autotests/roletest.h +++ b/src/core/autotests/roletest.h @@ -1,40 +1,40 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROLETEST_H #define ROLETEST_H #include class RoleTest : public QObject { Q_OBJECT public: explicit RoleTest(QObject *parent = nullptr); - ~RoleTest() = default; + ~RoleTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldBeValid(); void shouldLoadRoles_data(); void shouldLoadRoles(); void shouldVerifyHasRoles(); }; #endif // ROLETEST_H diff --git a/src/core/autotests/roomfilterproxymodeltest.h b/src/core/autotests/roomfilterproxymodeltest.h index 3231c4e3..509129d9 100644 --- a/src/core/autotests/roomfilterproxymodeltest.h +++ b/src/core/autotests/roomfilterproxymodeltest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROOMFILTERPROXYMODELTEST_H #define ROOMFILTERPROXYMODELTEST_H #include class RoomFilterProxyModelTest : public QObject { Q_OBJECT public: explicit RoomFilterProxyModelTest(QObject *parent = nullptr); - ~RoomFilterProxyModelTest() = default; + ~RoomFilterProxyModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); }; #endif // ROOMFILTERPROXYMODELTEST_H diff --git a/src/core/autotests/roommodeltest.h b/src/core/autotests/roommodeltest.h index a9e501dc..da11d0d3 100644 --- a/src/core/autotests/roommodeltest.h +++ b/src/core/autotests/roommodeltest.h @@ -1,52 +1,52 @@ /* Copyright (c) 2017-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROOMMODELTEST_H #define ROOMMODELTEST_H #include class RoomModelTest : public QObject { Q_OBJECT public: explicit RoomModelTest(QObject *parent = nullptr); - ~RoomModelTest() = default; + ~RoomModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); void shouldReturnRowCount(); void shouldFindRoom(); void shouldAddRoom(); void shouldUpdateRoom(); void shouldUpdateRoomFromQJsonObject(); void shouldUpdateSubcriptionActionRemoved(); void shouldUpdateSubcriptionActionInserted(); void shouldUpdateSubcriptionActionUpdated(); void shouldClear(); void shouldReset(); void shouldReturnDataDefault(); void shouldReturnData(); void shouldInsertRoom_data(); void shouldInsertRoom(); }; #endif // ROOMMODELTEST_H diff --git a/src/core/autotests/roomtest.h b/src/core/autotests/roomtest.h index 82e0a641..2818874c 100644 --- a/src/core/autotests/roomtest.h +++ b/src/core/autotests/roomtest.h @@ -1,52 +1,52 @@ /* Copyright (c) 2017-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROOMTEST_H #define ROOMTEST_H #include class RoomTest : public QObject { Q_OBJECT public: explicit RoomTest(QObject *parent = nullptr); - ~RoomTest() = default; + ~RoomTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldSerialized(); void shouldEmitSignals(); void shouldChangeInputMessage(); //Rooms subscriptions only void shouldParseRoom_data(); void shouldParseRoom(); //Rooms subscriptions + update room void shouldParseRoomAndUpdate_data(); void shouldParseRoomAndUpdate(); //Rooms subscriptions + update room + update subscription void shouldParseRoomAndUpdateSubscription_data(); void shouldParseRoomAndUpdateSubscription(); }; #endif // ROOMTEST_H diff --git a/src/core/autotests/roomwrappertest.h b/src/core/autotests/roomwrappertest.h index a8e57b3a..13b9e16f 100644 --- a/src/core/autotests/roomwrappertest.h +++ b/src/core/autotests/roomwrappertest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROOMWRAPPERTEST_H #define ROOMWRAPPERTEST_H #include class RoomWrapperTest : public QObject { Q_OBJECT public: explicit RoomWrapperTest(QObject *parent = nullptr); - ~RoomWrapperTest() = default; + ~RoomWrapperTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldAssignValue(); void shouldVerifyCanBeModify(); }; #endif // ROOMWRAPPERTEST_H diff --git a/src/core/autotests/ruqolaserverconfigtest.h b/src/core/autotests/ruqolaserverconfigtest.h index 807bab61..2cdc3c9d 100644 --- a/src/core/autotests/ruqolaserverconfigtest.h +++ b/src/core/autotests/ruqolaserverconfigtest.h @@ -1,50 +1,50 @@ /* Copyright (c) 2017-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef RUQOLASERVERCONFIGTEST_H #define RUQOLASERVERCONFIGTEST_H #include class RuqolaServerConfigTest : public QObject { Q_OBJECT public: explicit RuqolaServerConfigTest(QObject *parent = nullptr); - ~RuqolaServerConfigTest() = default; + ~RuqolaServerConfigTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); void shouldAssignValues(); void shouldEnabledRc60_data(); void shouldEnabledRc60(); void shouldVerifyOauthType_data(); void shouldVerifyOauthType(); void shouldVerifyThatServerSupportService(); void shouldAddRuqolaAuthenticationSupport(); void shouldTestVersion_data(); void shouldTestVersion(); }; #endif // RUQOLASERVERCONFIGTEST_H diff --git a/src/core/autotests/ruqolatest.h b/src/core/autotests/ruqolatest.h index 3bc5b002..f1783c70 100644 --- a/src/core/autotests/ruqolatest.h +++ b/src/core/autotests/ruqolatest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef RUQOLATEST_H #define RUQOLATEST_H #include class RuqolaTest : public QObject { Q_OBJECT public: explicit RuqolaTest(QObject *parent = nullptr); - ~RuqolaTest() = default; + ~RuqolaTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldDestroy(); }; #endif // RUQOLATEST_H diff --git a/src/core/autotests/searchchannelfilterproxymodeltest.h b/src/core/autotests/searchchannelfilterproxymodeltest.h index 00277837..67e59a05 100644 --- a/src/core/autotests/searchchannelfilterproxymodeltest.h +++ b/src/core/autotests/searchchannelfilterproxymodeltest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SEARCHCHANNELFILTERPROXYMODELTEST_H #define SEARCHCHANNELFILTERPROXYMODELTEST_H #include class SearchChannelFilterProxyModelTest : public QObject { Q_OBJECT public: explicit SearchChannelFilterProxyModelTest(QObject *parent = nullptr); - ~SearchChannelFilterProxyModelTest() = default; + ~SearchChannelFilterProxyModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldLoadChannelJSon(); }; #endif // SEARCHCHANNELFILTERPROXYMODELTEST_H diff --git a/src/core/autotests/searchchannelmodeltest.h b/src/core/autotests/searchchannelmodeltest.h index 6ec9e806..45d3f3cc 100644 --- a/src/core/autotests/searchchannelmodeltest.h +++ b/src/core/autotests/searchchannelmodeltest.h @@ -1,41 +1,41 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SEARCHCHANNELMODELTEST_H #define SEARCHCHANNELMODELTEST_H #include class SearchChannelModelTest : public QObject { Q_OBJECT public: explicit SearchChannelModelTest(QObject *parent = nullptr); - ~SearchChannelModelTest() = default; + ~SearchChannelModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldAssignValues(); void shouldLoadValueFromJson(); void shouldClearModel(); }; #endif // SEARCHCHANNELMODELTEST_H diff --git a/src/core/autotests/searchmessagefilterproxymodeltest.h b/src/core/autotests/searchmessagefilterproxymodeltest.h index cd8c6322..62343d65 100644 --- a/src/core/autotests/searchmessagefilterproxymodeltest.h +++ b/src/core/autotests/searchmessagefilterproxymodeltest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SEARCHMESSAGEFILTERPROXYMODELTEST_H #define SEARCHMESSAGEFILTERPROXYMODELTEST_H #include class SearchMessageFilterProxyModelTest : public QObject { Q_OBJECT public: explicit SearchMessageFilterProxyModelTest(QObject *parent = nullptr); - ~SearchMessageFilterProxyModelTest() = default; + ~SearchMessageFilterProxyModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); }; #endif // SEARCHMESSAGEFILTERPROXYMODELTEST_H diff --git a/src/core/autotests/searchmessagemodeltest.h b/src/core/autotests/searchmessagemodeltest.h index 9c61172a..addcdb2b 100644 --- a/src/core/autotests/searchmessagemodeltest.h +++ b/src/core/autotests/searchmessagemodeltest.h @@ -1,35 +1,35 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SEARCHMESSAGEMODELTEST_H #define SEARCHMESSAGEMODELTEST_H #include class SearchMessageModelTest : public QObject { Q_OBJECT public: explicit SearchMessageModelTest(QObject *parent = nullptr); - ~SearchMessageModelTest() = default; + ~SearchMessageModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); }; #endif // SEARCHMESSAGEMODELTEST_H diff --git a/src/core/autotests/serverconfiginfotest.h b/src/core/autotests/serverconfiginfotest.h index a789bbc7..a379b179 100644 --- a/src/core/autotests/serverconfiginfotest.h +++ b/src/core/autotests/serverconfiginfotest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SERVERCONFIGINFOTEST_H #define SERVERCONFIGINFOTEST_H #include class ServerConfigInfoTest : public QObject { Q_OBJECT public: explicit ServerConfigInfoTest(QObject *parent = nullptr); - ~ServerConfigInfoTest() = default; + ~ServerConfigInfoTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // SERVERCONFIGINFOTEST_H diff --git a/src/core/autotests/statusmodeltest.h b/src/core/autotests/statusmodeltest.h index 084a18be..666b3d41 100644 --- a/src/core/autotests/statusmodeltest.h +++ b/src/core/autotests/statusmodeltest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2017-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef STATUSMODELTEST_H #define STATUSMODELTEST_H #include class StatusModelTest : public QObject { Q_OBJECT public: explicit StatusModelTest(QObject *parent = nullptr); - ~StatusModelTest() = default; + ~StatusModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); }; #endif // STATUSMODELTEST_H diff --git a/src/core/autotests/textconvertertest.h b/src/core/autotests/textconvertertest.h index 0b3778cf..21a5c473 100644 --- a/src/core/autotests/textconvertertest.h +++ b/src/core/autotests/textconvertertest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef TEXTCONVERTERTEST_H #define TEXTCONVERTERTEST_H #include class TextConverterTest : public QObject { Q_OBJECT public: explicit TextConverterTest(QObject *parent = nullptr); - ~TextConverterTest() = default; + ~TextConverterTest() override = default; private Q_SLOTS: void shouldConvertText_data(); void shouldConvertText(); void shouldConvertTextWithEmoji_data(); void shouldConvertTextWithEmoji(); }; #endif // TEXTCONVERTERTEST_H diff --git a/src/core/autotests/threadmessagemodeltest.h b/src/core/autotests/threadmessagemodeltest.h index eea9f02c..bb559477 100644 --- a/src/core/autotests/threadmessagemodeltest.h +++ b/src/core/autotests/threadmessagemodeltest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef THREADMESSAGEMODELTEST_H #define THREADMESSAGEMODELTEST_H #include class ThreadMessageModelTest : public QObject { Q_OBJECT public: explicit ThreadMessageModelTest(QObject *parent = nullptr); - ~ThreadMessageModelTest() = default; + ~ThreadMessageModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // THREADMESSAGEMODELTEST_H diff --git a/src/core/autotests/threadmessagestest.h b/src/core/autotests/threadmessagestest.h index bcbe5f58..0b04009b 100644 --- a/src/core/autotests/threadmessagestest.h +++ b/src/core/autotests/threadmessagestest.h @@ -1,34 +1,34 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef THREADMESSAGESTEST_H #define THREADMESSAGESTEST_H #include class ThreadMessagesTest : public QObject { Q_OBJECT public: explicit ThreadMessagesTest(QObject *parent = nullptr); - ~ThreadMessagesTest() = default; + ~ThreadMessagesTest() override = default; }; #endif // THREADMESSAGESTEST_H diff --git a/src/core/autotests/threadmessagetest.h b/src/core/autotests/threadmessagetest.h index 97475aff..beec03f3 100644 --- a/src/core/autotests/threadmessagetest.h +++ b/src/core/autotests/threadmessagetest.h @@ -1,34 +1,34 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef THREADMESSAGETEST_H #define THREADMESSAGETEST_H #include class ThreadMessageTest : public QObject { Q_OBJECT public: explicit ThreadMessageTest(QObject *parent = nullptr); - ~ThreadMessageTest() = default; + ~ThreadMessageTest() override = default; }; #endif // THREADMESSAGETEST_H diff --git a/src/core/autotests/threadsfilterproxymodeltest.h b/src/core/autotests/threadsfilterproxymodeltest.h index 1684c295..274b6384 100644 --- a/src/core/autotests/threadsfilterproxymodeltest.h +++ b/src/core/autotests/threadsfilterproxymodeltest.h @@ -1,33 +1,33 @@ /* Copyright (c) 2019-2020 Laurent Montel This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef THREADSFILTERPROXYMODELTEST_H #define THREADSFILTERPROXYMODELTEST_H #include class ThreadsFilterProxyModelTest : public QObject { Q_OBJECT public: explicit ThreadsFilterProxyModelTest(QObject *parent = nullptr); - ~ThreadsFilterProxyModelTest() = default; + ~ThreadsFilterProxyModelTest() override = default; }; #endif // THREADSFILTERPROXYMODELTEST_H diff --git a/src/core/autotests/threadsmodeltest.h b/src/core/autotests/threadsmodeltest.h index aafe9413..2449d1c6 100644 --- a/src/core/autotests/threadsmodeltest.h +++ b/src/core/autotests/threadsmodeltest.h @@ -1,35 +1,35 @@ /* Copyright (c) 2019-2020 Laurent Montel This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef THREADSMODELTEST_H #define THREADSMODELTEST_H #include class ThreadsModelTest : public QObject { Q_OBJECT public: explicit ThreadsModelTest(QObject *parent = nullptr); - ~ThreadsModelTest() = default; + ~ThreadsModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); void shouldAssignValues(); }; #endif // THREADSMODELTEST_H diff --git a/src/core/autotests/threadstest.h b/src/core/autotests/threadstest.h index 991b5f47..58e8fccb 100644 --- a/src/core/autotests/threadstest.h +++ b/src/core/autotests/threadstest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2019-2020 Laurent Montel This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef THREADSTEST_H #define THREADSTEST_H #include class ThreadsTest : public QObject { Q_OBJECT public: explicit ThreadsTest(QObject *parent = nullptr); - ~ThreadsTest() = default; + ~ThreadsTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); void shouldLoadThreads_data(); void shouldLoadThreads(); }; #endif // THREADSTEST_H diff --git a/src/core/autotests/threadtest.h b/src/core/autotests/threadtest.h index 6bb0b3e9..b6dc2ddc 100644 --- a/src/core/autotests/threadtest.h +++ b/src/core/autotests/threadtest.h @@ -1,34 +1,34 @@ /* Copyright (c) 2019-2020 Laurent Montel This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef THREADTEST_H #define THREADTEST_H #include class ThreadTest : public QObject { Q_OBJECT public: explicit ThreadTest(QObject *parent = nullptr); - ~ThreadTest() = default; + ~ThreadTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // THREADTEST_H diff --git a/src/core/autotests/translatetextjobtest.h b/src/core/autotests/translatetextjobtest.h index 81a8d45a..063624c9 100644 --- a/src/core/autotests/translatetextjobtest.h +++ b/src/core/autotests/translatetextjobtest.h @@ -1,34 +1,34 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef TRANSLATETEXTJOBTEST_H #define TRANSLATETEXTJOBTEST_H #include class TranslateTextJobTest : public QObject { Q_OBJECT public: explicit TranslateTextJobTest(QObject *parent = nullptr); - ~TranslateTextJobTest() = default; + ~TranslateTextJobTest() override = default; }; #endif // TRANSLATETEXTJOBTEST_H diff --git a/src/core/autotests/typingnotificationtest.h b/src/core/autotests/typingnotificationtest.h index 00fd3f0d..f9b7749e 100644 --- a/src/core/autotests/typingnotificationtest.h +++ b/src/core/autotests/typingnotificationtest.h @@ -1,40 +1,40 @@ /* Copyright (c) 2017-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef TYPINGNOTIFICATIONTEST_H #define TYPINGNOTIFICATIONTEST_H #include class TypingNotificationTest : public QObject { Q_OBJECT public: explicit TypingNotificationTest(QObject *parent = nullptr); - ~TypingNotificationTest() = default; + ~TypingNotificationTest() override = default; private Q_SLOTS: void shouldNotEmitSignalByDefault(); void shouldEmitSignalWhenTyping(); void shouldEmitSignalWhenTypingAndEmitTypingFalseAfterTimeout(); void shouldDontEmitSignalWhenTypingSeveralTextBeforeTimeOut(); void shouldEmitTwoSignalWhenChangeRoom(); }; #endif // TYPINGNOTIFICATIONTEST_H diff --git a/src/core/autotests/unicodeemoticonparsertest.h b/src/core/autotests/unicodeemoticonparsertest.h index d02cf9e6..a344a9f7 100644 --- a/src/core/autotests/unicodeemoticonparsertest.h +++ b/src/core/autotests/unicodeemoticonparsertest.h @@ -1,34 +1,34 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef UNICODEEMOTICONPARSERTEST_H #define UNICODEEMOTICONPARSERTEST_H #include class UnicodeEmoticonParserTest : public QObject { Q_OBJECT public: explicit UnicodeEmoticonParserTest(QObject *parent = nullptr); - ~UnicodeEmoticonParserTest() = default; + ~UnicodeEmoticonParserTest() override = default; }; #endif // UNICODEEMOTICONPARSERTEST_H diff --git a/src/core/autotests/unicodeemoticontest.h b/src/core/autotests/unicodeemoticontest.h index 1bf4e362..104140b0 100644 --- a/src/core/autotests/unicodeemoticontest.h +++ b/src/core/autotests/unicodeemoticontest.h @@ -1,35 +1,35 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef EMOTICONTEST_H #define EMOTICONTEST_H #include class UnicodeEmoticonTest : public QObject { Q_OBJECT public: explicit UnicodeEmoticonTest(QObject *parent = nullptr); - ~UnicodeEmoticonTest() = default; + ~UnicodeEmoticonTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); }; #endif // EMOTICONTEST_H diff --git a/src/core/autotests/usercompleterfilterproxymodeltest.h b/src/core/autotests/usercompleterfilterproxymodeltest.h index 16b9ac64..a68f9d7b 100644 --- a/src/core/autotests/usercompleterfilterproxymodeltest.h +++ b/src/core/autotests/usercompleterfilterproxymodeltest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef USERCOMPLETERFILTERPROXYMODELTEST_H #define USERCOMPLETERFILTERPROXYMODELTEST_H #include class UserCompleterFilterProxyModelTest : public QObject { Q_OBJECT public: explicit UserCompleterFilterProxyModelTest(QObject *parent = nullptr); - ~UserCompleterFilterProxyModelTest() = default; + ~UserCompleterFilterProxyModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); }; #endif // USERCOMPLETERFILTERPROXYMODELTEST_H diff --git a/src/core/autotests/usercompletermodeltest.h b/src/core/autotests/usercompletermodeltest.h index 085f70d7..9432e284 100644 --- a/src/core/autotests/usercompletermodeltest.h +++ b/src/core/autotests/usercompletermodeltest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef USERCOMPLETERMODELTEST_H #define USERCOMPLETERMODELTEST_H #include class UserCompleterModelTest : public QObject { Q_OBJECT public: explicit UserCompleterModelTest(QObject *parent = nullptr); - ~UserCompleterModelTest() = default; + ~UserCompleterModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldAddValues(); void shouldVerifyData(); }; #endif // USERCOMPLETERMODELTEST_H diff --git a/src/core/autotests/usersforroomfilterproxymodeltest.h b/src/core/autotests/usersforroomfilterproxymodeltest.h index a1ca1c5d..89cab27d 100644 --- a/src/core/autotests/usersforroomfilterproxymodeltest.h +++ b/src/core/autotests/usersforroomfilterproxymodeltest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef USERSFORROOMFILTERPROXYMODELTEST_H #define USERSFORROOMFILTERPROXYMODELTEST_H #include class UsersForRoomFilterProxyModelTest : public QObject { Q_OBJECT public: explicit UsersForRoomFilterProxyModelTest(QObject *parent = nullptr); - ~UsersForRoomFilterProxyModelTest(); + ~UsersForRoomFilterProxyModelTest() override; private Q_SLOTS: void shouldHaveDefaultValues(); void shouldAssignValue(); }; #endif // USERSFORROOMFILTERPROXYMODELTEST_H diff --git a/src/core/autotests/usersforroommodeltest.h b/src/core/autotests/usersforroommodeltest.h index ce5bac84..01c1d50c 100644 --- a/src/core/autotests/usersforroommodeltest.h +++ b/src/core/autotests/usersforroommodeltest.h @@ -1,41 +1,41 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef USERSFORROOMMODELTEST_H #define USERSFORROOMMODELTEST_H #include class UsersForRoomModelTest : public QObject { Q_OBJECT public: explicit UsersForRoomModelTest(QObject *parent = nullptr); - ~UsersForRoomModelTest() = default; + ~UsersForRoomModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldAddValues(); void shouldVerifyData(); void shouldParseUsers_data(); void shouldParseUsers(); }; #endif // USERSFORROOMMODELTEST_H diff --git a/src/core/autotests/usersmodeltest.h b/src/core/autotests/usersmodeltest.h index fe6cf074..c5eb877d 100644 --- a/src/core/autotests/usersmodeltest.h +++ b/src/core/autotests/usersmodeltest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef USERSMODELTEST_H #define USERSMODELTEST_H #include class UsersModelTest : public QObject { Q_OBJECT public: explicit UsersModelTest(QObject *parent = nullptr); - ~UsersModelTest() = default; + ~UsersModelTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldRemoveUser(); }; #endif // USERSMODELTEST_H diff --git a/src/core/autotests/usertest.h b/src/core/autotests/usertest.h index 149ef76c..d3df9318 100644 --- a/src/core/autotests/usertest.h +++ b/src/core/autotests/usertest.h @@ -1,50 +1,50 @@ /* Copyright (c) 2017-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef USERTEST_H #define USERTEST_H #include class UserTest : public QObject { Q_OBJECT public: explicit UserTest(QObject *parent = nullptr); - ~UserTest() = default; + ~UserTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldSetAndGetName(); void shouldSetAndGetStatus(); void shouldSetAndGetUserId(); void shouldParseUser(); void checkEqualsAndUnequalsOperator(); void shouldParseJson_data(); void shouldParseJson(); void shouldGetStatusIcon_data(); void shouldGetStatusIcon(); void shouldBeValid(); }; #endif // USERTEST_H diff --git a/src/core/autotests/utilstest.h b/src/core/autotests/utilstest.h index fd5a7105..fec4ad4c 100644 --- a/src/core/autotests/utilstest.h +++ b/src/core/autotests/utilstest.h @@ -1,55 +1,55 @@ /* Copyright (c) 2017-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef UTILSTEST_H #define UTILSTEST_H #include class UtilsTest : public QObject { Q_OBJECT public: explicit UtilsTest(QObject *parent = nullptr); - ~UtilsTest() = default; + ~UtilsTest() override = default; private Q_SLOTS: void shouldGenerateServerUrl_data(); void shouldGenerateServerUrl(); void shouldMarkdownToRichText_data(); void shouldMarkdownToRichText(); void shouldExtractRoomUserFromUrl_data(); void shouldExtractRoomUserFromUrl(); void shouldExtractGenerateRichText_data(); void shouldExtractGenerateRichText(); void shouldHighlightText_data(); void shouldHighlightText(); void shouldParseNotification_data(); void shouldParseNotification(); void shouldConvertTextWithUrl_data(); void shouldConvertTextWithUrl(); }; #endif // UTILSTEST_H diff --git a/src/core/avatarmanager.h b/src/core/avatarmanager.h index 78bcafdc..1bb35308 100644 --- a/src/core/avatarmanager.h +++ b/src/core/avatarmanager.h @@ -1,51 +1,51 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef AVATARMANAGER_H #define AVATARMANAGER_H #include #include "libruqola_private_export.h" class QTimer; class RocketChatAccount; class LIBRUQOLACORE_TESTS_EXPORT AvatarManager : public QObject { Q_OBJECT public: explicit AvatarManager(RocketChatAccount *account, QObject *parent = nullptr); - ~AvatarManager(); + ~AvatarManager() override; void insertInDownloadQueue(const QString &url); RocketChatAccount *account() const; Q_SIGNALS: void insertAvatarUrl(const QString &userId, const QUrl &url); private: void slotInsertAvatarUrl(const QString &userId, const QString &url); void slotLoadNextAvatar(); void slotRescheduleDownload(); QStringList mAvatarDownloadUserIds; RocketChatAccount *mAccount = nullptr; QTimer *mTimer = nullptr; }; #endif // AVATARMANAGER_H diff --git a/src/core/changetemporarystatus.h b/src/core/changetemporarystatus.h index 04d77e49..2d116277 100644 --- a/src/core/changetemporarystatus.h +++ b/src/core/changetemporarystatus.h @@ -1,42 +1,42 @@ /* Copyright (c) 2017-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANGETEMPORARYSTATUS_H #define CHANGETEMPORARYSTATUS_H #include class QTimer; class ChangeTemporaryStatus : public QObject { Q_OBJECT public: explicit ChangeTemporaryStatus(QObject *parent = nullptr); - ~ChangeTemporaryStatus() = default; + ~ChangeTemporaryStatus() override = default; Q_SIGNALS: void changeStatusAway(bool away); private: Q_DISABLE_COPY(ChangeTemporaryStatus) void initialize(); QTimer *mTimer = nullptr; }; #endif // CHANGETEMPORARYSTATUS_H diff --git a/src/core/clipboardproxy.h b/src/core/clipboardproxy.h index 2d17b523..825407f1 100644 --- a/src/core/clipboardproxy.h +++ b/src/core/clipboardproxy.h @@ -1,50 +1,50 @@ /* Copyright (c) 2018-2020 Laurent Montel based on code found https://stackoverflow.com/questions/40092352/passing-qclipboard-to-qml This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CLIPBOARDPROXY_H #define CLIPBOARDPROXY_H #include #include "libruqola_private_export.h" class LIBRUQOLACORE_TESTS_EXPORT ClipboardProxy : public QObject { Q_OBJECT Q_PROPERTY(QString text READ dataText WRITE setDataText NOTIFY dataChanged) Q_PROPERTY(QString selectionText READ selectionText WRITE setSelectionText NOTIFY selectionChanged) public: explicit ClipboardProxy(QObject *parent = nullptr); - ~ClipboardProxy(); + ~ClipboardProxy() override; void setDataText(const QString &text); Q_REQUIRED_RESULT QString dataText() const; void setSelectionText(const QString &text); Q_REQUIRED_RESULT QString selectionText() const; Q_SIGNALS: void dataChanged(); void selectionChanged(); private: Q_DISABLE_COPY(ClipboardProxy) }; #endif // CLIPBOARDPROXY_H diff --git a/src/core/convertertextjob/convertertextabstractjob.h b/src/core/convertertextjob/convertertextabstractjob.h index d1fb8ed4..c22dfbd8 100644 --- a/src/core/convertertextjob/convertertextabstractjob.h +++ b/src/core/convertertextjob/convertertextabstractjob.h @@ -1,43 +1,43 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CONVERTERTEXTABSTRACTJOB_H #define CONVERTERTEXTABSTRACTJOB_H #include #include "libruqola_private_export.h" class LIBRUQOLACORE_TESTS_EXPORT ConverterTextAbstractJob : public QObject { Q_OBJECT public: explicit ConverterTextAbstractJob(QObject *parent = nullptr); - ~ConverterTextAbstractJob(); + ~ConverterTextAbstractJob() override; Q_REQUIRED_RESULT QString messageId() const; void setMessageId(const QString &messageId); virtual void start() = 0; private: QString mMessageId; }; #endif // CONVERTERTEXTABSTRACTJOB_H diff --git a/src/core/convertertextjob/translatetextjob.h b/src/core/convertertextjob/translatetextjob.h index cd0f6a10..2957d83f 100644 --- a/src/core/convertertextjob/translatetextjob.h +++ b/src/core/convertertextjob/translatetextjob.h @@ -1,36 +1,36 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef TRANSLATETEXTJOB_H #define TRANSLATETEXTJOB_H #include "convertertextabstractjob.h" #include "libruqola_private_export.h" class LIBRUQOLACORE_TESTS_EXPORT TranslateTextJob : public ConverterTextAbstractJob { Q_OBJECT public: explicit TranslateTextJob(QObject *parent = nullptr); - ~TranslateTextJob(); + ~TranslateTextJob() override; void start() override; }; #endif // TRANSLATETEXTJOB_H diff --git a/src/core/ddpapi/ddpclient.h b/src/core/ddpapi/ddpclient.h index 96a90c97..12ff0e14 100644 --- a/src/core/ddpapi/ddpclient.h +++ b/src/core/ddpapi/ddpclient.h @@ -1,256 +1,256 @@ /* * Copyright 2016 Riccardo Iaconelli * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License or (at your option) version 3 or any later version * accepted by the membership of KDE e.V. (or its successor approved * by the membership of KDE e.V.), which shall act as a proxy * defined in Section 14 of version 3 of the license. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * */ #ifndef DDPCLIENT_H #define DDPCLIENT_H #include "rocketchatmessage.h" #include "libruqolacore_export.h" #include #include #include #include class QJsonObject; class QJsonDocument; class RocketChatMessage; class AbstractWebSocket; class RocketChatAccount; class LIBRUQOLACORE_EXPORT DDPClient : public QObject { Q_OBJECT public: enum LoginStatus { NotConnected, LoggingIn, LoggedIn, LoginFailed, LoginCodeRequired, LoggedOut, FailedToLoginPluginProblem }; Q_ENUM(LoginStatus) enum MessageType { Persistent, Ephemeral }; explicit DDPClient(RocketChatAccount *account = nullptr, QObject *parent = nullptr); - ~DDPClient(); + ~DDPClient() override; /** * @brief Call a method with name @param method and parameters @param params and @param messageType with an empty callback * * @param method The name of the method to call Rocket.Chat API for * @param params The parameters * @param messageType The type of message * @return unsigned int, the ID of the called method */ quint64 method(const QString &method, const QJsonDocument ¶ms, DDPClient::MessageType messageType = DDPClient::Ephemeral); /** * @brief Send message over network * * @param method The name of the method to call Rocket.Chat API for * @param params The parameters * @param callback The pointer to callback function * @param messageType The type of message * @return unsigned int, the ID of the called method */ quint64 method(const QString &method, const QJsonDocument ¶ms, std::function callback, DDPClient::MessageType messageType = DDPClient::Ephemeral); quint64 method(const RocketChatMessage::RocketChatMessageResult &result, std::function callback, DDPClient::MessageType messageType = DDPClient::Ephemeral); /** * @brief Subscribes to a collection with name @param collection and parameters @param params * * @param collection The name of the collection * @param params The parameters */ void subscribe(const QString &collection, const QJsonArray ¶ms); /** * @brief Calls method to log in the user with valid username and password */ Q_INVOKABLE void login(); /** * @brief Closes the websocket connection */ void logOut(); /** * @brief Check whether websocket is connected at url * * @return true if connected, else false */ Q_REQUIRED_RESULT bool isConnected() const; /** * @brief Check whether user is logged in * * @return true if user is logged in, else false */ Q_REQUIRED_RESULT bool isLoggedIn() const; /** * @brief Reconnects the websocket to new url */ void onServerURLChange(); /** * @brief Returns the queue used to cache unsent messages * *@return QQueue>, The m_messageQueue object */ Q_REQUIRED_RESULT QQueue > messageQueue() const; /** * @brief Returns standard cache path * *@def QString path */ Q_REQUIRED_RESULT QString cachePath() const; Q_REQUIRED_RESULT quint64 leaveRoom(const QString &roomID); Q_REQUIRED_RESULT quint64 hideRoom(const QString &roomID); Q_REQUIRED_RESULT quint64 clearUnreadMessages(const QString &roomID); Q_REQUIRED_RESULT quint64 informTypingStatus(const QString &room, bool typing, const QString &userName); void setServerUrl(const QString &url); void start(); void setLoginJobId(quint64 jobid); Q_REQUIRED_RESULT LoginStatus loginStatus() const; Q_REQUIRED_RESULT quint64 toggleFavorite(const QString &roomID, bool favorite); Q_REQUIRED_RESULT quint64 createChannel(const QString &name, const QStringList &userList, bool readOnly); Q_REQUIRED_RESULT quint64 createPrivateGroup(const QString &name, const QStringList &userList); Q_REQUIRED_RESULT quint64 joinRoom(const QString &roomId, const QString &joinCode); Q_REQUIRED_RESULT quint64 openDirectChannel(const QString &userId); void subscribeRoomMessage(const QString &roomId); Q_REQUIRED_RESULT quint64 setDefaultStatus(User::PresenceStatus status); Q_REQUIRED_RESULT quint64 createJitsiConfCall(const QString &roomId); Q_REQUIRED_RESULT quint64 userAutocomplete(const QString &pattern, const QString &exception); Q_REQUIRED_RESULT quint64 deleteMessage(const QString &messageId); Q_REQUIRED_RESULT quint64 eraseRoom(const QString &roomID); Q_REQUIRED_RESULT quint64 setRoomName(const QString &roomId, const QString &name); Q_REQUIRED_RESULT quint64 setRoomTopic(const QString &roomId, const QString &topic); Q_REQUIRED_RESULT quint64 setRoomDescription(const QString &roomId, const QString &description); Q_REQUIRED_RESULT quint64 setRoomAnnouncement(const QString &roomId, const QString &announcement); Q_REQUIRED_RESULT quint64 starMessage(const QString &messageId, const QString &rid, bool starred); Q_REQUIRED_RESULT quint64 setRoomIsReadOnly(const QString &roomId, bool readOnly); Q_REQUIRED_RESULT quint64 archiveRoom(const QString &roomId); Q_REQUIRED_RESULT quint64 setReaction(const QString &emoji, const QString &messageId); Q_REQUIRED_RESULT quint64 getUsersOfRoom(const QString &roomId, bool showAll); Q_REQUIRED_RESULT quint64 loadHistory(const QJsonArray ¶ms); Q_REQUIRED_RESULT quint64 channelAndPrivateAutocomplete(const QString &pattern, const QString &exception); //Q_REQUIRED_RESULT quint64 roomFiles(const QString &roomId); Q_REQUIRED_RESULT quint64 addUserToRoom(const QString &userId, const QString &roomId); Q_REQUIRED_RESULT quint64 inputChannelAutocomplete(const QString &pattern, const QString &exceptions); Q_REQUIRED_RESULT quint64 inputUserAutocomplete(const QString &pattern, const QString &exceptions); Q_REQUIRED_RESULT quint64 login(const QString &username, const QString &password); Q_REQUIRED_RESULT quint64 loginProvider(const QString &credentialToken, const QString &credentialSecret); Q_REQUIRED_RESULT quint64 unBlockUser(const QString &rid, const QString &userId); Q_REQUIRED_RESULT quint64 blockUser(const QString &rid, const QString &userId); Q_REQUIRED_RESULT quint64 disableNotifications(const QString &roomId, bool disabled); Q_REQUIRED_RESULT quint64 hideUnreadStatus(const QString &roomId, bool disabled); Q_REQUIRED_RESULT quint64 audioNotifications(const QString &roomId, const QString &value); Q_REQUIRED_RESULT quint64 mobilePushNotifications(const QString &roomId, const QString &value); Q_REQUIRED_RESULT quint64 desktopNotifications(const QString &roomId, const QString &value); Q_REQUIRED_RESULT quint64 emailNotifications(const QString &roomId, const QString &value); Q_REQUIRED_RESULT quint64 unreadAlert(const QString &roomId, const QString &value); Q_REQUIRED_RESULT quint64 deleteFileMessage(const QString &roomId, const QString &fileid, const QString &channelType); Q_REQUIRED_RESULT quint64 setRoomType(const QString &roomId, bool privateChannel); Q_REQUIRED_RESULT quint64 ignoreUser(const QString &roomId, const QString &userId, bool ignore); Q_REQUIRED_RESULT quint64 setRoomEncrypted(const QString &roomId, bool encrypted); Q_SIGNALS: void connectedChanged(); void loginStatusChanged(); void added(const QJsonObject &item); void changed(const QJsonObject &item); void removed(const QJsonObject &item); void socketError(QAbstractSocket::SocketError error, const QString &errorString); void disconnectedByServer(); /** * @brief Emitted whenever a result is received * * @param id The ID received in the method() call * @param result The response sent by server */ void result(quint64 id, const QJsonDocument &result); private Q_SLOTS: void onWSConnected(); void onTextMessageReceived(const QString &message); void onWSclosed(); void onSslErrors(const QList &errors); private: Q_DISABLE_COPY(DDPClient) void initializeWebSocket(); QUrl adaptUrl(const QString &url); void setLoginStatus(LoginStatus l); void pong(); void executeSubsCallBack(const QJsonObject &root); QString mUrl; AbstractWebSocket *mWebSocket = nullptr; /** * @brief Unique message ID for each message sent over network */ quint64 m_uid = 0; /** * @brief Stores callback function associated with each message * * @def QHash unsigned messageID and std::function pointer to callback */ QHash > m_callbackHash; quint64 m_loginJob = 0; LoginStatus m_loginStatus; bool m_connected = false; bool m_attemptedPasswordLogin = false; /** * @brief Abstract queue for all requests regarding network management * * @def QPair QString method and QJsonDocument params */ QQueue > m_messageQueue; friend class Ruqola; RocketChatMessage *mRocketChatMessage = nullptr; RocketChatAccount *mRocketChatAccount = nullptr; }; #endif // DDPCLIENT_H diff --git a/src/core/emoticons/emojimanager.h b/src/core/emoticons/emojimanager.h index a9d1fbfa..017e6d65 100644 --- a/src/core/emoticons/emojimanager.h +++ b/src/core/emoticons/emojimanager.h @@ -1,60 +1,60 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef EMOJIMANAGER_H #define EMOJIMANAGER_H #include #include "emoji.h" #include "unicodeemoticon.h" #include "libruqolacore_export.h" class LIBRUQOLACORE_EXPORT EmojiManager : public QObject { Q_OBJECT public: explicit EmojiManager(QObject *parent = nullptr, bool loadUnicode = true); - ~EmojiManager(); + ~EmojiManager() override; void loadCustomEmoji(const QJsonObject &obj); Q_REQUIRED_RESULT int count() const; Q_REQUIRED_RESULT QString replaceEmojiIdentifier(const QString &emojiIdentifier, bool isReaction = false); Q_REQUIRED_RESULT QString serverUrl() const; void setServerUrl(const QString &serverUrl); Q_REQUIRED_RESULT QMap > unicodeEmojiList() const; Q_REQUIRED_RESULT bool isAnimatedImage(const QString &emojiIdentifier) const; Q_REQUIRED_RESULT UnicodeEmoticon unicodeEmoticonForEmoji(const QString &emojiIdentifier) const; private: Q_DISABLE_COPY(EmojiManager) void clearCustomEmojiCachedHtml(); void loadUnicodeEmoji(); //Use identifier in a QMap ??? QVector mCustomEmojiList; QMap > mUnicodeEmojiList; QString mServerUrl; }; #endif // EMOJIMANAGER_H diff --git a/src/core/inputtextmanager.h b/src/core/inputtextmanager.h index d38b59ca..320d2b45 100644 --- a/src/core/inputtextmanager.h +++ b/src/core/inputtextmanager.h @@ -1,62 +1,62 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef INPUTTEXTMANAGER_H #define INPUTTEXTMANAGER_H #include #include #include "libruqola_private_export.h" class InputCompleterModel; class LIBRUQOLACORE_TESTS_EXPORT InputTextManager : public QObject { Q_OBJECT public: enum CompletionForType { Channel = 0, User }; explicit InputTextManager(QObject *parent = nullptr); - ~InputTextManager(); + ~InputTextManager() override; Q_REQUIRED_RESULT InputCompleterModel *inputCompleterModel() const; void inputTextCompleter(const QJsonObject &obj); Q_REQUIRED_RESULT QString replaceWord(const QString &newWord, const QString &str, int position); Q_REQUIRED_RESULT QString applyCompletion(const QString &newWord, const QString &str, int *pPosition); void setInputTextChanged(const QString &str, int position); void clearCompleter(); //Only for autotests Q_REQUIRED_RESULT QString searchWord(const QString &text, int position); Q_SIGNALS: void inputCompleter(const QString &pattern, const QString &exceptions, InputTextManager::CompletionForType type); private: Q_DISABLE_COPY(InputTextManager) InputCompleterModel *mInputCompleterModel = nullptr; }; #endif // INPUTTEXTMANAGER_H diff --git a/src/core/messagedownloadmanager.h b/src/core/messagedownloadmanager.h index fc626156..e0f43edf 100644 --- a/src/core/messagedownloadmanager.h +++ b/src/core/messagedownloadmanager.h @@ -1,35 +1,35 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MESSAGEDOWNLOADMANAGER_H #define MESSAGEDOWNLOADMANAGER_H #include #include "libruqola_private_export.h" class LIBRUQOLACORE_TESTS_EXPORT MessageDownloadManager : public QObject { Q_OBJECT public: explicit MessageDownloadManager(QObject *parent = nullptr); - ~MessageDownloadManager(); + ~MessageDownloadManager() override; }; #endif // MESSAGEDOWNLOADMANAGER_H diff --git a/src/core/messagequeue.h b/src/core/messagequeue.h index 24b4c974..73a26c6e 100644 --- a/src/core/messagequeue.h +++ b/src/core/messagequeue.h @@ -1,64 +1,64 @@ /* * Copyright 2016 Riccardo Iaconelli * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License or (at your option) version 3 or any later version * accepted by the membership of KDE e.V. (or its successor approved * by the membership of KDE e.V.), which shall act as a proxy * defined in Section 14 of version 3 of the license. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * */ #ifndef MESSAGEQUEUE_H #define MESSAGEQUEUE_H #include class RocketChatAccount; class MessageQueue : public QObject { Q_OBJECT public: explicit MessageQueue(RocketChatAccount *account, QObject *parent = nullptr); - ~MessageQueue(); + ~MessageQueue() override; /** * @brief Retry to send unsent messages in DDPClient's abstract message queue */ void processQueue(); /** * @brief Constructs QPair object from QJsonObject * * @param object The Json containing message attributes * @return QPair, The pair containing the method and params */ Q_REQUIRED_RESULT static QPair fromJson(const QJsonObject &object); /** * @brief Constructs QBytearray from QPair object * * @param pair The pair containing method and params * @return QByteArray, The Json containing message attributes */ Q_REQUIRED_RESULT static QByteArray serialize(const QPair &pair); void loadCache(); private: Q_DISABLE_COPY(MessageQueue) void onLoginStatusChanged(); RocketChatAccount *mRocketChatAccount = nullptr; }; #endif // MESSAGEQUEUE_H diff --git a/src/core/model/listmessagesmodel.h b/src/core/model/listmessagesmodel.h index 6f6b90a7..0edb6b8b 100644 --- a/src/core/model/listmessagesmodel.h +++ b/src/core/model/listmessagesmodel.h @@ -1,76 +1,76 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef LISTMESSAGESMODEL_H #define LISTMESSAGESMODEL_H #include "libruqolacore_export.h" #include "messagemodel.h" class LIBRUQOLACORE_EXPORT ListMessagesModel : public MessageModel { Q_OBJECT Q_PROPERTY(bool hasFullList READ hasFullList WRITE setHasFullList NOTIFY hasFullListChanged) Q_PROPERTY(ListMessagesModel::ListMessageType listMessageType READ listMessageType WRITE setListMessageType NOTIFY listMessageTypeChanged) Q_PROPERTY(int total READ total WRITE setTotal NOTIFY totalChanged) public: enum ListMessageType { Unknown = 0, StarredMessages, SnipperedMessages, PinnedMessages, MentionsMessages, }; Q_ENUM(ListMessageType) explicit ListMessagesModel(const QString &roomID = QStringLiteral("no_room"), RocketChatAccount *account = nullptr, Room *room = nullptr, QObject *parent = nullptr); - ~ListMessagesModel(); + ~ListMessagesModel() override; void parseListMessages(const QJsonObject &obj); void loadMoreListMessages(const QJsonObject &obj); Q_INVOKABLE Q_REQUIRED_RESULT int total() const; void setTotal(int total); Q_REQUIRED_RESULT bool loadMoreListMessagesInProgress() const; void setLoadMoreListMessagesInProgress(bool inProgress); void setHasFullList(bool state); Q_REQUIRED_RESULT bool hasFullList() const; Q_REQUIRED_RESULT ListMessageType listMessageType() const; void setListMessageType(const ListMessageType &listMessageType); Q_SIGNALS: void hasFullListChanged(); void listMessageTypeChanged(); void totalChanged(); private: void parse(const QJsonObject &obj); void checkFullList(); int mTotal = 0; bool mLoadingInProgress = false; bool mHasFullList = false; ListMessageType mListMessageType = Unknown; }; #endif diff --git a/src/core/model/searchmessagemodel.h b/src/core/model/searchmessagemodel.h index b90d87b7..c56c4a9c 100644 --- a/src/core/model/searchmessagemodel.h +++ b/src/core/model/searchmessagemodel.h @@ -1,50 +1,50 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SEARCHMESSAGEMODEL_H #define SEARCHMESSAGEMODEL_H #include #include #include "libruqola_private_export.h" #include "messagemodel.h" class TextConverter; class RocketChatAccount; class LIBRUQOLACORE_TESTS_EXPORT SearchMessageModel : public MessageModel { Q_OBJECT public: explicit SearchMessageModel(const QString &roomID = QStringLiteral("no_room"), RocketChatAccount *account = nullptr, Room *room = nullptr, QObject *parent = nullptr); - ~SearchMessageModel(); + ~SearchMessageModel() override; void parse(const QJsonObject &obj); Q_REQUIRED_RESULT bool stringNotFound() const; Q_SIGNALS: void listMessageTypeChanged(); void stringNotFoundChanged(); private: void checkFullList(); void setStringNotFound(bool stringNotFound); QString mRoomId; int mTotal = 0; bool mStringNotFound = false; }; #endif // SEARCHMESSAGEMODEL_H diff --git a/src/core/model/threadmessagemodel.h b/src/core/model/threadmessagemodel.h index 62fb7655..de931486 100644 --- a/src/core/model/threadmessagemodel.h +++ b/src/core/model/threadmessagemodel.h @@ -1,49 +1,49 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef THREADMESSAGEMODEL_H #define THREADMESSAGEMODEL_H #include "libruqola_private_export.h" #include "messagemodel.h" class LIBRUQOLACORE_TESTS_EXPORT ThreadMessageModel : public MessageModel { Q_OBJECT public: explicit ThreadMessageModel(const QString &roomID = QStringLiteral("no_room"), RocketChatAccount *account = nullptr, Room *room = nullptr, QObject *parent = nullptr); - ~ThreadMessageModel(); + ~ThreadMessageModel() override; Q_REQUIRED_RESULT QString threadMessageId() const; void setThreadMessageId(const QString &threadMessageId); void parseThreadMessages(const QJsonObject &obj); void loadMoreThreadMessages(const QJsonObject &obj); Q_REQUIRED_RESULT int total() const; void setTotal(int total); private: void parse(const QJsonObject &obj); QString mThreadMessageId; int mTotal = 0; }; #endif // THREADMESSAGEMODEL_H diff --git a/src/core/notification.h b/src/core/notification.h index 1691002d..0eaf3936 100644 --- a/src/core/notification.h +++ b/src/core/notification.h @@ -1,73 +1,73 @@ /* * Copyright 2016 Riccardo Iaconelli * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License or (at your option) version 3 or any later version * accepted by the membership of KDE e.V. (or its successor approved * by the membership of KDE e.V.), which shall act as a proxy * defined in Section 14 of version 3 of the license. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * */ #ifndef NOTIFICATION_H #define NOTIFICATION_H #include "libruqola_private_export.h" #include #include class UnityServiceManager; class LIBRUQOLACORE_TESTS_EXPORT Notification : public KStatusNotifierItem { Q_OBJECT public: explicit Notification(QObject *parent = nullptr); - ~Notification(); + ~Notification() override; void updateNotification(bool hasAlert, int unreadNumber, const QString &account); void clearNotification(const QString &account); #ifdef UNITY_SUPPORT UnityServiceManager *unityServiceManager(); #endif private: Q_DISABLE_COPY(Notification) struct TrayInfo { TrayInfo(int unread, bool alert) : unreadMessage(unread) , hasAlert(alert) { } bool hasNotification() const { return (unreadMessage != 0) || hasAlert; } int unreadMessage = 0; bool hasAlert = false; }; /** * @brief Creates tray icon consisting of actions */ void createTrayIcon(); void createToolTip(); void updateUnityService(int unreadMessage); QMap mListTrayIcon; #ifdef UNITY_SUPPORT UnityServiceManager *mUnityServiceManager = nullptr; #endif }; #endif // NOTIFICATION_H diff --git a/src/core/notificationoptionswrapper.h b/src/core/notificationoptionswrapper.h index 3e8c7d55..ceec44c6 100644 --- a/src/core/notificationoptionswrapper.h +++ b/src/core/notificationoptionswrapper.h @@ -1,73 +1,73 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef NOTIFICATIONOPTIONSWRAPPER_H #define NOTIFICATIONOPTIONSWRAPPER_H #include #include "notificationoptions.h" #include "libruqolacore_export.h" class LIBRUQOLACORE_EXPORT NotificationOptionsWrapper : public QObject { Q_OBJECT Q_PROPERTY(bool hideUnreadStatus READ hideUnreadStatus CONSTANT) Q_PROPERTY(bool disableNotifications READ disableNotifications CONSTANT) Q_PROPERTY(QString unreadTrayIconAlert READ unreadTrayIconAlert CONSTANT) Q_PROPERTY(QString emailNotifications READ emailNotifications CONSTANT) Q_PROPERTY(QString mobilePushNotification READ mobilePushNotification CONSTANT) Q_PROPERTY(QString desktopNotifications READ desktopNotifications CONSTANT) Q_PROPERTY(QString audioNotifications READ audioNotifications CONSTANT) Q_PROPERTY(QString audioNotificationValue READ audioNotificationValue CONSTANT) Q_PROPERTY(int desktopNotificationDuration READ desktopNotificationDuration CONSTANT) Q_PROPERTY(bool muteGroupMentions READ muteGroupMentions CONSTANT) public: explicit NotificationOptionsWrapper(QObject *parent = nullptr); explicit NotificationOptionsWrapper(const NotificationOptions ¬ification, QObject *parent = nullptr); - ~NotificationOptionsWrapper(); + ~NotificationOptionsWrapper() override; Q_REQUIRED_RESULT bool hideUnreadStatus() const; Q_REQUIRED_RESULT bool disableNotifications() const; Q_REQUIRED_RESULT QString unreadTrayIconAlert() const; Q_REQUIRED_RESULT QString emailNotifications() const; Q_REQUIRED_RESULT QString mobilePushNotification() const; Q_REQUIRED_RESULT QString desktopNotifications() const; Q_REQUIRED_RESULT QString audioNotifications() const; Q_REQUIRED_RESULT QString audioNotificationValue() const; Q_REQUIRED_RESULT int desktopNotificationDuration() const; Q_REQUIRED_RESULT bool muteGroupMentions() const; private: Q_DISABLE_COPY(NotificationOptionsWrapper) NotificationOptions mNotificationOptions; }; #endif // NOTIFICATIONOPTIONSWRAPPER_H diff --git a/src/core/notificationpreferences.h b/src/core/notificationpreferences.h index 2b7e0cd0..ad4a92ed 100644 --- a/src/core/notificationpreferences.h +++ b/src/core/notificationpreferences.h @@ -1,73 +1,73 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef NOTIFICATIONPREFERENCES_H #define NOTIFICATIONPREFERENCES_H #include "libruqolacore_export.h" #include class QQmlEngine; class QJSEngine; class NotificationPreferenceModel; class NotificationDesktopDurationPreferenceModel; class NotificationDesktopSoundPreferenceModel; class LIBRUQOLACORE_EXPORT NotificationPreferences : public QObject { Q_OBJECT Q_PROPERTY(NotificationPreferenceModel* emailNotificationModel READ emailNotificationModel CONSTANT) Q_PROPERTY(NotificationPreferenceModel* mobileNotificationModel READ mobileNotificationModel CONSTANT) Q_PROPERTY(NotificationPreferenceModel* desktopNotificationModel READ desktopNotificationModel CONSTANT) Q_PROPERTY(NotificationPreferenceModel* desktopAudioNotificationModel READ desktopAudioNotificationModel CONSTANT) Q_PROPERTY(NotificationDesktopDurationPreferenceModel* desktopDurationNotificationModel READ desktopDurationNotificationModel CONSTANT) Q_PROPERTY(NotificationDesktopSoundPreferenceModel* desktopSoundNotificationModel READ desktopSoundNotificationModel CONSTANT) public: explicit NotificationPreferences(QObject *parent = nullptr); - ~NotificationPreferences(); + ~NotificationPreferences() override; Q_REQUIRED_RESULT NotificationPreferenceModel *emailNotificationModel() const; Q_REQUIRED_RESULT NotificationPreferenceModel *mobileNotificationModel() const; Q_REQUIRED_RESULT NotificationPreferenceModel *desktopNotificationModel() const; Q_REQUIRED_RESULT NotificationPreferenceModel *desktopAudioNotificationModel() const; Q_REQUIRED_RESULT NotificationDesktopDurationPreferenceModel *desktopDurationNotificationModel() const; Q_REQUIRED_RESULT NotificationDesktopSoundPreferenceModel *desktopSoundNotificationModel() const; static NotificationPreferences *self(); private: NotificationPreferenceModel *mEmailNotificationModel = nullptr; NotificationPreferenceModel *mMobileNotificationModel = nullptr; NotificationPreferenceModel *mDesktopNotificationModel = nullptr; NotificationPreferenceModel *mDesktopAudioNotificationModel = nullptr; NotificationDesktopDurationPreferenceModel *mDesktopDurationNotificationModel = nullptr; NotificationDesktopSoundPreferenceModel *mDesktopSoundNotificationModel = nullptr; }; inline static QObject *notificationpreferences_singletontype_provider(QQmlEngine *engine, QJSEngine *scriptEngine) { Q_UNUSED(engine) Q_UNUSED(scriptEngine) return new NotificationPreferences(); } #endif // NOTIFICATIONPREFERENCES_H diff --git a/src/core/otrmanager.h b/src/core/otrmanager.h index 23aa5894..abd54bbd 100644 --- a/src/core/otrmanager.h +++ b/src/core/otrmanager.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef OTRMANAGER_H #define OTRMANAGER_H #include #include #include "libruqola_private_export.h" #include "otr.h" class LIBRUQOLACORE_TESTS_EXPORT OtrManager : public QObject { Q_OBJECT public: explicit OtrManager(QObject *parent = nullptr); - ~OtrManager(); + ~OtrManager() override; Q_REQUIRED_RESULT Otr parseOtr(const QJsonArray &contents); private: Q_DISABLE_COPY(OtrManager) }; #endif // OTRMANAGER_H diff --git a/src/core/plugins/pluginauthentication.h b/src/core/plugins/pluginauthentication.h index 10fe7820..515029e5 100644 --- a/src/core/plugins/pluginauthentication.h +++ b/src/core/plugins/pluginauthentication.h @@ -1,45 +1,45 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef PLUGINAUTHENTICATION_H #define PLUGINAUTHENTICATION_H #include #include "libruqolacore_export.h" #include "authenticationmanager.h" class PluginAuthenticationInterface; class LIBRUQOLACORE_EXPORT PluginAuthentication : public QObject { Q_OBJECT public: explicit PluginAuthentication(QObject *parent = nullptr); - ~PluginAuthentication(); + ~PluginAuthentication() override; virtual PluginAuthenticationInterface *createInterface(QObject *parent) = 0; Q_REQUIRED_RESULT virtual AuthenticationManager::OauthType type() const = 0; Q_REQUIRED_RESULT virtual QString name() const = 0; Q_REQUIRED_RESULT virtual QString iconName() const = 0; }; #endif // PLUGINAUTHENTICATION_H diff --git a/src/core/plugins/pluginauthenticationinterface.h b/src/core/plugins/pluginauthenticationinterface.h index dc5b1bce..687ee509 100644 --- a/src/core/plugins/pluginauthenticationinterface.h +++ b/src/core/plugins/pluginauthenticationinterface.h @@ -1,47 +1,47 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef PluginAuthenticationInterface_H #define PluginAuthenticationInterface_H #include #include "libruqolacore_export.h" #include "ddpapi/ddpclient.h" class RocketChatAccount; class LIBRUQOLACORE_EXPORT PluginAuthenticationInterface : public QObject { Q_OBJECT public: explicit PluginAuthenticationInterface(QObject *parent = nullptr); - ~PluginAuthenticationInterface(); + ~PluginAuthenticationInterface() override; virtual void login() = 0; Q_REQUIRED_RESULT RocketChatAccount *account() const; void setAccount(RocketChatAccount *account); Q_SIGNALS: void loginFailed(const QString &message); protected: RocketChatAccount *mAccount = nullptr; }; #endif diff --git a/src/core/receivetypingnotificationmanager.h b/src/core/receivetypingnotificationmanager.h index e99aa39a..7f627772 100644 --- a/src/core/receivetypingnotificationmanager.h +++ b/src/core/receivetypingnotificationmanager.h @@ -1,48 +1,48 @@ /* Copyright (c) 2018-2020 Laurent Montel This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef RECEIVETYPINGNOTIFICATIONMANAGER_H #define RECEIVETYPINGNOTIFICATIONMANAGER_H #include #include "libruqolacore_export.h" #include class LIBRUQOLACORE_EXPORT ReceiveTypingNotificationManager : public QObject { Q_OBJECT public: explicit ReceiveTypingNotificationManager(QObject *parent = nullptr); - ~ReceiveTypingNotificationManager(); + ~ReceiveTypingNotificationManager() override; void insertTypingNotification(const QString &roomId, const QString &userName, bool onTyping); Q_REQUIRED_RESULT QString typingNotification(const QString &roomId) const; void clearTypingNotification(); Q_SIGNALS: void notificationChanged(const QString &roomId, const QString ¬ificationStr); void clearNotification(); private: Q_DISABLE_COPY(ReceiveTypingNotificationManager) QString generateNotification(const QStringList &userNames) const; QMap mMapTypingNotifications; }; #endif // RECEIVETYPINGNOTIFICATIONMANAGER_H diff --git a/src/core/rocketchataccount.h b/src/core/rocketchataccount.h index e0c1e8b5..78532dcc 100644 --- a/src/core/rocketchataccount.h +++ b/src/core/rocketchataccount.h @@ -1,506 +1,506 @@ /* Copyright (c) 2017-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROCKETCHATACCOUNT_H #define ROCKETCHATACCOUNT_H #include #include #include #include #include "messages/message.h" #include "rocketchataccountsettings.h" #include "libruqolacore_export.h" #include "authenticationinfo.h" #include "file.h" #include "inputtextmanager.h" #include "accountroomsettings.h" class TypingNotification; class UsersModel; class RoomModel; class RoomWrapper; class MessageModel; class DDPClient; class MessageQueue; class RocketChatBackend; class RoomFilterProxyModel; class RuqolaLogger; class RuqolaServerConfig; class UserCompleterModel; class UserCompleterFilterProxyModel; class StatusModel; class RocketChatCache; class EmojiManager; class OtrManager; class UsersForRoomFilterProxyModel; class FilesForRoomFilterProxyModel; class FilesForRoomModel; class SearchChannelModel; class SearchChannelFilterProxyModel; class LoginMethodModel; class InputCompleterModel; class InputTextManager; class PluginAuthenticationInterface; class Room; class SearchMessageModel; class SearchMessageFilterProxyModel; class ThreadsFilterProxyModel; class ServerConfigInfo; class ReceiveTypingNotificationManager; class EmoticonModel; class DiscussionsFilterProxyModel; class DiscussionsModel; class ThreadsModel; class ThreadMessageModel; class ListMessagesModel; class ListMessagesModelFilterProxyModel; class AutotranslateLanguagesModel; namespace RocketChatRestApi { class RestApiRequest; } class LIBRUQOLACORE_EXPORT RocketChatAccount : public QObject { Q_OBJECT Q_PROPERTY(QString userName READ userName WRITE setUserName NOTIFY userNameChanged) Q_PROPERTY(QString userID READ userID WRITE setUserID NOTIFY userIDChanged) Q_PROPERTY(QString serverUrl READ serverUrl WRITE setServerUrl NOTIFY serverUrlChanged) Q_PROPERTY(QString accountName READ accountName WRITE setAccountName NOTIFY accountNameChanged) Q_PROPERTY(QString password READ password WRITE setPassword NOTIFY passwordChanged) Q_PROPERTY(QString twoFactorAuthenticationCode READ twoFactorAuthenticationCode WRITE setTwoFactorAuthenticationCode NOTIFY twoFactorAuthenticationCodeChanged) Q_PROPERTY(DDPClient::LoginStatus loginStatus READ loginStatus NOTIFY loginStatusChanged) Q_PROPERTY(bool editingMode READ editingMode NOTIFY editingModeChanged) Q_PROPERTY(bool sortUnreadOnTop READ sortUnreadOnTop NOTIFY sortUnreadOnTopChanged) Q_PROPERTY(bool autoTranslateEnabled READ autoTranslateEnabled CONSTANT) Q_PROPERTY(bool jitsiEnabled READ jitsiEnabled CONSTANT) Q_PROPERTY(bool encryptedEnabled READ encryptedEnabled CONSTANT) Q_PROPERTY(bool allowMessagePinningEnabled READ allowMessagePinningEnabled CONSTANT) Q_PROPERTY(bool allowMessageSnippetingEnabled READ allowMessageSnippetingEnabled CONSTANT) Q_PROPERTY(bool allowMessageStarringEnabled READ allowMessageStarringEnabled CONSTANT) Q_PROPERTY(bool allowMessageDeletingEnabled READ allowMessageDeletingEnabled CONSTANT) Q_PROPERTY(bool threadsEnabled READ threadsEnabled CONSTANT) Q_PROPERTY(bool discussionEnabled READ discussionEnabled CONSTANT) Q_PROPERTY(bool hasPinnedMessagesSupport READ hasPinnedMessagesSupport CONSTANT) Q_PROPERTY(bool hasSnippetedMessagesSupport READ hasSnippetedMessagesSupport CONSTANT) Q_PROPERTY(bool hasStarredMessagesSupport READ hasStarredMessagesSupport CONSTANT) Q_PROPERTY(bool allowEditingMessages READ allowEditingMessages CONSTANT) Q_PROPERTY(bool otrEnabled READ otrEnabled CONSTANT) Q_PROPERTY(ServerConfigInfo* serverConfigInfo READ serverConfigInfo CONSTANT) Q_PROPERTY(AutotranslateLanguagesModel* autoTranslateLanguagesModel READ autoTranslateLanguagesModel CONSTANT) Q_PROPERTY(QString recordingVideoPath READ recordingVideoPath CONSTANT) Q_PROPERTY(QString recordingImagePath READ recordingImagePath CONSTANT) Q_PROPERTY(LoginMethodModel* loginMethodModel READ loginMethodModel CONSTANT) Q_PROPERTY(StatusModel* statusModel READ statusModel CONSTANT) Q_PROPERTY(DiscussionsFilterProxyModel* discussionsFilterProxyModel READ discussionsFilterProxyModel CONSTANT) Q_PROPERTY(SearchChannelFilterProxyModel* searchChannelFilterProxyModel READ searchChannelFilterProxyModel CONSTANT) Q_PROPERTY(InputCompleterModel* inputCompleterModel READ inputCompleterModel CONSTANT) Q_PROPERTY(InputCompleterModel* inputThreadMessageCompleterModel READ inputThreadMessageCompleterModel CONSTANT) Q_PROPERTY(ThreadsFilterProxyModel* threadsFilterProxyModel READ threadsFilterProxyModel CONSTANT) Q_PROPERTY(MessageModel* threadMessageModel READ threadMessageModel CONSTANT) Q_PROPERTY(EmoticonModel* emoticonModel READ emoticonModel CONSTANT) Q_PROPERTY(FilesForRoomFilterProxyModel* filesForRoomFilterProxyModel READ filesForRoomFilterProxyModel CONSTANT) Q_PROPERTY(SearchMessageFilterProxyModel* searchMessageFilterProxyModel READ searchMessageFilterProxyModel CONSTANT) Q_PROPERTY(ListMessagesModelFilterProxyModel* listMessagesFilterProxyModel READ listMessagesFilterProxyModel CONSTANT) Q_PROPERTY(RoomFilterProxyModel* roomFilterProxyModel READ roomFilterProxyModel CONSTANT) Q_PROPERTY(UsersModel* usersModel READ usersModel CONSTANT) Q_PROPERTY(ReceiveTypingNotificationManager* receiveTypingNotificationManager READ receiveTypingNotificationManager CONSTANT) Q_PROPERTY(UserCompleterFilterProxyModel* userCompleterFilterModelProxy READ userCompleterFilterModelProxy CONSTANT) public: explicit RocketChatAccount(const QString &accountName = QString(), QObject *parent = nullptr); - ~RocketChatAccount(); + ~RocketChatAccount() override; enum RoomInfoType { Announcement, Description, Name, Topic, ReadOnly, Archive, RoomType, Encrypted, Password }; Q_ENUM(RoomInfoType) enum NotificationOptionsType { DisableNotifications, HideUnreadStatus, AudioNotifications, DesktopNotifications, DesktopDurationNotifications, DesktopSoundNotifications, EmailNotifications, MobilePushNotifications, UnreadAlert, MuteGroupMentions }; Q_ENUM(NotificationOptionsType) enum RoleType { AddOwner, AddLeader, AddModerator, RemoveOwner, RemoveLeader, RemoveModerator }; Q_ENUM(RoleType) Q_INVOKABLE Q_REQUIRED_RESULT QString getUserCurrentMessage(const QString &roomId); Q_INVOKABLE void setUserCurrentMessage(const QString &message, const QString &roomId); Q_INVOKABLE void textEditing(const QString &roomId, bool clearNotification); Q_INVOKABLE void leaveRoom(const QString &roomId, const QString &channelType); Q_INVOKABLE void hideRoom(const QString &roomId, const QString &channelType = QString()); Q_INVOKABLE void tryLogin(); Q_INVOKABLE void logOut(); Q_INVOKABLE void clearAllUnreadMessages(); Q_INVOKABLE void clearUnreadMessages(const QString &roomId); Q_INVOKABLE void changeFavorite(const QString &roomId, bool checked); Q_INVOKABLE void sendMessage(const QString &roomID, const QString &message); Q_INVOKABLE void updateMessage(const QString &roomID, const QString &messageId, const QString &message); Q_INVOKABLE void replyOnThread(const QString &roomID, const QString &threadMessageId, const QString &message); Q_INVOKABLE void openChannel(const QString &url); Q_INVOKABLE void joinJitsiConfCall(const QString &roomId); Q_INVOKABLE void createNewChannel(const QString &name, bool readOnly, bool privateRoom, const QString &userNames, bool encryptedRoom, const QString &password, bool broadcast); Q_INVOKABLE void joinRoom(const QString &roomId, const QString &joinCode = QString()); Q_INVOKABLE void openDirectChannel(const QString &username); Q_INVOKABLE void setDefaultStatus(User::PresenceStatus status, const QString &messageStatus); //Move to private no ? Q_INVOKABLE void changeDefaultStatus(int index, const QString &messageStatus); Q_INVOKABLE void createJitsiConfCall(const QString &roomId); Q_INVOKABLE void deleteMessage(const QString &messageId, const QString &roomId); Q_INVOKABLE void userAutocomplete(const QString &searchText, const QString &exception); Q_INVOKABLE void eraseRoom(const QString &roomId, const QString &channelType); Q_INVOKABLE void changeChannelSettings(const QString &roomId, RocketChatAccount::RoomInfoType infoType, const QVariant &newValue, const QString &channelType = QString()); Q_INVOKABLE void changeNotificationsSettings(const QString &roomId, RocketChatAccount::NotificationOptionsType notificationsType, const QVariant &newValue); Q_INVOKABLE void downloadFile(const QString &downloadFileUrl, const QUrl &localFile); Q_INVOKABLE void starMessage(const QString &messageId, bool starred); Q_INVOKABLE void pinMessage(const QString &messageId, bool pinned); Q_INVOKABLE void uploadFile(const QString &roomId, const QString &description, const QString &messageText, const QUrl &fileUrl); Q_INVOKABLE Q_REQUIRED_RESULT QString avatarUrl(const QString &userId); Q_INVOKABLE Q_REQUIRED_RESULT QUrl attachmentUrl(const QString &url); Q_INVOKABLE void loadHistory(const QString &roomID, const QString &channelType = QString(), bool initial = false); Q_INVOKABLE void channelAndPrivateAutocomplete(const QString &pattern); Q_INVOKABLE void roomFiles(const QString &roomId, const QString &channelType = QString()); Q_INVOKABLE void addUserToRoom(const QString &username, const QString &roomId, const QString &channelType); Q_INVOKABLE void changeDefaultAuthentication(int index); Q_INVOKABLE void messageSearch(const QString &pattern, const QString &rid); Q_INVOKABLE void setInputTextChanged(const QString &str, int position); Q_INVOKABLE Q_REQUIRED_RESULT QString replaceWord(const QString &newWord, const QString &str, int position); InputTextManager *inputTextManager() const { return mInputTextManager; } Q_INVOKABLE void blockUser(const QString &userId, bool block); Q_INVOKABLE Q_REQUIRED_RESULT QString avatarUrlFromDirectChannel(const QString &rid); Q_INVOKABLE void deleteFileMessage(const QString &roomId, const QString &fileId, const QString &channelType); Q_INVOKABLE void openDocumentation(); Q_INVOKABLE void clearSearchModel(); Q_INVOKABLE void reactOnMessage(const QString &messageId, const QString &emoji, bool shouldReact); Q_INVOKABLE void ignoreUser(const QString &rid, const QString &userId, bool ignore); Q_INVOKABLE void channelInfo(const QString &roomId); Q_INVOKABLE void groupInfo(const QString &roomId); Q_INVOKABLE void switchEditingMode(bool b); Q_INVOKABLE void setSortUnreadOnTop(bool b); Q_INVOKABLE void kickUser(const QString &rid, const QString &userId, const QString &channelType); Q_INVOKABLE void changeRoles(const QString &rid, const QString &userId, const QString &channelType, RocketChatAccount::RoleType roleType); Q_INVOKABLE void rolesInRoom(const QString &roomId, const QString &channelType); Q_INVOKABLE void switchingToRoom(const QString &roomID); Q_INVOKABLE void reportMessage(const QString &messageId, const QString &message); Q_INVOKABLE void getThreadMessages(const QString &threadMessageId); Q_INVOKABLE void createDiscussion(const QString &parentRoomName, const QString &discussionName, const QString &replyMessage, const QString &messageId, const QStringList &users = QStringList()); Q_INVOKABLE void threadsInRoom(const QString &roomId); Q_INVOKABLE void discussionsInRoom(const QString &roomId); Q_INVOKABLE void followMessage(const QString &messageId, bool follow); Q_INVOKABLE void replyToMessage(const QString &roomID, const QString &message, const QString &messageId); Q_INVOKABLE void loadMoreFileAttachments(const QString &roomId, const QString &channelType); Q_INVOKABLE void loadMoreDiscussions(const QString &roomId); Q_INVOKABLE void loadMoreThreads(const QString &roomId); Q_INVOKABLE void loadThreadMessagesHistory(const QString &roomId); Q_INVOKABLE void loadMoreUsersInRoom(const QString &roomId, const QString &channelType); Q_INVOKABLE void getPinnedMessages(const QString &roomId); Q_INVOKABLE void getStarredMessages(const QString &roomId); Q_INVOKABLE void getSnippetedMessages(const QString &roomId); Q_INVOKABLE void getMentionsMessages(const QString &roomId); Q_INVOKABLE void autoTranslateSaveLanguageSettings(const QString &roomId, const QString &language); Q_INVOKABLE void autoTranslateSaveAutoTranslateSettings(const QString &roomId, bool autoTranslate); Q_INVOKABLE UsersForRoomFilterProxyModel *usersForRoomFilterProxyModel(const QString &roomId) const; Q_INVOKABLE RoomWrapper *roomWrapper(const QString &roomId); Q_INVOKABLE MessageModel *messageModelForRoom(const QString &roomID); Q_INVOKABLE void changeDisplayAttachment(const QString &roomId, const QString &messageId, bool displayAttachment); Q_INVOKABLE void changeShowOriginalMessage(const QString &roomId, const QString &messageId, bool showOriginal); Q_INVOKABLE void loadMoreListMessages(const QString &roomId); Q_INVOKABLE void getListMessages(const QString &roomId, ListMessagesModel::ListMessageType type); QUrl urlForLink(const QString &link) const; SearchMessageFilterProxyModel *searchMessageFilterProxyModel() const; FilesForRoomFilterProxyModel *filesForRoomFilterProxyModel() const; ReceiveTypingNotificationManager *receiveTypingNotificationManager() const; UserCompleterFilterProxyModel *userCompleterFilterModelProxy() const; UsersModel *usersModel() const; RoomFilterProxyModel *roomFilterProxyModel() const; MessageModel *threadMessageModel() const; EmoticonModel *emoticonModel() const; SearchChannelFilterProxyModel *searchChannelFilterProxyModel() const; AutotranslateLanguagesModel *autoTranslateLanguagesModel() const; DiscussionsFilterProxyModel *discussionsFilterProxyModel() const; SearchChannelModel *searchChannelModel() const; UserCompleterModel *userCompleterModel() const; RocketChatAccountSettings *settings() const; InputCompleterModel *inputCompleterModel() const; InputCompleterModel *inputThreadMessageCompleterModel() const; ThreadsFilterProxyModel *threadsFilterProxyModel() const; DDPClient *ddp(); RoomModel *roomModel() const; LoginMethodModel *loginMethodModel() const; Q_REQUIRED_RESULT bool editingMode() const; Q_REQUIRED_RESULT QString serverVersionStr() const; Q_REQUIRED_RESULT bool sortUnreadOnTop() const; Q_REQUIRED_RESULT DDPClient::LoginStatus loginStatus(); RocketChatRestApi::RestApiRequest *restApi(); //Make it private in future void slotInformTypingStatus(const QString &room, bool typing); MessageQueue *messageQueue() const; RocketChatBackend *rocketChatBackend() const; RuqolaLogger *ruqolaLogger() const; void parsePublicSettings(const QJsonObject &obj); RuqolaServerConfig *ruqolaServerConfig() const; void setUserName(const QString &username); Q_REQUIRED_RESULT QString userName() const; void setAccountName(const QString &servername); Q_REQUIRED_RESULT QString accountName() const; void setUserID(const QString &userID); Q_REQUIRED_RESULT QString userID() const; void setPassword(const QString &password); Q_REQUIRED_RESULT QString password() const; void setTwoFactorAuthenticationCode(const QString &twoFactorAuthenticationCode); Q_REQUIRED_RESULT QString twoFactorAuthenticationCode() const; void setAuthToken(const QString &token); Q_REQUIRED_RESULT QString authToken() const; void setServerUrl(const QString &serverUrl); void sendNotification(const QJsonArray &contents); void parseOtr(const QJsonArray &contents); void setServerVersion(const QString &version); Q_REQUIRED_RESULT bool needAdaptNewSubscriptionRC60() const; EmojiManager *emojiManager() const; Q_REQUIRED_RESULT QString userStatusIconFileName(const QString &id); void membersInRoom(const QString &roomId, const QString &roomType); void parseUsersForRooms(const QJsonObject &obj, const QString &roomId); void loadAutoCompleteChannel(const QJsonObject &obj); void insertCompleterUsers(); void inputTextCompleter(const QJsonObject &obj); PluginAuthenticationInterface *defaultAuthenticationInterface() const; SearchMessageModel *searchMessageModel() const; void updateUser(const QJsonObject &object); void removeSettings(); void rolesChanged(const QJsonArray &contents); FilesForRoomModel *filesModelForRoom() const; DiscussionsModel *discussionsModel() const; ThreadsModel *threadsModel() const; Q_REQUIRED_RESULT bool encryptedEnabled() const; void updateThreadMessageList(const Message &m); void initializeAccount(); Q_REQUIRED_RESULT bool allowEditingMessages() const; Q_REQUIRED_RESULT bool otrEnabled() const; ListMessagesModel *listMessageModel() const; ListMessagesModelFilterProxyModel *listMessagesFilterProxyModel() const; Q_REQUIRED_RESULT ServerConfigInfo *serverConfigInfo() const; Q_REQUIRED_RESULT QString serverUrl() const; Q_REQUIRED_RESULT StatusModel *statusModel() const; void customUsersStatus(); Q_REQUIRED_RESULT bool jitsiEnabled() const; Q_REQUIRED_RESULT bool allowMessagePinningEnabled() const; Q_REQUIRED_RESULT bool allowMessageSnippetingEnabled() const; Q_REQUIRED_RESULT bool allowMessageStarringEnabled() const; Q_REQUIRED_RESULT bool allowMessageDeletingEnabled() const; Q_REQUIRED_RESULT bool hasPinnedMessagesSupport() const; Q_REQUIRED_RESULT bool hasStarredMessagesSupport() const; Q_REQUIRED_RESULT bool hasSnippetedMessagesSupport() const; Q_REQUIRED_RESULT bool autoTranslateEnabled() const; Q_REQUIRED_RESULT bool threadsEnabled() const; Q_REQUIRED_RESULT bool discussionEnabled() const; Q_REQUIRED_RESULT QString recordingVideoPath() const; Q_REQUIRED_RESULT QString recordingImagePath() const; void setAccountEnabled(bool enabled); Q_REQUIRED_RESULT bool accountEnabled() const; void insertAvatarUrl(const QString &userId, const QUrl &url); Q_REQUIRED_RESULT AccountRoomSettings *accountRoomSettings() const; Q_SIGNALS: void connectedChanged(); void accountNameChanged(); void userNameChanged(); void userIDChanged(); void passwordChanged(); void twoFactorAuthenticationCodeChanged(); void serverUrlChanged(); void loginStatusChanged(); void socketError(QAbstractSocket::SocketError error, const QString &errorString); void logoutDone(const QString &accountname); void added(const QJsonObject &item); void changed(const QJsonObject &item); void removed(const QJsonObject &item); void notification(const QString &title, const QString &message, const QPixmap &pixmap); void fileDownloaded(const QString &filePath, const QUrl &cacheImageUrl); void updateNotification(bool hasAlert, int nbUnread, const QString &accountName); void missingChannelPassword(const QString &roomId); void editingModeChanged(); void sortUnreadOnTopChanged(); void jobFailed(const QString &message); void switchedRooms(); void userStatusUpdated(User::PresenceStatus status); void publicSettingChanged(); void serverVersionChanged(); private: Q_DISABLE_COPY(RocketChatAccount) Room *getRoom(const QString &roomId); void slotChannelFilesDone(const QJsonObject &obj, const QString &roomId); void slotChannelRolesDone(const QJsonObject &obj, const QString &roomId); void slotSplotLightDone(const QJsonObject &obj); void slotGetThreadMessagesDone(const QJsonObject &obj, const QString &threadMessageId); void slotGetThreadsListDone(const QJsonObject &obj, const QString &roomId); void slotGetDiscussionsListDone(const QJsonObject &obj, const QString &roomId); void slotGetSupportedLanguagesDone(const QJsonObject &obj); void slotUsersPresenceDone(const QJsonObject &obj); void slotSocketError(QAbstractSocket::SocketError error, const QString &errorString); void slotDisconnectedByServer(); void loadEmoji(const QJsonObject &obj); void slotSearchMessages(const QJsonObject &obj); void slotNeedToUpdateNotification(); void loadSettings(const QString &accountFileName); void clearModels(); void fillOauthModel(); void initializeAuthenticationPlugins(); void setDefaultAuthentication(AuthenticationManager::OauthType type); void userStatusChanged(User *user); void setChannelJoinDone(const QString &roomId); void openArchivedRoom(const QString &roomId); void getSupportedLanguages(); void usersPresence(); void listEmojiCustom(); void checkInitializedRoom(const QString &roomId); void clearTypingNotification(); void inputAutocomplete(const QString &pattern, const QString &exceptions, InputTextManager::CompletionForType type); void inputThreadMessageAutocomplete(const QString &pattern, const QString &exceptions, InputTextManager::CompletionForType type); void slotGetListMessagesDone(const QJsonObject &obj, const QString &roomId, ListMessagesModel::ListMessageType type); void slotUserAutoCompleterDone(const QJsonObject &obj); AccountRoomSettings *mAccountRoomSettings = nullptr; PluginAuthenticationInterface *mDefaultAuthenticationInterface = nullptr; QHash mLstPluginAuthenticationInterface; QVector mLstInfos; RocketChatAccountSettings *mSettings = nullptr; EmojiManager *mEmojiManager = nullptr; TypingNotification *mTypingNotification = nullptr; UsersModel *mUserModel = nullptr; RoomModel *mRoomModel = nullptr; RoomFilterProxyModel *mRoomFilterProxyModel = nullptr; DDPClient *mDdp = nullptr; RocketChatRestApi::RestApiRequest *mRestApi = nullptr; MessageQueue *mMessageQueue = nullptr; RocketChatBackend *mRocketChatBackend = nullptr; RuqolaLogger *mRuqolaLogger = nullptr; RuqolaServerConfig *mRuqolaServerConfig = nullptr; UserCompleterModel *mUserCompleterModel = nullptr; UserCompleterFilterProxyModel *mUserCompleterFilterModelProxy = nullptr; StatusModel *mStatusModel = nullptr; RocketChatCache *mCache = nullptr; OtrManager *mOtrManager = nullptr; SearchChannelModel *mSearchChannelModel = nullptr; SearchChannelFilterProxyModel *mSearchChannelFilterProxyModel = nullptr; LoginMethodModel *mLoginMethodModel = nullptr; InputTextManager *mInputTextManager = nullptr; InputTextManager *mInputThreadMessageTextManager = nullptr; SearchMessageModel *mSearchMessageModel = nullptr; SearchMessageFilterProxyModel *mSearchMessageFilterProxyModel = nullptr; ReceiveTypingNotificationManager *mReceiveTypingNotificationManager = nullptr; ServerConfigInfo *mServerConfigInfo = nullptr; FilesForRoomModel *mFilesModelForRoom = nullptr; FilesForRoomFilterProxyModel *mFilesForRoomFilterProxyModel = nullptr; DiscussionsFilterProxyModel *mDiscussionsFilterProxyModel = nullptr; DiscussionsModel *mDiscussionsModel = nullptr; ThreadsModel *mThreadsModel = nullptr; ThreadsFilterProxyModel *mThreadsFilterProxyModel = nullptr; EmoticonModel *mEmoticonModel = nullptr; ThreadMessageModel *mThreadMessageModel = nullptr; ListMessagesModel *mListMessageModel = nullptr; ListMessagesModelFilterProxyModel *mListMessagesFilterProxyModel = nullptr; AutotranslateLanguagesModel *mAutoTranslateLanguagesModel = nullptr; bool mEditingMode = false; }; #endif // ROCKETCHATACCOUNT_H diff --git a/src/core/rocketchataccountsettings.h b/src/core/rocketchataccountsettings.h index fc92c942..748b03c9 100644 --- a/src/core/rocketchataccountsettings.h +++ b/src/core/rocketchataccountsettings.h @@ -1,106 +1,106 @@ /* Copyright (c) 2017-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROCKETCHATACCOUNTSETTINGS_H #define ROCKETCHATACCOUNTSETTINGS_H #include #include #include "libruqolacore_export.h" namespace QKeychain { class Job; } class QSettings; class LIBRUQOLACORE_EXPORT RocketChatAccountSettings : public QObject { Q_OBJECT public: explicit RocketChatAccountSettings(const QString &accountFileName = QString(), QObject *parent = nullptr); - ~RocketChatAccountSettings(); + ~RocketChatAccountSettings() override; Q_REQUIRED_RESULT QString userId() const; void setUserId(const QString &userId); Q_REQUIRED_RESULT QString authToken() const; void setAuthToken(const QString &authToken); //account info Q_REQUIRED_RESULT QString serverUrl() const; void setServerUrl(const QString &serverUrl); Q_REQUIRED_RESULT QString accountName() const; void setAccountName(const QString &accountName); Q_REQUIRED_RESULT QString userName() const; void setUserName(const QString &userName); Q_REQUIRED_RESULT QString twoFactorAuthenticationCode() const; void setTwoFactorAuthenticationCode(const QString &twoFactorAuthenticationCode); void logout(); Q_REQUIRED_RESULT QString cacheBasePath(); Q_REQUIRED_RESULT QString password() const; void setPassword(const QString &password); void removeSettings(); Q_REQUIRED_RESULT bool showUnreadOnTop() const; bool setShowUnreadOnTop(bool showUnreadOnTop); Q_REQUIRED_RESULT qint64 expireToken() const; void setExpireToken(const qint64 &expireToken); Q_REQUIRED_RESULT bool tokenExpired() const; Q_REQUIRED_RESULT bool accountEnabled() const; void setAccountEnabled(bool accountEnabled); Q_SIGNALS: void serverURLChanged(); void userNameChanged(); void userIDChanged(); void accountNameChanged(); void passwordChanged(); void twoFactorAuthenticationCodeChanged(); void enableAccountChanged(); private: Q_DISABLE_COPY(RocketChatAccountSettings) void initializeSettings(const QString &accountFileName); void slotPasswordRead(QKeychain::Job *job); void slotPasswordWritten(QKeychain::Job *job); QString mUserId; QString mAuthToken; QString mServerUrl; QString mAccountName; QString mCachePath; QString mUserName; QString mPassword; QString mTwoFactorAuthenticationCode; qint64 mExpireToken = -1; QSettings *mSetting = nullptr; bool mShowUnreadOnTop = false; bool mAccountEnabled = true; }; #endif // ROCKETCHATACCOUNTSETTINGS_H diff --git a/src/core/rocketchatbackend.h b/src/core/rocketchatbackend.h index d516a28f..4c7f0054 100644 --- a/src/core/rocketchatbackend.h +++ b/src/core/rocketchatbackend.h @@ -1,73 +1,73 @@ /* * Copyright 2016 Riccardo Iaconelli * Copyright 2018-2020 Laurent Montel * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License or (at your option) version 3 or any later version * accepted by the membership of KDE e.V. (or its successor approved * by the membership of KDE e.V.), which shall act as a proxy * defined in Section 14 of version 3 of the license. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * */ #ifndef ROCKETCHATBACKEND_H #define ROCKETCHATBACKEND_H #include "file.h" #include "libruqolacore_export.h" #include #include #include #include "user.h" #include "model/roommodel.h" class RocketChatAccount; class LIBRUQOLACORE_EXPORT RocketChatBackend : public QObject { Q_OBJECT public: explicit RocketChatBackend(RocketChatAccount *account, QObject *parent = nullptr); - ~RocketChatBackend(); + ~RocketChatBackend() override; /** * @brief Adds incoming message from server to appropriate room * * @param messages The Json containing the message */ void processIncomingMessages(const QJsonArray &messages); void clearUsersList(); Q_REQUIRED_RESULT QVector users() const; void clearFilesList(); Q_REQUIRED_RESULT QVector files() const; private: Q_DISABLE_COPY(RocketChatBackend) void slotRemoved(const QJsonObject &object); void slotAdded(const QJsonObject &object); void slotChanged(const QJsonObject &object); void slotLoginStatusChanged(); void slotConnectedChanged(); void slotUserIDChanged(); void slotGetServerInfoFailed(bool useDeprecatedVersion); void parseOwnInfoDown(const QJsonObject &replyObject); void parseServerVersionDone(const QString &version); QVector mUsers; QVector mFiles; RocketChatAccount *mRocketChatAccount = nullptr; }; #endif // ROCKETCHATBACKEND_H diff --git a/src/core/rocketchatcache.h b/src/core/rocketchatcache.h index 624924f4..12dca125 100644 --- a/src/core/rocketchatcache.h +++ b/src/core/rocketchatcache.h @@ -1,65 +1,65 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROCKETCHATCACHE_H #define ROCKETCHATCACHE_H #include #include #include #include "libruqola_private_export.h" class RocketChatAccount; class AvatarManager; class LIBRUQOLACORE_TESTS_EXPORT RocketChatCache : public QObject { Q_OBJECT public: explicit RocketChatCache(RocketChatAccount *account, QObject *parent = nullptr); - ~RocketChatCache(); + ~RocketChatCache() override; Q_REQUIRED_RESULT QString recordingVideoPath(const QString &accountName) const; Q_REQUIRED_RESULT QString recordingImagePath(const QString &accountName) const; Q_REQUIRED_RESULT QString avatarUrl(const QString &userId); void insertAvatarUrl(const QString &userId, const QUrl &url); void downloadFileFromServer(const QString &filename); Q_REQUIRED_RESULT QUrl attachmentUrl(const QString &url); void downloadFile(const QString &url, const QUrl &localFile, bool storeInCache); Q_REQUIRED_RESULT QString avatarUrlFromCacheOnly(const QString &userId); QUrl urlForLink(const QString &link) const; Q_SIGNALS: void fileDownloaded(const QString &filePath, const QUrl &cacheImageUrl); private: Q_DISABLE_COPY(RocketChatCache) bool fileInCache(const QUrl &url); QString fileCachePath(const QUrl &url); void downloadAvatarFromServer(const QString &userId); void slotDataDownloaded(const QByteArray &data, const QUrl &url, bool storeInCache, const QUrl &localFileUrl); void loadAvatarCache(); QHash mUserAvatarUrl; QSet mFileInDownload; RocketChatAccount *mAccount = nullptr; AvatarManager *mAvatarManager = nullptr; }; #endif // ROCKETCHATCACHE_H diff --git a/src/core/roomwrapper.h b/src/core/roomwrapper.h index ed629419..c065a258 100644 --- a/src/core/roomwrapper.h +++ b/src/core/roomwrapper.h @@ -1,125 +1,125 @@ /* * Copyright 2016 Riccardo Iaconelli * Copyright 2017-2020 Laurent Montel * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License or (at your option) version 3 or any later version * accepted by the membership of KDE e.V. (or its successor approved * by the membership of KDE e.V.), which shall act as a proxy * defined in Section 14 of version 3 of the license. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * */ #ifndef ROOMWRAPPER_H #define ROOMWRAPPER_H #include #include "room.h" #include "libruqola_private_export.h" class Room; class LIBRUQOLACORE_EXPORT RoomWrapper : public QObject { Q_PROPERTY(QString name READ name NOTIFY nameChanged) Q_PROPERTY(QString fname READ fname NOTIFY fnameChanged) Q_PROPERTY(QString displayRoomName READ displayRoomName NOTIFY nameChanged) Q_PROPERTY(QString topic READ topic NOTIFY topicChanged) Q_PROPERTY(QString announcement READ announcement NOTIFY announcementChanged) Q_PROPERTY(QString channelType READ channelType NOTIFY channelTypeChanged) Q_PROPERTY(QString roomCreatorUserId READ roomCreatorUserId CONSTANT) Q_PROPERTY(QString roomId READ roomId CONSTANT) Q_PROPERTY(QString description READ description NOTIFY descriptionChanged) Q_PROPERTY(bool favorite READ favorite NOTIFY favoriteChanged) Q_PROPERTY(bool readOnly READ readOnly NOTIFY readOnlyChanged) Q_PROPERTY(bool blocker READ blocker NOTIFY blockerChanged) Q_PROPERTY(bool blocked READ blocked NOTIFY blockedChanged) Q_PROPERTY(bool encrypted READ encrypted NOTIFY encryptedChanged) Q_PROPERTY(bool canBeModify READ canBeModify NOTIFY rolesChanged) Q_PROPERTY(bool archived READ archived NOTIFY archivedChanged) //TODO add Q_PROPERTY for mutedUsersChanged and ignoreUsersChanged Q_PROPERTY(QString roomMessageInfo READ roomMessageInfo NOTIFY roomMessageInfoChanged) Q_PROPERTY(bool encryptedEnabled READ encryptedEnabled CONSTANT) Q_PROPERTY(bool joinCodeRequired READ joinCodeRequired NOTIFY joinCodeRequiredChanged) Q_PROPERTY(bool canChangeRoles READ canChangeRoles NOTIFY rolesChanged) Q_PROPERTY(bool broadcast READ broadcast NOTIFY broadcastChanged) Q_PROPERTY(bool isDiscussionRoom READ isDiscussionRoom CONSTANT) Q_PROPERTY(QString parentRid READ parentRid CONSTANT) Q_PROPERTY(QString autoTranslateLanguage READ autoTranslateLanguage NOTIFY autoTranslateLanguageChanged) Q_PROPERTY(bool autoTranslate READ autoTranslate NOTIFY autoTranslateChanged) Q_PROPERTY(NotificationOptionsWrapper * notificationOptions READ notificationOptions CONSTANT) Q_OBJECT public: explicit RoomWrapper(QObject *parent = nullptr); explicit RoomWrapper(Room *r, QObject *parent = nullptr); - ~RoomWrapper(); + ~RoomWrapper() override; Q_REQUIRED_RESULT QString name() const; Q_REQUIRED_RESULT QString fname() const; Q_REQUIRED_RESULT QString displayRoomName() const; Q_REQUIRED_RESULT QString topic() const; Q_REQUIRED_RESULT QString announcement() const; Q_REQUIRED_RESULT bool favorite() const; Q_REQUIRED_RESULT bool readOnly() const; Q_REQUIRED_RESULT bool blocker() const; Q_REQUIRED_RESULT bool blocked() const; Q_REQUIRED_RESULT bool encrypted() const; Q_REQUIRED_RESULT bool broadcast() const; Q_REQUIRED_RESULT QString channelType() const; Q_REQUIRED_RESULT QString roomCreatorUserId() const; Q_REQUIRED_RESULT QString roomId() const; Q_REQUIRED_RESULT QString description() const; Q_REQUIRED_RESULT bool archived() const; Q_REQUIRED_RESULT bool canBeModify() const; Q_REQUIRED_RESULT QString roomMessageInfo() const; Q_REQUIRED_RESULT bool encryptedEnabled() const; Q_REQUIRED_RESULT bool joinCodeRequired() const; Q_REQUIRED_RESULT bool isDiscussionRoom() const; Q_REQUIRED_RESULT QString parentRid() const; Q_REQUIRED_RESULT NotificationOptionsWrapper *notificationOptions() const; Q_REQUIRED_RESULT bool canChangeRoles() const; Q_REQUIRED_RESULT QString autoTranslateLanguage() const; Q_REQUIRED_RESULT bool autoTranslate() const; Q_REQUIRED_RESULT Q_INVOKABLE bool userHasOwnerRole(const QString &userId) const; Q_REQUIRED_RESULT Q_INVOKABLE bool userHasLeaderRole(const QString &userId) const; Q_REQUIRED_RESULT Q_INVOKABLE bool userHasModeratorRole(const QString &userId) const; Q_SIGNALS: void nameChanged(); void topicChanged(); void announcementChanged(); void favoriteChanged(); void readOnlyChanged(); void blockerChanged(); void descriptionChanged(); void archivedChanged(); void blockedChanged(); void rolesChanged(); void ignoredUsersChanged(); void mutedUsersChanged(); void roomMessageInfoChanged(); void encryptedChanged(); void joinCodeRequiredChanged(); void channelTypeChanged(); void broadcastChanged(); void fnameChanged(); void autoTranslateLanguageChanged(); void autoTranslateChanged(); private: Q_DISABLE_COPY(RoomWrapper) Room *mRoom = nullptr; }; #endif // ROOMWRAPPER_H diff --git a/src/core/serverconfiginfo.h b/src/core/serverconfiginfo.h index 49039704..dc9e5966 100644 --- a/src/core/serverconfiginfo.h +++ b/src/core/serverconfiginfo.h @@ -1,45 +1,45 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SERVERCONFIGINFO_H #define SERVERCONFIGINFO_H #include #include "libruqolacore_export.h" class RocketChatAccount; class LIBRUQOLACORE_EXPORT ServerConfigInfo : public QObject { Q_OBJECT Q_PROPERTY(QString serverVersionStr READ serverVersionStr CONSTANT) Q_PROPERTY(QString serverName READ serverName CONSTANT) Q_PROPERTY(QString userName READ userName CONSTANT) public: explicit ServerConfigInfo(RocketChatAccount *account = nullptr, QObject *parent = nullptr); - ~ServerConfigInfo(); + ~ServerConfigInfo() override; Q_REQUIRED_RESULT QString serverVersionStr() const; Q_REQUIRED_RESULT QString serverName() const; Q_REQUIRED_RESULT QString userName() const; private: Q_DISABLE_COPY(ServerConfigInfo) RocketChatAccount *mAccount = nullptr; }; #endif // SERVERCONFIGINFO_H diff --git a/src/core/syntaxhighlightingmanager.h b/src/core/syntaxhighlightingmanager.h index 92bf0ab1..05edeed9 100644 --- a/src/core/syntaxhighlightingmanager.h +++ b/src/core/syntaxhighlightingmanager.h @@ -1,50 +1,50 @@ /* Copyright (c) 2018-2020 Laurent Montel This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SYNTAXHIGHLIGHTINGMANAGER_H #define SYNTAXHIGHLIGHTINGMANAGER_H #include #include #include class SyntaxHighlightingManager : public QObject { Q_OBJECT public: explicit SyntaxHighlightingManager(QObject *parent = nullptr); - ~SyntaxHighlightingManager() = default; + ~SyntaxHighlightingManager() override = default; static SyntaxHighlightingManager *self(); Q_REQUIRED_RESULT bool syntaxHighlightingInitialized() const; Q_REQUIRED_RESULT KSyntaxHighlighting::Definition def() const; KSyntaxHighlighting::Repository &repo() const; private: Q_DISABLE_COPY(SyntaxHighlightingManager) void initialize(); mutable KSyntaxHighlighting::Repository mRepo; KSyntaxHighlighting::Definition mDef; bool mSyntaxHighlightingInitialized = false; }; #endif // SYNTAXHIGHLIghTINGMANAGER_H diff --git a/src/core/typingnotification.h b/src/core/typingnotification.h index 3a34c547..fc5ce174 100644 --- a/src/core/typingnotification.h +++ b/src/core/typingnotification.h @@ -1,46 +1,46 @@ /* Copyright (c) 2017-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef TYPINGNOTIFICATION_H #define TYPINGNOTIFICATION_H #include #include "libruqola_private_export.h" class QTimer; class LIBRUQOLACORE_TESTS_EXPORT TypingNotification : public QObject { Q_OBJECT public: explicit TypingNotification(QObject *parent = nullptr); - ~TypingNotification(); + ~TypingNotification() override; void textNotificationChanged(const QString &roomId, bool emptyString); Q_SIGNALS: void informTypingStatus(const QString &room, bool typing); private: Q_DISABLE_COPY(TypingNotification) void slotTimeout(); QString mRoomId; bool mTypingInprogress = false; QTimer *mTimer = nullptr; }; #endif // TYPINGNOTIFICATION_H diff --git a/src/core/unityservicemanager.h b/src/core/unityservicemanager.h index 5601f13d..ec071687 100644 --- a/src/core/unityservicemanager.h +++ b/src/core/unityservicemanager.h @@ -1,43 +1,43 @@ /* Copyright (c) 2018-2020 Laurent Montel This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef UNITYSERVICEMANAGER_H #define UNITYSERVICEMANAGER_H #include "libruqola_private_export.h" #include class QDBusServiceWatcher; class LIBRUQOLACORE_TESTS_EXPORT UnityServiceManager : public QObject { Q_OBJECT public: explicit UnityServiceManager(QObject *parent = nullptr); - ~UnityServiceManager(); + ~UnityServiceManager() override; void setCount(int count); private: Q_DISABLE_COPY(UnityServiceManager) void initUnity(); void updateCount(); QDBusServiceWatcher *mUnityServiceWatcher = nullptr; int mCount = 0; bool mUnityServiceAvailable = false; }; #endif // UNITYSERVICEMANAGER_H diff --git a/src/plugins/authentication/password/autotests/passwordauthenticationinterfacetest.h b/src/plugins/authentication/password/autotests/passwordauthenticationinterfacetest.h index 2e108cae..1b7b22ce 100644 --- a/src/plugins/authentication/password/autotests/passwordauthenticationinterfacetest.h +++ b/src/plugins/authentication/password/autotests/passwordauthenticationinterfacetest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef PASSWORDAUTHENTICATIONINTERFACETEST_H #define PASSWORDAUTHENTICATIONINTERFACETEST_H #include class PasswordAuthenticationInterfaceTest : public QObject { Q_OBJECT public: explicit PasswordAuthenticationInterfaceTest(QObject *parent = nullptr); - ~PasswordAuthenticationInterfaceTest() = default; + ~PasswordAuthenticationInterfaceTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); }; #endif // PASSWORDAUTHENTICATIONINTERFACETEST_H diff --git a/src/plugins/authentication/password/autotests/passwordpluginauthenticationtest.h b/src/plugins/authentication/password/autotests/passwordpluginauthenticationtest.h index 78d26195..9068f82d 100644 --- a/src/plugins/authentication/password/autotests/passwordpluginauthenticationtest.h +++ b/src/plugins/authentication/password/autotests/passwordpluginauthenticationtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef PASSWORDPLUGINAUTHENTICATIONTEST_H #define PASSWORDPLUGINAUTHENTICATIONTEST_H #include class PasswordPluginAuthenticationTest : public QObject { Q_OBJECT public: explicit PasswordPluginAuthenticationTest(QObject *parent = nullptr); - ~PasswordPluginAuthenticationTest() = default; + ~PasswordPluginAuthenticationTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); }; #endif // PASSWORDPLUGINAUTHENTICATIONTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/archivechanneljobtest.h b/src/rocketchatrestapi-qt5/autotests/archivechanneljobtest.h index 1d1dd097..1f8e1157 100644 --- a/src/rocketchatrestapi-qt5/autotests/archivechanneljobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/archivechanneljobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ARCHIVECHANNELJOBTEST_H #define ARCHIVECHANNELJOBTEST_H #include class ArchiveChannelJobTest : public QObject { Q_OBJECT public: explicit ArchiveChannelJobTest(QObject *parent = nullptr); - ~ArchiveChannelJobTest() = default; + ~ArchiveChannelJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // ARCHIVECHANNELJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/archivegroupsjobtest.h b/src/rocketchatrestapi-qt5/autotests/archivegroupsjobtest.h index 82c8ddc6..8ddb493c 100644 --- a/src/rocketchatrestapi-qt5/autotests/archivegroupsjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/archivegroupsjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ARCHIVEGROUPSJOBTEST_H #define ARCHIVEGROUPSJOBTEST_H #include class ArchiveGroupsJobTest : public QObject { Q_OBJECT public: explicit ArchiveGroupsJobTest(QObject *parent = nullptr); - ~ArchiveGroupsJobTest() = default; + ~ArchiveGroupsJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // ARCHIVEGROUPSJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/changechannelannouncementjobtest.h b/src/rocketchatrestapi-qt5/autotests/changechannelannouncementjobtest.h index 085d7dd1..b449f191 100644 --- a/src/rocketchatrestapi-qt5/autotests/changechannelannouncementjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/changechannelannouncementjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANGECHANNELANNOUNCEMENTJOBTEST_H #define CHANGECHANNELANNOUNCEMENTJOBTEST_H #include class ChangeChannelAnnouncementJobTest : public QObject { Q_OBJECT public: explicit ChangeChannelAnnouncementJobTest(QObject *parent = nullptr); - ~ChangeChannelAnnouncementJobTest() = default; + ~ChangeChannelAnnouncementJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // CHANGECHANNELANNOUNCEMENTJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/changechanneldescriptionjobtest.h b/src/rocketchatrestapi-qt5/autotests/changechanneldescriptionjobtest.h index 64bbfe7e..2705b36b 100644 --- a/src/rocketchatrestapi-qt5/autotests/changechanneldescriptionjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/changechanneldescriptionjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANGECHANNELDESCRIPTIONJOBTEST_H #define CHANGECHANNELDESCRIPTIONJOBTEST_H #include class ChangeChannelDescriptionJobTest : public QObject { Q_OBJECT public: explicit ChangeChannelDescriptionJobTest(QObject *parent = nullptr); - ~ChangeChannelDescriptionJobTest() = default; + ~ChangeChannelDescriptionJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // CHANGECHANNELDESCRIPTIONJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/changechannelencryptedjobtest.h b/src/rocketchatrestapi-qt5/autotests/changechannelencryptedjobtest.h index 52e9b375..651be13f 100644 --- a/src/rocketchatrestapi-qt5/autotests/changechannelencryptedjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/changechannelencryptedjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANGECHANNELENCRYPTEDJOBTEST_H #define CHANGECHANNELENCRYPTEDJOBTEST_H #include class ChangeChannelEncryptedJobTest : public QObject { Q_OBJECT public: explicit ChangeChannelEncryptedJobTest(QObject *parent = nullptr); - ~ChangeChannelEncryptedJobTest() = default; + ~ChangeChannelEncryptedJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // CHANGECHANNELENCRYPTEDJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/changechannelnamejobtest.h b/src/rocketchatrestapi-qt5/autotests/changechannelnamejobtest.h index 9efb2975..1feb1df4 100644 --- a/src/rocketchatrestapi-qt5/autotests/changechannelnamejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/changechannelnamejobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANGECHANNELNAMEJOBTEST_H #define CHANGECHANNELNAMEJOBTEST_H #include class ChangeChannelNameJobTest : public QObject { Q_OBJECT public: explicit ChangeChannelNameJobTest(QObject *parent = nullptr); - ~ChangeChannelNameJobTest() = default; + ~ChangeChannelNameJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // CHANGECHANNELNAMEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/changechannelreadonlyjobtest.h b/src/rocketchatrestapi-qt5/autotests/changechannelreadonlyjobtest.h index be41808c..9e52084c 100644 --- a/src/rocketchatrestapi-qt5/autotests/changechannelreadonlyjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/changechannelreadonlyjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANGECHANNELREADONLYJOBTEST_H #define CHANGECHANNELREADONLYJOBTEST_H #include class ChangeChannelReadonlyJobTest : public QObject { Q_OBJECT public: explicit ChangeChannelReadonlyJobTest(QObject *parent = nullptr); - ~ChangeChannelReadonlyJobTest() = default; + ~ChangeChannelReadonlyJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // CHANGECHANNELREADONLYJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/changechanneltopicjobtest.h b/src/rocketchatrestapi-qt5/autotests/changechanneltopicjobtest.h index 9b0c2940..35eba350 100644 --- a/src/rocketchatrestapi-qt5/autotests/changechanneltopicjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/changechanneltopicjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANGECHANNELTOPICJOBTEST_H #define CHANGECHANNELTOPICJOBTEST_H #include class ChangeChannelTopicJobTest : public QObject { Q_OBJECT public: explicit ChangeChannelTopicJobTest(QObject *parent = nullptr); - ~ChangeChannelTopicJobTest() = default; + ~ChangeChannelTopicJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // CHANGECHANNELTOPICJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/changegroupsannouncementjobtest.h b/src/rocketchatrestapi-qt5/autotests/changegroupsannouncementjobtest.h index ba587ece..20476879 100644 --- a/src/rocketchatrestapi-qt5/autotests/changegroupsannouncementjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/changegroupsannouncementjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANGEGROUPSANNOUNCEMENTJOBTEST_H #define CHANGEGROUPSANNOUNCEMENTJOBTEST_H #include class ChangeGroupsAnnouncementJobTest : public QObject { Q_OBJECT public: explicit ChangeGroupsAnnouncementJobTest(QObject *parent = nullptr); - ~ChangeGroupsAnnouncementJobTest() = default; + ~ChangeGroupsAnnouncementJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // CHANGEGROUPSANNOUNCEMENTJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/changegroupsdescriptionjobtest.h b/src/rocketchatrestapi-qt5/autotests/changegroupsdescriptionjobtest.h index 7742242b..465cbe95 100644 --- a/src/rocketchatrestapi-qt5/autotests/changegroupsdescriptionjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/changegroupsdescriptionjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANGEGROUPSDESCRIPTIONJOBTEST_H #define CHANGEGROUPSDESCRIPTIONJOBTEST_H #include class ChangeGroupsDescriptionJobTest : public QObject { Q_OBJECT public: explicit ChangeGroupsDescriptionJobTest(QObject *parent = nullptr); - ~ChangeGroupsDescriptionJobTest() = default; + ~ChangeGroupsDescriptionJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // CHANGEGROUPSDESCRIPTIONJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/changegroupsencryptedjobtest.h b/src/rocketchatrestapi-qt5/autotests/changegroupsencryptedjobtest.h index d0a10e4f..055ba539 100644 --- a/src/rocketchatrestapi-qt5/autotests/changegroupsencryptedjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/changegroupsencryptedjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANGEGROUPSENCRYPTEDJOBTEST_H #define CHANGEGROUPSENCRYPTEDJOBTEST_H #include class ChangeGroupsEncryptedJobTest : public QObject { Q_OBJECT public: explicit ChangeGroupsEncryptedJobTest(QObject *parent = nullptr); - ~ChangeGroupsEncryptedJobTest() = default; + ~ChangeGroupsEncryptedJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // CHANGEGROUPSENCRYPTEDJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/changegroupsnamejobtest.h b/src/rocketchatrestapi-qt5/autotests/changegroupsnamejobtest.h index 18cea767..46a98e05 100644 --- a/src/rocketchatrestapi-qt5/autotests/changegroupsnamejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/changegroupsnamejobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANGEGROUPSNAMEJOBTEST_H #define CHANGEGROUPSNAMEJOBTEST_H #include class ChangeGroupsNameJobTest : public QObject { Q_OBJECT public: explicit ChangeGroupsNameJobTest(QObject *parent = nullptr); - ~ChangeGroupsNameJobTest() = default; + ~ChangeGroupsNameJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // CHANGEGROUPSNAMEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/changegroupsreadonlyjobtest.h b/src/rocketchatrestapi-qt5/autotests/changegroupsreadonlyjobtest.h index d2a6d8a0..0ebb1b36 100644 --- a/src/rocketchatrestapi-qt5/autotests/changegroupsreadonlyjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/changegroupsreadonlyjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANGEGROUPSREADONLYJOBTEST_H #define CHANGEGROUPSREADONLYJOBTEST_H #include class ChangeGroupsReadonlyJobTest : public QObject { Q_OBJECT public: explicit ChangeGroupsReadonlyJobTest(QObject *parent = nullptr); - ~ChangeGroupsReadonlyJobTest() = default; + ~ChangeGroupsReadonlyJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // CHANGEGROUPSREADONLYJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/changegroupstopicjobtest.h b/src/rocketchatrestapi-qt5/autotests/changegroupstopicjobtest.h index d22a3798..91be8033 100644 --- a/src/rocketchatrestapi-qt5/autotests/changegroupstopicjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/changegroupstopicjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANGEGROUPSTOPICJOBTEST_H #define CHANGEGROUPSTOPICJOBTEST_H #include class ChangeGroupsTopicJobTest : public QObject { Q_OBJECT public: explicit ChangeGroupsTopicJobTest(QObject *parent = nullptr); - ~ChangeGroupsTopicJobTest() = default; + ~ChangeGroupsTopicJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // CHANGEGROUPSTOPICJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/channeladdleaderjobtest.h b/src/rocketchatrestapi-qt5/autotests/channeladdleaderjobtest.h index 5e0a1559..10b01a0e 100644 --- a/src/rocketchatrestapi-qt5/autotests/channeladdleaderjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/channeladdleaderjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELADDLEADERJOBTEST_H #define CHANNELADDLEADERJOBTEST_H #include class ChannelAddLeaderJobTest : public QObject { Q_OBJECT public: explicit ChannelAddLeaderJobTest(QObject *parent = nullptr); - ~ChannelAddLeaderJobTest() = default; + ~ChannelAddLeaderJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // CHANNELADDLEADERJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/channeladdmoderatorjobtest.h b/src/rocketchatrestapi-qt5/autotests/channeladdmoderatorjobtest.h index f4df185c..124c1cce 100644 --- a/src/rocketchatrestapi-qt5/autotests/channeladdmoderatorjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/channeladdmoderatorjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELADDMODERATORJOBTEST_H #define CHANNELADDMODERATORJOBTEST_H #include class ChannelAddModeratorJobTest : public QObject { Q_OBJECT public: explicit ChannelAddModeratorJobTest(QObject *parent = nullptr); - ~ChannelAddModeratorJobTest() = default; + ~ChannelAddModeratorJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // CHANNELADDMODERATORJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/channeladdownerjobtest.h b/src/rocketchatrestapi-qt5/autotests/channeladdownerjobtest.h index 1230165c..ba511a7c 100644 --- a/src/rocketchatrestapi-qt5/autotests/channeladdownerjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/channeladdownerjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELADDOWNERJOBTEST_H #define CHANNELADDOWNERJOBTEST_H #include class ChannelAddOwnerJobTest : public QObject { Q_OBJECT public: explicit ChannelAddOwnerJobTest(QObject *parent = nullptr); - ~ChannelAddOwnerJobTest() = default; + ~ChannelAddOwnerJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // CHANNELADDOWNERJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/channelclosejobtest.h b/src/rocketchatrestapi-qt5/autotests/channelclosejobtest.h index 144bf9e9..af683e4b 100644 --- a/src/rocketchatrestapi-qt5/autotests/channelclosejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/channelclosejobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELCLOSEJOBTEST_H #define CHANNELCLOSEJOBTEST_H #include class ChannelCloseJobTest : public QObject { Q_OBJECT public: explicit ChannelCloseJobTest(QObject *parent = nullptr); - ~ChannelCloseJobTest() = default; + ~ChannelCloseJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // CHANNELCLOSEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/channeldeletejobtest.h b/src/rocketchatrestapi-qt5/autotests/channeldeletejobtest.h index b05ca498..7ad8a6c3 100644 --- a/src/rocketchatrestapi-qt5/autotests/channeldeletejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/channeldeletejobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELDELETEJOBTEST_H #define CHANNELDELETEJOBTEST_H #include class ChannelDeleteJobTest : public QObject { Q_OBJECT public: explicit ChannelDeleteJobTest(QObject *parent = nullptr); - ~ChannelDeleteJobTest() = default; + ~ChannelDeleteJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateUserIdJson(); void shouldGenerateUserNameJson(); }; #endif // CHANNELDELETEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/channelfilesjobtest.h b/src/rocketchatrestapi-qt5/autotests/channelfilesjobtest.h index 0205ffe9..b1e95034 100644 --- a/src/rocketchatrestapi-qt5/autotests/channelfilesjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/channelfilesjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELFILESJOBTEST_H #define CHANNELFILESJOBTEST_H #include class ChannelFilesJobTest : public QObject { Q_OBJECT public: explicit ChannelFilesJobTest(QObject *parent = nullptr); - ~ChannelFilesJobTest() = default; + ~ChannelFilesJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldNotStarting(); }; #endif // CHANNELFILESJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/channelgetallusermentionsjobtest.h b/src/rocketchatrestapi-qt5/autotests/channelgetallusermentionsjobtest.h index b8a60595..c0564221 100644 --- a/src/rocketchatrestapi-qt5/autotests/channelgetallusermentionsjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/channelgetallusermentionsjobtest.h @@ -1,41 +1,41 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELGETALLUSERMENTIONSJOBTEST_H #define CHANNELGETALLUSERMENTIONSJOBTEST_H #include class ChannelGetAllUserMentionsJobTest : public QObject { Q_OBJECT public: explicit ChannelGetAllUserMentionsJobTest(QObject *parent = nullptr); - ~ChannelGetAllUserMentionsJobTest() = default; + ~ChannelGetAllUserMentionsJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldHaveParameterSupport(); void shouldGenerateRequest(); void shouldNotStarting(); void shouldHaveParameterSupportSorting(); void shouldHaveParameterSupportSortingTwoParameters(); }; #endif // CHANNELGETALLUSERMENTIONSJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/channelhistoryjobtest.h b/src/rocketchatrestapi-qt5/autotests/channelhistoryjobtest.h index 844f7b9e..82c90f82 100644 --- a/src/rocketchatrestapi-qt5/autotests/channelhistoryjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/channelhistoryjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELHISTORYJOBTEST_H #define CHANNELHISTORYJOBTEST_H #include class ChannelHistoryJobTest : public QObject { Q_OBJECT public: explicit ChannelHistoryJobTest(QObject *parent = nullptr); - ~ChannelHistoryJobTest() = default; + ~ChannelHistoryJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // CHANNELHISTORYJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/channelinfojobtest.h b/src/rocketchatrestapi-qt5/autotests/channelinfojobtest.h index 6602d553..bf32a31e 100644 --- a/src/rocketchatrestapi-qt5/autotests/channelinfojobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/channelinfojobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELINFOJOBTEST_H #define CHANNELINFOJOBTEST_H #include class ChannelInfoJobTest : public QObject { Q_OBJECT public: explicit ChannelInfoJobTest(QObject *parent = nullptr); - ~ChannelInfoJobTest() = default; + ~ChannelInfoJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldNotStarting(); }; #endif // CHANNELINFOJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/channelinvitejobtest.h b/src/rocketchatrestapi-qt5/autotests/channelinvitejobtest.h index 139f286b..739f96c5 100644 --- a/src/rocketchatrestapi-qt5/autotests/channelinvitejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/channelinvitejobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELINVITEJOBTEST_H #define CHANNELINVITEJOBTEST_H #include class ChannelInviteJobTest : public QObject { Q_OBJECT public: explicit ChannelInviteJobTest(QObject *parent = nullptr); - ~ChannelInviteJobTest() = default; + ~ChannelInviteJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateUserIdJson(); void shouldGenerateUserNameJson(); }; #endif // CHANNELINVITEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/channeljoinjobtest.h b/src/rocketchatrestapi-qt5/autotests/channeljoinjobtest.h index 8b47b562..7277bd38 100644 --- a/src/rocketchatrestapi-qt5/autotests/channeljoinjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/channeljoinjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELJOINJOBTEST_H #define CHANNELJOINJOBTEST_H #include class ChannelJoinJobTest : public QObject { Q_OBJECT public: explicit ChannelJoinJobTest(QObject *parent = nullptr); - ~ChannelJoinJobTest() = default; + ~ChannelJoinJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // CHANNELJOINJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/channelkickjobtest.h b/src/rocketchatrestapi-qt5/autotests/channelkickjobtest.h index 4657a6af..ff1f21e7 100644 --- a/src/rocketchatrestapi-qt5/autotests/channelkickjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/channelkickjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELKICKJOBTEST_H #define CHANNELKICKJOBTEST_H #include class ChannelKickJobTest : public QObject { Q_OBJECT public: explicit ChannelKickJobTest(QObject *parent = nullptr); - ~ChannelKickJobTest() = default; + ~ChannelKickJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // CHANNELKICKJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/channellistjobtest.h b/src/rocketchatrestapi-qt5/autotests/channellistjobtest.h index 65db24a4..c99abdf2 100644 --- a/src/rocketchatrestapi-qt5/autotests/channellistjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/channellistjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELLISTJOBTEST_H #define CHANNELLISTJOBTEST_H #include class ChannelListJobTest : public QObject { Q_OBJECT public: explicit ChannelListJobTest(QObject *parent = nullptr); - ~ChannelListJobTest() = default; + ~ChannelListJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // CHANNELLISTJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/channelmembersjobtest.h b/src/rocketchatrestapi-qt5/autotests/channelmembersjobtest.h index 76453393..5610dba6 100644 --- a/src/rocketchatrestapi-qt5/autotests/channelmembersjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/channelmembersjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELMEMBERSJOBTEST_H #define CHANNELMEMBERSJOBTEST_H #include class ChannelMembersJobTest : public QObject { Q_OBJECT public: explicit ChannelMembersJobTest(QObject *parent = nullptr); - ~ChannelMembersJobTest() = default; + ~ChannelMembersJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldNotStarting(); }; #endif // CHANNELMEMBERSJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/channelremoveleaderjobtest.h b/src/rocketchatrestapi-qt5/autotests/channelremoveleaderjobtest.h index dfd370e7..7c8e2ab5 100644 --- a/src/rocketchatrestapi-qt5/autotests/channelremoveleaderjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/channelremoveleaderjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELREMOVELEADERJOBTEST_H #define CHANNELREMOVELEADERJOBTEST_H #include class ChannelRemoveLeaderJobTest : public QObject { Q_OBJECT public: explicit ChannelRemoveLeaderJobTest(QObject *parent = nullptr); - ~ChannelRemoveLeaderJobTest() = default; + ~ChannelRemoveLeaderJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // CHANNELREMOVELEADERJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/channelremovemoderatorjobtest.h b/src/rocketchatrestapi-qt5/autotests/channelremovemoderatorjobtest.h index c5da1fd0..b7b180f2 100644 --- a/src/rocketchatrestapi-qt5/autotests/channelremovemoderatorjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/channelremovemoderatorjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELREMOVEMODERATORJOBTEST_H #define CHANNELREMOVEMODERATORJOBTEST_H #include class ChannelRemoveModeratorJobTest : public QObject { Q_OBJECT public: explicit ChannelRemoveModeratorJobTest(QObject *parent = nullptr); - ~ChannelRemoveModeratorJobTest() = default; + ~ChannelRemoveModeratorJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // CHANNELREMOVEMODERATORJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/channelremoveownerjobtest.h b/src/rocketchatrestapi-qt5/autotests/channelremoveownerjobtest.h index 2c7778de..a9b4f95c 100644 --- a/src/rocketchatrestapi-qt5/autotests/channelremoveownerjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/channelremoveownerjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELREMOVEOWNERJOBTEST_H #define CHANNELREMOVEOWNERJOBTEST_H #include class ChannelRemoveOwnerJobTest : public QObject { Q_OBJECT public: explicit ChannelRemoveOwnerJobTest(QObject *parent = nullptr); - ~ChannelRemoveOwnerJobTest() = default; + ~ChannelRemoveOwnerJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // CHANNELREMOVEOWNERJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/channelsmoderatorsjobtest.h b/src/rocketchatrestapi-qt5/autotests/channelsmoderatorsjobtest.h index be55d5cb..3d7fb26b 100644 --- a/src/rocketchatrestapi-qt5/autotests/channelsmoderatorsjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/channelsmoderatorsjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ChannelsModeratorsJobTEST_H #define ChannelsModeratorsJobTEST_H #include class ChannelsModeratorsJobTest : public QObject { Q_OBJECT public: explicit ChannelsModeratorsJobTest(QObject *parent = nullptr); - ~ChannelsModeratorsJobTest() = default; + ~ChannelsModeratorsJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldNotStarting(); }; #endif // ChannelsModeratorsJobTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/createchanneljobtest.h b/src/rocketchatrestapi-qt5/autotests/createchanneljobtest.h index a9f6e1a5..12ea55cb 100644 --- a/src/rocketchatrestapi-qt5/autotests/createchanneljobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/createchanneljobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CREATECHANNELJOBTEST_H #define CREATECHANNELJOBTEST_H #include class CreateChannelJobTest : public QObject { Q_OBJECT public: explicit CreateChannelJobTest(QObject *parent = nullptr); - ~CreateChannelJobTest() = default; + ~CreateChannelJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // CREATECHANNELJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/createdmjobtest.h b/src/rocketchatrestapi-qt5/autotests/createdmjobtest.h index 2947369e..e10cdaaa 100644 --- a/src/rocketchatrestapi-qt5/autotests/createdmjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/createdmjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CREATEDMJOBTEST_H #define CREATEDMJOBTEST_H #include class CreateDmJobTest : public QObject { Q_OBJECT public: explicit CreateDmJobTest(QObject *parent = nullptr); - ~CreateDmJobTest() = default; + ~CreateDmJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // CREATEDMJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/creategroupsjobtest.h b/src/rocketchatrestapi-qt5/autotests/creategroupsjobtest.h index aa6b204a..1c6fd02a 100644 --- a/src/rocketchatrestapi-qt5/autotests/creategroupsjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/creategroupsjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CREATEGROUPSJOBTEST_H #define CREATEGROUPSJOBTEST_H #include class CreateGroupsJobTest : public QObject { Q_OBJECT public: explicit CreateGroupsJobTest(QObject *parent = nullptr); - ~CreateGroupsJobTest() = default; + ~CreateGroupsJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // CREATEGROUPSJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/customsoundsjobtest.h b/src/rocketchatrestapi-qt5/autotests/customsoundsjobtest.h index 0f7204f6..853a5f49 100644 --- a/src/rocketchatrestapi-qt5/autotests/customsoundsjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/customsoundsjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CUSTOMSOUNDSJOBTEST_H #define CUSTOMSOUNDSJOBTEST_H #include class CustomSoundsJobTest : public QObject { Q_OBJECT public: explicit CustomSoundsJobTest(QObject *parent = nullptr); - ~CustomSoundsJobTest() = default; + ~CustomSoundsJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // CUSTOMSOUNDSJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/customuserstatusjobtest.h b/src/rocketchatrestapi-qt5/autotests/customuserstatusjobtest.h index e6103dde..43fcaf02 100644 --- a/src/rocketchatrestapi-qt5/autotests/customuserstatusjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/customuserstatusjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CUSTOMUSERSTATUSJOBTEST_H #define CUSTOMUSERSTATUSJOBTEST_H #include class CustomUserStatusJobTest : public QObject { Q_OBJECT public: explicit CustomUserStatusJobTest(QObject *parent = nullptr); - ~CustomUserStatusJobTest() = default; + ~CustomUserStatusJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // CUSTOMUSERSTATUSJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/deleteemojicustomjobtest.h b/src/rocketchatrestapi-qt5/autotests/deleteemojicustomjobtest.h index 8620b64d..1e46d82d 100644 --- a/src/rocketchatrestapi-qt5/autotests/deleteemojicustomjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/deleteemojicustomjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef DELETEEMOJICUSTOMJOBTEST_H #define DELETEEMOJICUSTOMJOBTEST_H #include class DeleteEmojiCustomJobTest : public QObject { Q_OBJECT public: explicit DeleteEmojiCustomJobTest(QObject *parent = nullptr); - ~DeleteEmojiCustomJobTest() = default; + ~DeleteEmojiCustomJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // DELETEEMOJICUSTOMJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/deletemessagejobtest.h b/src/rocketchatrestapi-qt5/autotests/deletemessagejobtest.h index 7f41ad96..195b7eff 100644 --- a/src/rocketchatrestapi-qt5/autotests/deletemessagejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/deletemessagejobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef DELETEMESSAGEJOBTEST_H #define DELETEMESSAGEJOBTEST_H #include class DeleteMessageJobTest : public QObject { Q_OBJECT public: explicit DeleteMessageJobTest(QObject *parent = nullptr); - ~DeleteMessageJobTest() = default; + ~DeleteMessageJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // DELETEMESSAGEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/downloadfilejobtest.h b/src/rocketchatrestapi-qt5/autotests/downloadfilejobtest.h index d0ac7017..bed1d3e2 100644 --- a/src/rocketchatrestapi-qt5/autotests/downloadfilejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/downloadfilejobtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef DOWNLOADFILEJOBTEST_H #define DOWNLOADFILEJOBTEST_H #include class DownloadFileJobTest : public QObject { Q_OBJECT public: explicit DownloadFileJobTest(QObject *parent = nullptr); - ~DownloadFileJobTest() = default; + ~DownloadFileJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); }; #endif // DOWNLOADFILEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/facebookauthjobtest.h b/src/rocketchatrestapi-qt5/autotests/facebookauthjobtest.h index b73fd847..42d1592a 100644 --- a/src/rocketchatrestapi-qt5/autotests/facebookauthjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/facebookauthjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef FACEBOOKAUTHJOBTEST_H #define FACEBOOKAUTHJOBTEST_H #include class FacebookAuthJobTest : public QObject { Q_OBJECT public: explicit FacebookAuthJobTest(QObject *parent = nullptr); - ~FacebookAuthJobTest() = default; + ~FacebookAuthJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // FACEBOOKAUTHJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/fetchmykeysjobtest.h b/src/rocketchatrestapi-qt5/autotests/fetchmykeysjobtest.h index 2c5a0773..08596693 100644 --- a/src/rocketchatrestapi-qt5/autotests/fetchmykeysjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/fetchmykeysjobtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef FETCHMYKEYSJOBTEST_H #define FETCHMYKEYSJOBTEST_H #include class FetchMyKeysJobTest : public QObject { Q_OBJECT public: explicit FetchMyKeysJobTest(QObject *parent = nullptr); - ~FetchMyKeysJobTest() = default; + ~FetchMyKeysJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // FETCHMYKEYSJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/followmessagejobtest.h b/src/rocketchatrestapi-qt5/autotests/followmessagejobtest.h index 069d0a4c..2908e8d3 100644 --- a/src/rocketchatrestapi-qt5/autotests/followmessagejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/followmessagejobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef FOLLOWMESSAGEJOBTEST_H #define FOLLOWMESSAGEJOBTEST_H #include class FollowMessageJobTest : public QObject { Q_OBJECT public: explicit FollowMessageJobTest(QObject *parent = nullptr); - ~FollowMessageJobTest() = default; + ~FollowMessageJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // FOLLOWMESSAGEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/forgotpasswordjobtest.h b/src/rocketchatrestapi-qt5/autotests/forgotpasswordjobtest.h index 33c528ac..e63638aa 100644 --- a/src/rocketchatrestapi-qt5/autotests/forgotpasswordjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/forgotpasswordjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef FORGOTPASSWORDJOBTEST_H #define FORGOTPASSWORDJOBTEST_H #include class ForgotPasswordJobTest : public QObject { Q_OBJECT public: explicit ForgotPasswordJobTest(QObject *parent = nullptr); - ~ForgotPasswordJobTest() = default; + ~ForgotPasswordJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // FORGOTPASSWORDJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/getavatarjobtest.h b/src/rocketchatrestapi-qt5/autotests/getavatarjobtest.h index cbc5677a..12e398d7 100644 --- a/src/rocketchatrestapi-qt5/autotests/getavatarjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/getavatarjobtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GETAVATARJOBTEST_H #define GETAVATARJOBTEST_H #include class GetAvatarJobTest : public QObject { Q_OBJECT public: explicit GetAvatarJobTest(QObject *parent = nullptr); - ~GetAvatarJobTest() = default; + ~GetAvatarJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // GETAVATARJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/getchannelrolesjobtest.h b/src/rocketchatrestapi-qt5/autotests/getchannelrolesjobtest.h index 29640169..7731ef44 100644 --- a/src/rocketchatrestapi-qt5/autotests/getchannelrolesjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/getchannelrolesjobtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GETCHANNELROLESJOBTEST_H #define GETCHANNELROLESJOBTEST_H #include class GetChannelRolesJobTest : public QObject { Q_OBJECT public: explicit GetChannelRolesJobTest(QObject *parent = nullptr); - ~GetChannelRolesJobTest() = default; + ~GetChannelRolesJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // GETCHANNELROLESJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/getdiscussionsjobtest.h b/src/rocketchatrestapi-qt5/autotests/getdiscussionsjobtest.h index 4837e9fe..4322ebe3 100644 --- a/src/rocketchatrestapi-qt5/autotests/getdiscussionsjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/getdiscussionsjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GETDISCUSSIONSJOBTEST_H #define GETDISCUSSIONSJOBTEST_H #include class GetDiscussionsJobTest : public QObject { Q_OBJECT public: explicit GetDiscussionsJobTest(QObject *parent = nullptr); - ~GetDiscussionsJobTest() = default; + ~GetDiscussionsJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldNotStarting(); }; #endif // GETDISCUSSIONSJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/getgrouprolesjobtest.h b/src/rocketchatrestapi-qt5/autotests/getgrouprolesjobtest.h index c68ebbbe..3d716e22 100644 --- a/src/rocketchatrestapi-qt5/autotests/getgrouprolesjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/getgrouprolesjobtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GETGROUPROLESJOBTEST_H #define GETGROUPROLESJOBTEST_H #include class GetGroupRolesJobTest : public QObject { Q_OBJECT public: explicit GetGroupRolesJobTest(QObject *parent = nullptr); - ~GetGroupRolesJobTest() = default; + ~GetGroupRolesJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // GETGROUPROLESJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/getmessagejobtest.h b/src/rocketchatrestapi-qt5/autotests/getmessagejobtest.h index e420769a..67b711ae 100644 --- a/src/rocketchatrestapi-qt5/autotests/getmessagejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/getmessagejobtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GETMESSAGEJOBTEST_H #define GETMESSAGEJOBTEST_H #include class GetMessageJobTest : public QObject { Q_OBJECT public: explicit GetMessageJobTest(QObject *parent = nullptr); - ~GetMessageJobTest() = default; + ~GetMessageJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // GETMESSAGEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/getpinnedmessagesjobtest.h b/src/rocketchatrestapi-qt5/autotests/getpinnedmessagesjobtest.h index 84d11653..ce230ec2 100644 --- a/src/rocketchatrestapi-qt5/autotests/getpinnedmessagesjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/getpinnedmessagesjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GETPINNEDMESSAGESJOBTEST_H #define GETPINNEDMESSAGESJOBTEST_H #include class GetPinnedMessagesJobTest : public QObject { Q_OBJECT public: explicit GetPinnedMessagesJobTest(QObject *parent = nullptr); - ~GetPinnedMessagesJobTest() = default; + ~GetPinnedMessagesJobTest() override = default; private Q_SLOTS: void shouldGenerateRequest(); void shouldNotStarting(); void shouldHaveDefaultValue(); }; #endif // GETPINNEDMESSAGESJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/getpresencejobtest.h b/src/rocketchatrestapi-qt5/autotests/getpresencejobtest.h index 2c2530aa..3d5ebb18 100644 --- a/src/rocketchatrestapi-qt5/autotests/getpresencejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/getpresencejobtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GETPRESENCEJOBTEST_H #define GETPRESENCEJOBTEST_H #include class GetPresenceJobTest : public QObject { Q_OBJECT public: explicit GetPresenceJobTest(QObject *parent = nullptr); - ~GetPresenceJobTest() = default; + ~GetPresenceJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // GETPRESENCEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/getroomsjobtest.h b/src/rocketchatrestapi-qt5/autotests/getroomsjobtest.h index b79e78b9..9062a018 100644 --- a/src/rocketchatrestapi-qt5/autotests/getroomsjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/getroomsjobtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GETROOMSJOBTEST_H #define GETROOMSJOBTEST_H #include class GetRoomsJobTest : public QObject { Q_OBJECT public: explicit GetRoomsJobTest(QObject *parent = nullptr); - ~GetRoomsJobTest() = default; + ~GetRoomsJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // GETROOMSJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/getsnippetedmessagesjobtest.h b/src/rocketchatrestapi-qt5/autotests/getsnippetedmessagesjobtest.h index 76932ef0..c19ed1ad 100644 --- a/src/rocketchatrestapi-qt5/autotests/getsnippetedmessagesjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/getsnippetedmessagesjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GETSNIPPETEDMESSAGESJOBTEST_H #define GETSNIPPETEDMESSAGESJOBTEST_H #include class GetSnippetedMessagesJobTest : public QObject { Q_OBJECT public: explicit GetSnippetedMessagesJobTest(QObject *parent = nullptr); - ~GetSnippetedMessagesJobTest() = default; + ~GetSnippetedMessagesJobTest() override = default; private Q_SLOTS: void shouldGenerateRequest(); void shouldNotStarting(); void shouldHaveDefaultValue(); }; #endif // GETSNIPPETEDMESSAGESJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/getstarredmessagesjobtest.h b/src/rocketchatrestapi-qt5/autotests/getstarredmessagesjobtest.h index 8cff8fab..2fc952f5 100644 --- a/src/rocketchatrestapi-qt5/autotests/getstarredmessagesjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/getstarredmessagesjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GETSTARREDMESSAGESJOBTEST_H #define GETSTARREDMESSAGESJOBTEST_H #include class GetStarredMessagesJobTest : public QObject { Q_OBJECT public: explicit GetStarredMessagesJobTest(QObject *parent = nullptr); - ~GetStarredMessagesJobTest() = default; + ~GetStarredMessagesJobTest() override = default; private Q_SLOTS: void shouldGenerateRequest(); void shouldNotStarting(); void shouldHaveDefaultValue(); }; #endif // GETSTARREDMESSAGESJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/getsupportedlanguagesjobtest.h b/src/rocketchatrestapi-qt5/autotests/getsupportedlanguagesjobtest.h index 6a9eee60..b4f3271a 100644 --- a/src/rocketchatrestapi-qt5/autotests/getsupportedlanguagesjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/getsupportedlanguagesjobtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GETSUPPORTEDLANGUAGESJOBTEST_H #define GETSUPPORTEDLANGUAGESJOBTEST_H #include class GetSupportedLanguagesJobTest : public QObject { Q_OBJECT public: explicit GetSupportedLanguagesJobTest(QObject *parent = nullptr); - ~GetSupportedLanguagesJobTest() = default; + ~GetSupportedLanguagesJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // GETSUPPORTEDLANGUAGESJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/getthreadmessagesjobtest.h b/src/rocketchatrestapi-qt5/autotests/getthreadmessagesjobtest.h index c42abde6..94d3160d 100644 --- a/src/rocketchatrestapi-qt5/autotests/getthreadmessagesjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/getthreadmessagesjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GETTHREADMESSAGESJOBTEST_H #define GETTHREADMESSAGESJOBTEST_H #include class GetThreadMessagesJobTest : public QObject { Q_OBJECT public: explicit GetThreadMessagesJobTest(QObject *parent = nullptr); - ~GetThreadMessagesJobTest() = default; + ~GetThreadMessagesJobTest() override = default; private Q_SLOTS: void shouldGenerateRequest(); void shouldNotStarting(); void shouldHaveDefaultValue(); }; #endif // GETTHREADMESSAGESJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/getthreadsjobtest.h b/src/rocketchatrestapi-qt5/autotests/getthreadsjobtest.h index 7527aaf1..1811b16e 100644 --- a/src/rocketchatrestapi-qt5/autotests/getthreadsjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/getthreadsjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GETTHREADSJOBTEST_H #define GETTHREADSJOBTEST_H #include class GetThreadsJobTest : public QObject { Q_OBJECT public: explicit GetThreadsJobTest(QObject *parent = nullptr); - ~GetThreadsJobTest() = default; + ~GetThreadsJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldNotStarting(); }; #endif // GetThreadsJobTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/getusernamesuggestionjobtest.h b/src/rocketchatrestapi-qt5/autotests/getusernamesuggestionjobtest.h index 1ec8e193..46e29f45 100644 --- a/src/rocketchatrestapi-qt5/autotests/getusernamesuggestionjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/getusernamesuggestionjobtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GETUSERNAMESUGGESTIONJOBTEST_H #define GETUSERNAMESUGGESTIONJOBTEST_H #include class GetUsernameSuggestionJobTest : public QObject { Q_OBJECT public: explicit GetUsernameSuggestionJobTest(QObject *parent = nullptr); - ~GetUsernameSuggestionJobTest() = default; + ~GetUsernameSuggestionJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // GETUSERNAMESUGGESTIONJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/googleauthjobtest.h b/src/rocketchatrestapi-qt5/autotests/googleauthjobtest.h index e69634d7..1cebc1c1 100644 --- a/src/rocketchatrestapi-qt5/autotests/googleauthjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/googleauthjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GOOGLEAUTHJOBTEST_H #define GOOGLEAUTHJOBTEST_H #include class GoogleAuthJobTest : public QObject { Q_OBJECT public: explicit GoogleAuthJobTest(QObject *parent = nullptr); - ~GoogleAuthJobTest() = default; + ~GoogleAuthJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // GOOGLEAUTHJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/groupaddleaderjobtest.h b/src/rocketchatrestapi-qt5/autotests/groupaddleaderjobtest.h index a9ceb399..88800eb0 100644 --- a/src/rocketchatrestapi-qt5/autotests/groupaddleaderjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/groupaddleaderjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GROUPADDLEADERJOBTEST_H #define GROUPADDLEADERJOBTEST_H #include class GroupAddLeaderJobTest : public QObject { Q_OBJECT public: explicit GroupAddLeaderJobTest(QObject *parent = nullptr); - ~GroupAddLeaderJobTest() = default; + ~GroupAddLeaderJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // GROUPADDLEADERJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/groupaddmoderatorjobtest.h b/src/rocketchatrestapi-qt5/autotests/groupaddmoderatorjobtest.h index 3c08e07e..26409f21 100644 --- a/src/rocketchatrestapi-qt5/autotests/groupaddmoderatorjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/groupaddmoderatorjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GROUPADDMODERATORJOBTEST_H #define GROUPADDMODERATORJOBTEST_H #include class GroupAddModeratorJobTest : public QObject { Q_OBJECT public: explicit GroupAddModeratorJobTest(QObject *parent = nullptr); - ~GroupAddModeratorJobTest() = default; + ~GroupAddModeratorJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // GROUPADDMODERATORJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/groupaddownerjobtest.h b/src/rocketchatrestapi-qt5/autotests/groupaddownerjobtest.h index 9e04da89..2134500c 100644 --- a/src/rocketchatrestapi-qt5/autotests/groupaddownerjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/groupaddownerjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GROUPADDOWNERJOBTEST_H #define GROUPADDOWNERJOBTEST_H #include class GroupAddOwnerJobTest : public QObject { Q_OBJECT public: explicit GroupAddOwnerJobTest(QObject *parent = nullptr); - ~GroupAddOwnerJobTest() = default; + ~GroupAddOwnerJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // GROUPADDOWNERJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/groupremoveleaderjobtest.h b/src/rocketchatrestapi-qt5/autotests/groupremoveleaderjobtest.h index eb80381a..60e01ee0 100644 --- a/src/rocketchatrestapi-qt5/autotests/groupremoveleaderjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/groupremoveleaderjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GROUPREMOVELEADERJOBTEST_H #define GROUPREMOVELEADERJOBTEST_H #include class GroupRemoveLeaderJobTest : public QObject { Q_OBJECT public: explicit GroupRemoveLeaderJobTest(QObject *parent = nullptr); - ~GroupRemoveLeaderJobTest() = default; + ~GroupRemoveLeaderJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // GROUPREMOVELEADERJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/groupremovemoderatorjobtest.h b/src/rocketchatrestapi-qt5/autotests/groupremovemoderatorjobtest.h index 7afd7414..98eedced 100644 --- a/src/rocketchatrestapi-qt5/autotests/groupremovemoderatorjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/groupremovemoderatorjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GROUPREMOVEMODERATORJOBTEST_H #define GROUPREMOVEMODERATORJOBTEST_H #include class GroupRemoveModeratorJobTest : public QObject { Q_OBJECT public: explicit GroupRemoveModeratorJobTest(QObject *parent = nullptr); - ~GroupRemoveModeratorJobTest() = default; + ~GroupRemoveModeratorJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // GROUPREMOVEMODERATORJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/groupremoveownerjobtest.h b/src/rocketchatrestapi-qt5/autotests/groupremoveownerjobtest.h index 29f01c33..30f2fc54 100644 --- a/src/rocketchatrestapi-qt5/autotests/groupremoveownerjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/groupremoveownerjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GROUPREMOVEOWNERJOBTEST_H #define GROUPREMOVEOWNERJOBTEST_H #include class GroupRemoveOwnerJobTest : public QObject { Q_OBJECT public: explicit GroupRemoveOwnerJobTest(QObject *parent = nullptr); - ~GroupRemoveOwnerJobTest() = default; + ~GroupRemoveOwnerJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); }; #endif // GROUPREMOVEOWNERJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/groupsdeletejobtest.h b/src/rocketchatrestapi-qt5/autotests/groupsdeletejobtest.h index a94dc6c4..d8c74af5 100644 --- a/src/rocketchatrestapi-qt5/autotests/groupsdeletejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/groupsdeletejobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GROUPSDELETEJOBTEST_H #define GROUPSDELETEJOBTEST_H #include class GroupsDeleteJobTest : public QObject { Q_OBJECT public: explicit GroupsDeleteJobTest(QObject *parent = nullptr); - ~GroupsDeleteJobTest() = default; + ~GroupsDeleteJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateUsernameJson(); void shouldGenerateUserIdJson(); }; #endif // GROUPSDELETEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/groupsinfojobtest.h b/src/rocketchatrestapi-qt5/autotests/groupsinfojobtest.h index 5f038e03..803dae2f 100644 --- a/src/rocketchatrestapi-qt5/autotests/groupsinfojobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/groupsinfojobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GROUPSINFOJOBTEST_H #define GROUPSINFOJOBTEST_H #include class GroupsInfoJobTest : public QObject { Q_OBJECT public: explicit GroupsInfoJobTest(QObject *parent = nullptr); - ~GroupsInfoJobTest() = default; + ~GroupsInfoJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldNotStarting(); }; #endif // GROUPSINFOJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/groupsinvitejobtest.h b/src/rocketchatrestapi-qt5/autotests/groupsinvitejobtest.h index ee223f8c..7f88951a 100644 --- a/src/rocketchatrestapi-qt5/autotests/groupsinvitejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/groupsinvitejobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GROUPSINVITEJOBTEST_H #define GROUPSINVITEJOBTEST_H #include class GroupsInviteJobTest : public QObject { Q_OBJECT public: explicit GroupsInviteJobTest(QObject *parent = nullptr); - ~GroupsInviteJobTest() = default; + ~GroupsInviteJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateUsernameJson(); void shouldGenerateUserIdJson(); }; #endif // GROUPSINVITEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/groupskickjobtest.h b/src/rocketchatrestapi-qt5/autotests/groupskickjobtest.h index 6c9181c1..35b131fb 100644 --- a/src/rocketchatrestapi-qt5/autotests/groupskickjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/groupskickjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GROUPSKICKJOBTEST_H #define GROUPSKICKJOBTEST_H #include class GroupsKickJobTest : public QObject { Q_OBJECT public: explicit GroupsKickJobTest(QObject *parent = nullptr); - ~GroupsKickJobTest() = default; + ~GroupsKickJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // GROUPSKICKJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/ignoreuserjobtest.h b/src/rocketchatrestapi-qt5/autotests/ignoreuserjobtest.h index e5ecc7a3..5636b48b 100644 --- a/src/rocketchatrestapi-qt5/autotests/ignoreuserjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/ignoreuserjobtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef IGNOREUSERJOBTEST_H #define IGNOREUSERJOBTEST_H #include class IgnoreUserJobTest : public QObject { Q_OBJECT public: explicit IgnoreUserJobTest(QObject *parent = nullptr); - ~IgnoreUserJobTest() = default; + ~IgnoreUserJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // IGNOREUSERJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/leavechanneljobtest.h b/src/rocketchatrestapi-qt5/autotests/leavechanneljobtest.h index 31ef9f26..92a36bd1 100644 --- a/src/rocketchatrestapi-qt5/autotests/leavechanneljobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/leavechanneljobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef LEAVECHANNELJOBTEST_H #define LEAVECHANNELJOBTEST_H #include class LeaveChannelJobTest : public QObject { Q_OBJECT public: explicit LeaveChannelJobTest(QObject *parent = nullptr); - ~LeaveChannelJobTest() = default; + ~LeaveChannelJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // LEAVECHANNELJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/leavegroupsjobtest.h b/src/rocketchatrestapi-qt5/autotests/leavegroupsjobtest.h index a21a59f3..474e4221 100644 --- a/src/rocketchatrestapi-qt5/autotests/leavegroupsjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/leavegroupsjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef LEAVEGROUPSJOBTEST_H #define LEAVEGROUPSJOBTEST_H #include class LeaveGroupsJobTest : public QObject { Q_OBJECT public: explicit LeaveGroupsJobTest(QObject *parent = nullptr); - ~LeaveGroupsJobTest() = default; + ~LeaveGroupsJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // LEAVEGROUPSJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/listcommandsjobtest.h b/src/rocketchatrestapi-qt5/autotests/listcommandsjobtest.h index 86ef4c95..71b80e21 100644 --- a/src/rocketchatrestapi-qt5/autotests/listcommandsjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/listcommandsjobtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef LISTCOMMANDSJOBTEST_H #define LISTCOMMANDSJOBTEST_H #include class ListCommandsJobTest : public QObject { Q_OBJECT public: explicit ListCommandsJobTest(QObject *parent = nullptr); - ~ListCommandsJobTest() = default; + ~ListCommandsJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // LISTCOMMANDSJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/listpermissionsjobtest.h b/src/rocketchatrestapi-qt5/autotests/listpermissionsjobtest.h index 4eac0cc5..05a9f057 100644 --- a/src/rocketchatrestapi-qt5/autotests/listpermissionsjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/listpermissionsjobtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef LISTPERMISSIONSJOBTEST_H #define LISTPERMISSIONSJOBTEST_H #include class ListPermissionsJobTest : public QObject { Q_OBJECT public: explicit ListPermissionsJobTest(QObject *parent = nullptr); - ~ListPermissionsJobTest() = default; + ~ListPermissionsJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // LISTPERMISSIONSJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/loademojicustomjobtest.h b/src/rocketchatrestapi-qt5/autotests/loademojicustomjobtest.h index 04396407..6cb25754 100644 --- a/src/rocketchatrestapi-qt5/autotests/loademojicustomjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/loademojicustomjobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef LoadEmojiCustomJobTEST_H #define LoadEmojiCustomJobTEST_H #include class LoadEmojiCustomJobTest : public QObject { Q_OBJECT public: explicit LoadEmojiCustomJobTest(QObject *parent = nullptr); - ~LoadEmojiCustomJobTest() = default; + ~LoadEmojiCustomJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // LoadEmojiCustomJobTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/loginjobtest.h b/src/rocketchatrestapi-qt5/autotests/loginjobtest.h index 92cc9415..4c85df44 100644 --- a/src/rocketchatrestapi-qt5/autotests/loginjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/loginjobtest.h @@ -1,34 +1,34 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef LOGINJOBTEST_H #define LOGINJOBTEST_H #include class LoginJobTest : public QObject { Q_OBJECT public: explicit LoginJobTest(QObject *parent = nullptr); - ~LoginJobTest() = default; + ~LoginJobTest() override = default; }; #endif // LOGINJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/logoutjobtest.h b/src/rocketchatrestapi-qt5/autotests/logoutjobtest.h index be6e189c..6199d5aa 100644 --- a/src/rocketchatrestapi-qt5/autotests/logoutjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/logoutjobtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef LOGOUTJOBTEST_H #define LOGOUTJOBTEST_H #include class LogoutJobTest : public QObject { Q_OBJECT public: explicit LogoutJobTest(QObject *parent = nullptr); - ~LogoutJobTest() = default; + ~LogoutJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // LOGOUTJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/markroomasreadjobtest.h b/src/rocketchatrestapi-qt5/autotests/markroomasreadjobtest.h index 038c95b5..e65ccae9 100644 --- a/src/rocketchatrestapi-qt5/autotests/markroomasreadjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/markroomasreadjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MARKROOMASREADJOBTEST_H #define MARKROOMASREADJOBTEST_H #include class MarkRoomAsReadJobTest : public QObject { Q_OBJECT public: explicit MarkRoomAsReadJobTest(QObject *parent = nullptr); - ~MarkRoomAsReadJobTest() = default; + ~MarkRoomAsReadJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // MARKROOMASREADJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/markroomasunreadjobtest.h b/src/rocketchatrestapi-qt5/autotests/markroomasunreadjobtest.h index c894d1a6..71cab087 100644 --- a/src/rocketchatrestapi-qt5/autotests/markroomasunreadjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/markroomasunreadjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MARKROOMASUNREADJOBTEST_H #define MARKROOMASUNREADJOBTEST_H #include class MarkRoomAsUnReadJobTest : public QObject { Q_OBJECT public: explicit MarkRoomAsUnReadJobTest(QObject *parent = nullptr); - ~MarkRoomAsUnReadJobTest() = default; + ~MarkRoomAsUnReadJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // MARKROOMASUNREADJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/opendmjobtest.h b/src/rocketchatrestapi-qt5/autotests/opendmjobtest.h index fb630e6d..91f4ccfb 100644 --- a/src/rocketchatrestapi-qt5/autotests/opendmjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/opendmjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef OPENDMJOBTEST_H #define OPENDMJOBTEST_H #include class OpenDmJobTest : public QObject { Q_OBJECT public: explicit OpenDmJobTest(QObject *parent = nullptr); - ~OpenDmJobTest() = default; + ~OpenDmJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // OPENDMJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/owninfojobtest.h b/src/rocketchatrestapi-qt5/autotests/owninfojobtest.h index 9dc19f95..4344d26e 100644 --- a/src/rocketchatrestapi-qt5/autotests/owninfojobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/owninfojobtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef OWNINFOJOBTEST_H #define OWNINFOJOBTEST_H #include class OwnInfoJobTest : public QObject { Q_OBJECT public: explicit OwnInfoJobTest(QObject *parent = nullptr); - ~OwnInfoJobTest() = default; + ~OwnInfoJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // OWNINFOJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/pinmessagejobtest.h b/src/rocketchatrestapi-qt5/autotests/pinmessagejobtest.h index c74859da..aeb5d4bc 100644 --- a/src/rocketchatrestapi-qt5/autotests/pinmessagejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/pinmessagejobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef PINMESSAGEJOBTEST_H #define PINMESSAGEJOBTEST_H #include class PinMessageJobTest : public QObject { Q_OBJECT public: explicit PinMessageJobTest(QObject *parent = nullptr); - ~PinMessageJobTest() = default; + ~PinMessageJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldHaveMessageId(); void shouldGeneratePinMessageRequest(); void shouldGenerateUnPinMessageRequest(); void shouldGenerateJson(); }; #endif // PINMESSAGEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/postmessagejobtest.h b/src/rocketchatrestapi-qt5/autotests/postmessagejobtest.h index 1e92a9ce..f6271be8 100644 --- a/src/rocketchatrestapi-qt5/autotests/postmessagejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/postmessagejobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef POSTMESSAGEJOBTEST_H #define POSTMESSAGEJOBTEST_H #include class PostMessageJobTest : public QObject { Q_OBJECT public: explicit PostMessageJobTest(QObject *parent = nullptr); - ~PostMessageJobTest() = default; + ~PostMessageJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // POSTMESSAGEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/privateinfojobtest.h b/src/rocketchatrestapi-qt5/autotests/privateinfojobtest.h index 581f7ad3..84759ded 100644 --- a/src/rocketchatrestapi-qt5/autotests/privateinfojobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/privateinfojobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef PRIVATEINFOJOBTEST_H #define PRIVATEINFOJOBTEST_H #include class PrivateInfoJobTest : public QObject { Q_OBJECT public: explicit PrivateInfoJobTest(QObject *parent = nullptr); - ~PrivateInfoJobTest() = default; + ~PrivateInfoJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // PRIVATEINFOJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/queryparameterstest.h b/src/rocketchatrestapi-qt5/autotests/queryparameterstest.h index a976a723..20261c51 100644 --- a/src/rocketchatrestapi-qt5/autotests/queryparameterstest.h +++ b/src/rocketchatrestapi-qt5/autotests/queryparameterstest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef QUERYPARAMETERSTEST_H #define QUERYPARAMETERSTEST_H #include class QueryParametersTest : public QObject { Q_OBJECT public: explicit QueryParametersTest(QObject *parent = nullptr); - ~QueryParametersTest() = default; + ~QueryParametersTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); }; #endif // QUERYPARAMETERSTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/reactonmessagejobtest.h b/src/rocketchatrestapi-qt5/autotests/reactonmessagejobtest.h index c54ab808..7e275dda 100644 --- a/src/rocketchatrestapi-qt5/autotests/reactonmessagejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/reactonmessagejobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef REACTONMESSAGEJOBTEST_H #define REACTONMESSAGEJOBTEST_H #include class ReactOnMessageJobTest : public QObject { Q_OBJECT public: explicit ReactOnMessageJobTest(QObject *parent = nullptr); - ~ReactOnMessageJobTest() = default; + ~ReactOnMessageJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // REACTONMESSAGEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/reportmessagejobtest.h b/src/rocketchatrestapi-qt5/autotests/reportmessagejobtest.h index 5757bb05..508e84a9 100644 --- a/src/rocketchatrestapi-qt5/autotests/reportmessagejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/reportmessagejobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef REPORTMESSAGEJOBTEST_H #define REPORTMESSAGEJOBTEST_H #include class ReportMessageJobTest : public QObject { Q_OBJECT public: explicit ReportMessageJobTest(QObject *parent = nullptr); - ~ReportMessageJobTest() = default; + ~ReportMessageJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldHaveMessageId(); void shouldGenerateJobRequest(); void shouldGenerateJson(); }; #endif // REPORTMESSAGEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/resetavatarjobtest.h b/src/rocketchatrestapi-qt5/autotests/resetavatarjobtest.h index 310aa48a..3d5bcc1a 100644 --- a/src/rocketchatrestapi-qt5/autotests/resetavatarjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/resetavatarjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef RESETAVATARJOBTEST_H #define RESETAVATARJOBTEST_H #include class ResetAvatarJobTest : public QObject { Q_OBJECT public: explicit ResetAvatarJobTest(QObject *parent = nullptr); - ~ResetAvatarJobTest() = default; + ~ResetAvatarJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // RESETAVATARJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/restapimethodtest.h b/src/rocketchatrestapi-qt5/autotests/restapimethodtest.h index 5cee77ea..1733c2eb 100644 --- a/src/rocketchatrestapi-qt5/autotests/restapimethodtest.h +++ b/src/rocketchatrestapi-qt5/autotests/restapimethodtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef RESTAPIMETHODTEST_H #define RESTAPIMETHODTEST_H #include class RestApiMethodTest : public QObject { Q_OBJECT public: explicit RestApiMethodTest(QObject *parent = nullptr); - ~RestApiMethodTest() = default; + ~RestApiMethodTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldAssignDefaultValue(); void shouldGenerateUrl(); }; #endif // RESTAPIMETHODTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/restapiutiltest.h b/src/rocketchatrestapi-qt5/autotests/restapiutiltest.h index 2c0b0a4d..10c7c7b5 100644 --- a/src/rocketchatrestapi-qt5/autotests/restapiutiltest.h +++ b/src/rocketchatrestapi-qt5/autotests/restapiutiltest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2017-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef RESTAPIUTILTEST_H #define RESTAPIUTILTEST_H #include class RestApiUtilTest : public QObject { Q_OBJECT public: explicit RestApiUtilTest(QObject *parent = nullptr); - ~RestApiUtilTest() = default; + ~RestApiUtilTest() override = default; private Q_SLOTS: void shouldAdaptUrl_data(); void shouldAdaptUrl(); void shouldUseV1Version(); }; #endif // RESTAPIUTIL_H diff --git a/src/rocketchatrestapi-qt5/autotests/roomfavoritejobtest.h b/src/rocketchatrestapi-qt5/autotests/roomfavoritejobtest.h index 5490ed8e..fa68500c 100644 --- a/src/rocketchatrestapi-qt5/autotests/roomfavoritejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/roomfavoritejobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROOMFAVORITEJOBTEST_H #define ROOMFAVORITEJOBTEST_H #include class RoomFavoriteJobTest : public QObject { Q_OBJECT public: explicit RoomFavoriteJobTest(QObject *parent = nullptr); - ~RoomFavoriteJobTest() = default; + ~RoomFavoriteJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // ROOMFAVORITEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/roomleavejobtest.h b/src/rocketchatrestapi-qt5/autotests/roomleavejobtest.h index 9ae4a828..36247a46 100644 --- a/src/rocketchatrestapi-qt5/autotests/roomleavejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/roomleavejobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROOMLEAVEJOBTEST_H #define ROOMLEAVEJOBTEST_H #include class RoomLeaveJobTest : public QObject { Q_OBJECT public: explicit RoomLeaveJobTest(QObject *parent = nullptr); - ~RoomLeaveJobTest() = default; + ~RoomLeaveJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // ROOMLEAVEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/roomsautocompletechannelandprivatejobtest.h b/src/rocketchatrestapi-qt5/autotests/roomsautocompletechannelandprivatejobtest.h index 79bba890..a5a4ad78 100644 --- a/src/rocketchatrestapi-qt5/autotests/roomsautocompletechannelandprivatejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/roomsautocompletechannelandprivatejobtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROOMSAUTOCOMPLETECHANNELANDPRIVATEJOBTEST_H #define ROOMSAUTOCOMPLETECHANNELANDPRIVATEJOBTEST_H #include class RoomsAutocompleteChannelAndPrivateJobTest : public QObject { Q_OBJECT public: explicit RoomsAutocompleteChannelAndPrivateJobTest(QObject *parent = nullptr); - ~RoomsAutocompleteChannelAndPrivateJobTest() = default; + ~RoomsAutocompleteChannelAndPrivateJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // ROOMSAUTOCOMPLETECHANNELANDPRIVATEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/roomstartdiscussionjobtest.h b/src/rocketchatrestapi-qt5/autotests/roomstartdiscussionjobtest.h index 8109a135..ed9d8649 100644 --- a/src/rocketchatrestapi-qt5/autotests/roomstartdiscussionjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/roomstartdiscussionjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROOMSTARTDISCUSSIONJOBTEST_H #define ROOMSTARTDISCUSSIONJOBTEST_H #include class RoomStartDiscussionJobTest : public QObject { Q_OBJECT public: explicit RoomStartDiscussionJobTest(QObject *parent = nullptr); - ~RoomStartDiscussionJobTest() = default; + ~RoomStartDiscussionJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // ROOMSTARTDISCUSSIONJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/savenotificationjobtest.h b/src/rocketchatrestapi-qt5/autotests/savenotificationjobtest.h index 5e6bf058..5330aaed 100644 --- a/src/rocketchatrestapi-qt5/autotests/savenotificationjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/savenotificationjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SAVENOTIFICATIONJOBTEST_H #define SAVENOTIFICATIONJOBTEST_H #include class SaveNotificationJobTest : public QObject { Q_OBJECT public: explicit SaveNotificationJobTest(QObject *parent = nullptr); - ~SaveNotificationJobTest() = default; + ~SaveNotificationJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // SAVENOTIFICATIONJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/searchmessagejobtest.h b/src/rocketchatrestapi-qt5/autotests/searchmessagejobtest.h index 9756ec9b..573c8de9 100644 --- a/src/rocketchatrestapi-qt5/autotests/searchmessagejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/searchmessagejobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SEARCHMESSAGEJOBTEST_H #define SEARCHMESSAGEJOBTEST_H #include class searchMessageJobTest : public QObject { Q_OBJECT public: explicit searchMessageJobTest(QObject *parent = nullptr); - ~searchMessageJobTest() = default; + ~searchMessageJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateRequestWithLimit(); }; #endif // SEARCHMESSAGEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/sendmessagejobtest.h b/src/rocketchatrestapi-qt5/autotests/sendmessagejobtest.h index 6406d100..2b466a08 100644 --- a/src/rocketchatrestapi-qt5/autotests/sendmessagejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/sendmessagejobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SENDMESSAGEJOBTEST_H #define SENDMESSAGEJOBTEST_H #include class SendMessageJobTest : public QObject { Q_OBJECT public: explicit SendMessageJobTest(QObject *parent = nullptr); - ~SendMessageJobTest() = default; + ~SendMessageJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // SENDMESSAGEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/serverinfojobtest.h b/src/rocketchatrestapi-qt5/autotests/serverinfojobtest.h index 99898fb4..cae7fe89 100644 --- a/src/rocketchatrestapi-qt5/autotests/serverinfojobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/serverinfojobtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SERVERINFOJOBTEST_H #define SERVERINFOJOBTEST_H #include class ServerInfoJobTest : public QObject { Q_OBJECT public: explicit ServerInfoJobTest(QObject *parent = nullptr); - ~ServerInfoJobTest() = default; + ~ServerInfoJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // SERVERINFOJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/setavatarjobtest.h b/src/rocketchatrestapi-qt5/autotests/setavatarjobtest.h index 3c5dd2af..eb89d528 100644 --- a/src/rocketchatrestapi-qt5/autotests/setavatarjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/setavatarjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SETAVATARJOBTEST_H #define SETAVATARJOBTEST_H #include class SetAvatarJobTest : public QObject { Q_OBJECT public: explicit SetAvatarJobTest(QObject *parent = nullptr); - ~SetAvatarJobTest() = default; + ~SetAvatarJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // SETAVATARJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/setchanneltypejobtest.h b/src/rocketchatrestapi-qt5/autotests/setchanneltypejobtest.h index 75c84d93..1cb75e63 100644 --- a/src/rocketchatrestapi-qt5/autotests/setchanneltypejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/setchanneltypejobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SETCHANNELTYPEJOBTEST_H #define SETCHANNELTYPEJOBTEST_H #include class SetChannelTypeJobTest : public QObject { Q_OBJECT public: explicit SetChannelTypeJobTest(QObject *parent = nullptr); - ~SetChannelTypeJobTest() = default; + ~SetChannelTypeJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // SETCHANNELTYPEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/setgrouptypejobtest.h b/src/rocketchatrestapi-qt5/autotests/setgrouptypejobtest.h index d1e70877..0ea22ba8 100644 --- a/src/rocketchatrestapi-qt5/autotests/setgrouptypejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/setgrouptypejobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SETGROUPTYPEJOBTEST_H #define SETGROUPTYPEJOBTEST_H #include class SetGroupTypeJobTest : public QObject { Q_OBJECT public: explicit SetGroupTypeJobTest(QObject *parent = nullptr); - ~SetGroupTypeJobTest() = default; + ~SetGroupTypeJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // SETGROUPTYPEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/setjoincodechanneljobtest.h b/src/rocketchatrestapi-qt5/autotests/setjoincodechanneljobtest.h index c1cac9b0..7047681c 100644 --- a/src/rocketchatrestapi-qt5/autotests/setjoincodechanneljobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/setjoincodechanneljobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SETJOINCODECHANNELJOBTEST_H #define SETJOINCODECHANNELJOBTEST_H #include class SetJoinCodeChannelJobTest : public QObject { Q_OBJECT public: explicit SetJoinCodeChannelJobTest(QObject *parent = nullptr); - ~SetJoinCodeChannelJobTest() = default; + ~SetJoinCodeChannelJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // SETJOINCODECHANNELJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/setstatusjobtest.h b/src/rocketchatrestapi-qt5/autotests/setstatusjobtest.h index dfe84fb2..45e20913 100644 --- a/src/rocketchatrestapi-qt5/autotests/setstatusjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/setstatusjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SETSTATUSJOBTEST_H #define SETSTATUSJOBTEST_H #include class SetStatusJobTest : public QObject { Q_OBJECT public: explicit SetStatusJobTest(QObject *parent = nullptr); - ~SetStatusJobTest() = default; + ~SetStatusJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // SETSTATUSJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/settingsoauthjobtest.h b/src/rocketchatrestapi-qt5/autotests/settingsoauthjobtest.h index 1bcd64bf..07c4068f 100644 --- a/src/rocketchatrestapi-qt5/autotests/settingsoauthjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/settingsoauthjobtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SETTINGSOAUTHJOBTEST_H #define SETTINGSOAUTHJOBTEST_H #include class SettingsOauthJobTest : public QObject { Q_OBJECT public: explicit SettingsOauthJobTest(QObject *parent = nullptr); - ~SettingsOauthJobTest() = default; + ~SettingsOauthJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // SETTINGSOAUTHJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/setuserpublicandprivatekeysjobtest.h b/src/rocketchatrestapi-qt5/autotests/setuserpublicandprivatekeysjobtest.h index 4ac13083..432d3538 100644 --- a/src/rocketchatrestapi-qt5/autotests/setuserpublicandprivatekeysjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/setuserpublicandprivatekeysjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SETUSERPUBLICANDPRIVATEKEYSJOBTEST_H #define SETUSERPUBLICANDPRIVATEKEYSJOBTEST_H #include class SetUserPublicAndPrivateKeysJobTest : public QObject { Q_OBJECT public: explicit SetUserPublicAndPrivateKeysJobTest(QObject *parent = nullptr); - ~SetUserPublicAndPrivateKeysJobTest() = default; + ~SetUserPublicAndPrivateKeysJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // SETUSERPUBLICANDPRIVATEKEYSJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/spotlightjobtest.h b/src/rocketchatrestapi-qt5/autotests/spotlightjobtest.h index 1cb91bd7..b0ec34f1 100644 --- a/src/rocketchatrestapi-qt5/autotests/spotlightjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/spotlightjobtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SPOTLIGHTJOBTEST_H #define SPOTLIGHTJOBTEST_H #include class SpotlightJobTest : public QObject { Q_OBJECT public: explicit SpotlightJobTest(QObject *parent = nullptr); - ~SpotlightJobTest() = default; + ~SpotlightJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // SPOTLIGHTJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/starmessagejobtest.h b/src/rocketchatrestapi-qt5/autotests/starmessagejobtest.h index 84020e50..efc6ba76 100644 --- a/src/rocketchatrestapi-qt5/autotests/starmessagejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/starmessagejobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef STARMESSAGEJOBTEST_H #define STARMESSAGEJOBTEST_H #include class StarMessageJobTest : public QObject { Q_OBJECT public: explicit StarMessageJobTest(QObject *parent = nullptr); - ~StarMessageJobTest() = default; + ~StarMessageJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldHaveMessageId(); void shouldGenerateStarMessageRequest(); void shouldGenerateUnStarMessageRequest(); void shouldGenerateJson(); }; #endif // STARMESSAGEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/syncthreadmessagesjobtest.h b/src/rocketchatrestapi-qt5/autotests/syncthreadmessagesjobtest.h index 50fdd9b9..9e6ac7e5 100644 --- a/src/rocketchatrestapi-qt5/autotests/syncthreadmessagesjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/syncthreadmessagesjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SYNCTHREADMESSAGESJOBTEST_H #define SYNCTHREADMESSAGESJOBTEST_H #include class SyncThreadMessagesJobTest : public QObject { Q_OBJECT public: explicit SyncThreadMessagesJobTest(QObject *parent = nullptr); - ~SyncThreadMessagesJobTest() = default; + ~SyncThreadMessagesJobTest() override = default; private Q_SLOTS: void shouldGenerateRequest(); void shouldNotStarting(); void shouldHaveDefaultValue(); }; #endif // SYNCTHREADMESSAGESJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/translatemessagejobtest.h b/src/rocketchatrestapi-qt5/autotests/translatemessagejobtest.h index 375c6004..0ee403d1 100644 --- a/src/rocketchatrestapi-qt5/autotests/translatemessagejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/translatemessagejobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef TRANSLATEMESSAGEJOBTEST_H #define TRANSLATEMESSAGEJOBTEST_H #include class TranslateMessageJobTest : public QObject { Q_OBJECT public: explicit TranslateMessageJobTest(QObject *parent = nullptr); - ~TranslateMessageJobTest() = default; + ~TranslateMessageJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // TRANSLATEMESSAGEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/translatesavesettingsjobtest.h b/src/rocketchatrestapi-qt5/autotests/translatesavesettingsjobtest.h index 0f49800b..4543985c 100644 --- a/src/rocketchatrestapi-qt5/autotests/translatesavesettingsjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/translatesavesettingsjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef TRANSLATESAVESETTINGSJOBTEST_H #define TRANSLATESAVESETTINGSJOBTEST_H #include class TranslateSaveSettingsJobTest : public QObject { Q_OBJECT public: explicit TranslateSaveSettingsJobTest(QObject *parent = nullptr); - ~TranslateSaveSettingsJobTest() = default; + ~TranslateSaveSettingsJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // TRANSLATESAVESETTINGSJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/twitterauthjobtest.h b/src/rocketchatrestapi-qt5/autotests/twitterauthjobtest.h index 09c389ff..148d79b6 100644 --- a/src/rocketchatrestapi-qt5/autotests/twitterauthjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/twitterauthjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef TWITTERAUTHJOBTEST_H #define TWITTERAUTHJOBTEST_H #include class TwitterAuthJobTest : public QObject { Q_OBJECT public: explicit TwitterAuthJobTest(QObject *parent = nullptr); - ~TwitterAuthJobTest() = default; + ~TwitterAuthJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // TWITTERAUTHJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/unfollowmessagejobtest.h b/src/rocketchatrestapi-qt5/autotests/unfollowmessagejobtest.h index 75c67875..b014ae6a 100644 --- a/src/rocketchatrestapi-qt5/autotests/unfollowmessagejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/unfollowmessagejobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef UNFOLLOWMESSAGEJOBTEST_H #define UNFOLLOWMESSAGEJOBTEST_H #include class UnFollowMessageJobTest : public QObject { Q_OBJECT public: explicit UnFollowMessageJobTest(QObject *parent = nullptr); - ~UnFollowMessageJobTest() = default; + ~UnFollowMessageJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // UnFOLLOWMESSAGEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/updatemessagejobtest.h b/src/rocketchatrestapi-qt5/autotests/updatemessagejobtest.h index 42ea5eff..833ef2fe 100644 --- a/src/rocketchatrestapi-qt5/autotests/updatemessagejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/updatemessagejobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef UPDATEMESSAGEJOBTEST_H #define UPDATEMESSAGEJOBTEST_H #include class UpdateMessageJobTest : public QObject { Q_OBJECT public: explicit UpdateMessageJobTest(QObject *parent = nullptr); - ~UpdateMessageJobTest() = default; + ~UpdateMessageJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // UPDATEMESSAGEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/uploadfilejobtest.h b/src/rocketchatrestapi-qt5/autotests/uploadfilejobtest.h index ded2e82b..e2d7556c 100644 --- a/src/rocketchatrestapi-qt5/autotests/uploadfilejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/uploadfilejobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef UPLOADFILEJOBTEST_H #define UPLOADFILEJOBTEST_H #include class UploadFileJobTest : public QObject { Q_OBJECT public: explicit UploadFileJobTest(QObject *parent = nullptr); - ~UploadFileJobTest() = default; + ~UploadFileJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldStart(); }; #endif // UPLOADFILEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/usersautocompletejobtest.h b/src/rocketchatrestapi-qt5/autotests/usersautocompletejobtest.h index 0f810b13..b43a18e2 100644 --- a/src/rocketchatrestapi-qt5/autotests/usersautocompletejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/usersautocompletejobtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef USERSAUTOCOMPLETEJOBTEST_H #define USERSAUTOCOMPLETEJOBTEST_H #include class UsersAutocompleteJobTest : public QObject { Q_OBJECT public: explicit UsersAutocompleteJobTest(QObject *parent = nullptr); - ~UsersAutocompleteJobTest() = default; + ~UsersAutocompleteJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // USERSAUTOCOMPLETEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/usersinfojobtest.h b/src/rocketchatrestapi-qt5/autotests/usersinfojobtest.h index 95b76cd8..0232c859 100644 --- a/src/rocketchatrestapi-qt5/autotests/usersinfojobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/usersinfojobtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef USERSINFOJOBTEST_H #define USERSINFOJOBTEST_H #include class UsersInfoJobTest : public QObject { Q_OBJECT public: explicit UsersInfoJobTest(QObject *parent = nullptr); - ~UsersInfoJobTest() = default; + ~UsersInfoJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateRequestUsername(); }; #endif // USERSINFOJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/userspresencejobtest.h b/src/rocketchatrestapi-qt5/autotests/userspresencejobtest.h index 9577f8af..75bb0215 100644 --- a/src/rocketchatrestapi-qt5/autotests/userspresencejobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/userspresencejobtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef USERSPRESENCEJOBTEST_H #define USERSPRESENCEJOBTEST_H #include class UsersPresenceJobTest : public QObject { Q_OBJECT public: explicit UsersPresenceJobTest(QObject *parent = nullptr); - ~UsersPresenceJobTest() = default; + ~UsersPresenceJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); }; #endif // USERSPRESENCEJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/autotests/videoconfupdatejitsitimeoutjobtest.h b/src/rocketchatrestapi-qt5/autotests/videoconfupdatejitsitimeoutjobtest.h index be9ff064..8c20848e 100644 --- a/src/rocketchatrestapi-qt5/autotests/videoconfupdatejitsitimeoutjobtest.h +++ b/src/rocketchatrestapi-qt5/autotests/videoconfupdatejitsitimeoutjobtest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef VIDEOCONFUPDATEJITSITIMEOUTJOBTEST_H #define VIDEOCONFUPDATEJITSITIMEOUTJOBTEST_H #include class VideoConfUpdateJitsiTimeOutJobTest : public QObject { Q_OBJECT public: explicit VideoConfUpdateJitsiTimeOutJobTest(QObject *parent = nullptr); - ~VideoConfUpdateJitsiTimeOutJobTest() = default; + ~VideoConfUpdateJitsiTimeOutJobTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); void shouldGenerateRequest(); void shouldGenerateJson(); void shouldNotStarting(); }; #endif // VIDEOCONFUPDATEJITSITIMEOUTJOBTEST_H diff --git a/src/rocketchatrestapi-qt5/restapirequest.h b/src/rocketchatrestapi-qt5/restapirequest.h index ea28001a..972e1c37 100644 --- a/src/rocketchatrestapi-qt5/restapirequest.h +++ b/src/rocketchatrestapi-qt5/restapirequest.h @@ -1,261 +1,261 @@ /* Copyright (c) 2017-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef RESTAPIREQUEST_H #define RESTAPIREQUEST_H #include #include #include #include "restapiutil.h" #include "users/setstatusjob.h" #include "users/usersautocompletejob.h" #include "librocketchatrestapi-qt5_export.h" class QNetworkAccessManager; class QNetworkReply; class QNetworkCookieJar; namespace RocketChatRestApi { class RestApiAbstractJob; class AbstractLogger; class LIBROCKETCHATRESTAPI_QT5_EXPORT RestApiRequest : public QObject { Q_OBJECT public: explicit RestApiRequest(QObject *parent = nullptr); - ~RestApiRequest(); + ~RestApiRequest() override; void setRestApiLogger(RocketChatRestApi::AbstractLogger *logger); Q_REQUIRED_RESULT QString userId() const; Q_REQUIRED_RESULT QString authToken() const; void setUserId(const QString &userId); void setAuthToken(const QString &authToken); //Assign/get server url QString serverUrl() const; void setServerUrl(const QString &serverUrl); void setUserName(const QString &userName); void setPassword(const QString &password); void login(); void logout(); void channelList(); void getAvatar(const QString &userId); void serverInfo(bool useDeprecatedVersion); void getPrivateSettings(); void getOwnInfo(); void starMessage(const QString &messageId, bool starred); void uploadFile(const QString &roomId, const QString &description, const QString &text, const QUrl &filename); void downloadFile(const QUrl &url, const QString &mimeType = QStringLiteral("text/plain"), bool storeInCache = true, const QUrl &localFileUrl = QUrl()); void changeChannelTopic(const QString &roomId, const QString &topic); void changeGroupsTopic(const QString &roomId, const QString &topic); void changeChannelAnnouncement(const QString &roomId, const QString &announcement); void changeGroupsAnnouncement(const QString &roomId, const QString &announcement); void postMessage(const QString &roomId, const QString &text); void deleteMessage(const QString &roomId, const QString &messageId); void createChannels(const QString &channelName, bool readOnly, const QStringList &members, const QString &password); void createGroups(const QString &channelName, bool readOnly, const QStringList &members); void leaveChannel(const QString &roomId); void leaveGroups(const QString &roomId); void updateMessage(const QString &roomId, const QString &messageId, const QString &text); void reactOnMessage(const QString &messageId, const QString &emoji, bool shouldReact); void closeChannel(const QString &roomId, const QString &type); void createDirectMessage(const QString &userName); void historyChannel(const QString &roomId, const QString &type); void changeChannelDescription(const QString &roomId, const QString &description); void changeGroupsDescription(const QString &roomId, const QString &description); void archiveChannel(const QString &roomId, bool archive); void archiveGroups(const QString &roomId, bool archive); void filesInRoom(const QString &roomId, const QString &type, int offset = 0, int count = 50); void addUserInChannel(const QString &roomId, const QString &userId); void listEmojiCustom(); void searchRoomUser(const QString &pattern); void searchMessages(const QString &roomId, const QString &pattern); void markAsRead(const QString &roomId); void getRooms(); void markAsFavorite(const QString &roomId, bool favorite); void addUserInGroup(const QString &roomId, const QString &userId); void disableNotifications(const QString &roomId, bool value); void hideUnreadStatus(const QString &roomId, bool value); void audioNotifications(const QString &roomId, const QString &value); void desktopNotifications(const QString &roomId, const QString &value); void emailNotifications(const QString &roomId, const QString &value); void mobilePushNotifications(const QString &roomId, const QString &value); void unreadAlert(const QString &roomId, const QString &value); void setAvatar(const QString &avatarUrl); void markRoomAsUnRead(const QString &roomId); void markMessageAsUnReadFrom(const QString &messageId); void forgotPassword(const QString &email); void userInfo(const QString &identifier, bool userName = false); void ignoreUser(const QString &roomId, const QString &userId, bool ignore); void userPresence(const QString &userId); void reportMessage(const QString &messageId, const QString &message); void setGroupType(const QString &roomId, bool isPrivate); void setChannelType(const QString &roomId, bool isPrivate); void getGroupRoles(const QString &roomId); void getChannelRoles(const QString &roomId); void getUsernameSuggestion(); void listPermissions(); void listCommands(); void fetchMyKeys(); void setJoinCodeChannel(const QString &roomId, const QString &joinCode); void channelJoin(const QString &roomId, const QString &joinCode); void muteGroupMentions(const QString &roomId, bool value); void channelInfo(const QString &roomId); void syncThreadMessages(const QString &threadMessageId, const QString ×tamp); void changeChannelName(const QString &roomId, const QString &newName); void changeGroupName(const QString &roomId, const QString &newName); void groupInfo(const QString &roomId); void channelGetAllUserMentions(const QString &roomId, int offset = 0, int count = 50); void updatejitsiTimeOut(const QString &roomId); void openDirectMessage(const QString &userId); void channelKick(const QString &roomId, const QString &userId); void groupKick(const QString &roomId, const QString &userId); void groupAddModerator(const QString &roomId, const QString &userId); void groupRemoveModerator(const QString &roomId, const QString &userId); void groupAddLeader(const QString &roomId, const QString &userId); void groupRemoveLeader(const QString &roomId, const QString &userId); void groupAddOwner(const QString &roomId, const QString &userId); void groupRemoveOwner(const QString &roomId, const QString &userId); void channelAddModerator(const QString &roomId, const QString &userId); void channelRemoveModerator(const QString &roomId, const QString &userId); void channelAddOwner(const QString &roomId, const QString &userId); void channelRemoveOwner(const QString &roomId, const QString &userId); void channelDelete(const QString &roomId); void groupDelete(const QString &roomId); void membersInRoom(const QString &roomId, const QString &type, int offset = 0, int count = 50); void changeChannelReadOnly(const QString &roomId, bool b); void changeGroupsReadOnly(const QString &roomId, bool b); void channelAddLeader(const QString &roomId, const QString &userId); void channelRemoveLeader(const QString &roomId, const QString &userId); void changeChannelEncrypted(const QString &roomId, bool b); void changeGroupsEncrypted(const QString &roomId, bool b); void pinMessage(const QString &messageId, bool pinned); void desktopDurationNotifications(const QString &roomId, int value); void desktopSoundNotifications(const QString &roomId, const QString &value); void followMessage(const QString &messageId); void unFollowMessage(const QString &messageId); void createDiscussion(const QString &parentRoomId, const QString &discussionName, const QString &replyMessage, const QString &parentMessageId, const QStringList &users); void getDiscussions(const QString &roomId, int offset = 0, int count = 50); void getThreadsList(const QString &roomId, int offset = 0, int count = 50); void getThreadMessages(const QString &threadMessageId); void sendMessage(const QString &roomId, const QString &text, const QString &messageId = QString(), const QString &threadMessageId = QString()); void getPinnedMessages(const QString &roomId, int offset = 0, int count = 50); void getSupportedLanguagesMessages(); void autoTranslateSaveLanguageSettings(const QString &roomId, const QString &language); void autoTranslateSaveAutoTranslateSettings(const QString &roomId, bool autoTranslate); void setUserStatus(const QString &userId, SetStatusJob::StatusType status, const QString &message = QString()); void usersPresence(); void getStarredMessages(const QString &roomId, int offset = 0, int count = 50); void getSnippetedMessages(const QString &roomId, int offset = 0, int count = 50); void customUserStatus(); void customSounds(); void usersAutocomplete(const UsersAutocompleteJob::UsersAutocompleterInfo &info); Q_SIGNALS: void avatar(const QString &userId, const QString &url); void redownloadAvatar(); void logoutDone(); void loginDone(const QString &authToken, const QString &userId); void downloadFileDone(const QByteArray &data, const QUrl &url, bool useCache, const QUrl &localFileUrl); void getServerInfoDone(const QString &version); void getServerInfoFailed(bool useDeprecatedVersion); void getOwnInfoDone(const QJsonObject &data); void privateInfoDone(const QByteArray &data); void channelFilesDone(const QJsonObject &obj, const QString &roomId); void channelMembersDone(const QJsonObject &obj, const QString &roomId); void syncThreadMessagesDone(const QJsonObject &obj, const QString &threadMessageId); void loadEmojiCustomDone(const QJsonObject &obj); void spotlightDone(const QJsonObject &obj); void channelListDone(const QJsonObject &obj); void searchMessageDone(const QJsonObject &obj); void getRoomsDone(const QJsonObject &obj); void usersInfoDone(const QJsonObject &obj); void channelRolesDone(const QJsonObject &obj, const QString &roomId); void getUsernameSuggestionDone(const QString &username); void getPresenceDone(const QString &presence); void listPermissionDone(const QJsonObject &obj); void listCommandsDone(const QJsonObject &obj); void fetchMyKeysDone(); void setJoinCodeDone(); void setChannelJoinDone(const QString &roomId); void missingChannelPassword(const QString &roomId); void openArchivedRoom(const QString &roomId); void channelGetAllUserMentionsDone(const QJsonObject &obj, const QString &roomId); void updateJitsiTimeOutDone(const QString &datetime); void channelKickUserDone(const QJsonObject &obj); void groupKickUserDone(const QJsonObject &obj); void addModeratorDone(); void removeModeratorDone(); void addLeaderDone(); void removeLeaderDone(); void addOwnerDone(); void removeOwnerDone(); void deletechannelDone(); void deleteGroupsDone(); void pinMessageDone(); void ignoreUserDone(const QJsonObject &obj, const QString &roomId); void followMessageDone(); void unFollowMessageDone(); void startDiscussionDone(); void getDiscussionsDone(const QJsonObject &obj, const QString &roomId); void getThreadsDone(const QJsonObject &obj, const QString &roomId); void getThreadMessagesDone(const QJsonObject &obj, const QString &threadMessageId); void getPinnedMessagesDone(const QJsonObject &obj, const QString &roomId); void getStarredMessagesDone(const QJsonObject &obj, const QString &roomId); void getSnippetedMessagesDone(const QJsonObject &obj, const QString &roomId); void getSupportedLanguagesDone(const QJsonObject &obj); void translateSavesettingsDone(); void setStatusDone(); void usersPresenceDone(const QJsonObject &obj); void customUserStatusDone(const QByteArray &); //TODO QByteArray or QJson ? void customSoundsDone(const QByteArray &); //TODO QByteArray or QJson ? void usersAutocompleteDone(const QJsonObject &obj); void failed(const QString &str); private: Q_DISABLE_COPY(RestApiRequest) void initializeCookies(); void slotResult(QNetworkReply *reply); void slotSslErrors(QNetworkReply *reply, const QList &error); void slotLogout(); void slotLogin(const QString &authToken, const QString &userId); void slotAddJoinCodeToChannel(const QString &channelId, const QString &password); void initializeRestApiJob(RocketChatRestApi::RestApiAbstractJob *job); QNetworkAccessManager *mNetworkAccessManager = nullptr; QNetworkCookieJar *mCookieJar = nullptr; RestApiMethod *mRestApiMethod = nullptr; RocketChatRestApi::AbstractLogger *mRuqolaLogger = nullptr; QString mUserId; QString mAuthToken; QString mUserName; QString mPassword; }; } #endif // RESTAPIREQUEST_H diff --git a/src/rocketchatrestapi-qt5/uploadfilejob.h b/src/rocketchatrestapi-qt5/uploadfilejob.h index f228437b..a048d7d2 100644 --- a/src/rocketchatrestapi-qt5/uploadfilejob.h +++ b/src/rocketchatrestapi-qt5/uploadfilejob.h @@ -1,68 +1,68 @@ /* Copyright (c) 2018-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef UPLOADFILEJOB_H #define UPLOADFILEJOB_H #include #include #include #include "librestapi_private_export.h" #include "restapiabstractjob.h" namespace RocketChatRestApi { class LIBROCKETCHATRESTAPI_QT5_TESTS_EXPORT UploadFileJob : public RestApiAbstractJob { Q_OBJECT public: explicit UploadFileJob(QObject *parent = nullptr); ~UploadFileJob() override; Q_REQUIRED_RESULT bool start() override; Q_REQUIRED_RESULT QString roomId() const; void setRoomId(const QString &roomId); Q_REQUIRED_RESULT QString description() const; void setDescription(const QString &description); Q_REQUIRED_RESULT QString messageText() const; void setMessageText(const QString &messageText); Q_REQUIRED_RESULT QUrl filenameUrl() const; void setFilenameUrl(const QUrl &filenameUrl); - Q_REQUIRED_RESULT bool requireHttpAuthentication() const override final; + Q_REQUIRED_RESULT bool requireHttpAuthentication() const final; Q_REQUIRED_RESULT QNetworkRequest request() const override; Q_REQUIRED_RESULT bool canStart() const override; Q_SIGNALS: void uploadProgress(qint64 bytesSent, qint64 bytesTotal); private: Q_DISABLE_COPY(UploadFileJob) void slotUploadFinished(); QString mRoomId; QString mDescription; QString mMessageText; QUrl mFilenameUrl; }; } #endif // UPLOADFILEJOB_H diff --git a/src/widgets/autotests/ruqolacentralwidgettest.h b/src/widgets/autotests/ruqolacentralwidgettest.h index b17ebf24..7721c928 100644 --- a/src/widgets/autotests/ruqolacentralwidgettest.h +++ b/src/widgets/autotests/ruqolacentralwidgettest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef RUQOLACENTRALWIDGETTEST_H #define RUQOLACENTRALWIDGETTEST_H #include class RuqolaCentralWidgetTest : public QObject { Q_OBJECT public: explicit RuqolaCentralWidgetTest(QObject *parent = nullptr); - ~RuqolaCentralWidgetTest() = default; + ~RuqolaCentralWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // RUQOLACENTRALWIDGETTEST_H diff --git a/src/widgets/autotests/ruqolaloginwidgettest.h b/src/widgets/autotests/ruqolaloginwidgettest.h index e3a1bea3..2270bec8 100644 --- a/src/widgets/autotests/ruqolaloginwidgettest.h +++ b/src/widgets/autotests/ruqolaloginwidgettest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef RUQOLALOGINWIDGETTEST_H #define RUQOLALOGINWIDGETTEST_H #include class RuqolaLoginWidgetTest : public QObject { Q_OBJECT public: explicit RuqolaLoginWidgetTest(QObject *parent = nullptr); - ~RuqolaLoginWidgetTest() = default; + ~RuqolaLoginWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // RUQOLALOGINWIDGETTEST_H diff --git a/src/widgets/autotests/ruqolamainwidgettest.h b/src/widgets/autotests/ruqolamainwidgettest.h index e259410c..8fe9ae22 100644 --- a/src/widgets/autotests/ruqolamainwidgettest.h +++ b/src/widgets/autotests/ruqolamainwidgettest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef RUQOLAMAINWIDGETTEST_H #define RUQOLAMAINWIDGETTEST_H #include class RuqolaMainWidgetTest : public QObject { Q_OBJECT public: explicit RuqolaMainWidgetTest(QObject *parent = nullptr); - ~RuqolaMainWidgetTest() = default; + ~RuqolaMainWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // RUQOLAMAINWIDGETTEST_H diff --git a/src/widgets/autotests/ruqolamainwindowtest.h b/src/widgets/autotests/ruqolamainwindowtest.h index 972101dd..f424df84 100644 --- a/src/widgets/autotests/ruqolamainwindowtest.h +++ b/src/widgets/autotests/ruqolamainwindowtest.h @@ -1,38 +1,38 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef RUQOLAMAINWINDOWTEST_H #define RUQOLAMAINWINDOWTEST_H #include class RuqolaMainWindowTest : public QObject { Q_OBJECT public: explicit RuqolaMainWindowTest(QObject *parent = nullptr); - ~RuqolaMainWindowTest() = default; + ~RuqolaMainWindowTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); void shouldRestoreSizes(); }; #endif // RUQOLAMAINWINDOWTEST_H diff --git a/src/widgets/channellist/autotests/channellistviewtest.h b/src/widgets/channellist/autotests/channellistviewtest.h index 64dd28fa..45007cb4 100644 --- a/src/widgets/channellist/autotests/channellistviewtest.h +++ b/src/widgets/channellist/autotests/channellistviewtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELLISTVIEWTEST_H #define CHANNELLISTVIEWTEST_H #include class ChannelListViewTest : public QObject { Q_OBJECT public: explicit ChannelListViewTest(QObject *parent = nullptr); - ~ChannelListViewTest() = default; + ~ChannelListViewTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // CHANNELLISTVIEWTEST_H diff --git a/src/widgets/channellist/autotests/channellistwidgettest.h b/src/widgets/channellist/autotests/channellistwidgettest.h index 9355d59e..950cd271 100644 --- a/src/widgets/channellist/autotests/channellistwidgettest.h +++ b/src/widgets/channellist/autotests/channellistwidgettest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELLISTWIDGETTEST_H #define CHANNELLISTWIDGETTEST_H #include class ChannelListWidgetTest : public QObject { Q_OBJECT public: explicit ChannelListWidgetTest(QObject *parent = nullptr); - ~ChannelListWidgetTest() = default; + ~ChannelListWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); void searchRooms(); }; #endif // CHANNELLISTWIDGETTEST_H diff --git a/src/widgets/channellist/autotests/statuscomboboxtest.h b/src/widgets/channellist/autotests/statuscomboboxtest.h index abeedc38..0b24524d 100644 --- a/src/widgets/channellist/autotests/statuscomboboxtest.h +++ b/src/widgets/channellist/autotests/statuscomboboxtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef STATUSCOMBOBOXTEST_H #define STATUSCOMBOBOXTEST_H #include class StatusComboboxTest : public QObject { Q_OBJECT public: explicit StatusComboboxTest(QObject *parent = nullptr); - ~StatusComboboxTest() = default; + ~StatusComboboxTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); void shouldSelectStatus(); }; #endif // STATUSCOMBOBOXTEST_H diff --git a/src/widgets/channellist/channellistview.h b/src/widgets/channellist/channellistview.h index 285f8b82..70f806cc 100644 --- a/src/widgets/channellist/channellistview.h +++ b/src/widgets/channellist/channellistview.h @@ -1,54 +1,54 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELLISTVIEW_H #define CHANNELLISTVIEW_H #include #include "libruqolawidgets_private_export.h" class RoomFilterProxyModel; class LIBRUQOLAWIDGETS_TESTS_EXPORT ChannelListView : public QListView { Q_OBJECT public: explicit ChannelListView(QWidget *parent = nullptr); - ~ChannelListView(); + ~ChannelListView() override; RoomFilterProxyModel *model() const; void setModel(QAbstractItemModel *model) override; void selectChannelRequested(const QString &channelId); Q_SIGNALS: void channelSelected(const QModelIndex &index); protected: void contextMenuEvent(QContextMenuEvent *event) override; private: void slotClicked(const QModelIndex &index); void slotHideChannel(const QModelIndex &index, const QString &roomType); void slotLeaveChannel(const QModelIndex &index, const QString &roomType); void slotChangeFavorite(const QModelIndex &index, bool isFavorite); }; #endif // CHANNELLISTVIEW_H diff --git a/src/widgets/channellist/channellistwidget.h b/src/widgets/channellist/channellistwidget.h index e98971c1..2d91273d 100644 --- a/src/widgets/channellist/channellistwidget.h +++ b/src/widgets/channellist/channellistwidget.h @@ -1,61 +1,61 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELLISTWIDGET_H #define CHANNELLISTWIDGET_H #include #include "libruqolawidgets_private_export.h" #include "user.h" class StatusCombobox; class ChannelListView; class QLineEdit; class RocketChatAccount; class LIBRUQOLAWIDGETS_TESTS_EXPORT ChannelListWidget : public QWidget { Q_OBJECT public: explicit ChannelListWidget(QWidget *parent = nullptr); - ~ChannelListWidget(); + ~ChannelListWidget() override; ChannelListView *channelListView() const; void setCurrentRocketChatAccount(RocketChatAccount *account); Q_REQUIRED_RESULT QString currentSelectedRoom() const; Q_SIGNALS: void channelSelected(const QModelIndex &index); protected: bool eventFilter(QObject *object, QEvent *event) override; private: void setUserStatusUpdated(User::PresenceStatus status); void slotStatusChanged(); void slotSearchRoomTextChanged(); void clearFilterChannel(); StatusCombobox *mStatusComboBox = nullptr; ChannelListView *mChannelView = nullptr; QLineEdit *mSearchRoom = nullptr; RocketChatAccount *mCurrentRocketChatAccount = nullptr; }; #endif // CHANNELLISTWIDGET_H diff --git a/src/widgets/channellist/statuscombobox.h b/src/widgets/channellist/statuscombobox.h index 51ae5d86..1fd681fe 100644 --- a/src/widgets/channellist/statuscombobox.h +++ b/src/widgets/channellist/statuscombobox.h @@ -1,40 +1,40 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef STATUSCOMBOBOX_H #define STATUSCOMBOBOX_H #include #include "user.h" #include "libruqolawidgets_private_export.h" class LIBRUQOLAWIDGETS_TESTS_EXPORT StatusCombobox : public QComboBox { Q_OBJECT public: explicit StatusCombobox(bool showModifyStatus, QWidget *parent = nullptr); - ~StatusCombobox(); + ~StatusCombobox() override; Q_REQUIRED_RESULT User::PresenceStatus status() const; void setStatus(User::PresenceStatus status); private: void init(bool showModifyStatus); }; #endif // STATUSCOMBOBOX_H diff --git a/src/widgets/common/authenticationcombobox.h b/src/widgets/common/authenticationcombobox.h index 1531ca87..5581821f 100644 --- a/src/widgets/common/authenticationcombobox.h +++ b/src/widgets/common/authenticationcombobox.h @@ -1,37 +1,37 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef AUTHENTICATIONCOMBOBOX_H #define AUTHENTICATIONCOMBOBOX_H #include #include "libruqolawidgets_private_export.h" class LIBRUQOLAWIDGETS_TESTS_EXPORT AuthenticationComboBox : public QComboBox { Q_OBJECT public: explicit AuthenticationComboBox(QWidget *parent = nullptr); - ~AuthenticationComboBox(); + ~AuthenticationComboBox() override; private: void initialize(); }; #endif // AUTHENTICATIONCOMBOBOX_H diff --git a/src/widgets/common/autotests/authenticationcomboboxtest.h b/src/widgets/common/autotests/authenticationcomboboxtest.h index f36d7bd5..2a4fa036 100644 --- a/src/widgets/common/autotests/authenticationcomboboxtest.h +++ b/src/widgets/common/autotests/authenticationcomboboxtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef AUTHENTICATIONCOMBOBOXTEST_H #define AUTHENTICATIONCOMBOBOXTEST_H #include class AuthenticationComboBoxTest : public QObject { Q_OBJECT public: explicit AuthenticationComboBoxTest(QObject *parent = nullptr); - ~AuthenticationComboBoxTest() = default; + ~AuthenticationComboBoxTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // AUTHENTICATIONCOMBOBOXTEST_H diff --git a/src/widgets/common/completionlineedit.h b/src/widgets/common/completionlineedit.h index 06e83789..dab0a215 100644 --- a/src/widgets/common/completionlineedit.h +++ b/src/widgets/common/completionlineedit.h @@ -1,51 +1,51 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef COMPLETIONLINEEDIT_H #define COMPLETIONLINEEDIT_H #include #include "libruqolawidgets_private_export.h" class QListView; class QAbstractItemModel; class CompletionListView; class LIBRUQOLAWIDGETS_TESTS_EXPORT CompletionLineEdit : public QLineEdit { Q_OBJECT public: explicit CompletionLineEdit(QWidget *parent = nullptr); - ~CompletionLineEdit(); + ~CompletionLineEdit() override; void setCompletionModel(QAbstractItemModel *model); Q_SIGNALS: void complete(const QModelIndex &index); private: void slotCompletionAvailable(); protected: CompletionListView *mCompletionListView; }; #endif // COMPLETIONLINEEDIT_H diff --git a/src/widgets/common/completiontextedit.h b/src/widgets/common/completiontextedit.h index 796ef121..a53f6b0f 100644 --- a/src/widgets/common/completiontextedit.h +++ b/src/widgets/common/completiontextedit.h @@ -1,51 +1,51 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef COMPLETIONTEXTEDIT_H #define COMPLETIONTEXTEDIT_H #include #include "libruqolawidgets_private_export.h" class QListView; class QAbstractItemModel; class CompletionListView; class LIBRUQOLAWIDGETS_TESTS_EXPORT CompletionTextEdit : public KTextEdit { Q_OBJECT public: explicit CompletionTextEdit(QWidget *parent = nullptr); - ~CompletionTextEdit(); + ~CompletionTextEdit() override; void setCompletionModel(QAbstractItemModel *model); Q_SIGNALS: void complete(const QModelIndex &index); private: void slotCompletionAvailable(); protected: CompletionListView *mCompletionListView; }; #endif // COMPLETIONTEXTEDIT_H diff --git a/src/widgets/configuredialog/accountserverlistwidget.h b/src/widgets/configuredialog/accountserverlistwidget.h index 18de92d1..4bcf744c 100644 --- a/src/widgets/configuredialog/accountserverlistwidget.h +++ b/src/widgets/configuredialog/accountserverlistwidget.h @@ -1,62 +1,62 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ACCOUNTSERVERLISTWIDGET_H #define ACCOUNTSERVERLISTWIDGET_H #include #include "libruqolawidgets_private_export.h" #include "user.h" #include "dialogs/createnewaccountdialog.h" class ModifyStatusWidget; class AccountServerListWidgetItem : public QListWidgetItem { public: explicit AccountServerListWidgetItem(QListWidget *parent = nullptr); - ~AccountServerListWidgetItem(); + ~AccountServerListWidgetItem() override; Q_REQUIRED_RESULT CreateNewAccountDialog::AccountInfo accountInfo() const; void setAccountInfo(const CreateNewAccountDialog::AccountInfo &accountInfo); Q_REQUIRED_RESULT bool newAccount() const; void setNewAccount(bool newAccount); private: CreateNewAccountDialog::AccountInfo mInfo; bool mNewAccount = false; }; class LIBRUQOLAWIDGETS_TESTS_EXPORT AccountServerListWidget : public QListWidget { Q_OBJECT public: explicit AccountServerListWidget(QWidget *parent = nullptr); - ~AccountServerListWidget(); + ~AccountServerListWidget() override; void load(); void save(); void addAccountConfig(); void deleteAccountConfig(QListWidgetItem *item); void modifyAccountConfig(); private: QStringList mListRemovedAccount; }; #endif // ACCOUNTSERVERLISTWIDGET_H diff --git a/src/widgets/configuredialog/autotests/configuresettingsdialogtest.h b/src/widgets/configuredialog/autotests/configuresettingsdialogtest.h index a5f957de..604e7a10 100644 --- a/src/widgets/configuredialog/autotests/configuresettingsdialogtest.h +++ b/src/widgets/configuredialog/autotests/configuresettingsdialogtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CONFIGURESETTINGSDIALOGTEST_H #define CONFIGURESETTINGSDIALOGTEST_H #include class ConfigureSettingsDialogTest : public QObject { Q_OBJECT public: explicit ConfigureSettingsDialogTest(QObject *parent = nullptr); - ~ConfigureSettingsDialogTest() = default; + ~ConfigureSettingsDialogTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // CONFIGURESETTINGSDIALOGTEST_H diff --git a/src/widgets/configuredialog/configureaccountserverwidget.h b/src/widgets/configuredialog/configureaccountserverwidget.h index bd46e006..4f069f67 100644 --- a/src/widgets/configuredialog/configureaccountserverwidget.h +++ b/src/widgets/configuredialog/configureaccountserverwidget.h @@ -1,51 +1,51 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CONFIGUREACCOUNTSERVERWIDGET_H #define CONFIGUREACCOUNTSERVERWIDGET_H #include #include "libruqolawidgets_private_export.h" namespace Ui { class ConfigureAccountServerWidget; } class LIBRUQOLAWIDGETS_TESTS_EXPORT ConfigureAccountServerWidget : public QWidget { Q_OBJECT public: explicit ConfigureAccountServerWidget(QWidget *parent = nullptr); - ~ConfigureAccountServerWidget(); + ~ConfigureAccountServerWidget() override; void load(); void save(); private: void slotModifyServer(); void slotAddServer(); void slotDeleteServer(); void slotItemSelectionChanged(); private: Ui::ConfigureAccountServerWidget *ui = nullptr; }; #endif // CONFIGUREACCOUNTSERVERWIDGET_H diff --git a/src/widgets/configuredialog/configureaccountwidget.h b/src/widgets/configuredialog/configureaccountwidget.h index a3584a3a..3c7e2187 100644 --- a/src/widgets/configuredialog/configureaccountwidget.h +++ b/src/widgets/configuredialog/configureaccountwidget.h @@ -1,40 +1,40 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CONFIGUREACCOUNTWIDGET_H #define CONFIGUREACCOUNTWIDGET_H #include #include "libruqolawidgets_private_export.h" class ConfigureAccountServerWidget; class LIBRUQOLAWIDGETS_TESTS_EXPORT ConfigureAccountWidget : public QWidget { Q_OBJECT public: explicit ConfigureAccountWidget(QWidget *parent = nullptr); - ~ConfigureAccountWidget(); + ~ConfigureAccountWidget() override; void save(); void load(); private: ConfigureAccountServerWidget *mConfigureAccountServerWidget = nullptr; }; #endif // CONFIGUREACCOUNTWIDGET_H diff --git a/src/widgets/configuredialog/configuresettingsdialog.h b/src/widgets/configuredialog/configuresettingsdialog.h index eafa4a96..b0c8deb4 100644 --- a/src/widgets/configuredialog/configuresettingsdialog.h +++ b/src/widgets/configuredialog/configuresettingsdialog.h @@ -1,56 +1,56 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CONFIGURESETTINGSDIALOG_H #define CONFIGURESETTINGSDIALOG_H #include #include "libruqolawidgets_private_export.h" #include "config-ruqola.h" class ConfigureAccountWidget; class ConfigureSpellCheckingWidget; #if HAVE_KUSERFEEDBACK class ConfigureUserFeedbackWidget; #endif class LIBRUQOLAWIDGETS_TESTS_EXPORT ConfigureSettingsDialog : public KPageDialog { Q_OBJECT public: explicit ConfigureSettingsDialog(QWidget *parent = nullptr); - ~ConfigureSettingsDialog(); + ~ConfigureSettingsDialog() override; private: void readConfig(); void writeConfig(); void slotAccepted(); void load(); KPageWidgetItem *mConfigureAccountWidgetPage = nullptr; ConfigureAccountWidget *mConfigureAccountWidget = nullptr; KPageWidgetItem *mConfigureSpellCheckingWidgetPage = nullptr; ConfigureSpellCheckingWidget *mConfigureSpellCheckingWidget = nullptr; #if HAVE_KUSERFEEDBACK ConfigureUserFeedbackWidget *mConfigureUserFeedBackWidget = nullptr; KPageWidgetItem *mConfigureUserFeedBackWidgetPage = nullptr; #endif }; #endif // CONFIGURESETTINGSDIALOG_H diff --git a/src/widgets/configuredialog/configurespellcheckingwidget.h b/src/widgets/configuredialog/configurespellcheckingwidget.h index 3a89a54a..abca778b 100644 --- a/src/widgets/configuredialog/configurespellcheckingwidget.h +++ b/src/widgets/configuredialog/configurespellcheckingwidget.h @@ -1,42 +1,42 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CONFIGURESPELLCHECKINGWIDGET_H #define CONFIGURESPELLCHECKINGWIDGET_H #include #include "libruqolawidgets_private_export.h" namespace Sonnet { class ConfigWidget; } class LIBRUQOLAWIDGETS_TESTS_EXPORT ConfigureSpellCheckingWidget : public QWidget { Q_OBJECT public: explicit ConfigureSpellCheckingWidget(QWidget *parent = nullptr); - ~ConfigureSpellCheckingWidget(); + ~ConfigureSpellCheckingWidget() override; void save(); void load(); private: Sonnet::ConfigWidget *mConfigWidget = nullptr; }; #endif // CONFIGURESPELLCHECKINGWIDGET_H diff --git a/src/widgets/configuredialog/configureuserfeedbackwidget.h b/src/widgets/configuredialog/configureuserfeedbackwidget.h index 9b02b36a..3cf7b0b3 100644 --- a/src/widgets/configuredialog/configureuserfeedbackwidget.h +++ b/src/widgets/configuredialog/configureuserfeedbackwidget.h @@ -1,51 +1,51 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CONFIGUREUSERFEEDBACKWIDGET_H #define CONFIGUREUSERFEEDBACKWIDGET_H #include #include "libruqolawidgets_private_export.h" #include "config-ruqola.h" #if HAVE_KUSERFEEDBACK namespace KUserFeedback { class FeedbackConfigWidget; } #endif class LIBRUQOLAWIDGETS_TESTS_EXPORT ConfigureUserFeedbackWidget : public QWidget { Q_OBJECT public: explicit ConfigureUserFeedbackWidget(QWidget *parent = nullptr); - ~ConfigureUserFeedbackWidget(); + ~ConfigureUserFeedbackWidget() override; void save(); void load(); private: #if HAVE_KUSERFEEDBACK KUserFeedback::FeedbackConfigWidget *mUserFeedbackWidget = nullptr; #endif }; #endif // CONFIGUREUSERFEEDBACKWIDGET_H diff --git a/src/widgets/dialogs/adduserscompletionlineedit.h b/src/widgets/dialogs/adduserscompletionlineedit.h index 5b88fdfc..807e854c 100644 --- a/src/widgets/dialogs/adduserscompletionlineedit.h +++ b/src/widgets/dialogs/adduserscompletionlineedit.h @@ -1,39 +1,39 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ADDUSERSCOMPLETIONLINEEDIT_H #define ADDUSERSCOMPLETIONLINEEDIT_H #include "common/completionlineedit.h" #include "libruqolawidgets_private_export.h" class LIBRUQOLAWIDGETS_TESTS_EXPORT AddUsersCompletionLineEdit : public CompletionLineEdit { Q_OBJECT public: explicit AddUsersCompletionLineEdit(QWidget *parent = nullptr); - ~AddUsersCompletionLineEdit(); + ~AddUsersCompletionLineEdit() override; private: void slotTextChanged(const QString &text); void slotComplete(const QModelIndex &index); }; #endif // ADDUSERSCOMPLETIONLINEEDIT_H diff --git a/src/widgets/dialogs/addusersinroomdialog.h b/src/widgets/dialogs/addusersinroomdialog.h index 3a2cef08..2c35c9e1 100644 --- a/src/widgets/dialogs/addusersinroomdialog.h +++ b/src/widgets/dialogs/addusersinroomdialog.h @@ -1,38 +1,38 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ADDUSERSINROOMDIALOG_H #define ADDUSERSINROOMDIALOG_H #include #include "libruqolawidgets_private_export.h" class AddUsersInRoomWidget; class LIBRUQOLAWIDGETS_TESTS_EXPORT AddUsersInRoomDialog : public QDialog { Q_OBJECT public: explicit AddUsersInRoomDialog(QWidget *parent = nullptr); - ~AddUsersInRoomDialog(); + ~AddUsersInRoomDialog() override; private: void readConfig(); void writeConfig(); AddUsersInRoomWidget *mAddUsersInRoomWidget = nullptr; }; #endif // ADDUSERSINROOMDIALOG_H diff --git a/src/widgets/dialogs/addusersinroomwidget.h b/src/widgets/dialogs/addusersinroomwidget.h index baf9d451..1b639728 100644 --- a/src/widgets/dialogs/addusersinroomwidget.h +++ b/src/widgets/dialogs/addusersinroomwidget.h @@ -1,44 +1,44 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ADDUSERSINROOMWIDGET_H #define ADDUSERSINROOMWIDGET_H #include #include "libruqolawidgets_private_export.h" class AddUsersCompletionLineEdit; class QListView; class LIBRUQOLAWIDGETS_TESTS_EXPORT AddUsersInRoomWidget : public QWidget { Q_OBJECT public: explicit AddUsersInRoomWidget(QWidget *parent = nullptr); - ~AddUsersInRoomWidget(); + ~AddUsersInRoomWidget() override; Q_SIGNALS: void updateOkButton(bool state); private: void slotSearchMessageTextChanged(const QString &str); AddUsersCompletionLineEdit *mSearchUserLineEdit = nullptr; QListView *mListUsers = nullptr; }; #endif // ADDUSERSINROOMWIDGET_H diff --git a/src/widgets/dialogs/autotests/addusersinroomdialogtest.h b/src/widgets/dialogs/autotests/addusersinroomdialogtest.h index aff52c53..05a884ac 100644 --- a/src/widgets/dialogs/autotests/addusersinroomdialogtest.h +++ b/src/widgets/dialogs/autotests/addusersinroomdialogtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ADDUSERSINROOMDIALOGTEST_H #define ADDUSERSINROOMDIALOGTEST_H #include class AddUsersInRoomDialogTest : public QObject { Q_OBJECT public: explicit AddUsersInRoomDialogTest(QObject *parent = nullptr); - ~AddUsersInRoomDialogTest() = default; + ~AddUsersInRoomDialogTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // ADDUSERSINROOMDIALOGTEST_H diff --git a/src/widgets/dialogs/autotests/addusersinroomwidgettest.h b/src/widgets/dialogs/autotests/addusersinroomwidgettest.h index 9cbc6915..2a86c2f8 100644 --- a/src/widgets/dialogs/autotests/addusersinroomwidgettest.h +++ b/src/widgets/dialogs/autotests/addusersinroomwidgettest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ADDUSERSINROOMWIDGETTEST_H #define ADDUSERSINROOMWIDGETTEST_H #include class AddUsersInRoomWidgetTest : public QObject { Q_OBJECT public: explicit AddUsersInRoomWidgetTest(QObject *parent = nullptr); - ~AddUsersInRoomWidgetTest() = default; + ~AddUsersInRoomWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // ADDUSERSINROOMWIDGETTEST_H diff --git a/src/widgets/dialogs/autotests/channelinfowidgettest.h b/src/widgets/dialogs/autotests/channelinfowidgettest.h index bdfb59f3..1780ff34 100644 --- a/src/widgets/dialogs/autotests/channelinfowidgettest.h +++ b/src/widgets/dialogs/autotests/channelinfowidgettest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELINFOWIDGETTEST_H #define CHANNELINFOWIDGETTEST_H #include class ChannelInfoWidgetTest : public QObject { Q_OBJECT public: explicit ChannelInfoWidgetTest(QObject *parent = nullptr); - ~ChannelInfoWidgetTest() = default; + ~ChannelInfoWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // CHANNELINFOWIDGETTEST_H diff --git a/src/widgets/dialogs/autotests/channelpassworddialogtest.h b/src/widgets/dialogs/autotests/channelpassworddialogtest.h index cc47cadb..60eac2ee 100644 --- a/src/widgets/dialogs/autotests/channelpassworddialogtest.h +++ b/src/widgets/dialogs/autotests/channelpassworddialogtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELPASSWORDDIALOGTEST_H #define CHANNELPASSWORDDIALOGTEST_H #include class ChannelPasswordDialogTest : public QObject { Q_OBJECT public: explicit ChannelPasswordDialogTest(QObject *parent = nullptr); - ~ChannelPasswordDialogTest() = default; + ~ChannelPasswordDialogTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // CHANNELPASSWORDDIALOGTEST_H diff --git a/src/widgets/dialogs/autotests/channelpasswordwidgettest.h b/src/widgets/dialogs/autotests/channelpasswordwidgettest.h index 165aff19..d8eec8dc 100644 --- a/src/widgets/dialogs/autotests/channelpasswordwidgettest.h +++ b/src/widgets/dialogs/autotests/channelpasswordwidgettest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELPASSWORDWIDGETTEST_H #define CHANNELPASSWORDWIDGETTEST_H #include class ChannelPasswordWidgetTest : public QObject { Q_OBJECT public: explicit ChannelPasswordWidgetTest(QObject *parent = nullptr); - ~ChannelPasswordWidgetTest() = default; + ~ChannelPasswordWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // CHANNELPASSWORDWIDGETTEST_H diff --git a/src/widgets/dialogs/autotests/configurenotificationdialogtest.h b/src/widgets/dialogs/autotests/configurenotificationdialogtest.h index 38099ecb..6c65bbb0 100644 --- a/src/widgets/dialogs/autotests/configurenotificationdialogtest.h +++ b/src/widgets/dialogs/autotests/configurenotificationdialogtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CONFIGURENOTIFICATIONDIALOGTEST_H #define CONFIGURENOTIFICATIONDIALOGTEST_H #include class ConfigureNotificationDialogTest : public QObject { Q_OBJECT public: explicit ConfigureNotificationDialogTest(QObject *parent = nullptr); - ~ConfigureNotificationDialogTest() = default; + ~ConfigureNotificationDialogTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // CONFIGURENOTIFICATIONDIALOGTEST_H diff --git a/src/widgets/dialogs/autotests/configurenotificationwidgettest.h b/src/widgets/dialogs/autotests/configurenotificationwidgettest.h index f0b06a3e..b2fe382f 100644 --- a/src/widgets/dialogs/autotests/configurenotificationwidgettest.h +++ b/src/widgets/dialogs/autotests/configurenotificationwidgettest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CONFIGURENOTIFICATIONWIDGETTEST_H #define CONFIGURENOTIFICATIONWIDGETTEST_H #include class ConfigureNotificationWidgetTest : public QObject { Q_OBJECT public: explicit ConfigureNotificationWidgetTest(QObject *parent = nullptr); - ~ConfigureNotificationWidgetTest() = default; + ~ConfigureNotificationWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // CONFIGURENOTIFICATIONWIDGETTEST_H diff --git a/src/widgets/dialogs/autotests/createnewaccountdialogtest.h b/src/widgets/dialogs/autotests/createnewaccountdialogtest.h index 701dbde7..f398b8bd 100644 --- a/src/widgets/dialogs/autotests/createnewaccountdialogtest.h +++ b/src/widgets/dialogs/autotests/createnewaccountdialogtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CREATENEWACCOUNTDIALOGTEST_H #define CREATENEWACCOUNTDIALOGTEST_H #include class CreateNewAccountDialogTest : public QObject { Q_OBJECT public: explicit CreateNewAccountDialogTest(QObject *parent = nullptr); - ~CreateNewAccountDialogTest() = default; + ~CreateNewAccountDialogTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // CREATENEWACCOUNTDIALOGTEST_H diff --git a/src/widgets/dialogs/autotests/createnewaccountwidgettest.h b/src/widgets/dialogs/autotests/createnewaccountwidgettest.h index ebee8a98..1aa4671f 100644 --- a/src/widgets/dialogs/autotests/createnewaccountwidgettest.h +++ b/src/widgets/dialogs/autotests/createnewaccountwidgettest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CREATENEWACCOUNTWIDGETTEST_H #define CREATENEWACCOUNTWIDGETTEST_H #include class CreateNewAccountWidgetTest : public QObject { Q_OBJECT public: explicit CreateNewAccountWidgetTest(QObject *parent = nullptr); - ~CreateNewAccountWidgetTest() = default; + ~CreateNewAccountWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // CREATENEWACCOUNTWIDGETTEST_H diff --git a/src/widgets/dialogs/autotests/createnewchanneldialogtest.h b/src/widgets/dialogs/autotests/createnewchanneldialogtest.h index 1beab0d7..23c3ee3a 100644 --- a/src/widgets/dialogs/autotests/createnewchanneldialogtest.h +++ b/src/widgets/dialogs/autotests/createnewchanneldialogtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CREATENEWCHANNELDIALOGTEST_H #define CREATENEWCHANNELDIALOGTEST_H #include class CreateNewChannelDialogTest : public QObject { Q_OBJECT public: explicit CreateNewChannelDialogTest(QObject *parent = nullptr); - ~CreateNewChannelDialogTest() = default; + ~CreateNewChannelDialogTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // CREATENEWCHANNELDIALOGTEST_H diff --git a/src/widgets/dialogs/autotests/createnewdiscussiondialogtest.h b/src/widgets/dialogs/autotests/createnewdiscussiondialogtest.h index 2f65009e..28b57991 100644 --- a/src/widgets/dialogs/autotests/createnewdiscussiondialogtest.h +++ b/src/widgets/dialogs/autotests/createnewdiscussiondialogtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CREATENEWDISCUSSIONDIALOGTEST_H #define CREATENEWDISCUSSIONDIALOGTEST_H #include class CreateNewDiscussionDialogTest : public QObject { Q_OBJECT public: explicit CreateNewDiscussionDialogTest(QObject *parent = nullptr); - ~CreateNewDiscussionDialogTest() = default; + ~CreateNewDiscussionDialogTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // CREATENEWDISCUSSIONDIALOGTEST_H diff --git a/src/widgets/dialogs/autotests/createnewdiscussionwidgettest.h b/src/widgets/dialogs/autotests/createnewdiscussionwidgettest.h index 19421052..382383b6 100644 --- a/src/widgets/dialogs/autotests/createnewdiscussionwidgettest.h +++ b/src/widgets/dialogs/autotests/createnewdiscussionwidgettest.h @@ -1,34 +1,34 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CREATENEWDISCUSSIONWIDGETTEST_H #define CREATENEWDISCUSSIONWIDGETTEST_H #include class CreateNewDiscussionWidgetTest : public QObject { Q_OBJECT public: explicit CreateNewDiscussionWidgetTest(QObject *parent = nullptr); - ~CreateNewDiscussionWidgetTest() = default; + ~CreateNewDiscussionWidgetTest() override = default; }; #endif // CREATENEWDISCUSSIONWIDGETTEST_H diff --git a/src/widgets/dialogs/autotests/directchannelinfodialogtest.h b/src/widgets/dialogs/autotests/directchannelinfodialogtest.h index a042f274..f2b7973a 100644 --- a/src/widgets/dialogs/autotests/directchannelinfodialogtest.h +++ b/src/widgets/dialogs/autotests/directchannelinfodialogtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef DIRECTCHANNELINFODIALOGTEST_H #define DIRECTCHANNELINFODIALOGTEST_H #include class DirectChannelInfoDialogTest : public QObject { Q_OBJECT public: explicit DirectChannelInfoDialogTest(QObject *parent = nullptr); - ~DirectChannelInfoDialogTest() = default; + ~DirectChannelInfoDialogTest() override = default; private Q_SLOTS: void shouldHaveDefaultValue(); }; #endif // DIRECTCHANNELINFODIALOGTEST_H diff --git a/src/widgets/dialogs/autotests/directchannelinfowidgettest.h b/src/widgets/dialogs/autotests/directchannelinfowidgettest.h index 474a08e7..e78f858e 100644 --- a/src/widgets/dialogs/autotests/directchannelinfowidgettest.h +++ b/src/widgets/dialogs/autotests/directchannelinfowidgettest.h @@ -1,34 +1,34 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef DIRECTCHANNELINFOWIDGETTEST_H #define DIRECTCHANNELINFOWIDGETTEST_H #include class DirectChannelInfoWidgetTest : public QObject { Q_OBJECT public: explicit DirectChannelInfoWidgetTest(QObject *parent = nullptr); - ~DirectChannelInfoWidgetTest() = default; + ~DirectChannelInfoWidgetTest() override = default; }; #endif // DIRECTCHANNELINFOWIDGETTEST_H diff --git a/src/widgets/dialogs/autotests/modifystatusdialogtest.h b/src/widgets/dialogs/autotests/modifystatusdialogtest.h index be9a1e8e..e080b730 100644 --- a/src/widgets/dialogs/autotests/modifystatusdialogtest.h +++ b/src/widgets/dialogs/autotests/modifystatusdialogtest.h @@ -1,35 +1,35 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MODIFYSTATUSDIALOGTEST_H #define MODIFYSTATUSDIALOGTEST_H #include class ModifyStatusDialogTest : public QObject { Q_OBJECT public: explicit ModifyStatusDialogTest(QObject *parent = nullptr); - ~ModifyStatusDialogTest() = default; + ~ModifyStatusDialogTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // MODIFYSTATUSDIALOGTEST_H diff --git a/src/widgets/dialogs/autotests/modifystatuswidgettest.h b/src/widgets/dialogs/autotests/modifystatuswidgettest.h index c8aed3ae..98fdde64 100644 --- a/src/widgets/dialogs/autotests/modifystatuswidgettest.h +++ b/src/widgets/dialogs/autotests/modifystatuswidgettest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MODIFYSTATUSWIDGETTEST_H #define MODIFYSTATUSWIDGETTEST_H #include class ModifyStatusWidgetTest : public QObject { Q_OBJECT public: explicit ModifyStatusWidgetTest(QObject *parent = nullptr); - ~ModifyStatusWidgetTest() = default; + ~ModifyStatusWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); void changeStatusMessage(); }; #endif // MODIFYSTATUSWIDGETTEST_H diff --git a/src/widgets/dialogs/autotests/reportmessagedialogtest.h b/src/widgets/dialogs/autotests/reportmessagedialogtest.h index 81bf14f6..5437f871 100644 --- a/src/widgets/dialogs/autotests/reportmessagedialogtest.h +++ b/src/widgets/dialogs/autotests/reportmessagedialogtest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef REPORTMESSAGEDIALOGTEST_H #define REPORTMESSAGEDIALOGTEST_H #include class ReportMessageDialogTest : public QObject { Q_OBJECT public: explicit ReportMessageDialogTest(QObject *parent = nullptr); - ~ReportMessageDialogTest() = default; + ~ReportMessageDialogTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); void shouldUpdateOkButton(); }; #endif // REPORTMESSAGEDIALOGTEST_H diff --git a/src/widgets/dialogs/autotests/reportmessagewidgettest.h b/src/widgets/dialogs/autotests/reportmessagewidgettest.h index 57bd4aa8..ed6455f6 100644 --- a/src/widgets/dialogs/autotests/reportmessagewidgettest.h +++ b/src/widgets/dialogs/autotests/reportmessagewidgettest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef REPORTMESSAGEWIDGETTEST_H #define REPORTMESSAGEWIDGETTEST_H #include class ReportMessageWidgetTest : public QObject { Q_OBJECT public: explicit ReportMessageWidgetTest(QObject *parent = nullptr); - ~ReportMessageWidgetTest() = default; + ~ReportMessageWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // REPORTMESSAGEWIDGETTEST_H diff --git a/src/widgets/dialogs/autotests/searchchanneldialogtest.h b/src/widgets/dialogs/autotests/searchchanneldialogtest.h index 615596cf..c6c97714 100644 --- a/src/widgets/dialogs/autotests/searchchanneldialogtest.h +++ b/src/widgets/dialogs/autotests/searchchanneldialogtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SEARCHCHANNELDIALOGTEST_H #define SEARCHCHANNELDIALOGTEST_H #include class SearchChannelDialogTest : public QObject { Q_OBJECT public: explicit SearchChannelDialogTest(QObject *parent = nullptr); - ~SearchChannelDialogTest() = default; + ~SearchChannelDialogTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // SEARCHCHANNELDIALOGTEST_H diff --git a/src/widgets/dialogs/autotests/searchchannelwidgettest.h b/src/widgets/dialogs/autotests/searchchannelwidgettest.h index 9bfad3e7..c56e99ea 100644 --- a/src/widgets/dialogs/autotests/searchchannelwidgettest.h +++ b/src/widgets/dialogs/autotests/searchchannelwidgettest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SEARCHCHANNELWIDGETTEST_H #define SEARCHCHANNELWIDGETTEST_H #include class SearchChannelWidgetTest : public QObject { Q_OBJECT public: explicit SearchChannelWidgetTest(QObject *parent = nullptr); - ~SearchChannelWidgetTest() = default; + ~SearchChannelWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // SEARCHCHANNELWIDGETTEST_H diff --git a/src/widgets/dialogs/autotests/searchmessagedialogtest.h b/src/widgets/dialogs/autotests/searchmessagedialogtest.h index c0e7ad04..227ad498 100644 --- a/src/widgets/dialogs/autotests/searchmessagedialogtest.h +++ b/src/widgets/dialogs/autotests/searchmessagedialogtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SEARCHMESSAGEDIALOGTEST_H #define SEARCHMESSAGEDIALOGTEST_H #include class SearchMessageDialogTest : public QObject { Q_OBJECT public: explicit SearchMessageDialogTest(QObject *parent = nullptr); - ~SearchMessageDialogTest() = default; + ~SearchMessageDialogTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // SEARCHMESSAGEDIALOGTEST_H diff --git a/src/widgets/dialogs/autotests/searchmessagewidgettest.h b/src/widgets/dialogs/autotests/searchmessagewidgettest.h index cf26a928..4fb9499d 100644 --- a/src/widgets/dialogs/autotests/searchmessagewidgettest.h +++ b/src/widgets/dialogs/autotests/searchmessagewidgettest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SEARCHMESSAGEWIDGETTEST_H #define SEARCHMESSAGEWIDGETTEST_H #include class SearchMessageWidgetTest : public QObject { Q_OBJECT public: explicit SearchMessageWidgetTest(QObject *parent = nullptr); - ~SearchMessageWidgetTest() = default; + ~SearchMessageWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // SEARCHMESSAGEWIDGETTEST_H diff --git a/src/widgets/dialogs/autotests/serverinfodialogtest.h b/src/widgets/dialogs/autotests/serverinfodialogtest.h index 9cd43b60..ddb0c13a 100644 --- a/src/widgets/dialogs/autotests/serverinfodialogtest.h +++ b/src/widgets/dialogs/autotests/serverinfodialogtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SERVERINFODIALOGTEST_H #define SERVERINFODIALOGTEST_H #include class ServerInfoDialogTest : public QObject { Q_OBJECT public: explicit ServerInfoDialogTest(QObject *parent = nullptr); - ~ServerInfoDialogTest() = default; + ~ServerInfoDialogTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // SERVERINFODIALOGTEST_H diff --git a/src/widgets/dialogs/autotests/serverinfowidgettest.h b/src/widgets/dialogs/autotests/serverinfowidgettest.h index 1a3ce29e..de79c6c3 100644 --- a/src/widgets/dialogs/autotests/serverinfowidgettest.h +++ b/src/widgets/dialogs/autotests/serverinfowidgettest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SERVERINFOWIDGETTEST_H #define SERVERINFOWIDGETTEST_H #include class ServerInfoWidgetTest : public QWidget { Q_OBJECT public: explicit ServerInfoWidgetTest(QWidget *parent = nullptr); - ~ServerInfoWidgetTest() = default; + ~ServerInfoWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // SERVERINFOWIDGETTEST_H diff --git a/src/widgets/dialogs/autotests/showattachmentdialogtest.h b/src/widgets/dialogs/autotests/showattachmentdialogtest.h index 69b959ce..8d1648c2 100644 --- a/src/widgets/dialogs/autotests/showattachmentdialogtest.h +++ b/src/widgets/dialogs/autotests/showattachmentdialogtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWATTACHMENTDIALOGTEST_H #define SHOWATTACHMENTDIALOGTEST_H #include class ShowAttachmentDialogTest : public QObject { Q_OBJECT public: explicit ShowAttachmentDialogTest(QObject *parent = nullptr); - ~ShowAttachmentDialogTest() = default; + ~ShowAttachmentDialogTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // SHOWATTACHMENTDIALOGTEST_H diff --git a/src/widgets/dialogs/autotests/showattachmentwidgettest.h b/src/widgets/dialogs/autotests/showattachmentwidgettest.h index f1d6613f..ebac956b 100644 --- a/src/widgets/dialogs/autotests/showattachmentwidgettest.h +++ b/src/widgets/dialogs/autotests/showattachmentwidgettest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWATTACHMENTWIDGETTEST_H #define SHOWATTACHMENTWIDGETTEST_H #include class ShowAttachmentWidgetTest : public QObject { Q_OBJECT public: explicit ShowAttachmentWidgetTest(QObject *parent = nullptr); - ~ShowAttachmentWidgetTest() = default; + ~ShowAttachmentWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // SHOWATTACHMENTWIDGETTEST_H diff --git a/src/widgets/dialogs/autotests/showdiscussionsdialogtest.h b/src/widgets/dialogs/autotests/showdiscussionsdialogtest.h index 926f9c91..02b145ef 100644 --- a/src/widgets/dialogs/autotests/showdiscussionsdialogtest.h +++ b/src/widgets/dialogs/autotests/showdiscussionsdialogtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWDISCUSSIONSDIALOGTEST_H #define SHOWDISCUSSIONSDIALOGTEST_H #include class ShowDiscussionsDialogTest : public QObject { Q_OBJECT public: explicit ShowDiscussionsDialogTest(QObject *parent = nullptr); - ~ShowDiscussionsDialogTest() = default; + ~ShowDiscussionsDialogTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // SHOWDISCUSSIONSDIALOGTEST_H diff --git a/src/widgets/dialogs/autotests/showdiscussionswidgettest.h b/src/widgets/dialogs/autotests/showdiscussionswidgettest.h index 2d8a1c7c..7e1c35e8 100644 --- a/src/widgets/dialogs/autotests/showdiscussionswidgettest.h +++ b/src/widgets/dialogs/autotests/showdiscussionswidgettest.h @@ -1,34 +1,34 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWDISCUSSIONSWIDGETTEST_H #define SHOWDISCUSSIONSWIDGETTEST_H #include class ShowDiscussionsWidgetTest : public QObject { Q_OBJECT public: explicit ShowDiscussionsWidgetTest(QObject *parent = nullptr); - ~ShowDiscussionsWidgetTest() = default; + ~ShowDiscussionsWidgetTest() override = default; }; #endif // SHOWDISCUSSIONSWIDGETTEST_H diff --git a/src/widgets/dialogs/autotests/showimagedialogtest.h b/src/widgets/dialogs/autotests/showimagedialogtest.h index 7964f00a..1c44a982 100644 --- a/src/widgets/dialogs/autotests/showimagedialogtest.h +++ b/src/widgets/dialogs/autotests/showimagedialogtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWIMAGEDIALOGTEST_H #define SHOWIMAGEDIALOGTEST_H #include class ShowImageDialogTest : public QObject { Q_OBJECT public: explicit ShowImageDialogTest(QObject *parent = nullptr); - ~ShowImageDialogTest() = default; + ~ShowImageDialogTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // SHOWIMAGEDIALOGTEST_H diff --git a/src/widgets/dialogs/autotests/showimagewidgettest.h b/src/widgets/dialogs/autotests/showimagewidgettest.h index 2ab3cadd..94cda3e9 100644 --- a/src/widgets/dialogs/autotests/showimagewidgettest.h +++ b/src/widgets/dialogs/autotests/showimagewidgettest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWIMAGEWIDGETTEST_H #define SHOWIMAGEWIDGETTEST_H #include class ShowImageWidgetTest : public QObject { Q_OBJECT public: explicit ShowImageWidgetTest(QObject *parent = nullptr); - ~ShowImageWidgetTest() = default; + ~ShowImageWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // SHOWIMAGEWIDGETTEST_H diff --git a/src/widgets/dialogs/autotests/showlistmessagebasedialogtest.h b/src/widgets/dialogs/autotests/showlistmessagebasedialogtest.h index 5435af2a..8afcbdf7 100644 --- a/src/widgets/dialogs/autotests/showlistmessagebasedialogtest.h +++ b/src/widgets/dialogs/autotests/showlistmessagebasedialogtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWLISTMESSAGEBASEDIALOGTEST_H #define SHOWLISTMESSAGEBASEDIALOGTEST_H #include class ShowListMessageBaseDialogTest : public QObject { Q_OBJECT public: explicit ShowListMessageBaseDialogTest(QObject *parent = nullptr); - ~ShowListMessageBaseDialogTest() = default; + ~ShowListMessageBaseDialogTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // SHOWLISTMESSAGEBASEDIALOGTEST_H diff --git a/src/widgets/dialogs/autotests/showlistmessagebasewidgettest.h b/src/widgets/dialogs/autotests/showlistmessagebasewidgettest.h index ca4eea66..6bbb6795 100644 --- a/src/widgets/dialogs/autotests/showlistmessagebasewidgettest.h +++ b/src/widgets/dialogs/autotests/showlistmessagebasewidgettest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWLISTMESSAGEBASEWIDGETTEST_H #define SHOWLISTMESSAGEBASEWIDGETTEST_H #include class ShowListMessageBaseWidgetTest : public QObject { Q_OBJECT public: explicit ShowListMessageBaseWidgetTest(QObject *parent = nullptr); - ~ShowListMessageBaseWidgetTest() = default; + ~ShowListMessageBaseWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // SHOWLISTMESSAGEBASEWIDGETTEST_H diff --git a/src/widgets/dialogs/autotests/showthreadsdialogtest.h b/src/widgets/dialogs/autotests/showthreadsdialogtest.h index 60058b69..7d39fea5 100644 --- a/src/widgets/dialogs/autotests/showthreadsdialogtest.h +++ b/src/widgets/dialogs/autotests/showthreadsdialogtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWTHREADSDIALOGTEST_H #define SHOWTHREADSDIALOGTEST_H #include class ShowThreadsDialogTest : public QObject { Q_OBJECT public: explicit ShowThreadsDialogTest(QObject *parent = nullptr); - ~ShowThreadsDialogTest() = default; + ~ShowThreadsDialogTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // SHOWTHREADSDIALOGTEST_H diff --git a/src/widgets/dialogs/autotests/showthreadswidgettest.h b/src/widgets/dialogs/autotests/showthreadswidgettest.h index 61bfc6e0..c876ed4e 100644 --- a/src/widgets/dialogs/autotests/showthreadswidgettest.h +++ b/src/widgets/dialogs/autotests/showthreadswidgettest.h @@ -1,34 +1,34 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWTHREADSWIDGETTEST_H #define SHOWTHREADSWIDGETTEST_H #include class ShowThreadsWidgetTest : public QObject { Q_OBJECT public: explicit ShowThreadsWidgetTest(QObject *parent = nullptr); - ~ShowThreadsWidgetTest() = default; + ~ShowThreadsWidgetTest() override = default; }; #endif // SHOWTHREADSWIDGETTEST_H diff --git a/src/widgets/dialogs/autotests/uploadfiledialogtest.h b/src/widgets/dialogs/autotests/uploadfiledialogtest.h index 27a7a7cb..d58c0578 100644 --- a/src/widgets/dialogs/autotests/uploadfiledialogtest.h +++ b/src/widgets/dialogs/autotests/uploadfiledialogtest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef UPLOADFILEDIALOGTEST_H #define UPLOADFILEDIALOGTEST_H #include class UploadFileDialogTest : public QObject { Q_OBJECT public: explicit UploadFileDialogTest(QObject *parent = nullptr); - ~UploadFileDialogTest() = default; + ~UploadFileDialogTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // UPLOADFILEDIALOGTEST_H diff --git a/src/widgets/dialogs/autotests/uploadfilewidgettest.h b/src/widgets/dialogs/autotests/uploadfilewidgettest.h index ebe0aaec..824fb254 100644 --- a/src/widgets/dialogs/autotests/uploadfilewidgettest.h +++ b/src/widgets/dialogs/autotests/uploadfilewidgettest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef UPLOADFILEWIDGETTEST_H #define UPLOADFILEWIDGETTEST_H #include class UploadFileWidgetTest : public QObject { Q_OBJECT public: explicit UploadFileWidgetTest(QObject *parent = nullptr); - ~UploadFileWidgetTest() = default; + ~UploadFileWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); void shouldReturnEmptyResult(); }; #endif // UPLOADFILEWIDGETTEST_H diff --git a/src/widgets/dialogs/channelinfodialog.h b/src/widgets/dialogs/channelinfodialog.h index dd213d0a..52086028 100644 --- a/src/widgets/dialogs/channelinfodialog.h +++ b/src/widgets/dialogs/channelinfodialog.h @@ -1,39 +1,39 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELINFODIALOG_H #define CHANNELINFODIALOG_H #include #include "libruqolawidgets_private_export.h" class ChannelInfoWidget; class RoomWrapper; class LIBRUQOLAWIDGETS_TESTS_EXPORT ChannelInfoDialog : public QDialog { Q_OBJECT public: explicit ChannelInfoDialog(QWidget *parent = nullptr); - ~ChannelInfoDialog(); + ~ChannelInfoDialog() override; void setRoomWrapper(RoomWrapper *roomWrapper); private: ChannelInfoWidget *mChannelInfoWidget = nullptr; }; #endif // CHANNELINFODIALOG_H diff --git a/src/widgets/dialogs/channelinfowidget.h b/src/widgets/dialogs/channelinfowidget.h index 6edaaadf..b329e0ab 100644 --- a/src/widgets/dialogs/channelinfowidget.h +++ b/src/widgets/dialogs/channelinfowidget.h @@ -1,90 +1,90 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELINFOWIDGET_H #define CHANNELINFOWIDGET_H #include #include "libruqolawidgets_export.h" class KLineEdit; class KPasswordLineEdit; class QCheckBox; class QPushButton; class QStackedWidget; class QLabel; class RoomWrapper; class QToolButton; class LIBRUQOLAWIDGETS_EXPORT ChangeTextWidget : public QWidget { Q_OBJECT public: explicit ChangeTextWidget(QWidget *parent = nullptr); - ~ChangeTextWidget(); + ~ChangeTextWidget() override; void setText(const QString &str); void setLabelText(const QString &str); Q_SIGNALS: void textChanged(const QString &str); private: QString mLabelText; QLabel *mLabel = nullptr; QToolButton *mChangeTextToolButton = nullptr; }; class LIBRUQOLAWIDGETS_EXPORT ChannelInfoWidget : public QWidget { Q_OBJECT public: explicit ChannelInfoWidget(QWidget *parent = nullptr); - ~ChannelInfoWidget(); + ~ChannelInfoWidget() override; void setRoomWrapper(RoomWrapper *roomWrapper); Q_SIGNALS: void channelDeleted(); private: void updateReadOnlyChannelInfo(); void updateEditableChannelInfo(); void connectReadOnlyWidget(); void connectEditableWidget(); void joinCodeChanged(); ChangeTextWidget *mName = nullptr; ChangeTextWidget *mComment = nullptr; ChangeTextWidget *mAnnouncement = nullptr; ChangeTextWidget *mDescription = nullptr; KPasswordLineEdit *mPasswordLineEdit = nullptr; QCheckBox *mReadOnly = nullptr; QCheckBox *mArchive = nullptr; QCheckBox *mPrivate = nullptr; QPushButton *mDeleteChannel = nullptr; QStackedWidget *mStackedWidget = nullptr; QWidget *mEditableChannel = nullptr; QWidget *mReadOnlyChannel = nullptr; QLabel *mNameReadOnly = nullptr; QLabel *mCommentReadOnly = nullptr; QLabel *mAnnouncementReadOnly = nullptr; QLabel *mDescriptionReadOnly = nullptr; RoomWrapper *mRoomWrapper = nullptr; }; #endif // CHANNELINFOWIDGET_H diff --git a/src/widgets/dialogs/channelpassworddialog.h b/src/widgets/dialogs/channelpassworddialog.h index 819560d8..8efb23d6 100644 --- a/src/widgets/dialogs/channelpassworddialog.h +++ b/src/widgets/dialogs/channelpassworddialog.h @@ -1,40 +1,40 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELPASSWORDDIALOG_H #define CHANNELPASSWORDDIALOG_H #include #include "libruqolawidgets_private_export.h" class ChannelPasswordWidget; class LIBRUQOLAWIDGETS_TESTS_EXPORT ChannelPasswordDialog : public QDialog { Q_OBJECT public: explicit ChannelPasswordDialog(QWidget *parent = nullptr); - ~ChannelPasswordDialog(); + ~ChannelPasswordDialog() override; Q_REQUIRED_RESULT QString password() const; private: ChannelPasswordWidget *mChannelPasswordWidget = nullptr; }; #endif // CHANNELPASSWORDDIALOG_H diff --git a/src/widgets/dialogs/channelpasswordwidget.h b/src/widgets/dialogs/channelpasswordwidget.h index 73a42ec0..2546b622 100644 --- a/src/widgets/dialogs/channelpasswordwidget.h +++ b/src/widgets/dialogs/channelpasswordwidget.h @@ -1,41 +1,41 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CHANNELPASSWORDWIDGET_H #define CHANNELPASSWORDWIDGET_H #include #include "libruqolawidgets_private_export.h" class KPasswordLineEdit; class LIBRUQOLAWIDGETS_TESTS_EXPORT ChannelPasswordWidget : public QWidget { Q_OBJECT public: explicit ChannelPasswordWidget(QWidget *parent = nullptr); - ~ChannelPasswordWidget(); + ~ChannelPasswordWidget() override; Q_REQUIRED_RESULT QString password() const; Q_SIGNALS: void updateOkButton(bool state); private: KPasswordLineEdit *mPasswordLineEdit = nullptr; }; #endif // CHANNELPASSWORDWIDGET_H diff --git a/src/widgets/dialogs/configurenotificationdialog.h b/src/widgets/dialogs/configurenotificationdialog.h index a6a31907..c000b5fd 100644 --- a/src/widgets/dialogs/configurenotificationdialog.h +++ b/src/widgets/dialogs/configurenotificationdialog.h @@ -1,42 +1,42 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CONFIGURENOTIFICATIONDIALOG_H #define CONFIGURENOTIFICATIONDIALOG_H #include #include "libruqolawidgets_private_export.h" class ConfigureNotificationWidget; class RoomWrapper; class LIBRUQOLAWIDGETS_TESTS_EXPORT ConfigureNotificationDialog : public QDialog { Q_OBJECT public: explicit ConfigureNotificationDialog(QWidget *parent = nullptr); - ~ConfigureNotificationDialog(); + ~ConfigureNotificationDialog() override; void setRoomWrapper(RoomWrapper *roomWrapper); private: ConfigureNotificationWidget *mConfigureNoticationWidget = nullptr; }; #endif // CONFIGURENOTIFICATIONDIALOG_H diff --git a/src/widgets/dialogs/configurenotificationwidget.h b/src/widgets/dialogs/configurenotificationwidget.h index c0c98037..ce9e5251 100644 --- a/src/widgets/dialogs/configurenotificationwidget.h +++ b/src/widgets/dialogs/configurenotificationwidget.h @@ -1,52 +1,52 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CONFIGURENOTIFICATIONWIDGET_H #define CONFIGURENOTIFICATIONWIDGET_H #include #include "libruqolawidgets_private_export.h" class QCheckBox; class RoomWrapper; class QComboBox; class LIBRUQOLAWIDGETS_TESTS_EXPORT ConfigureNotificationWidget : public QWidget { Q_OBJECT public: explicit ConfigureNotificationWidget(QWidget *parent = nullptr); - ~ConfigureNotificationWidget(); + ~ConfigureNotificationWidget() override; RoomWrapper *roomWrapper() const; void setRoomWrapper(RoomWrapper *roomWrapper); private: QCheckBox *mDisableNotification = nullptr; QCheckBox *mHideUnreadRoomStatus = nullptr; QCheckBox *mMuteGroupMentions = nullptr; RoomWrapper *mRoomWrapper = nullptr; QComboBox *mDesktopAlertCombobox = nullptr; QComboBox *mDesktopAudioCombobox = nullptr; QComboBox *mDesktopSoundCombobox = nullptr; QComboBox *mDesktopDurationCombobox = nullptr; QComboBox *mMobileAlertCombobox = nullptr; QComboBox *mEmailAlertCombobox = nullptr; }; #endif // CONFIGURENOTIFICATIONWIDGET_H diff --git a/src/widgets/dialogs/createnewaccountdialog.h b/src/widgets/dialogs/createnewaccountdialog.h index b71b36d2..9930fb20 100644 --- a/src/widgets/dialogs/createnewaccountdialog.h +++ b/src/widgets/dialogs/createnewaccountdialog.h @@ -1,49 +1,49 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CREATENEWACCOUNTDIALOG_H #define CREATENEWACCOUNTDIALOG_H #include #include "libruqolawidgets_private_export.h" class CreateNewAccountWidget; class QPushButton; class LIBRUQOLAWIDGETS_TESTS_EXPORT CreateNewAccountDialog : public QDialog { Q_OBJECT public: explicit CreateNewAccountDialog(QWidget *parent = nullptr); - ~CreateNewAccountDialog(); + ~CreateNewAccountDialog() override; struct AccountInfo { QString accountName; QString serverName; QString userName; }; Q_REQUIRED_RESULT AccountInfo accountInfo() const; void setAccountInfo(const AccountInfo &info); private: void readConfig(); void writeConfig(); CreateNewAccountWidget *mNewAccountWidget = nullptr; QPushButton *mOkButton = nullptr; }; #endif // CREATENEWACCOUNTDIALOG_H diff --git a/src/widgets/dialogs/createnewaccountwidget.h b/src/widgets/dialogs/createnewaccountwidget.h index 167a5380..2156fc8a 100644 --- a/src/widgets/dialogs/createnewaccountwidget.h +++ b/src/widgets/dialogs/createnewaccountwidget.h @@ -1,53 +1,53 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CREATENEWACCOUNTWIDGET_H #define CREATENEWACCOUNTWIDGET_H #include #include "libruqolawidgets_private_export.h" class QLineEdit; class LIBRUQOLAWIDGETS_TESTS_EXPORT CreateNewAccountWidget : public QWidget { Q_OBJECT public: explicit CreateNewAccountWidget(QWidget *parent = nullptr); - ~CreateNewAccountWidget(); + ~CreateNewAccountWidget() override; Q_REQUIRED_RESULT QString accountName() const; Q_REQUIRED_RESULT QString userName() const; Q_REQUIRED_RESULT QString serverName() const; void setAccountName(const QString &name); void setUserName(const QString &username); void setServerName(const QString &servername); Q_SIGNALS: void updateOkButton(bool state); private: void slotChangeOkButtonEnabled(); QLineEdit *mAccountName = nullptr; QLineEdit *mServerName = nullptr; QLineEdit *mUserName = nullptr; }; #endif // CREATENEWACCOUNTWIDGET_H diff --git a/src/widgets/dialogs/createnewchanneldialog.h b/src/widgets/dialogs/createnewchanneldialog.h index 972bb43a..64f92590 100644 --- a/src/widgets/dialogs/createnewchanneldialog.h +++ b/src/widgets/dialogs/createnewchanneldialog.h @@ -1,52 +1,52 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CREATENEWCHANNELDIALOG_H #define CREATENEWCHANNELDIALOG_H #include #include "libruqolawidgets_private_export.h" class CreateNewChannelWidget; class QPushButton; class LIBRUQOLAWIDGETS_TESTS_EXPORT CreateNewChannelDialog : public QDialog { Q_OBJECT public: explicit CreateNewChannelDialog(QWidget *parent = nullptr); - ~CreateNewChannelDialog(); + ~CreateNewChannelDialog() override; struct NewChannelInfo { QString usersName; QString channelName; QString password; bool readOnly = false; bool broadCast = false; bool privateChannel = false; bool encryptedRoom = false; }; Q_REQUIRED_RESULT NewChannelInfo channelInfo() const; private: void writeConfig(); void readConfig(); CreateNewChannelWidget *mCreateNewChannelWidget = nullptr; QPushButton *mOkButton = nullptr; }; #endif // CREATENEWCHANNELDIALOG_H diff --git a/src/widgets/dialogs/createnewchannelwidget.h b/src/widgets/dialogs/createnewchannelwidget.h index 340fd507..eedb6260 100644 --- a/src/widgets/dialogs/createnewchannelwidget.h +++ b/src/widgets/dialogs/createnewchannelwidget.h @@ -1,59 +1,59 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CREATENEWCHANNELWIDGET_H #define CREATENEWCHANNELWIDGET_H #include #include "libruqolawidgets_private_export.h" class QLineEdit; class QCheckBox; class KPasswordLineEdit; class LIBRUQOLAWIDGETS_TESTS_EXPORT CreateNewChannelWidget : public QWidget { Q_OBJECT public: explicit CreateNewChannelWidget(QWidget *parent = nullptr); - ~CreateNewChannelWidget(); + ~CreateNewChannelWidget() override; Q_REQUIRED_RESULT QString channelName() const; Q_REQUIRED_RESULT QString users() const; Q_REQUIRED_RESULT bool encryptedRoom() const; Q_REQUIRED_RESULT bool privateChannel() const; Q_REQUIRED_RESULT bool broadCast() const; Q_REQUIRED_RESULT bool readOnly() const; Q_REQUIRED_RESULT QString password() const; Q_SIGNALS: void updateOkButton(bool state); private: void slotChangeOkButtonEnabled(); QLineEdit *mChannelName = nullptr; QLineEdit *mUsers = nullptr; QCheckBox *mReadOnly = nullptr; QCheckBox *mBroadcast = nullptr; QCheckBox *mPrivate = nullptr; QCheckBox *mEncryptedRoom = nullptr; KPasswordLineEdit *mPasswordLineEdit = nullptr; }; #endif // CREATENEWCHANNELWIDGET_H diff --git a/src/widgets/dialogs/createnewdiscussiondialog.h b/src/widgets/dialogs/createnewdiscussiondialog.h index df6d5fe8..2235dad0 100644 --- a/src/widgets/dialogs/createnewdiscussiondialog.h +++ b/src/widgets/dialogs/createnewdiscussiondialog.h @@ -1,52 +1,52 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CREATENEWDISCUSSIONDIALOG_H #define CREATENEWDISCUSSIONDIALOG_H #include #include "libruqolawidgets_private_export.h" class CreateNewDiscussionWidget; class LIBRUQOLAWIDGETS_TESTS_EXPORT CreateNewDiscussionDialog : public QDialog { Q_OBJECT public: struct NewDiscussionInfo { QStringList users; QString discussionName; QString channelName; QString message; }; explicit CreateNewDiscussionDialog(QWidget *parent = nullptr); - ~CreateNewDiscussionDialog(); + ~CreateNewDiscussionDialog() override; Q_REQUIRED_RESULT NewDiscussionInfo newDiscussionInfo() const; void setChannelName(const QString &name); void setDiscussionName(const QString &name); private: void readConfig(); void writeConfig(); CreateNewDiscussionWidget *mCreateNewDiscussionWidget = nullptr; }; #endif // CREATENEWDISCUSSIONDIALOG_H diff --git a/src/widgets/dialogs/createnewdiscussionwidget.h b/src/widgets/dialogs/createnewdiscussionwidget.h index 6ef1600f..f83747fd 100644 --- a/src/widgets/dialogs/createnewdiscussionwidget.h +++ b/src/widgets/dialogs/createnewdiscussionwidget.h @@ -1,58 +1,58 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef CREATENEWDISCUSSIONWIDGET_H #define CREATENEWDISCUSSIONWIDGET_H #include #include "libruqolawidgets_private_export.h" class KLineEdit; class QTextEdit; class LIBRUQOLAWIDGETS_TESTS_EXPORT CreateNewDiscussionWidget : public QWidget { Q_OBJECT public: explicit CreateNewDiscussionWidget(QWidget *parent = nullptr); - ~CreateNewDiscussionWidget(); + ~CreateNewDiscussionWidget() override; void setChannelName(const QString &name); Q_REQUIRED_RESULT QString channelName() const; void setDiscussionName(const QString &name); Q_REQUIRED_RESULT QString discussionName() const; void setMessage(const QString &name); Q_REQUIRED_RESULT QString message() const; void setUsers(const QStringList &users); Q_REQUIRED_RESULT QStringList users() const; Q_SIGNALS: void updateOkButton(bool state); private: KLineEdit *mChannelNameLineEdit = nullptr; KLineEdit *mDiscussionNameLineEdit = nullptr; KLineEdit *mUsersLineEdit = nullptr; QTextEdit *mMessageTextEdit = nullptr; }; #endif // CREATENEWDISCUSSIONWIDGET_H diff --git a/src/widgets/dialogs/directchannelinfodialog.h b/src/widgets/dialogs/directchannelinfodialog.h index 291404fe..07ea7cf4 100644 --- a/src/widgets/dialogs/directchannelinfodialog.h +++ b/src/widgets/dialogs/directchannelinfodialog.h @@ -1,37 +1,37 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef DIRECTCHANNELINFODIALOG_H #define DIRECTCHANNELINFODIALOG_H #include #include "libruqolawidgets_private_export.h" class DirectChannelInfoWidget; class LIBRUQOLAWIDGETS_TESTS_EXPORT DirectChannelInfoDialog : public QDialog { Q_OBJECT public: explicit DirectChannelInfoDialog(QWidget *parent = nullptr); - ~DirectChannelInfoDialog(); + ~DirectChannelInfoDialog() override; private: DirectChannelInfoWidget *mDirectChannelInfoWidget = nullptr; }; #endif // DIRECTCHANNELINFODIALOG_H diff --git a/src/widgets/dialogs/directchannelinfowidget.h b/src/widgets/dialogs/directchannelinfowidget.h index 76e03678..1afe3867 100644 --- a/src/widgets/dialogs/directchannelinfowidget.h +++ b/src/widgets/dialogs/directchannelinfowidget.h @@ -1,35 +1,35 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef DIRECTCHANNELINFOWIDGET_H #define DIRECTCHANNELINFOWIDGET_H #include #include "libruqolawidgets_private_export.h" class LIBRUQOLAWIDGETS_TESTS_EXPORT DirectChannelInfoWidget : public QWidget { Q_OBJECT public: explicit DirectChannelInfoWidget(QWidget *parent = nullptr); - ~DirectChannelInfoWidget(); + ~DirectChannelInfoWidget() override; }; #endif // DIRECTCHANNELINFOWIDGET_H diff --git a/src/widgets/dialogs/listattachmentdelegate.h b/src/widgets/dialogs/listattachmentdelegate.h index f21ce7c5..1115bf85 100644 --- a/src/widgets/dialogs/listattachmentdelegate.h +++ b/src/widgets/dialogs/listattachmentdelegate.h @@ -1,37 +1,37 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef LISTATTACHMENTDELEGATE_H #define LISTATTACHMENTDELEGATE_H #include "libruqolawidgets_private_export.h" #include class CreateNewAccountWidget; class QPushButton; class LIBRUQOLAWIDGETS_TESTS_EXPORT ListAttachmentDelegate : public QItemDelegate { Q_OBJECT public: explicit ListAttachmentDelegate(QObject *parent = nullptr); - ~ListAttachmentDelegate(); + ~ListAttachmentDelegate() override; void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; }; #endif diff --git a/src/widgets/dialogs/listdiscussiondelegate.h b/src/widgets/dialogs/listdiscussiondelegate.h index 2f0b3d8a..9b275256 100644 --- a/src/widgets/dialogs/listdiscussiondelegate.h +++ b/src/widgets/dialogs/listdiscussiondelegate.h @@ -1,37 +1,37 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef LISTDISCUSSIONDELEGATE_H #define LISTDISCUSSIONDELEGATE_H #include "libruqolawidgets_private_export.h" #include class CreateNewAccountWidget; class QPushButton; class LIBRUQOLAWIDGETS_TESTS_EXPORT ListDiscussionDelegate : public QItemDelegate { Q_OBJECT public: explicit ListDiscussionDelegate(QObject *parent = nullptr); - ~ListDiscussionDelegate(); + ~ListDiscussionDelegate() override; void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; }; #endif diff --git a/src/widgets/dialogs/listthreadsdelegate.h b/src/widgets/dialogs/listthreadsdelegate.h index 2cf59fd1..65435082 100644 --- a/src/widgets/dialogs/listthreadsdelegate.h +++ b/src/widgets/dialogs/listthreadsdelegate.h @@ -1,37 +1,37 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef LISTTHREADSDELEGATE_H #define LISTTHREADSDELEGATE_H #include "libruqolawidgets_private_export.h" #include class CreateNewAccountWidget; class QPushButton; class LIBRUQOLAWIDGETS_TESTS_EXPORT ListThreadsDelegate : public QItemDelegate { Q_OBJECT public: explicit ListThreadsDelegate(QObject *parent = nullptr); - ~ListThreadsDelegate(); + ~ListThreadsDelegate() override; void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; }; #endif diff --git a/src/widgets/dialogs/modifystatusdialog.h b/src/widgets/dialogs/modifystatusdialog.h index 3f99ab69..e31203c9 100644 --- a/src/widgets/dialogs/modifystatusdialog.h +++ b/src/widgets/dialogs/modifystatusdialog.h @@ -1,45 +1,45 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MODIFYSTATUSDIALOG_H #define MODIFYSTATUSDIALOG_H #include #include "libruqolawidgets_private_export.h" #include "user.h" class ModifyStatusWidget; class LIBRUQOLAWIDGETS_TESTS_EXPORT ModifyStatusDialog : public QDialog { Q_OBJECT public: explicit ModifyStatusDialog(QWidget *parent = nullptr); - ~ModifyStatusDialog(); + ~ModifyStatusDialog() override; Q_REQUIRED_RESULT User::PresenceStatus status() const; void setStatus(User::PresenceStatus status); Q_REQUIRED_RESULT QString messageStatus() const; void setMessageStatus(const QString &statusStr); private: ModifyStatusWidget *mModifyStatusWidget = nullptr; }; #endif // MODIFYSTATUSDIALOG_H diff --git a/src/widgets/dialogs/modifystatuswidget.h b/src/widgets/dialogs/modifystatuswidget.h index 962a3260..ca6fd16b 100644 --- a/src/widgets/dialogs/modifystatuswidget.h +++ b/src/widgets/dialogs/modifystatuswidget.h @@ -1,47 +1,47 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MODIFYSTATUSWIDGET_H #define MODIFYSTATUSWIDGET_H #include #include "libruqolawidgets_private_export.h" #include "user.h" class KLineEdit; class StatusCombobox; class LIBRUQOLAWIDGETS_TESTS_EXPORT ModifyStatusWidget : public QWidget { Q_OBJECT public: explicit ModifyStatusWidget(QWidget *parent = nullptr); - ~ModifyStatusWidget(); + ~ModifyStatusWidget() override; Q_REQUIRED_RESULT QString messageStatus() const; Q_REQUIRED_RESULT User::PresenceStatus status() const; void setStatus(User::PresenceStatus status); void setMessageStatus(const QString &statusStr); private: StatusCombobox *mStatusCombobox = nullptr; KLineEdit *mStatusLineEdit = nullptr; }; #endif // MODIFYSTATUSWIDGET_H diff --git a/src/widgets/dialogs/reportmessagedialog.h b/src/widgets/dialogs/reportmessagedialog.h index e973165b..b7e89e86 100644 --- a/src/widgets/dialogs/reportmessagedialog.h +++ b/src/widgets/dialogs/reportmessagedialog.h @@ -1,41 +1,41 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef REPORTMESSAGEDIALOG_H #define REPORTMESSAGEDIALOG_H #include "libruqolawidgets_export.h" #include class ReportMessageWidget; class LIBRUQOLAWIDGETS_EXPORT ReportMessageDialog : public QDialog { Q_OBJECT public: explicit ReportMessageDialog(QWidget *parent = nullptr); - ~ReportMessageDialog(); + ~ReportMessageDialog() override; Q_REQUIRED_RESULT QString message() const; private: void readConfig(); void writeConfig(); ReportMessageWidget *mReportMessageWidget = nullptr; }; #endif // REPORTMESSAGEDIALOG_H diff --git a/src/widgets/dialogs/reportmessagewidget.h b/src/widgets/dialogs/reportmessagewidget.h index a1e34da4..458fdea0 100644 --- a/src/widgets/dialogs/reportmessagewidget.h +++ b/src/widgets/dialogs/reportmessagewidget.h @@ -1,41 +1,41 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef REPORTMESSAGEWIDGET_H #define REPORTMESSAGEWIDGET_H #include #include "libruqolawidgets_export.h" class QLineEdit; class LIBRUQOLAWIDGETS_EXPORT ReportMessageWidget : public QWidget { Q_OBJECT public: explicit ReportMessageWidget(QWidget *parent = nullptr); - ~ReportMessageWidget(); + ~ReportMessageWidget() override; Q_REQUIRED_RESULT QString message() const; Q_SIGNALS: void updateOkButton(bool enabled); private: QLineEdit *mMessageLineEdit = nullptr; }; #endif // REPORTMESSAGEWIDGET_H diff --git a/src/widgets/dialogs/searchchanneldelegate.h b/src/widgets/dialogs/searchchanneldelegate.h index 89812319..1cd6f99b 100644 --- a/src/widgets/dialogs/searchchanneldelegate.h +++ b/src/widgets/dialogs/searchchanneldelegate.h @@ -1,35 +1,35 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SEARCHCHANNELDELEGATE_H #define SEARCHCHANNELDELEGATE_H #include "libruqolawidgets_private_export.h" #include class LIBRUQOLAWIDGETS_TESTS_EXPORT SearchChannelDelegate : public QItemDelegate { Q_OBJECT public: explicit SearchChannelDelegate(QObject *parent = nullptr); - ~SearchChannelDelegate(); + ~SearchChannelDelegate() override; void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; }; #endif diff --git a/src/widgets/dialogs/searchchanneldialog.h b/src/widgets/dialogs/searchchanneldialog.h index 33ec2555..37c84b3b 100644 --- a/src/widgets/dialogs/searchchanneldialog.h +++ b/src/widgets/dialogs/searchchanneldialog.h @@ -1,39 +1,39 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SEARCHCHANNELDIALOG_H #define SEARCHCHANNELDIALOG_H #include #include "libruqolawidgets_private_export.h" class SearchChannelWidget; class LIBRUQOLAWIDGETS_TESTS_EXPORT SearchChannelDialog : public QDialog { Q_OBJECT public: explicit SearchChannelDialog(QWidget *parent = nullptr); - ~SearchChannelDialog(); + ~SearchChannelDialog() override; private: void readConfig(); void writeConfig(); SearchChannelWidget *mSearchChannelWidget = nullptr; }; #endif // SEARCHCHANNELDIALOG_H diff --git a/src/widgets/dialogs/searchchannelwidget.h b/src/widgets/dialogs/searchchannelwidget.h index 8b948d2e..6e7d181a 100644 --- a/src/widgets/dialogs/searchchannelwidget.h +++ b/src/widgets/dialogs/searchchannelwidget.h @@ -1,41 +1,41 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SEARCHCHANNELWIDGET_H #define SEARCHCHANNELWIDGET_H #include #include "libruqolawidgets_private_export.h" class KLineEdit; class QListView; class LIBRUQOLAWIDGETS_TESTS_EXPORT SearchChannelWidget : public QWidget { Q_OBJECT public: explicit SearchChannelWidget(QWidget *parent = nullptr); - ~SearchChannelWidget(); + ~SearchChannelWidget() override; private: void slotOpenChannel(const QModelIndex &index); void slotTextChanged(const QString &str); KLineEdit *mSearchLineEdit = nullptr; QListView *mResultListWidget = nullptr; }; #endif // SEARCHCHANNELWIDGET_H diff --git a/src/widgets/dialogs/searchmessagedialog.h b/src/widgets/dialogs/searchmessagedialog.h index 3081fe3d..8cf3ef0e 100644 --- a/src/widgets/dialogs/searchmessagedialog.h +++ b/src/widgets/dialogs/searchmessagedialog.h @@ -1,43 +1,43 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SEARCHMESSAGEDIALOG_H #define SEARCHMESSAGEDIALOG_H #include "libruqolawidgets_private_export.h" #include class SearchMessageWidget; class LIBRUQOLAWIDGETS_TESTS_EXPORT SearchMessageDialog : public QDialog { Q_OBJECT public: explicit SearchMessageDialog(QWidget *parent = nullptr); - ~SearchMessageDialog(); + ~SearchMessageDialog() override; void setRoomId(const QString &roomId); private: void readConfig(); void writeConfig(); SearchMessageWidget *mSearchMessageWidget = nullptr; }; #endif // SEARCHMESSAGEDIALOG_H diff --git a/src/widgets/dialogs/searchmessagewidget.h b/src/widgets/dialogs/searchmessagewidget.h index 95aaac3c..27734b10 100644 --- a/src/widgets/dialogs/searchmessagewidget.h +++ b/src/widgets/dialogs/searchmessagewidget.h @@ -1,46 +1,46 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SEARCHMESSAGEWIDGET_H #define SEARCHMESSAGEWIDGET_H #include #include "libruqolawidgets_private_export.h" class KLineEdit; class MessageListView; class LIBRUQOLAWIDGETS_TESTS_EXPORT SearchMessageWidget : public QWidget { Q_OBJECT public: explicit SearchMessageWidget(QWidget *parent = nullptr); - ~SearchMessageWidget(); + ~SearchMessageWidget() override; Q_REQUIRED_RESULT QString roomId() const; void setRoomId(const QString &roomId); private: void slotSearchMessages(); QString mRoomId; KLineEdit *mSearchLineEdit = nullptr; MessageListView *mResultListWidget = nullptr; }; #endif // SEARCHMESSAGEWIDGET_H diff --git a/src/widgets/dialogs/serverinfodialog.h b/src/widgets/dialogs/serverinfodialog.h index f2d6c0a6..7c8bc095 100644 --- a/src/widgets/dialogs/serverinfodialog.h +++ b/src/widgets/dialogs/serverinfodialog.h @@ -1,39 +1,39 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SERVERINFODIALOG_H #define SERVERINFODIALOG_H #include #include "libruqolawidgets_private_export.h" class ServerInfoWidget; class ServerConfigInfo; class LIBRUQOLAWIDGETS_TESTS_EXPORT ServerInfoDialog : public QDialog { Q_OBJECT public: explicit ServerInfoDialog(QWidget *parent = nullptr); - ~ServerInfoDialog(); + ~ServerInfoDialog() override; void setServerConfigInfo(ServerConfigInfo *info); private: ServerInfoWidget *mServerInfoWidget = nullptr; }; #endif // SERVERINFODIALOG_H diff --git a/src/widgets/dialogs/serverinfowidget.h b/src/widgets/dialogs/serverinfowidget.h index 32964fb4..0111d888 100644 --- a/src/widgets/dialogs/serverinfowidget.h +++ b/src/widgets/dialogs/serverinfowidget.h @@ -1,41 +1,41 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SERVERINFOWIDGET_H #define SERVERINFOWIDGET_H #include #include "libruqolawidgets_export.h" class QLabel; class ServerConfigInfo; class LIBRUQOLAWIDGETS_EXPORT ServerInfoWidget : public QWidget { Q_OBJECT public: explicit ServerInfoWidget(QWidget *parent = nullptr); - ~ServerInfoWidget(); + ~ServerInfoWidget() override; void setServerConfigInfo(ServerConfigInfo *info); private: QLabel *mAccountName = nullptr; QLabel *mUserName = nullptr; QLabel *mServerVersion = nullptr; }; #endif // SERVERINFOWIDGET_H diff --git a/src/widgets/dialogs/showattachmentdialog.h b/src/widgets/dialogs/showattachmentdialog.h index f48e0b0a..8dac2ce0 100644 --- a/src/widgets/dialogs/showattachmentdialog.h +++ b/src/widgets/dialogs/showattachmentdialog.h @@ -1,53 +1,53 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWATTACHMENTDIALOG_H #define SHOWATTACHMENTDIALOG_H #include "libruqolawidgets_private_export.h" #include class ShowAttachmentWidget; class FilesForRoomFilterProxyModel; class LIBRUQOLAWIDGETS_TESTS_EXPORT ShowAttachmentDialog : public QDialog { Q_OBJECT public: explicit ShowAttachmentDialog(QWidget *parent = nullptr); - ~ShowAttachmentDialog(); + ~ShowAttachmentDialog() override; void setModel(FilesForRoomFilterProxyModel *model); void setRoomId(const QString &roomId); Q_REQUIRED_RESULT QString roomId() const; Q_REQUIRED_RESULT QString roomType() const; void setRoomType(const QString &roomType); private: void readConfig(); void writeConfig(); void slotLoadMoreAttachment(); QString mRoomId; QString mRoomType; ShowAttachmentWidget *mShowAttachmentWidget = nullptr; }; #endif // SHOWATTACHMENTDIALOG_H diff --git a/src/widgets/dialogs/showattachmentwidget.h b/src/widgets/dialogs/showattachmentwidget.h index 70ec1b0e..30f758b2 100644 --- a/src/widgets/dialogs/showattachmentwidget.h +++ b/src/widgets/dialogs/showattachmentwidget.h @@ -1,51 +1,51 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWATTACHMENTWIDGET_H #define SHOWATTACHMENTWIDGET_H #include #include "libruqolawidgets_private_export.h" class KLineEdit; class QLabel; class QListView; class FilesForRoomFilterProxyModel; class LIBRUQOLAWIDGETS_TESTS_EXPORT ShowAttachmentWidget : public QWidget { Q_OBJECT public: explicit ShowAttachmentWidget(QWidget *parent = nullptr); - ~ShowAttachmentWidget(); + ~ShowAttachmentWidget() override; void setModel(FilesForRoomFilterProxyModel *model); Q_SIGNALS: void loadMoreFileAttachment(); private: void slotSearchMessageTextChanged(const QString &str); void updateLabel(); Q_REQUIRED_RESULT QString displayShowMessageInRoom() const; KLineEdit *mSearchAttachmentFileLineEdit = nullptr; QLabel *mInfo = nullptr; QListView *mListAttachment = nullptr; FilesForRoomFilterProxyModel *mModel = nullptr; }; #endif // SHOWATTACHMENTWIDGET_H diff --git a/src/widgets/dialogs/showdiscussionsdialog.h b/src/widgets/dialogs/showdiscussionsdialog.h index c4218c82..8a31317c 100644 --- a/src/widgets/dialogs/showdiscussionsdialog.h +++ b/src/widgets/dialogs/showdiscussionsdialog.h @@ -1,42 +1,42 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWDISCUSSIONSDIALOG_H #define SHOWDISCUSSIONSDIALOG_H #include #include "libruqolawidgets_private_export.h" class ShowDiscussionsWidget; class DiscussionsFilterProxyModel; class LIBRUQOLAWIDGETS_TESTS_EXPORT ShowDiscussionsDialog : public QDialog { Q_OBJECT public: explicit ShowDiscussionsDialog(QWidget *parent = nullptr); - ~ShowDiscussionsDialog(); + ~ShowDiscussionsDialog() override; void setModel(DiscussionsFilterProxyModel *model); private: void readConfig(); void writeConfig(); void slotLoadMoreDiscussions(); ShowDiscussionsWidget *mShowDiscussionsWidget = nullptr; }; #endif // SHOWDISCUSSIONSDIALOG_H diff --git a/src/widgets/dialogs/showdiscussionswidget.h b/src/widgets/dialogs/showdiscussionswidget.h index ec26c2d3..222adb50 100644 --- a/src/widgets/dialogs/showdiscussionswidget.h +++ b/src/widgets/dialogs/showdiscussionswidget.h @@ -1,49 +1,49 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWDISCUSSIONSWIDGET_H #define SHOWDISCUSSIONSWIDGET_H #include #include "libruqolawidgets_private_export.h" class KLineEdit; class QLabel; class QListView; class DiscussionsFilterProxyModel; class LIBRUQOLAWIDGETS_TESTS_EXPORT ShowDiscussionsWidget : public QWidget { Q_OBJECT public: explicit ShowDiscussionsWidget(QWidget *parent = nullptr); - ~ShowDiscussionsWidget(); + ~ShowDiscussionsWidget() override; void setModel(DiscussionsFilterProxyModel *model); Q_SIGNALS: void loadMoreDiscussion(); private: void slotSearchMessageTextChanged(const QString &str); KLineEdit *mSearchDiscussionLineEdit = nullptr; QLabel *mInfo = nullptr; QListView *mListDiscussions = nullptr; }; #endif // SHOWDISCUSSIONSWIDGET_H diff --git a/src/widgets/dialogs/showimagedialog.h b/src/widgets/dialogs/showimagedialog.h index 4216397f..5fed6bad 100644 --- a/src/widgets/dialogs/showimagedialog.h +++ b/src/widgets/dialogs/showimagedialog.h @@ -1,37 +1,37 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWIMAGEDIALOG_H #define SHOWIMAGEDIALOG_H #include #include "libruqolawidgets_private_export.h" class ShowImageWidget; class LIBRUQOLAWIDGETS_TESTS_EXPORT ShowImageDialog : public QDialog { Q_OBJECT public: explicit ShowImageDialog(QWidget *parent = nullptr); - ~ShowImageDialog(); + ~ShowImageDialog() override; void setImage(const QPixmap &pix); private: ShowImageWidget *mShowImageWidget = nullptr; }; #endif // SHOWIMAGEDIALOG_H diff --git a/src/widgets/dialogs/showimagewidget.h b/src/widgets/dialogs/showimagewidget.h index b38debc1..1dc43715 100644 --- a/src/widgets/dialogs/showimagewidget.h +++ b/src/widgets/dialogs/showimagewidget.h @@ -1,53 +1,53 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWIMAGEWIDGET_H #define SHOWIMAGEWIDGET_H #include #include "libruqolawidgets_private_export.h" class QLabel; class QSlider; class LIBRUQOLAWIDGETS_TESTS_EXPORT ShowImageWidget : public QWidget { Q_OBJECT public: explicit ShowImageWidget(QWidget *parent = nullptr); - ~ShowImageWidget(); + ~ShowImageWidget() override; void setImage(const QPixmap &pix); QSize sizeHint() const override; protected: void showEvent(QShowEvent *event) override; void resizeEvent(QResizeEvent *event) override; private: void applyPixmap(); void slotValueChanged(int value); QPixmap mPixmap; QLabel *mLabel = nullptr; QSlider *mSlider = nullptr; }; #endif // SHOWIMAGEWIDGET_H diff --git a/src/widgets/dialogs/showlistmessagebasedialog.h b/src/widgets/dialogs/showlistmessagebasedialog.h index 0a082c1d..0021a6e7 100644 --- a/src/widgets/dialogs/showlistmessagebasedialog.h +++ b/src/widgets/dialogs/showlistmessagebasedialog.h @@ -1,47 +1,47 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWLISTMESSAGEBASEDIALOG_H #define SHOWLISTMESSAGEBASEDIALOG_H #include #include "libruqolawidgets_export.h" class ShowListMessageBaseWidget; class ListMessagesModelFilterProxyModel; class LIBRUQOLAWIDGETS_EXPORT ShowListMessageBaseDialog : public QDialog { Q_OBJECT public: explicit ShowListMessageBaseDialog(QWidget *parent = nullptr); - ~ShowListMessageBaseDialog(); + ~ShowListMessageBaseDialog() override; void setModel(ListMessagesModelFilterProxyModel *model); void setRoomId(const QString &roomId); Q_REQUIRED_RESULT QString roomId() const; private: void slotLoadMoreMessages(); QString mRoomId; ShowListMessageBaseWidget *mShowListMessage = nullptr; }; #endif // SHOWLISTMESSAGEBASEDIALOG_H diff --git a/src/widgets/dialogs/showlistmessagebasewidget.h b/src/widgets/dialogs/showlistmessagebasewidget.h index fc811c84..baea54d2 100644 --- a/src/widgets/dialogs/showlistmessagebasewidget.h +++ b/src/widgets/dialogs/showlistmessagebasewidget.h @@ -1,53 +1,53 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWLISTMESSAGEBASEWIDGET_H #define SHOWLISTMESSAGEBASEWIDGET_H #include #include "libruqolawidgets_private_export.h" class KLineEdit; class MessageListView; class QLabel; class ListMessagesModelFilterProxyModel; class LIBRUQOLAWIDGETS_TESTS_EXPORT ShowListMessageBaseWidget : public QWidget { Q_OBJECT public: explicit ShowListMessageBaseWidget(QWidget *parent = nullptr); - ~ShowListMessageBaseWidget(); + ~ShowListMessageBaseWidget() override; void setModel(ListMessagesModelFilterProxyModel *model); Q_SIGNALS: void loadMoreElements(); private: void updateLabel(); void slotSearchMessageTextChanged(const QString &str); Q_REQUIRED_RESULT QString displayShowMessageInRoom() const; KLineEdit *mSearchMessageLineEdit = nullptr; MessageListView *mMessageListView = nullptr; QLabel *mMessageListInfo = nullptr; ListMessagesModelFilterProxyModel *mModel = nullptr; }; #endif // SHOWLISTMESSAGEBASEWIDGET_H diff --git a/src/widgets/dialogs/showmentionsmessagesdialog.h b/src/widgets/dialogs/showmentionsmessagesdialog.h index 2661c697..ada16218 100644 --- a/src/widgets/dialogs/showmentionsmessagesdialog.h +++ b/src/widgets/dialogs/showmentionsmessagesdialog.h @@ -1,38 +1,38 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWMENTIONSMESSAGESDIALOG_H #define SHOWMENTIONSMESSAGESDIALOG_H #include "showlistmessagebasedialog.h" class ShowMentionsMessagesDialog : public ShowListMessageBaseDialog { Q_OBJECT public: explicit ShowMentionsMessagesDialog(QWidget *parent = nullptr); - ~ShowMentionsMessagesDialog(); + ~ShowMentionsMessagesDialog() override; private: void readConfig(); void writeConfig(); }; #endif // SHOWMENTIONSMESSAGESDIALOG_H diff --git a/src/widgets/dialogs/showpinnedmessagesdialog.h b/src/widgets/dialogs/showpinnedmessagesdialog.h index 3db2650b..bc5fcc37 100644 --- a/src/widgets/dialogs/showpinnedmessagesdialog.h +++ b/src/widgets/dialogs/showpinnedmessagesdialog.h @@ -1,38 +1,38 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWPINNEDMESSAGESDIALOG_H #define SHOWPINNEDMESSAGESDIALOG_H #include "showlistmessagebasedialog.h" class ShowPinnedMessagesDialog : public ShowListMessageBaseDialog { Q_OBJECT public: explicit ShowPinnedMessagesDialog(QWidget *parent = nullptr); - ~ShowPinnedMessagesDialog(); + ~ShowPinnedMessagesDialog() override; private: void readConfig(); void writeConfig(); }; #endif // SHOWPINNEDMESSAGESDIALOG_H diff --git a/src/widgets/dialogs/showsnipperedmessagesdialog.h b/src/widgets/dialogs/showsnipperedmessagesdialog.h index ebf4b4bf..80263b77 100644 --- a/src/widgets/dialogs/showsnipperedmessagesdialog.h +++ b/src/widgets/dialogs/showsnipperedmessagesdialog.h @@ -1,38 +1,38 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWSNIPPEREDMESSAGESDIALOG_H #define SHOWSNIPPEREDMESSAGESDIALOG_H #include "showlistmessagebasedialog.h" class ShowSnipperedMessagesDialog : public ShowListMessageBaseDialog { Q_OBJECT public: explicit ShowSnipperedMessagesDialog(QWidget *parent = nullptr); - ~ShowSnipperedMessagesDialog(); + ~ShowSnipperedMessagesDialog() override; private: void readConfig(); void writeConfig(); }; #endif // SHOWSNIPPEREDMESSAGESDIALOG_H diff --git a/src/widgets/dialogs/showstarredmessagesdialog.h b/src/widgets/dialogs/showstarredmessagesdialog.h index f7f05e22..4734d541 100644 --- a/src/widgets/dialogs/showstarredmessagesdialog.h +++ b/src/widgets/dialogs/showstarredmessagesdialog.h @@ -1,37 +1,37 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWSTARREDMESSAGESDIALOG_H #define SHOWSTARREDMESSAGESDIALOG_H #include "showlistmessagebasedialog.h" class ShowStarredMessagesDialog : public ShowListMessageBaseDialog { Q_OBJECT public: explicit ShowStarredMessagesDialog(QWidget *parent = nullptr); - ~ShowStarredMessagesDialog(); + ~ShowStarredMessagesDialog() override; private: void readConfig(); void writeConfig(); }; #endif // SHOWSTARREDMESSAGESDIALOG_H diff --git a/src/widgets/dialogs/showthreadsdialog.h b/src/widgets/dialogs/showthreadsdialog.h index 1de85301..fe0fd04f 100644 --- a/src/widgets/dialogs/showthreadsdialog.h +++ b/src/widgets/dialogs/showthreadsdialog.h @@ -1,42 +1,42 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWTHREADSDIALOG_H #define SHOWTHREADSDIALOG_H #include #include "libruqolawidgets_private_export.h" class ShowThreadsWidget; class ThreadsFilterProxyModel; class LIBRUQOLAWIDGETS_TESTS_EXPORT ShowThreadsDialog : public QDialog { Q_OBJECT public: explicit ShowThreadsDialog(QWidget *parent = nullptr); - ~ShowThreadsDialog(); + ~ShowThreadsDialog() override; void setModel(ThreadsFilterProxyModel *model); private: void readConfig(); void writeConfig(); void slotLoadMoreThreads(); ShowThreadsWidget *mShowThreadsWidget = nullptr; }; #endif // SHOWTHREADSDIALOG_H diff --git a/src/widgets/dialogs/showthreadswidget.h b/src/widgets/dialogs/showthreadswidget.h index 26d3f8cc..089dc86d 100644 --- a/src/widgets/dialogs/showthreadswidget.h +++ b/src/widgets/dialogs/showthreadswidget.h @@ -1,48 +1,48 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef SHOWTHREADSWIDGET_H #define SHOWTHREADSWIDGET_H #include #include "libruqolawidgets_private_export.h" class KLineEdit; class QLabel; class QListView; class ThreadsFilterProxyModel; class LIBRUQOLAWIDGETS_TESTS_EXPORT ShowThreadsWidget : public QWidget { Q_OBJECT public: explicit ShowThreadsWidget(QWidget *parent = nullptr); - ~ShowThreadsWidget(); + ~ShowThreadsWidget() override; void setModel(ThreadsFilterProxyModel *model); Q_SIGNALS: void loadMoreThreads(); private: void slotSearchMessageTextChanged(const QString &str); KLineEdit *mSearchThreadLineEdit = nullptr; QLabel *mInfo = nullptr; QListView *mListThreads = nullptr; }; #endif // SHOWTHREADSWIDGET_H diff --git a/src/widgets/dialogs/uploadfiledialog.h b/src/widgets/dialogs/uploadfiledialog.h index 888abe0e..77a6dcb4 100644 --- a/src/widgets/dialogs/uploadfiledialog.h +++ b/src/widgets/dialogs/uploadfiledialog.h @@ -1,57 +1,57 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef UPLOADFILEDIALOG_H #define UPLOADFILEDIALOG_H #include #include #include "libruqolawidgets_private_export.h" class UploadFileWidget; class QPushButton; class LIBRUQOLAWIDGETS_TESTS_EXPORT UploadFileDialog : public QDialog { Q_OBJECT public: struct UploadFileInfo { QString description; QString message; QUrl fileUrl; Q_REQUIRED_RESULT bool isValid() const { return fileUrl.isValid(); //TODO verify local ? } }; explicit UploadFileDialog(QWidget *parent = nullptr); - ~UploadFileDialog(); + ~UploadFileDialog() override; void setFileUrl(const QUrl &url); Q_REQUIRED_RESULT UploadFileInfo fileInfo() const; private: void readConfig(); void writeConfig(); UploadFileWidget *mUploadFileWidget = nullptr; QPushButton *mOkButton = nullptr; }; #endif // UPLOADFILEDIALOG_H diff --git a/src/widgets/dialogs/uploadfilewidget.h b/src/widgets/dialogs/uploadfilewidget.h index f0c407a8..1c59c86c 100644 --- a/src/widgets/dialogs/uploadfilewidget.h +++ b/src/widgets/dialogs/uploadfilewidget.h @@ -1,47 +1,47 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef UPLOADFILEWIDGET_H #define UPLOADFILEWIDGET_H #include #include "libruqolawidgets_private_export.h" class KLineEdit; class KUrlRequester; class LIBRUQOLAWIDGETS_TESTS_EXPORT UploadFileWidget : public QWidget { Q_OBJECT public: explicit UploadFileWidget(QWidget *parent = nullptr); - ~UploadFileWidget(); + ~UploadFileWidget() override; Q_REQUIRED_RESULT QString description() const; Q_REQUIRED_RESULT QUrl fileUrl() const; void setFileUrl(const QUrl &url); Q_SIGNALS: void updateOkButton(bool enabled); private: KLineEdit *mDescription = nullptr; KUrlRequester *mSelectFile = nullptr; }; #endif // UPLOADFILEWIDGET_H diff --git a/src/widgets/misc/accountmenu.h b/src/widgets/misc/accountmenu.h index 1cb41019..711201c0 100644 --- a/src/widgets/misc/accountmenu.h +++ b/src/widgets/misc/accountmenu.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ACCOUNTMENU_H #define ACCOUNTMENU_H #include #include "libruqolawidgets_private_export.h" class LIBRUQOLAWIDGETS_TESTS_EXPORT AccountMenu : public KActionMenu { Q_OBJECT public: explicit AccountMenu(QWidget *parent = nullptr); - ~AccountMenu(); + ~AccountMenu() override; private: void slotUpdateAccountMenu(); }; #endif // ACCOUNTMENU_H diff --git a/src/widgets/misc/emoticonmenuwidget.h b/src/widgets/misc/emoticonmenuwidget.h index 2f7cc3ae..706f167c 100644 --- a/src/widgets/misc/emoticonmenuwidget.h +++ b/src/widgets/misc/emoticonmenuwidget.h @@ -1,44 +1,44 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef EMOTICONMENUWIDGET_H #define EMOTICONMENUWIDGET_H #include #include "libruqolawidgets_private_export.h" class QTabWidget; class RocketChatAccount; class LIBRUQOLAWIDGETS_TESTS_EXPORT EmoticonMenuWidget : public QWidget { Q_OBJECT public: explicit EmoticonMenuWidget(QWidget *parent = nullptr); - ~EmoticonMenuWidget(); + ~EmoticonMenuWidget() override; void setCurrentRocketChatAccount(RocketChatAccount *account); Q_SIGNALS: void insertEmoticons(const QString &emoticon); private: void initializeTab(RocketChatAccount *account); QTabWidget *mTabWidget = nullptr; }; #endif // EMOTICONMENUWIDGET_H diff --git a/src/widgets/misc/emoticonselectorwidget.h b/src/widgets/misc/emoticonselectorwidget.h index b8bcc6e5..d89b8312 100644 --- a/src/widgets/misc/emoticonselectorwidget.h +++ b/src/widgets/misc/emoticonselectorwidget.h @@ -1,58 +1,58 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef EMOTICONSELECTORWIDGET_H #define EMOTICONSELECTORWIDGET_H #include #include "emoticons/unicodeemoticon.h" #include "libruqolawidgets_private_export.h" class RoomFilterProxyModel; class LIBRUQOLAWIDGETS_TESTS_EXPORT EmoticonTextEditItem : public QListWidgetItem { public: explicit EmoticonTextEditItem(const QString &identifier, const QString &emoticonText, QListWidget *parent); Q_REQUIRED_RESULT QString text() const; Q_REQUIRED_RESULT QString identifier() const; private: QString mText; QString mIdentifier; }; class LIBRUQOLAWIDGETS_TESTS_EXPORT EmoticonSelectorWidget : public QListWidget { Q_OBJECT public: explicit EmoticonSelectorWidget(QWidget *parent = nullptr); - ~EmoticonSelectorWidget(); + ~EmoticonSelectorWidget() override; void setEmoticon(const QVector &emoticons); Q_SIGNALS: void itemSelected(const QString &str); private: void slotMouseOverItem(QListWidgetItem *item); void slotEmoticonClicked(QListWidgetItem *item); }; #endif // EMOTICONSELECTORWIDGET_H diff --git a/src/widgets/room/autotests/messagedelegatehelperfiletest.h b/src/widgets/room/autotests/messagedelegatehelperfiletest.h index 0fc91a03..0fb253e8 100644 --- a/src/widgets/room/autotests/messagedelegatehelperfiletest.h +++ b/src/widgets/room/autotests/messagedelegatehelperfiletest.h @@ -1,39 +1,39 @@ /* Copyright (c) 2020 David Faure This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MESSAGEDELEGATEHELPERFILETEST_H #define MESSAGEDELEGATEHELPERFILETEST_H #include class MessageDelegateHelperFileTest : public QObject { Q_OBJECT public: explicit MessageDelegateHelperFileTest(QObject *parent = nullptr); - ~MessageDelegateHelperFileTest() = default; + ~MessageDelegateHelperFileTest() override = default; private Q_SLOTS: void shouldLayoutMultipleFiles(); private: }; #endif // MESSAGEDELEGATEHELPERFILETEST_H diff --git a/src/widgets/room/autotests/messagedelegatehelperimagetest.h b/src/widgets/room/autotests/messagedelegatehelperimagetest.h index e32001a1..b5c9d056 100644 --- a/src/widgets/room/autotests/messagedelegatehelperimagetest.h +++ b/src/widgets/room/autotests/messagedelegatehelperimagetest.h @@ -1,42 +1,42 @@ /* Copyright (c) 2020 David Faure This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MESSAGEDELEGATEHELPERIMAGETEST_H #define MESSAGEDELEGATEHELPERIMAGETEST_H #include #include class MessageDelegateHelperImageTest : public QObject { Q_OBJECT public: explicit MessageDelegateHelperImageTest(QObject *parent = nullptr); - ~MessageDelegateHelperImageTest() = default; + ~MessageDelegateHelperImageTest() override = default; private Q_SLOTS: void shouldExtractMessageData(); void shouldCacheLastFivePixmaps(); private: }; #endif // MESSAGEDELEGATEHELPERIMAGETEST_H diff --git a/src/widgets/room/autotests/messagelinewidgettest.h b/src/widgets/room/autotests/messagelinewidgettest.h index 2a5f1188..a7140677 100644 --- a/src/widgets/room/autotests/messagelinewidgettest.h +++ b/src/widgets/room/autotests/messagelinewidgettest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MESSAGELINEWIDGETTEST_H #define MESSAGELINEWIDGETTEST_H #include class MessageLineWidgetTest : public QObject { Q_OBJECT public: explicit MessageLineWidgetTest(QObject *parent = nullptr); - ~MessageLineWidgetTest() = default; + ~MessageLineWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // MESSAGELINEWIDGETTEST_H diff --git a/src/widgets/room/autotests/messagelistdelegatetest.h b/src/widgets/room/autotests/messagelistdelegatetest.h index 4c7ea686..7509d92c 100644 --- a/src/widgets/room/autotests/messagelistdelegatetest.h +++ b/src/widgets/room/autotests/messagelistdelegatetest.h @@ -1,40 +1,40 @@ /* Copyright (c) 2020 David Faure This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MESSAGELISTDELEGATETEST_H #define MESSAGELISTDELEGATETEST_H #include class MessageListDelegateTest : public QObject { Q_OBJECT public: explicit MessageListDelegateTest(QObject *parent = nullptr); - ~MessageListDelegateTest() = default; + ~MessageListDelegateTest() override = default; private Q_SLOTS: void layoutChecks_data(); void layoutChecks(); private: }; #endif // MESSAGELISTDELEGATETEST_H diff --git a/src/widgets/room/autotests/messagetextedittest.h b/src/widgets/room/autotests/messagetextedittest.h index 0bcf8d40..f88d39dc 100644 --- a/src/widgets/room/autotests/messagetextedittest.h +++ b/src/widgets/room/autotests/messagetextedittest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MESSAGETEXTEDITTEST_H #define MESSAGETEXTEDITTEST_H #include class MessageTextEditTest : public QObject { Q_OBJECT public: explicit MessageTextEditTest(QObject *parent = nullptr); - ~MessageTextEditTest() = default; + ~MessageTextEditTest() override = default; private Q_SLOTS: void shouldHaveDefautValues(); }; #endif // MESSAGETEXTEDITTEST_H diff --git a/src/widgets/room/autotests/readonlylineeditwidgettest.h b/src/widgets/room/autotests/readonlylineeditwidgettest.h index 727bb733..86d5c62a 100644 --- a/src/widgets/room/autotests/readonlylineeditwidgettest.h +++ b/src/widgets/room/autotests/readonlylineeditwidgettest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef READONLYLINEEDITWIDGETTEST_H #define READONLYLINEEDITWIDGETTEST_H #include class ReadOnlyLineEditWidgetTest : public QObject { Q_OBJECT public: explicit ReadOnlyLineEditWidgetTest(QObject *parent = nullptr); - ~ReadOnlyLineEditWidgetTest() = default; + ~ReadOnlyLineEditWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // READONLYLINEEDITWIDGETTEST_H diff --git a/src/widgets/room/autotests/roomheaderwidgettest.h b/src/widgets/room/autotests/roomheaderwidgettest.h index 3340a5f5..4558da05 100644 --- a/src/widgets/room/autotests/roomheaderwidgettest.h +++ b/src/widgets/room/autotests/roomheaderwidgettest.h @@ -1,37 +1,37 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROOMHEADERWIDGETTEST_H #define ROOMHEADERWIDGETTEST_H #include class RoomHeaderWidgetTest : public QObject { Q_OBJECT public: explicit RoomHeaderWidgetTest(QObject *parent = nullptr); - ~RoomHeaderWidgetTest() = default; + ~RoomHeaderWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); void shouldShowHideIcon(); }; #endif // ROOMHEADERWIDGETTEST_H diff --git a/src/widgets/room/autotests/roomwidgettest.h b/src/widgets/room/autotests/roomwidgettest.h index 968bb074..b296c429 100644 --- a/src/widgets/room/autotests/roomwidgettest.h +++ b/src/widgets/room/autotests/roomwidgettest.h @@ -1,36 +1,36 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROOMWIDGETTEST_H #define ROOMWIDGETTEST_H #include class RoomWidgetTest : public QObject { Q_OBJECT public: explicit RoomWidgetTest(QObject *parent = nullptr); - ~RoomWidgetTest() = default; + ~RoomWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); }; #endif // ROOMWIDGETTEST_H diff --git a/src/widgets/room/messagelinewidget.h b/src/widgets/room/messagelinewidget.h index 77082c8c..02b5763f 100644 --- a/src/widgets/room/messagelinewidget.h +++ b/src/widgets/room/messagelinewidget.h @@ -1,71 +1,71 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MESSAGELINEWIDGET_H #define MESSAGELINEWIDGET_H #include #include "dialogs/uploadfiledialog.h" #include "libruqolawidgets_private_export.h" class MessageTextEdit; class QToolButton; class EmoticonMenuWidget; class RocketChatAccount; class LIBRUQOLAWIDGETS_TESTS_EXPORT MessageLineWidget : public QWidget { Q_OBJECT public: enum class EditingMode { EditMessage, NewMessage, }; explicit MessageLineWidget(QWidget *parent = nullptr); - ~MessageLineWidget(); + ~MessageLineWidget() override; void setCurrentRocketChatAccount(RocketChatAccount *account); void setText(const QString &text); Q_REQUIRED_RESULT QString text() const; MessageTextEdit *messageTextEdit() const; Q_REQUIRED_RESULT EditingMode mode() const; void setMode(const EditingMode &mode); Q_SIGNALS: void sendMessage(const QString &str); void sendFile(const UploadFileDialog::UploadFileInfo &result); void textEditing(bool clearNotification); private: void slotSendMessage(const QString &msg); void slotSendFile(); EditingMode mMode = EditingMode::NewMessage; MessageTextEdit *mMessageTextEdit = nullptr; QToolButton *mSendFile = nullptr; QToolButton *mEmoticonButton = nullptr; QToolButton *mSendMessageButton = nullptr; EmoticonMenuWidget *mEmoticonMenuWidget = nullptr; }; #endif // MESSAGELINEWIDGET_H diff --git a/src/widgets/room/messagelistdelegate.h b/src/widgets/room/messagelistdelegate.h index 9bdce597..f2cdb573 100644 --- a/src/widgets/room/messagelistdelegate.h +++ b/src/widgets/room/messagelistdelegate.h @@ -1,108 +1,108 @@ /* Copyright (c) 2020 David Faure This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MESSAGELISTDELEGATE_H #define MESSAGELISTDELEGATE_H #include "libruqolawidgets_private_export.h" #include #include #include class RocketChatAccount; class Message; class MessageDelegateHelperBase; class MessageDelegateHelperText; class MessageDelegateHelperImage; class MessageDelegateHelperFile; class MessageDelegateHelperReactions; class LIBRUQOLAWIDGETS_TESTS_EXPORT MessageListDelegate : public QItemDelegate { Q_OBJECT public: explicit MessageListDelegate(QObject *parent = nullptr); - ~MessageListDelegate(); + ~MessageListDelegate() override; void setRocketChatAccount(RocketChatAccount *rcAccount); void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override; bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override; bool helpEvent(QHelpEvent *event, QAbstractItemView *view, const QStyleOptionViewItem &option, const QModelIndex &index) override; void drawDate(QPainter *painter, const QModelIndex &index, const QStyleOptionViewItem &option) const; private: QPixmap makeAvatarPixmap(const QModelIndex &index, int maxHeight) const; struct Layout { // Sender QString senderText; QFont senderFont; QRectF senderRect; // Avatar pixmap QPixmap avatarPixmap; QPointF avatarPos; // Edited icon QRect editedIconRect; // add-reaction button and timestamp QRect addReactionRect; QString timeStampText; QPoint timeStampPos; QRect usableRect; // rect for everything except the date header (at the top) and the sender (on the left) // Text message QRect textRect; qreal baseLine; // used to draw sender/timestamp // Attachments QRect attachmentsRect; // Reactions qreal reactionsY; qreal reactionsHeight; }; Layout doLayout(const QStyleOptionViewItem &option, const QModelIndex &index) const; void drawReactions(QPainter *painter, const QModelIndex &index, const QRect &reactionsRect, const QStyleOptionViewItem &option) const; /// @note Ownership is not transferred MessageDelegateHelperBase *attachmentsHelper(const Message *message) const; friend class MessageListDelegateTest; QIcon mEditedIcon; QIcon mAddReactionIcon; RocketChatAccount *mRocketChatAccount = nullptr; QScopedPointer mHelperText; QScopedPointer mHelperImage; QScopedPointer mHelperFile; QScopedPointer mHelperReactions; }; #endif // MESSAGELISTDELEGATE_H diff --git a/src/widgets/room/messagelistview.h b/src/widgets/room/messagelistview.h index b133c3f1..1a6f92e5 100644 --- a/src/widgets/room/messagelistview.h +++ b/src/widgets/room/messagelistview.h @@ -1,76 +1,76 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MESSAGELISTVIEW_H #define MESSAGELISTVIEW_H #include #include "libruqolawidgets_private_export.h" class LIBRUQOLAWIDGETS_TESTS_EXPORT MessageListView : public QListView { Q_OBJECT public: enum class Mode { Editing, Viewing, /*when we show list of message as mentions, search etc.*/ }; explicit MessageListView(QWidget *parent = nullptr); - ~MessageListView(); + ~MessageListView() override; void setChannelSelected(const QString &roomId); void setModel(QAbstractItemModel *newModel) override; void handleKeyPressEvent(QKeyEvent *ev); Q_REQUIRED_RESULT MessageListView::Mode mode() const; void setMode(const MessageListView::Mode &mode); protected: void resizeEvent(QResizeEvent *ev) override; void contextMenuEvent(QContextMenuEvent *event) override; Q_SIGNALS: void modelChanged(); void editMessageRequested(const QString &messageId, const QString &text); private: void checkIfAtBottom(); void maybeScrollToBottom(); void slotEditMessage(const QModelIndex &index); void slotDeleteMessage(const QModelIndex &index); void slotReportMessage(const QModelIndex &index); void slotSetAsFavorite(const QModelIndex &index, bool isStarred); void slotSetPinnedMessage(const QModelIndex &index, bool isPinned); void slotStartDiscussion(const QModelIndex &index); void slotCopyText(const QModelIndex &index); void slotGoToMessage(const QModelIndex &index); void slotTranslateMessage(const QModelIndex &index, bool checked); void createSeparator(QMenu &menu); private: QString mRoomID; MessageListView::Mode mMode = MessageListView::Mode::Editing; bool mAtBottom = true; }; #endif // MESSAGELISTVIEW_H diff --git a/src/widgets/room/messagetextedit.h b/src/widgets/room/messagetextedit.h index 944cab5a..2e086050 100644 --- a/src/widgets/room/messagetextedit.h +++ b/src/widgets/room/messagetextedit.h @@ -1,60 +1,60 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef MESSAGETEXTEDIT_H #define MESSAGETEXTEDIT_H #include "common/completiontextedit.h" #include "libruqolawidgets_private_export.h" class QListView; /** * @brief The MessageTextEdit class is the widget used for typing messages to be sent. */ class LIBRUQOLAWIDGETS_TESTS_EXPORT MessageTextEdit : public CompletionTextEdit { Q_OBJECT public: explicit MessageTextEdit(QWidget *parent = nullptr); - ~MessageTextEdit(); + ~MessageTextEdit() override; void insert(const QString &text); QString text() const; QSize sizeHint() const override; QSize minimumSizeHint() const override; Q_SIGNALS: void sendMessage(const QString &str); void keyPressed(QKeyEvent *ev); void textEditing(bool clearNotification); protected: void keyPressEvent(QKeyEvent *e) override; private: void slotTextChanged(); void slotCompletionAvailable(); void slotComplete(const QModelIndex &index); }; #endif // MESSAGETEXTEDIT_H diff --git a/src/widgets/room/readonlylineeditwidget.h b/src/widgets/room/readonlylineeditwidget.h index ad425ef5..fbdc56db 100644 --- a/src/widgets/room/readonlylineeditwidget.h +++ b/src/widgets/room/readonlylineeditwidget.h @@ -1,38 +1,38 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef READONLYLINEEDITWIDGET_H #define READONLYLINEEDITWIDGET_H #include #include "libruqolawidgets_private_export.h" class QLabel; class LIBRUQOLAWIDGETS_TESTS_EXPORT ReadOnlyLineEditWidget : public QWidget { Q_OBJECT public: explicit ReadOnlyLineEditWidget(QWidget *parent = nullptr); - ~ReadOnlyLineEditWidget(); + ~ReadOnlyLineEditWidget() override; void setMessage(const QString &str); private: QLabel *mLabel = nullptr; }; #endif // READONLYLINEEDITWIDGET_H diff --git a/src/widgets/room/roomheaderwidget.h b/src/widgets/room/roomheaderwidget.h index bddb641c..5587d0f6 100644 --- a/src/widgets/room/roomheaderwidget.h +++ b/src/widgets/room/roomheaderwidget.h @@ -1,60 +1,60 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROOMHEADERWIDGET_H #define ROOMHEADERWIDGET_H #include #include "libruqolawidgets_private_export.h" class QLabel; class QToolButton; class LIBRUQOLAWIDGETS_TESTS_EXPORT RoomHeaderWidget : public QWidget { Q_OBJECT public: explicit RoomHeaderWidget(QWidget *parent = nullptr); - ~RoomHeaderWidget(); + ~RoomHeaderWidget() override; void setRoomName(const QString &name); Q_REQUIRED_RESULT QString roomName() const; void setRoomAnnouncement(const QString &name); void setRoomTopic(const QString &name); void setFavoriteStatus(bool b); void setEncypted(bool b); void setIsDiscussion(bool isDiscussion); Q_SIGNALS: void favoriteChanged(bool b); void encryptedChanged(bool b); void goBackToRoom(); private: QLabel *mRoomName = nullptr; QLabel *mTopic = nullptr; QLabel *mAnnouncement = nullptr; QLabel *mDescription = nullptr; QToolButton *mFavoriteButton = nullptr; QToolButton *mEncryptedButton = nullptr; QToolButton *mDiscussionBackButton = nullptr; }; #endif // ROOMHEADERWIDGET_H diff --git a/src/widgets/room/roomwidget.h b/src/widgets/room/roomwidget.h index becc87a5..0309491f 100644 --- a/src/widgets/room/roomwidget.h +++ b/src/widgets/room/roomwidget.h @@ -1,88 +1,88 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ROOMWIDGET_H #define ROOMWIDGET_H #include #include #include "dialogs/uploadfiledialog.h" #include "libruqolawidgets_private_export.h" class RoomHeaderWidget; class MessageListView; class MessageLineWidget; class RoomWrapper; class ReadOnlyLineEditWidget; class QStackedWidget; class RocketChatAccount; class LIBRUQOLAWIDGETS_TESTS_EXPORT RoomWidget : public QWidget { Q_OBJECT public: explicit RoomWidget(QWidget *parent = nullptr); - ~RoomWidget(); + ~RoomWidget() override; Q_REQUIRED_RESULT QString roomId() const; void setRoomId(const QString &roomId); void setCurrentRocketChatAccount(RocketChatAccount *account); Q_REQUIRED_RESULT QString roomType() const; RoomWrapper *roomWrapper() const; Q_SIGNALS: void channelSelected(const QModelIndex &index); void selectChannelRequested(const QString &channelId); protected: void dragEnterEvent(QDragEnterEvent *event) override; void dropEvent(QDropEvent *event) override; private: void setChannelSelected(const QModelIndex &index); void slotSendMessage(const QString &msg); void slotEditMessage(const QString &messageId, const QString &text); void slotClearNotification(); void slotSendFile(const UploadFileDialog::UploadFileInfo &uploadFileInfo); void updateRoomHeader(); void connectRoomWrapper(); void slotChangeFavorite(bool b); void keyPressedInLineEdit(QKeyEvent *ev); void setRoomType(const QString &roomType); void slotEncryptedChanged(bool b); void slotTextEditing(bool clearNotification); void slotGoBackToRoom(); QString mRoomId; QString mRoomType; QString mMessageIdBeingEdited; RoomHeaderWidget *mRoomHeaderWidget = nullptr; MessageListView *mMessageListView = nullptr; MessageLineWidget *mMessageLineWidget = nullptr; RoomWrapper *mRoomWrapper = nullptr; QStackedWidget *mStackedWidget = nullptr; ReadOnlyLineEditWidget *mReadOnlyLineEditWidget = nullptr; RocketChatAccount *mCurrentRocketChatAccount = nullptr; }; #endif // ROOMWIDGET_H diff --git a/src/widgets/ruqolacentralwidget.h b/src/widgets/ruqolacentralwidget.h index cb749122..c44e8508 100644 --- a/src/widgets/ruqolacentralwidget.h +++ b/src/widgets/ruqolacentralwidget.h @@ -1,57 +1,57 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef RUQOLACENTRALWIDGET_H #define RUQOLACENTRALWIDGET_H #include #include #include "libruqolawidgets_private_export.h" class QStackedWidget; class RuqolaMainWidget; class RuqolaLoginWidget; class RocketChatAccount; class RoomWrapper; class LIBRUQOLAWIDGETS_TESTS_EXPORT RuqolaCentralWidget : public QWidget { Q_OBJECT public: explicit RuqolaCentralWidget(QWidget *parent = nullptr); - ~RuqolaCentralWidget(); + ~RuqolaCentralWidget() override; Q_REQUIRED_RESULT QString roomId() const; void setCurrentRocketChatAccount(RocketChatAccount *account); Q_REQUIRED_RESULT QString roomType() const; RoomWrapper *roomWrapper() const; Q_SIGNALS: void channelSelected(); private: void slotLoginStatusChanged(); void slotJobFailedInfo(const QString &messageError); void slotSocketError(QAbstractSocket::SocketError error, const QString &errorString); QStackedWidget *mStackedWidget = nullptr; RuqolaMainWidget *mRuqolaMainWidget = nullptr; RuqolaLoginWidget *mRuqolaLoginWidget = nullptr; RocketChatAccount *mCurrentRocketChatAccount = nullptr; }; #endif // RUQOLACENTRALWIDGET_H diff --git a/src/widgets/ruqolaloginwidget.h b/src/widgets/ruqolaloginwidget.h index 755d48df..72028501 100644 --- a/src/widgets/ruqolaloginwidget.h +++ b/src/widgets/ruqolaloginwidget.h @@ -1,61 +1,61 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef RUQOLALOGINWIDGET_H #define RUQOLALOGINWIDGET_H #include #include #include "libruqolawidgets_private_export.h" class QLineEdit; class QPushButton; class KPasswordLineEdit; class QLabel; class KBusyIndicatorWidget; class AuthenticationComboBox; class LIBRUQOLAWIDGETS_TESTS_EXPORT RuqolaLoginWidget : public QWidget { Q_OBJECT public: explicit RuqolaLoginWidget(QWidget *parent = nullptr); - ~RuqolaLoginWidget(); + ~RuqolaLoginWidget() override; void initialize(); void setLoginStatus(DDPClient::LoginStatus status); void showError(const QString &text); private: void changeWidgetStatus(bool enabled); void slotLogin(); QLabel *mAccountName = nullptr; QLineEdit *mServerName = nullptr; QLineEdit *mUserName = nullptr; KPasswordLineEdit *mPasswordLineEdit = nullptr; QPushButton *mLoginButton = nullptr; KBusyIndicatorWidget *mBusyIndicatorWidget = nullptr; QLabel *mFailedError = nullptr; KPasswordLineEdit *mTwoFactorAuthenticationPasswordLineEdit = nullptr; QWidget *mAuthenticationWidget = nullptr; QWidget *mAuthenticationAccountWidget = nullptr; AuthenticationComboBox *mAuthenticationCombobox = nullptr; }; #endif // RUQOLALOGINWIDGET_H diff --git a/src/widgets/ruqolamainwidget.h b/src/widgets/ruqolamainwidget.h index 03ba990b..da638d91 100644 --- a/src/widgets/ruqolamainwidget.h +++ b/src/widgets/ruqolamainwidget.h @@ -1,55 +1,55 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef RUQOLAMAINWIDGET_H #define RUQOLAMAINWIDGET_H #include #include #include "libruqolawidgets_private_export.h" class ChannelListWidget; class RoomWidget; class QSplitter; class RocketChatAccount; class RoomWrapper; class LIBRUQOLAWIDGETS_TESTS_EXPORT RuqolaMainWidget : public QWidget { Q_OBJECT public: explicit RuqolaMainWidget(QWidget *parent = nullptr); - ~RuqolaMainWidget(); + ~RuqolaMainWidget() override; Q_REQUIRED_RESULT QString roomId() const; void setCurrentRocketChatAccount(RocketChatAccount *account); Q_REQUIRED_RESULT QString roomType() const; RoomWrapper *roomWrapper() const; void selectChannelRoom(const QModelIndex &index); Q_SIGNALS: void channelSelected(); private: ChannelListWidget *mChannelList = nullptr; RoomWidget *mRoomWidget = nullptr; QSplitter *mSplitter = nullptr; RocketChatAccount *mCurrentRocketChatAccount = nullptr; QStackedWidget *mStackedRoomWidget = nullptr; QWidget *mEmptyRoomWidget = nullptr; }; #endif // RUQOLAMAINWIDGET_H diff --git a/src/widgets/ruqolamainwindow.h b/src/widgets/ruqolamainwindow.h index 0d5b0a6b..5f7b63d0 100644 --- a/src/widgets/ruqolamainwindow.h +++ b/src/widgets/ruqolamainwindow.h @@ -1,98 +1,98 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef RUQOLAMAINWINDOW_H #define RUQOLAMAINWINDOW_H #include #include "libruqolawidgets_export.h" class RuqolaCentralWidget; class QAction; class AccountMenu; class RocketChatAccount; class QLabel; class AccountsOverviewWidget; class LIBRUQOLAWIDGETS_EXPORT RuqolaMainWindow : public KXmlGuiWindow { Q_OBJECT public: explicit RuqolaMainWindow(QWidget *parent = nullptr); - ~RuqolaMainWindow(); + ~RuqolaMainWindow() override; private: void setupActions(); void readConfig(); void setupStatusBar(); void slotAddAccount(); void slotServerInfo(); void slotConfigure(); void slotLogout(); void slotSearchChannel(); void slotCreateNewChannel(); void slotShowMentions(); void slotPinnedMessages(); void slotStarredMessages(); void slotSnipperedMessages(); void slotSearchMessages(); void slotConfigureNotification(); void slotTypingNotificationChanged(const QString &roomId, const QString ¬ificationStr); void slotClearNotification(); void slotLoadRecentHistory(); void slotShowFileAttachments(); void slotAccountChanged(); void slotShowDiscussions(); void slotShowThreads(); void slotUnreadOnTop(bool checked); void updateActions(); void slotMissingChannelPassword(const QString &roomId); void slotShowChannelInfo(); void slotAddUsersInRoom(); void changeActionStatus(bool enabled); void slotClearAccountAlerts(); void slotListOfUsersInRoom(); void slotStartVideoChat(); RuqolaCentralWidget *mMainWidget = nullptr; QAction *mServerInfo = nullptr; QAction *mLogout = nullptr; QAction *mSearchChannel = nullptr; QAction *mCreateNewChannel = nullptr; QAction *mShowMentions = nullptr; QAction *mShowPinnedMessages = nullptr; QAction *mShowStarredMessages = nullptr; QAction *mShowSnipperedMessages = nullptr; QAction *mSearchMessages = nullptr; QAction *mConfigureNotification = nullptr; QAction *mLoadChannelHistory = nullptr; QAction *mShowFileAttachments = nullptr; QAction *mShowDiscussions = nullptr; QAction *mShowThreads = nullptr; QAction *mUnreadOnTop = nullptr; QAction *mChannelInfo = nullptr; QAction *mAddUserInRooms = nullptr; QAction *mListOfUsers = nullptr; QAction *mStartVideoChat = nullptr; AccountMenu *mAccountMenu = nullptr; RocketChatAccount *mCurrentRocketChatAccount = nullptr; QLabel *mStatusBarTypingMessage = nullptr; AccountsOverviewWidget *mAccountOverviewWidget = nullptr; }; #endif // RUQOLAMAINWINDOW_H diff --git a/tests/expandjson.h b/tests/expandjson.h index 7fbbd0d7..2058960c 100644 --- a/tests/expandjson.h +++ b/tests/expandjson.h @@ -1,41 +1,41 @@ /* Copyright (c) 2017-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef EXPANDJSON_H #define EXPANDJSON_H #include class QTextEdit; class QPushButton; class ExpandJson : public QWidget { Q_OBJECT public: explicit ExpandJson(QWidget *parent = nullptr); - ~ExpandJson() = default; + ~ExpandJson() override = default; private: void slotExpandJson(); QTextEdit *mInput = nullptr; QTextEdit *mOutput = nullptr; QPushButton *mExpandButton = nullptr; }; #endif // EXPANDJSON_H diff --git a/tests/unicodeemoticongui.h b/tests/unicodeemoticongui.h index fd1dbaba..18583c82 100644 --- a/tests/unicodeemoticongui.h +++ b/tests/unicodeemoticongui.h @@ -1,79 +1,79 @@ /* Copyright (c) 2019-2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef UNICODEEMOTICONGUI_H #define UNICODEEMOTICONGUI_H #include #include #include class QLineEdit; class KListWidgetSearchLine; class UnicodeEmoticonInfo : public QWidget { Q_OBJECT public: explicit UnicodeEmoticonInfo(QWidget *parent = nullptr); - ~UnicodeEmoticonInfo(); + ~UnicodeEmoticonInfo() override; Q_REQUIRED_RESULT UnicodeEmoticon info() const; void setInfo(const UnicodeEmoticon &info); private: QLineEdit *mIdentifier = nullptr; QLineEdit *mUnicode = nullptr; QLineEdit *mAliases = nullptr; QLineEdit *mCategory = nullptr; QLineEdit *mOrder = nullptr; UnicodeEmoticon mInfo; }; class UnicodeEmoticonListWidgetItem : public QListWidgetItem { public: explicit UnicodeEmoticonListWidgetItem(const QString &str, QListWidget *parent); Q_REQUIRED_RESULT UnicodeEmoticon info() const; void setInfo(const UnicodeEmoticon &info); private: UnicodeEmoticon mInfo; }; class QListWidget; class UnicodeEmoticonGui : public QWidget { Q_OBJECT public: explicit UnicodeEmoticonGui(QWidget *parent = nullptr); - ~UnicodeEmoticonGui(); + ~UnicodeEmoticonGui() override; private: void save(); void load(); void slotItemChanged(QListWidgetItem *item); void slotItemSelectionChanged(); QListWidget *mListWidget = nullptr; UnicodeEmoticonInfo *mWidgetInfo = nullptr; KListWidgetSearchLine *mSearchEmoticon = nullptr; }; #endif // UnicodeEmoticonGui_H