Libksieve

sievescriptdebuggerwidget.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_export.h"
10#include <QWidget>
11class QStackedWidget;
12class QLabel;
13namespace KSieveUi
14{
15class SieveScriptDebuggerFrontEndWidget;
16/**
17 * @brief The SieveScriptDebuggerWidget class
18 * @author Laurent Montel <montel@kde.org>
19 */
20class KSIEVEUI_EXPORT SieveScriptDebuggerWidget : public QWidget
21{
22 Q_OBJECT
23public:
24 explicit SieveScriptDebuggerWidget(QWidget *parent = nullptr);
26
27 void setScript(const QString &script);
28 [[nodiscard]] QString script() const;
29
30 [[nodiscard]] bool canAccept() const;
31
32 [[nodiscard]] QList<int> splitterSizes() const;
33 void setSplitterSizes(const QList<int> &sizes);
34
35 [[nodiscard]] bool haveDebugApps() const;
36
37Q_SIGNALS:
38 void scriptTextChanged();
39 void debugScriptButtonClicked();
40 void debugButtonEnabled(bool state);
41 void sieveTestNotFound();
42
43private:
44 KSIEVEUI_NO_EXPORT void checkSieveTestApplication();
45 QStackedWidget *mStackedWidget = nullptr;
46 SieveScriptDebuggerFrontEndWidget *mSieveScriptFrontEnd = nullptr;
47 QLabel *mSieveNoExistingFrontEnd = nullptr;
48 bool mHaveDebugApps = false;
49};
50}
The SieveScriptDebuggerWidget class.
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.