Akonadi
agentconfigurationwidget.cpp
50 qCDebug(AKONADIWIDGETS_LOG) << "Haven't found config plugin for" << agentInstance.type().identifier();
55 qCWarning(AKONADIWIDGETS_LOG) << "Failed to load config plugin" << pluginPath << ":" << loader->errorString();
62 qCWarning(AKONADIWIDGETS_LOG) << "Config plugin" << pluginPath << "does not contain AgentConfigurationFactory!";
71AgentConfigurationWidget::AgentConfigurationWidget(const AgentInstance &instance, QWidget *parent)
76 const auto pluginPath = AgentConfigurationManager::self()->findConfigPlugin(instance.type().identifier());
78 const QString configName = Akonadi::ServerManager::addNamespace(instance.identifier()) + QStringLiteral("rc");
83 connect(d->plugin.data(), &AgentConfigurationBase::enableOkButton, this, &AgentConfigurationWidget::enableOkButton);
88 new org::freedesktop::Akonadi::Agent::Control(ServerManager::agentServiceName(ServerManager::Agent, instance.identifier()),
98 connect(agentControlIface, &org::freedesktop::Akonadi::Agent::Control::configurationDialogAccepted, this, [agentControlIface, dlg]() {
102 connect(agentControlIface, &org::freedesktop::Akonadi::Agent::Control::configurationDialogRejected, this, [agentControlIface, dlg]() {
108 const_cast<AgentInstance &>(instance).configure(parentWidget ? parentWidget->window()->winId() : 0);
123 d->setupErrorWidget(this, i18n("Configuration for %1 is already opened elsewhere.", instance.name()));
125 d->setupErrorWidget(this, i18n("Failed to register %1 configuration dialog.", instance.name()));
133 AgentConfigurationManager::self()->unregisterInstanceConfiguration(d->agentInstance.identifier());
Represents one agent instance and takes care of communication with it.
Definition akonadicontrol/agentinstance.h:35
QString identifier() const
Set/get the unique identifier of this AgentInstance.
Definition akonadicontrol/agentinstance.h:44
Helper integration between Akonadi and Qt.
QString label(StandardShortcut id)
typedef StandardButtons
void addWidget(QWidget *w)
virtual void childEvent(QChildEvent *event)
virtual bool event(QEvent *e)
bool isEmpty() const const
AlignCenter
singleShot
QWidget(QWidget *parent, Qt::WindowFlags f)
QLayout * layout() const const
size
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Mar 28 2025 11:53:22 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Mar 28 2025 11:53:22 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.