Check if server has valid subcription.

Signed-off-by: Camila Ayres <hello@camilasan.com>
This commit is contained in:
Camila Ayres 2024-06-03 19:43:31 +02:00
parent 14a5f4cc73
commit 15d75183c2
No known key found for this signature in database
GPG key ID: 7A4A6121E88E2AD4
2 changed files with 7 additions and 0 deletions

View file

@ -388,6 +388,11 @@ bool Capabilities::groupFoldersAvailable() const
return _capabilities[QStringLiteral("groupfolders")].toMap().value(QStringLiteral("hasGroupFolders"), false).toBool();
}
bool Capabilities::serverHasValidSubscription() const
{
return _capabilities[QStringLiteral("support")].toMap().value(QStringLiteral("hasValidSubscription"), false).toBool();
}
QStringList Capabilities::blacklistedFiles() const
{
return _capabilities["files"].toMap()["blacklisted_files"].toStringList();

View file

@ -173,6 +173,8 @@ public:
[[nodiscard]] bool groupFoldersAvailable() const;
[[nodiscard]] bool serverHasValidSubscription() const;
// Direct Editing
void addDirectEditor(DirectEditor* directEditor);
DirectEditor* getDirectEditorForMimetype(const QMimeType &mimeType);