Akonadi

collectionrequester.h
1 /*
2  SPDX-FileCopyrightText: 2008 Ingo Klöcker <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef AKONADI_COLLECTIONREQUESTER_H
8 #define AKONADI_COLLECTIONREQUESTER_H
9 
10 #include "akonadiwidgets_export.h"
11 #include "collection.h"
12 #include "collectiondialog.h"
13 #include <QWidget>
14 
15 namespace Akonadi
16 {
17 
45 class AKONADIWIDGETS_EXPORT CollectionRequester : public QWidget
46 {
47  Q_OBJECT
48  Q_DISABLE_COPY(CollectionRequester)
49 
50 public:
56  explicit CollectionRequester(QWidget *parent = nullptr);
57 
64  explicit CollectionRequester(const Akonadi::Collection &collection, QWidget *parent = nullptr);
65 
69  ~CollectionRequester() override;
70 
75  Q_REQUIRED_RESULT Akonadi::Collection collection() const;
76 
80  void setMimeTypeFilter(const QStringList &mimeTypes);
81 
85  Q_REQUIRED_RESULT QStringList mimeTypeFilter() const;
86 
92  void setAccessRightsFilter(Collection::Rights rights);
93 
98  Q_REQUIRED_RESULT Collection::Rights accessRightsFilter() const;
99 
103  void changeCollectionDialogOptions(CollectionDialog::CollectionDialogOptions options);
104 
109  void setContentMimeTypes(const QStringList &mimetypes);
110 
111 protected:
112  void changeEvent(QEvent *event) override;
113 
114 public Q_SLOTS:
118  void setCollection(const Akonadi::Collection &collection);
119 
120 Q_SIGNALS:
128  void collectionChanged(const Akonadi::Collection &collection);
129 
130 private:
131  class Private;
132  Private *const d;
133 };
134 
135 } // namespace Akonadi
136 
137 #endif // AKONADI_COLLECTIONREQUESTER_H
Represents a collection of PIM items.
Definition: collection.h:63
A widget to request an Akonadi collection from the user.
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Nov 26 2020 23:15:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.