Q_EMIT sharingEnabledChanged();
Q_EMIT publicLinkSharesEnabledChanged();
Q_EMIT userGroupSharingEnabledChanged();
+ Q_EMIT resharingAllowedChanged();
updateData();
}
return _maxSharingPermissions & SharePermissionShare;
}
+bool ShareModel::resharingAllowed() const
+{
+ return _accountState && _accountState->account() && _accountState->account()->capabilities().isValid()
+ && _accountState->account()->capabilities().shareResharing();
+}
+
QVariantList ShareModel::sharees() const
{
QVariantList returnSharees;
Q_PROPERTY(bool canShare READ canShare NOTIFY sharePermissionsChanged)
Q_PROPERTY(bool fetchOngoing READ fetchOngoing NOTIFY fetchOngoingChanged)
Q_PROPERTY(bool hasInitialShareFetchCompleted READ hasInitialShareFetchCompleted NOTIFY hasInitialShareFetchCompletedChanged)
+ Q_PROPERTY(bool resharingAllowed READ resharingAllowed NOTIFY resharingAllowedChanged)
Q_PROPERTY(QVariantList sharees READ sharees NOTIFY shareesChanged)
public:
[[nodiscard]] bool publicLinkSharesEnabled() const;
[[nodiscard]] bool userGroupSharingEnabled() const;
[[nodiscard]] bool canShare() const;
+ [[nodiscard]] bool resharingAllowed() const;
[[nodiscard]] bool fetchOngoing() const;
[[nodiscard]] bool hasInitialShareFetchCompleted() const;
void hasInitialShareFetchCompletedChanged();
void shareesChanged();
void internalLinkReady();
+ void resharingAllowedChanged();
void serverError(const int code, const QString &message);
void passwordSetError(const QString &shareId, const int code, const QString &message);