9#include "akonadiagentbase_export.h"
15class Akonadi__AccountsAdaptor;
18class AKONADIAGENTBASE_EXPORT AccountsIntegration :
public QObject
22 friend class ::Akonadi__AccountsAdaptor;
25 explicit AccountsIntegration();
26 ~AccountsIntegration()
override =
default;
31 [[nodiscard]]
bool isEnabled()
const;
33 using AuthDataCallback = std::function<void(
const QVariantMap &)>;
34 using ErrorCallback = std::function<void(
const QString &)>;
35 void requestAuthData(
const QString &serviceType, AuthDataCallback &&cb, ErrorCallback &&err);
37 std::optional<QString> accountName()
const;
39 std::optional<quint32> accountId()
const;
40 void setAccountId(quint32 accountId);
43 void accountChanged();
47 AKONADIAGENTBASE_NO_EXPORT quint32 getAccountId()
const;
49 std::optional<quint32> mAccountId;
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:58 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.