summaryrefslogtreecommitdiffstats
path: root/framework/domain/singlemailcontroller.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-03-09 15:20:31 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-03-09 15:20:31 +0100
commitf5185c4799fe0e9c31a218dfc8310515ac921c2b (patch)
tree5524d7a85c8bf82890d79ec6d1bb82b5124fd3b3 /framework/domain/singlemailcontroller.h
parentc9ccf868f5d533a07811b949577f772f618d2de3 (diff)
downloadkube-f5185c4799fe0e9c31a218dfc8310515ac921c2b.tar.gz
kube-f5185c4799fe0e9c31a218dfc8310515ac921c2b.zip
Moved framework/mail to framework/domain
Diffstat (limited to 'framework/domain/singlemailcontroller.h')
-rw-r--r--framework/domain/singlemailcontroller.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/framework/domain/singlemailcontroller.h b/framework/domain/singlemailcontroller.h
new file mode 100644
index 00000000..283b03c4
--- /dev/null
+++ b/framework/domain/singlemailcontroller.h
@@ -0,0 +1,49 @@
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 "maillistmodel.h"
24
25#include <QObject>
26#include <QString>
27#include <QDateTime>
28#include <QScopedPointer>
29
30class SingleMailController : public QObject
31{
32 Q_OBJECT
33 Q_PROPERTY (MailListModel *model READ model CONSTANT)
34
35public:
36 explicit SingleMailController(QObject *parent = Q_NULLPTR);
37 ~SingleMailController();
38
39 MailListModel *model() const;
40
41Q_SIGNALS:
42 void messageChanged();
43
44public slots:
45 void loadMail(const QString &id);
46
47private:
48 QScopedPointer<MailListModel> m_model;
49};