Akonadi

manageaccountwidget.h
1 /*
2  Copyright (c) 2014-2020 Laurent Montel <[email protected]>
3 
4  This library is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Library General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This library is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12  License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to the
16  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 */
19 
20 #ifndef MANAGEACCOUNTWIDGET_H
21 #define MANAGEACCOUNTWIDGET_H
22 
23 #include <QWidget>
24 #include "akonadiwidgets_export.h"
25 
27 class QAbstractItemView;
28 class QPushButton;
29 
30 namespace Akonadi
31 {
32 class AgentInstance;
33 class ManageAccountWidgetPrivate;
34 
35 class AKONADIWIDGETS_EXPORT ManageAccountWidget : public QWidget
36 {
37  Q_OBJECT
38 public:
39  explicit ManageAccountWidget(QWidget *parent);
40  ~ManageAccountWidget() override;
41 
46  void setDescriptionLabelText(const QString &text);
47 
48  void setSpecialCollectionIdentifier(const QString &identifier);
49 
50  Q_REQUIRED_RESULT QStringList mimeTypeFilter() const;
51  void setMimeTypeFilter(const QStringList &mimeTypeFilter);
52 
53  Q_REQUIRED_RESULT QStringList capabilityFilter() const;
54  void setCapabilityFilter(const QStringList &capabilityFilter);
55 
56  Q_REQUIRED_RESULT QStringList excludeCapabilities() const;
57  void setExcludeCapabilities(const QStringList &excludeCapabilities);
58 
59  void setItemDelegate(QAbstractItemDelegate *delegate);
60 
61  Q_REQUIRED_RESULT QAbstractItemView *view() const;
62 
63  Q_REQUIRED_RESULT QPushButton *addAccountButton() const;
64  void disconnectAddAccountButton();
65 protected:
66  bool eventFilter(QObject *obj, QEvent *event) override;
67 
68 public Q_SLOTS:
69  void slotAddAccount();
70 
71 private Q_SLOTS:
72  void slotAccountSelected(const Akonadi::AgentInstance &current);
73  void slotRemoveSelectedAccount();
74  void slotRestartSelectedAccount();
75  void slotModifySelectedAccount();
76 
77 private:
79 };
80 }
81 
82 #endif // MANAGEACCOUNTWIDGET_H
Represents one agent instance and takes care of communication with it.
Helper integration between Akonadi and Qt.
A representation of an agent instance.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon May 25 2020 22:46:10 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.