diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-03-09 15:20:31 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-03-09 15:20:31 +0100 |
commit | f5185c4799fe0e9c31a218dfc8310515ac921c2b (patch) | |
tree | 5524d7a85c8bf82890d79ec6d1bb82b5124fd3b3 /framework/mail/folderlistmodel.h | |
parent | c9ccf868f5d533a07811b949577f772f618d2de3 (diff) | |
download | kube-f5185c4799fe0e9c31a218dfc8310515ac921c2b.tar.gz kube-f5185c4799fe0e9c31a218dfc8310515ac921c2b.zip |
Moved framework/mail to framework/domain
Diffstat (limited to 'framework/mail/folderlistmodel.h')
-rw-r--r-- | framework/mail/folderlistmodel.h | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/framework/mail/folderlistmodel.h b/framework/mail/folderlistmodel.h deleted file mode 100644 index 7844e59a..00000000 --- a/framework/mail/folderlistmodel.h +++ /dev/null | |||
@@ -1,50 +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 <QObject> | ||
24 | #include <QIdentityProxyModel> | ||
25 | #include <QSharedPointer> | ||
26 | #include <QStringList> | ||
27 | |||
28 | class FolderListModel : public QIdentityProxyModel | ||
29 | { | ||
30 | Q_OBJECT | ||
31 | |||
32 | public: | ||
33 | FolderListModel(QObject *parent = Q_NULLPTR); | ||
34 | ~FolderListModel(); | ||
35 | |||
36 | QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; | ||
37 | |||
38 | enum Roles { | ||
39 | Name = Qt::UserRole + 1, | ||
40 | Icon, | ||
41 | Id, | ||
42 | DomainObject | ||
43 | }; | ||
44 | Q_ENUMS(Roles) | ||
45 | |||
46 | QHash<int, QByteArray> roleNames() const; | ||
47 | |||
48 | private: | ||
49 | QSharedPointer<QAbstractItemModel> mModel; | ||
50 | }; | ||