diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2015-10-29 23:47:47 +0300 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2015-10-29 23:47:47 +0300 |
commit | c7b814337a3bb2465f38dbc40cf225a012a1ec3e (patch) | |
tree | 028bde0ab5a84eafd2a4f13ac04683d72f6687c6 /src/gui/ocssharejob.h | |
parent | dd8d02b8efb147618f7a9a176f916c010ae01a15 (diff) |
Use proper QFlags
Now the ShareTypes and Permissions are part of the Share class (which is
a bit better abstracted away).
Diffstat (limited to 'src/gui/ocssharejob.h')
-rw-r--r-- | src/gui/ocssharejob.h | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/src/gui/ocssharejob.h b/src/gui/ocssharejob.h index c029bd852..c970df920 100644 --- a/src/gui/ocssharejob.h +++ b/src/gui/ocssharejob.h @@ -15,6 +15,7 @@ #define OCSSHAREJOB_H #include "ocsjob.h" +#include "share.h" #include <QVector> #include <QList> #include <QPair> @@ -33,25 +34,6 @@ class OcsShareJob : public OcsJob { public: /** - * Support sharetypes - */ - enum ShareType : int { - Link = 3 - }; - - /** - * Possible permissions - */ - enum Permission : int { - Read = 1, - Update = 2, - Create = 4, - Delete = 8, - Share = 16, - All = 31 - }; - - /** * Constructor for new shares or listing of shares */ explicit OcsShareJob(AccountPtr account, QObject *parent = 0); @@ -99,7 +81,7 @@ public: * @param password Optionally a password for the share * @param date Optionally an expire date for the share */ - void createShare(const QString& path, ShareType shareType, const QString& password = "", const QDate& date = QDate()); + void createShare(const QString& path, Share::ShareType shareType, const QString& password = "", const QDate& date = QDate()); signals: /** |