Akonadi
agentconfigurationwidget.cpp
49 qCDebug(AKONADIWIDGETS_LOG) << "Haven't found config plugin for" << agentInstance.type().identifier();
54 qCWarning(AKONADIWIDGETS_LOG) << "Failed to load config plugin" << pluginPath << ":" << loader->errorString();
61 qCWarning(AKONADIWIDGETS_LOG) << "Config plugin" << pluginPath << "does not contain AgentConfigurationFactory!";
70AgentConfigurationWidget::AgentConfigurationWidget(const AgentInstance &instance, QWidget *parent)
75 const auto pluginPath = AgentConfigurationManager::self()->findConfigPlugin(instance.type().identifier());
77 const QString configName = Akonadi::ServerManager::addNamespace(instance.identifier()) + QStringLiteral("rc");
82 connect(d->plugin.data(), &AgentConfigurationBase::enableOkButton, this, &AgentConfigurationWidget::enableOkButton);
101 d->setupErrorWidget(this, i18n("Configuration for %1 is already opened elsewhere.", instance.name()));
103 d->setupErrorWidget(this, i18n("Failed to register %1 configuration dialog.", instance.name()));
111 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)
StandardButtons
void addWidget(QWidget *w)
virtual void childEvent(QChildEvent *event)
bool isEmpty() const const
AlignCenter
singleShot
virtual bool event(QEvent *event) override
QLayout * layout() const const
size
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.