Libksieve

selectmatchtypecombobox.h
1/*
2 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#pragma once
7
8#include <QComboBox>
9
10namespace KSieveUi
11{
12class SieveEditorGraphicalModeWidget;
13class SelectMatchTypeComboBox : public QComboBox
14{
16public:
17 explicit SelectMatchTypeComboBox(KSieveUi::SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, QWidget *parent = nullptr);
18 ~SelectMatchTypeComboBox() override;
19
20 [[nodiscard]] QString code(bool &negative) const;
21 void setCode(const QString &code, const QString &name, QString &error);
22
23 QStringList needRequires() const;
25 void valueChanged();
26 void switchToRegexp(bool useReg);
27
28private:
29 void slotValueChanged(int val);
30 void initialize();
31 bool mHasRegexCapability = false;
32};
33}
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:09:39 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.