Akonadi Search

akonadisearchdebugwidget.h
1/*
2 SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "akonadisearchdebugsearchpathcombobox.h"
10#include "search_debug_export.h"
11#include <Akonadi/Item>
12#include <QWidget>
13class KLineEdit;
14class QPushButton;
15class QPlainTextEdit;
16namespace Akonadi
17{
18namespace Search
19{
20/**
21 * @brief The AkonadiSearchDebugWidget class
22 */
23class AKONADI_SEARCH_DEBUG_EXPORT AkonadiSearchDebugWidget : public QWidget
24{
25 Q_OBJECT
26public:
27 explicit AkonadiSearchDebugWidget(QWidget *parent = nullptr);
29
30 void setAkonadiId(Akonadi::Item::Id akonadiId);
31 void setSearchType(AkonadiSearchDebugSearchPathComboBox::SearchType type);
32 void doSearch();
33
34 [[nodiscard]] QString plainText() const;
35
36private:
37 AKONADI_SEARCH_DEBUG_NO_EXPORT void slotSearchLineTextChanged(const QString &text);
38 AKONADI_SEARCH_DEBUG_NO_EXPORT void slotSearch();
39 AKONADI_SEARCH_DEBUG_NO_EXPORT void slotResult(const QString &result);
40 AKONADI_SEARCH_DEBUG_NO_EXPORT void slotError(const QString &errorStr);
41 QPlainTextEdit *const mPlainTextEditor;
42 AkonadiSearchDebugSearchPathComboBox *const mSearchPathComboBox;
43 KLineEdit *const mLineEdit;
44 QPushButton *const mSearchButton;
45};
46}
47}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:07 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.