Warning, file /network/ruqola/src/rocketchatrestapi-qt/createchannelteaminfo.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 #pragma once 0007 0008 #include "librocketchatrestapi-qt_export.h" 0009 #include <QDebug> 0010 #include <QJsonDocument> 0011 #include <QString> 0012 #include <QStringList> 0013 namespace RocketChatRestApi 0014 { 0015 struct LIBROCKETCHATRESTAPI_QT_EXPORT CreateChannelTeamInfo { 0016 Q_GADGET 0017 public: 0018 enum CreateInfoType { 0019 Unknown = 0, 0020 Channel = 1, 0021 Team = 2, 0022 }; 0023 Q_ENUM(CreateInfoType) 0024 0025 [[nodiscard]] bool isValid() const; 0026 [[nodiscard]] bool canStart() const; 0027 QString name; 0028 QString description; 0029 QString teamId; 0030 0031 QStringList members; 0032 bool readOnly = false; 0033 bool broadcast = false; 0034 bool encrypted = false; 0035 0036 bool privateChannel = false; 0037 CreateInfoType infoType = CreateInfoType::Unknown; 0038 0039 [[nodiscard]] QJsonDocument json() const; 0040 }; 0041 } 0042 Q_DECLARE_TYPEINFO(RocketChatRestApi::CreateChannelTeamInfo, Q_MOVABLE_TYPE); 0043 LIBROCKETCHATRESTAPI_QT_EXPORT QDebug operator<<(QDebug d, const RocketChatRestApi::CreateChannelTeamInfo &t);