Libksieve

sievescriptdebuggerdialog.h
1/*
2 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "ksieveui_private_export.h"
10#include <QDialog>
11
12class QPushButton;
13namespace KSieveUi
14{
15class SieveScriptDebuggerWidget;
16class KSIEVEUI_TESTS_EXPORT SieveScriptDebuggerDialog : public QDialog
17{
18 Q_OBJECT
19public:
20 explicit SieveScriptDebuggerDialog(QWidget *parent = nullptr);
21 ~SieveScriptDebuggerDialog() override;
22
23 void setScript(const QString &script);
24 [[nodiscard]] QString script() const;
25
26private:
27 void slotScriptTextChanged();
28 void slotAccepted();
29 void writeConfig();
30 void readConfig();
31 void debugButtonEnableStateChanged(bool state);
32 void updateButtons();
33 QString mOriginScript;
34 SieveScriptDebuggerWidget *mSieveScriptDebuggerWidget = nullptr;
35 QPushButton *mOkButton = nullptr;
36 QPushButton *mDebugScriptButton = nullptr;
37};
38}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.