Mailcommon

collectiontemplateswidget.h
1/*
2 SPDX-FileCopyrightText: 2020-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 <Akonadi/Collection>
11#include <QWidget>
12class QCheckBox;
13namespace TemplateParser
14{
15class TemplatesConfiguration;
16}
17
18namespace MailCommon
19{
20/**
21 * @brief The CollectionTemplateWidget class
22 * @author Laurent Montel <montel@kde.org>
23 */
24class MAILCOMMON_EXPORT CollectionTemplatesWidget : public QWidget
25{
26 Q_OBJECT
27public:
28 explicit CollectionTemplatesWidget(QWidget *parent = nullptr);
30 void save(Akonadi::Collection &);
31 void load(const Akonadi::Collection &col);
32
33private:
34 MAILCOMMON_NO_EXPORT void slotCopyGlobal();
35 MAILCOMMON_NO_EXPORT void slotChanged();
36 QCheckBox *const mCustom;
38 QString mCollectionId;
39 uint mIdentity = 0;
40 bool mChanged = false;
41};
42}
The CollectionTemplateWidget class.
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.