summaryrefslogtreecommitdiffstats
path: root/framework/mail/singlemailcontroller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'framework/mail/singlemailcontroller.cpp')
-rw-r--r--framework/mail/singlemailcontroller.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/framework/mail/singlemailcontroller.cpp b/framework/mail/singlemailcontroller.cpp
deleted file mode 100644
index 8ee4acbb..00000000
--- a/framework/mail/singlemailcontroller.cpp
+++ /dev/null
@@ -1,46 +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 "singlemailcontroller.h"
22
23SingleMailController::SingleMailController(QObject *parent) : QObject(parent), m_model(new MailListModel)
24{
25
26}
27
28SingleMailController::~SingleMailController()
29{
30
31}
32
33MailListModel* SingleMailController::model() const
34{
35 return m_model.data();
36}
37
38
39void SingleMailController::loadMail(const QString &id)
40{
41 Sink::Query query;
42 query.liveQuery = false;
43 query.requestedProperties << "subject" << "sender" << "senderName" << "date" << "unread" << "important" << "mimeMessage";
44 query.ids << id.toLatin1();
45 m_model->runQuery(query);
46} \ No newline at end of file