diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2015-10-16 09:28:13 +0300 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2015-10-16 09:28:13 +0300 |
commit | 40ab3ee751644262e496b0535770d25e49692cfa (patch) | |
tree | cad23199d0abe679129ec603add83339de907be1 /src/gui/ocssharejob.h | |
parent | f95fea986636ed51deeb1f8d3e4060d9e7ae2db8 (diff) |
Now only 1 constructor to ocssharejob
* Pass the share_id to the functions that need it
Diffstat (limited to 'src/gui/ocssharejob.h')
-rw-r--r-- | src/gui/ocssharejob.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/gui/ocssharejob.h b/src/gui/ocssharejob.h index 5156a52ad..337f33b8c 100644 --- a/src/gui/ocssharejob.h +++ b/src/gui/ocssharejob.h @@ -57,11 +57,6 @@ public: explicit OcsShareJob(AccountPtr account, QObject *parent = 0); /** - * Constructors for existing shares of which we know the shareId - */ - explicit OcsShareJob(int shareId, AccountPtr account, QObject *parent = 0); - - /** * Get all the shares * * @param path Path to request shares for (default all shares) @@ -71,7 +66,7 @@ public: /** * Delete the current Share */ - void deleteShare(); + void deleteShare(int shareId); /** * Set the expiration date of a share @@ -79,7 +74,7 @@ public: * @param date The expire date, if this date is invalid the expire date * will be removed */ - void setExpireDate(const QDate& date); + void setExpireDate(int shareId, const QDate& date); /** * Set the password of a share @@ -87,14 +82,14 @@ public: * @param password The password of the share, if the password is empty the * share will be removed */ - void setPassword(const QString& password); + void setPassword(int shareId, const QString& password); /** * Void set the a share to be public upload * * @param publicUpload Set or remove public upload */ - void setPublicUpload(bool publicUpload); + void setPublicUpload(int shareId, bool publicUpload); /** * Create a new share |