Mailcommon

addtagdialog.h
1/*
2 SPDX-FileCopyrightText: 2012-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "mailcommon_export.h"
10#include "tag.h"
11#include <Akonadi/Tag>
12#include <Akonadi/TagCreateJob>
13#include <QDialog>
14#include <QList>
15
17
18namespace MailCommon
19{
20class AddTagDialogPrivate;
21class MAILCOMMON_EXPORT AddTagDialog : public QDialog
22{
23 Q_OBJECT
24public:
25 explicit AddTagDialog(const QList<KActionCollection *> &actions, QWidget *parent = nullptr);
26 ~AddTagDialog() override;
27
28 void setTags(const QList<MailCommon::Tag::Ptr> &tags);
29 [[nodiscard]] QString label() const;
30 [[nodiscard]] Akonadi::Tag tag() const;
31
32private:
33 MAILCOMMON_NO_EXPORT void slotSave();
34 MAILCOMMON_NO_EXPORT void slotTagNameChanged(const QString &text);
35 MAILCOMMON_NO_EXPORT void onTagCreated(KJob *job);
36 std::unique_ptr<AddTagDialogPrivate> const d;
37};
38}
QString label(StandardShortcut id)
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:49:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.