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
27 #include "storagedebuggerinterface.h"
28 namespace KPIMTextEdit
30 class RichTextEditorWidget
;
34 class QueryDebuggerModel
;
36 class QueryDebugger
: public QWidget
41 explicit QueryDebugger(QWidget
*parent
= Q_NULLPTR
);
42 virtual ~QueryDebugger();
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
);
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