Akonadi Search

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

KDE's Doxygen guidelines are available online.