summaryrefslogtreecommitdiffstats
path: root/framework/src/logmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/logmodel.h')
-rw-r--r--framework/src/logmodel.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/framework/src/logmodel.h b/framework/src/logmodel.h
new file mode 100644
index 00000000..73909e87
--- /dev/null
+++ b/framework/src/logmodel.h
@@ -0,0 +1,41 @@
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#include "kube_export.h"
23
24#include <QStandardItemModel>
25#include <QVariantMap>
26#include <fabric.h>
27
28class KUBE_EXPORT LogModel : public QStandardItemModel
29{
30 Q_OBJECT
31
32public:
33 LogModel(QObject *parent = Q_NULLPTR);
34 ~LogModel();
35
36 Q_INVOKABLE void insert(const QVariantMap &);
37
38private:
39 // QSharedPointer<Kube::Fabric::Listener> mListener;
40 QHash<QByteArray, int> mRoles;
41};