diff options
Diffstat (limited to 'framework/mail/folderlistcontroller.cpp')
-rw-r--r-- | framework/mail/folderlistcontroller.cpp | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/framework/mail/folderlistcontroller.cpp b/framework/mail/folderlistcontroller.cpp deleted file mode 100644 index 46a6f648..00000000 --- a/framework/mail/folderlistcontroller.cpp +++ /dev/null | |||
@@ -1,69 +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 | #include "folderlistcontroller.h" | ||
22 | |||
23 | #include "folderlistmodel.h" | ||
24 | |||
25 | #include <QDebug> | ||
26 | |||
27 | FolderListController::FolderListController(QObject *parent) : QObject(parent), m_model(new FolderListModel) | ||
28 | { | ||
29 | |||
30 | } | ||
31 | |||
32 | QString FolderListController::accountId() const | ||
33 | { | ||
34 | return m_accountId; | ||
35 | } | ||
36 | |||
37 | void FolderListController::setAccountId(const QString &id) | ||
38 | { | ||
39 | if(m_accountId != id) { | ||
40 | m_accountId = id; | ||
41 | |||
42 | loadFolders(id); | ||
43 | |||
44 | emit accountIdChanged(); | ||
45 | } | ||
46 | } | ||
47 | |||
48 | FolderListModel* FolderListController::model() const | ||
49 | { | ||
50 | return m_model.data(); | ||
51 | } | ||
52 | |||
53 | void FolderListController::loadFolders(const QString &id) | ||
54 | { | ||
55 | //load foldermodel from sink | ||
56 | |||
57 | } | ||
58 | |||
59 | |||
60 | void FolderListController::addFolder(const QString &name) | ||
61 | { | ||
62 | qDebug() << "User Action: add folder " << name; | ||
63 | } | ||
64 | |||
65 | void FolderListController::deleteFolder(const QString &id) | ||
66 | { | ||
67 | qDebug() << "User Action: delete folder " << id; | ||
68 | } | ||
69 | |||