SVN_SILENT made messages (.desktop file) - always resolve ours
[kdepim.git] / akonadiconsole / querydebugger.h
blobc1a43bffa5c970d75c4a3f8729a86b3ca8a9b6bc
1 /*
2 * Copyright (C) 2013 Daniel Vrátil <dvratil@redhat.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #ifndef QUERYDEBUGGER_H
21 #define QUERYDEBUGGER_H
23 #include <QWidget>
24 #include <QMap>
25 #include <QVariant>
27 #include "storagedebuggerinterface.h"
28 namespace KPIMTextEdit
30 class RichTextEditorWidget;
33 class QCheckBox;
34 class QueryDebuggerModel;
36 class QueryDebugger : public QWidget
38 Q_OBJECT
40 public:
41 explicit QueryDebugger(QWidget *parent = Q_NULLPTR);
42 virtual ~QueryDebugger();
44 private Q_SLOTS:
45 void addQuery(double sequence, uint duration, const QString &query,
46 const QMap<QString, QVariant> &values, int resultsCount,
47 const QList<QList<QVariant> > &result, const QString &error);
48 void clear();
50 private:
51 QString variantToString(const QVariant &val);
53 org::freedesktop::Akonadi::StorageDebugger *mDebugger;
55 KPIMTextEdit::RichTextEditorWidget *mView;
56 QueryDebuggerModel *mModel;
57 QCheckBox *mOnlyAggregate;
60 #endif // QUERYDEBUGGER_H