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

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Weilbach <felix.weilbach@nextcloud.com>2021-08-20 16:17:06 +0300
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>2021-10-05 15:41:34 +0300
commit0c9dce1154ee61bc747909ba3599c41dd8039ada (patch)
tree20bd109aaca00eff34a6a59657331e26e6e8332f /src/gui/fileactivitylistmodel.h
parent883c78ea611ac12f596f0ad011c5a5da0842edfc (diff)
Add file activity dialog
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
Diffstat (limited to 'src/gui/fileactivitylistmodel.h')
-rw-r--r--src/gui/fileactivitylistmodel.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/gui/fileactivitylistmodel.h b/src/gui/fileactivitylistmodel.h
new file mode 100644
index 000000000..2c465dcf2
--- /dev/null
+++ b/src/gui/fileactivitylistmodel.h
@@ -0,0 +1,38 @@
+/*
+ * Copyright (C) by Felix Weilbach <felix.weilbach@nextcloud.com>
+ *
+ * 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; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ */
+
+#pragma once
+
+#include "accountstate.h"
+#include "tray/ActivityListModel.h"
+
+namespace OCC {
+
+class FileActivityListModel : public ActivityListModel
+{
+ Q_OBJECT
+
+public:
+ explicit FileActivityListModel(QObject *parent = nullptr);
+
+public slots:
+ void load(AccountState *accountState, const QString &fileId);
+
+protected:
+ void startFetchJob() override;
+
+private:
+ QString _fileId;
+};
+}