Akonadi Search

akonadisearchdebugwidget.h
1 /*
2  SPDX-FileCopyrightText: 2014-2023 Laurent Montel <[email protected]>
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>
13 class KLineEdit;
14 class QPushButton;
15 class QPlainTextEdit;
16 namespace Akonadi
17 {
18 namespace Search
19 {
20 /**
21  * @brief The AkonadiSearchDebugWidget class
22  */
23 class AKONADI_SEARCH_DEBUG_EXPORT AkonadiSearchDebugWidget : public QWidget
24 {
25  Q_OBJECT
26 public:
27  explicit AkonadiSearchDebugWidget(QWidget *parent = nullptr);
28  ~AkonadiSearchDebugWidget() override;
29 
30  void setAkonadiId(Akonadi::Item::Id akonadiId);
31  void setSearchType(AkonadiSearchDebugSearchPathComboBox::SearchType type);
32  void doSearch();
33 
34  [[nodiscard]] QString plainText() const;
35 
36 private Q_SLOTS:
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 
42 private:
43  QPlainTextEdit *const mPlainTextEditor;
44  AkonadiSearchDebugSearchPathComboBox *const mSearchPathComboBox;
45  KLineEdit *const mLineEdit;
46  QPushButton *const mSearchButton;
47 };
48 }
49 }
The AkonadiSearchDebugWidget class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Nov 29 2023 04:08:49 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.