summaryrefslogtreecommitdiffstats
path: root/framework/domain/folderlistcontroller.h
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2016-03-09 16:28:57 +0100
committerMichael Bohlender <michael.bohlender@kdemail.net>2016-03-09 16:28:57 +0100
commitbae0a227350a4e602fd605e467728112f766eb4f (patch)
tree68cc3ec354acf85ab99db670d4592347489709a6 /framework/domain/folderlistcontroller.h
parentaca02709fedabf9028768fe9a699f31a91b4ab0e (diff)
downloadkube-bae0a227350a4e602fd605e467728112f766eb4f.tar.gz
kube-bae0a227350a4e602fd605e467728112f766eb4f.zip
remove controller that are not longer needed
Diffstat (limited to 'framework/domain/folderlistcontroller.h')
-rw-r--r--framework/domain/folderlistcontroller.h56
1 files changed, 0 insertions, 56 deletions
diff --git a/framework/domain/folderlistcontroller.h b/framework/domain/folderlistcontroller.h
deleted file mode 100644
index 11057f21..00000000
--- a/framework/domain/folderlistcontroller.h
+++ /dev/null
@@ -1,56 +0,0 @@
1/*
2 Copyright (c) 2016 Michael Bohlender <michael.bohlender@kdemail.net>
3 Copyright (c) 2016 Christian Mollekopf <mollekopf@kolabsys.com>
4
5 This library is free software; you can redistribute it and/or modify it
6 under the terms of the GNU Library General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or (at your
8 option) any later version.
9
10 This library is distributed in the hope that it will be useful, but WITHOUT
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to the
17 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 02110-1301, USA.
19*/
20
21#pragma once
22
23#include "folderlistmodel.h"
24
25#include <QObject>
26#include <QScopedPointer>
27#include <QString>
28
29class FolderListController : public QObject
30{
31 Q_OBJECT
32 Q_PROPERTY (QString accountId READ accountId WRITE setAccountId NOTIFY accountIdChanged)
33 Q_PROPERTY (FolderListModel *model READ model CONSTANT)
34
35public:
36 explicit FolderListController(QObject *parent = Q_NULLPTR);
37
38 QString accountId() const;
39 void setAccountId(const QString &id);
40
41 FolderListModel *model() const;
42
43 void loadFolders(const QString &id);
44
45signals:
46 void accountIdChanged();
47
48public slots:
49 void deleteFolder(const QString &id);
50 void addFolder(const QString &name);
51
52
53private:
54 QString m_accountId;
55 QScopedPointer<FolderListModel> m_model;
56};