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