9#include "akonadiwidgets_export.h"
21class ManageAccountWidgetPrivate;
22class AccountActivitiesAbstract;
24class AKONADIWIDGETS_EXPORT ManageAccountWidget :
public QWidget
28 explicit ManageAccountWidget(QWidget *parent);
29 ~ManageAccountWidget()
override;
35 void setDescriptionLabelText(
const QString &text);
37 void setSpecialCollectionIdentifier(
const QString &identifier);
39 [[nodiscard]] QStringList mimeTypeFilter()
const;
40 void setMimeTypeFilter(
const QStringList &mimeTypeFilter);
42 [[nodiscard]] QStringList capabilityFilter()
const;
43 void setCapabilityFilter(
const QStringList &capabilityFilter);
45 [[nodiscard]] QStringList excludeCapabilities()
const;
46 void setExcludeCapabilities(
const QStringList &excludeCapabilities);
48 void setItemDelegate(QAbstractItemDelegate *delegate);
50 [[nodiscard]] QAbstractItemView *view()
const;
52 [[nodiscard]] QPushButton *addAccountButton()
const;
53 void disconnectAddAccountButton();
55 [[nodiscard]]
bool enablePlasmaActivities()
const;
56 void setEnablePlasmaActivities(
bool newEnablePlasmaActivities);
58 [[nodiscard]] AccountActivitiesAbstract *accountActivitiesAbstract()
const;
59 void setAccountActivitiesAbstract(AccountActivitiesAbstract *abstract);
62 bool eventFilter(QObject *obj, QEvent *event)
override;
65 void slotAddAccount();
68 AKONADIWIDGETS_NO_EXPORT
void slotAccountSelected(
const Akonadi::AgentInstance ¤t);
69 AKONADIWIDGETS_NO_EXPORT
void slotRemoveSelectedAccount();
70 AKONADIWIDGETS_NO_EXPORT
void slotRestartSelectedAccount();
71 AKONADIWIDGETS_NO_EXPORT
void slotModifySelectedAccount();
72 AKONADIWIDGETS_NO_EXPORT
void slotSearchAgentType(
const QString &str);
75 std::unique_ptr<ManageAccountWidgetPrivate>
const d;
A representation of an agent instance.
Helper integration between Akonadi and Qt.