mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 12:19:03 +03:00
Check if server has valid subcription.
Signed-off-by: Camila Ayres <hello@camilasan.com>
This commit is contained in:
parent
14a5f4cc73
commit
15d75183c2
2 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
|
|
|
@ -173,6 +173,8 @@ public:
|
|||
|
||||
[[nodiscard]] bool groupFoldersAvailable() const;
|
||||
|
||||
[[nodiscard]] bool serverHasValidSubscription() const;
|
||||
|
||||
// Direct Editing
|
||||
void addDirectEditor(DirectEditor* directEditor);
|
||||
DirectEditor* getDirectEditorForMimetype(const QMimeType &mimeType);
|
||||
|
|
Loading…
Reference in a new issue