Akonadi

subscriptiondialog.h
1/*
2 SPDX-FileCopyrightText: 2007 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "akonadiwidgets_export.h"
10
11#include <QDialog>
12
13#include <memory>
14
15namespace Akonadi
16{
17class SubscriptionDialogPrivate;
18
19/**
20 * Local subscription dialog.
21 */
22class AKONADIWIDGETS_EXPORT SubscriptionDialog : public QDialog
23{
24 Q_OBJECT
25public:
26 /**
27 * Creates a new subscription dialog.
28 *
29 * @param parent The parent widget.
30 */
31 explicit SubscriptionDialog(QWidget *parent = nullptr);
32
33 /**
34 * Creates a new subscription dialog.
35 *
36 * @param parent The parent widget.
37 * @param mimetypes The specific mimetypes
38 * @since 4.6
39 */
40 explicit SubscriptionDialog(const QStringList &mimetypes, QWidget *parent = nullptr);
41
42 /**
43 * Destroys the subscription dialog.
44 *
45 * @note Don't call the destructor manually, the dialog will
46 * be destructed automatically as soon as all changes
47 * are written back to the server.
48 */
49 ~SubscriptionDialog() override;
50
51 /**
52 * @param showHidden shows hidden collections if set as @c true
53 * @since 4.9
54 */
55 void showHiddenCollection(bool showHidden);
56
57private:
58 std::unique_ptr<SubscriptionDialogPrivate> const d;
59};
60
61}
Local subscription dialog.
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:38 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.