Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-09-07 14:50:01 +0300
committerRoeland Jago Douma <rullzer@owncloud.com>2015-10-15 21:05:47 +0300
commitb293aa762c3b32fe00527647ab5b18b8dbc28541 (patch)
tree5dcab7749603a9f66a75d098051f978100b5ebce /src/gui/thumbnailjob.h
parentb5e75afc171f79a3fa97dee438dde997e27a5558 (diff)
Split sharing code
There is now a generic OCSJob which must be inherited by other jobs. This is in prepartion for the other OCS job that will come (for the Sharee API endpoint for example). More logic is moved from the sharedialog to the OcsShareJob. So in the GUI code we now only say what we want (a new share, set the password etc). And the code in libsync will make that happen. Error handling is for now still done in the GUI part. For now the ocsjob and ocssharejob live in gui but probabaly we should create a libshare or libocs at some point.
Diffstat (limited to 'src/gui/thumbnailjob.h')
-rw-r--r--src/gui/thumbnailjob.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/gui/thumbnailjob.h b/src/gui/thumbnailjob.h
new file mode 100644
index 000000000..7c58f2492
--- /dev/null
+++ b/src/gui/thumbnailjob.h
@@ -0,0 +1,38 @@
+/*
+ * Copyright (C) by Roeland Jago Douma <roeland@famdouma.nl>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * for more details.
+ */
+
+#ifndef THUMBNAILJOB_H
+#define THUMBNAILJOB_H
+
+#include "networkjobs.h"
+#include "accountfwd.h"
+
+namespace OCC {
+
+class ThumbnailJob : public AbstractNetworkJob {
+ Q_OBJECT
+public:
+ explicit ThumbnailJob(const QString& path, AccountPtr account, QObject* parent = 0);
+public slots:
+ void start() Q_DECL_OVERRIDE;
+signals:
+ void jobFinished(int statusCode, QByteArray reply);
+private slots:
+ virtual bool finished() Q_DECL_OVERRIDE;
+private:
+ QUrl _url;
+};
+
+}
+
+#endif // THUMBNAILJOB_H