File indexing completed on 2024-12-01 04:35:27
0001 /* 0002 SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QObject> 0010 0011 class RocketChatMessageTest : public QObject 0012 { 0013 Q_OBJECT 0014 public: 0015 explicit RocketChatMessageTest(QObject *parent = nullptr); 0016 ~RocketChatMessageTest() override = default; 0017 private Q_SLOTS: 0018 void shouldJoinRoom(); 0019 void shouldSetDefaultStatus(); 0020 void shouldInformTypingStatus(); 0021 0022 void shouldUserAutoComplete(); 0023 void shouldSendFileMessage(); 0024 0025 #if 0 0026 RocketChatMessage::RocketChatMessageResult RocketChatMessage::getUsersOfRoom(const QString &roomId, bool showAll, quint64 id) 0027 RocketChatMessage::RocketChatMessageResult setRoomHasSystemMessages(const QString &roomId, bool systemMessages, quint64 id); 0028 RocketChatMessage::RocketChatMessageResult readMessages(const QString &roomID, quint64 id); 0029 RocketChatMessage::RocketChatMessageResult getSubscriptions(const QDateTime &lastUpdate, quint64 id); 0030 #endif 0031 0032 void shouldSplotlightWithoutUsers(); 0033 void shouldSplotlightWithoutRooms(); 0034 0035 void inputChannelAutocomplete(); 0036 0037 void inputUserAutocomplete(); 0038 void inputUserWithRoomIdAutocomplete(); 0039 0040 void blockUser(); 0041 void unBlockUser(); 0042 void deleteFileMessage(); 0043 0044 void streamNotifyUserOtrEnd(); 0045 void streamNotifyUserOtrHandshake(); 0046 void streamNotifyUserOtrAcknowledge(); 0047 0048 void deleteCustomSound(); 0049 void listCustomSounds(); 0050 0051 void enable2fa(); 0052 void disable2fa(); 0053 void validateTempToken2fa(); 0054 void regenerateCodes2fa(); 0055 0056 void deleteOAuthApp(); 0057 void addOAuthApp(); 0058 void updateOAuthApp(); 0059 0060 void setAdminStatus(); 0061 void openRoom(); 0062 void getroombyid(); 0063 0064 void bannerDismiss(); 0065 0066 void licenseGetModules(); 0067 0068 void videoConferenceAccepted(); 0069 void videoConferenceRejected(); 0070 void videoConferenceCall(); 0071 void videoConferenceConfirmed(); 0072 0073 private: 0074 void compareFile(const QString &data, const QString &name); 0075 };