Akonadi Search

akonadisearchdebugdialog.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 <QDialog>
13 
14 namespace Akonadi
15 {
16 namespace Search
17 {
18 class AkonadiSearchDebugDialogPrivate;
19 /**
20  * @brief The AkonadiSearchDebugDialog class
21  * @author Laurent Montel <[email protected]>
22  */
23 class AKONADI_SEARCH_DEBUG_EXPORT AkonadiSearchDebugDialog : public QDialog
24 {
25  Q_OBJECT
26 public:
27  explicit AkonadiSearchDebugDialog(QWidget *parent = nullptr);
28  ~AkonadiSearchDebugDialog() override;
29 
30  void setAkonadiId(Akonadi::Item::Id akonadiId);
31  void setSearchType(AkonadiSearchDebugSearchPathComboBox::SearchType type);
32  void doSearch();
33 private Q_SLOTS:
34  AKONADI_SEARCH_DEBUG_NO_EXPORT void slotSaveAs();
35 
36 private:
37  AKONADI_SEARCH_DEBUG_NO_EXPORT void readConfig();
38  AKONADI_SEARCH_DEBUG_NO_EXPORT void writeConfig();
39  AKONADI_SEARCH_DEBUG_NO_EXPORT void saveTextAs(const QString &text, const QString &filter);
40  [[nodiscard]] bool saveToFile(const QString &filename, const QString &text);
41  AkonadiSearchDebugDialogPrivate *const d;
42 };
43 }
44 }
The AkonadiSearchDebugDialog class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 04:11:42 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.