Akonadi
agentactionmanager.cpp
35} agentActionData[] = {{"akonadi_agentinstance_create", kli18n("&New Agent Instance..."), "folder-new", 0, SLOT(slotCreateAgentInstance())},
36 {"akonadi_agentinstance_delete", kli18n("&Delete Agent Instance"), "edit-delete", 0, SLOT(slotDeleteAgentInstance())},
37 {"akonadi_agentinstance_configure", kli18n("&Configure Agent Instance"), "configure", 0, SLOT(slotConfigureAgentInstance())}};
40static_assert(numAgentActionData == AgentActionManager::LastType, "agentActionData table does not match AgentActionManager types");
53 setContextText(AgentActionManager::CreateAgentInstance, AgentActionManager::DialogTitle, i18nc("@title:window", "New Agent Instance"));
55 setContextText(AgentActionManager::CreateAgentInstance, AgentActionManager::ErrorMessageText, ki18n("Could not create agent instance: %1"));
61 setContextText(AgentActionManager::DeleteAgentInstance, AgentActionManager::MessageBoxTitle, i18nc("@title:window", "Delete Agent Instance?"));
125 dlg->setWindowTitle(contextText(AgentActionManager::CreateAgentInstance, AgentActionManager::DialogTitle));
183 contextText(AgentActionManager::CreateAgentInstance, AgentActionManager::ErrorMessageText).arg(job->errorString()),
188 void setContextText(AgentActionManager::Type type, AgentActionManager::TextContext context, const QString &data)
193 void setContextText(AgentActionManager::Type type, AgentActionManager::TextContext context, const KLocalizedString &data)
198 QString contextText(AgentActionManager::Type type, AgentActionManager::TextContext context) const
314void AgentActionManager::setContextText(Type type, TextContext context, const KLocalizedString &text)
Represents one agent instance and takes care of communication with it.
Definition akonadicontrol/agentinstance.h:35
Manages generic actions for agent and agent instance views.
Definition agentactionmanager.h:34
~AgentActionManager() override
Destroys the agent action manager.
void setContextText(Type type, TextContext context, const QString &text)
Sets the text of the action type for the given context.
Definition agentactionmanager.cpp:309
void interceptAction(Type type, bool intercept=true)
Sets whether the default implementation for the given action type shall be executed when the action i...
Definition agentactionmanager.cpp:287
Akonadi::AgentInstance::List selectedAgentInstances() const
Returns the list of agent instances that are currently selected.
Definition agentactionmanager.cpp:304
void setCapabilityFilter(const QStringList &capabilities)
Sets the capability filter that will be used when creating new agent instances.
Definition agentactionmanager.cpp:240
void createAllActions()
Convenience method to create all standard actions.
Definition agentactionmanager.cpp:273
QAction * createAction(Type type)
Creates the action of the given type and adds it to the action collection specified in the constructo...
Definition agentactionmanager.cpp:245
AgentActionManager(KActionCollection *actionCollection, QWidget *parent=nullptr)
Creates a new agent action manager.
Definition agentactionmanager.cpp:217
void setMimeTypeFilter(const QStringList &mimeTypes)
Sets the mime type filter that will be used when creating new agent instances.
Definition agentactionmanager.cpp:235
void setSelectionModel(QItemSelectionModel *model)
Sets the agent selection model based on which the actions should operate.
Definition agentactionmanager.cpp:227
QAction * action(Type type) const
Returns the action of the given type, 0 if it has not been created (yet).
Definition agentactionmanager.cpp:281
Job for creating new agent instances.
Definition agentinstancecreatejob.h:62
virtual QString errorString() const
int error() const
void result(KJob *job)
virtual Q_SCRIPTABLE void start()=0
QString toString() const
KLocalizedString KI18N_EXPORT ki18n(const char *text)
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
Helper integration between Akonadi and Qt.
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
Dangerous
ButtonCode questionTwoActions(QWidget *parent, const QString &text, const QString &title, const KGuiItem &primaryAction, const KGuiItem &secondaryAction, const QString &dontAskAgainName=QString(), Options options=Notify)
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)
QString name(StandardAction id)
KGuiItem cancel()
KGuiItem del()
QString label(StandardShortcut id)
const QList< QKeySequence > & shortcut(StandardShortcut id)
void setIcon(const QIcon &icon)
void setShortcut(const QKeySequence &shortcut)
void setText(const QString &text)
Accepted
QIcon fromTheme(const QString &name)
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool disconnect(const QMetaObject::Connection &connection)
QObject * parent() const const
QString fromLatin1(QByteArrayView str)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.