return _isShareDisabledEncryptedFolder;
}
+bool ShareModel::displayFileOwner() const
+{
+ return _displayFileOwner;
+}
+
QVariantList ShareModel::sharees() const
{
QVariantList returnSharees;
Q_PROPERTY(bool hasInitialShareFetchCompleted READ hasInitialShareFetchCompleted NOTIFY hasInitialShareFetchCompletedChanged)
Q_PROPERTY(bool serverAllowsResharing READ serverAllowsResharing NOTIFY serverAllowsResharingChanged)
Q_PROPERTY(QVariantList sharees READ sharees NOTIFY shareesChanged)
+ Q_PROPERTY(bool displayFileOwner READ displayFileOwner NOTIFY displayFileOwnerChanged)
public:
enum Roles {
[[nodiscard]] QVariantList sharees() const;
+ [[nodiscard]] bool displayFileOwner() const;
[[nodiscard]] Q_INVOKABLE static QString generatePassword();
signals:
void shareesChanged();
void internalLinkReady();
void serverAllowsResharingChanged();
+ void displayFileOwnerChanged();
void serverError(const int code, const QString &message) const;
void passwordSetError(const QString &shareId, const int code, const QString &message);
SyncJournalFileLockInfo _filelockState;
QString _privateLinkUrl;
QByteArray _fileRemoteId;
+ bool _displayFileOwner = false;
QSharedPointer<ShareManager> _manager;