akonadi
agentbase.h
224 virtual void collectionAdded(const Akonadi::Collection &collection, const Akonadi::Collection &parent);
289 virtual void collectionMoved(const Akonadi::Collection &collection, const Akonadi::Collection &collectionSource,
297 virtual void collectionChanged(const Akonadi::Collection &collection, const QSet<QByteArray> &changedAttributes);
324 virtual void itemsFlagsChanged(const Akonadi::Item::List &items, const QSet<QByteArray> &addedFlags, const QSet<QByteArray> &removedFlags);
340 virtual void itemsMoved(const Akonadi::Item::List &items, const Akonadi::Collection &sourceCollection,
349 virtual void itemsLinked(const Akonadi::Item::List &items, const Akonadi::Collection &collection);
357 virtual void itemsUnlinked(const Akonadi::Item::List &items, const Akonadi::Collection &collection);
404 virtual void itemsTagsChanged(const Akonadi::Item::List &items, const QSet<Akonadi::Tag> &addedTags, const QSet<Akonadi::Tag> &removedTags);
412 Idle = 0,
416 };
void setOnline(bool state)
Sets whether the agent shall be online or not.
virtual void doSetOnline(bool online)
This method is called whenever the online status has changed.
static int init(int argc, char **argv)
Use this method in the main function of your agent application to initialize your agent subclass.
Definition: agentbase.h:443
virtual QString statusMessage() const
This method returns an i18n'ed description of the current status code.
void agentNameChanged(const QString &name)
This signal is emitted whenever the name of the agent has changed.
virtual void configure(WId windowId)
This method is called whenever the agent shall show its configuration dialog to the user.
The interface for reacting on monitored or replayed changes.
Definition: agentbase.h:187
WId winIdForDialogs() const
This method returns the windows id, which should be used for dialogs.
virtual QString progressMessage() const
This method returns an i18n'ed description of the current progress.
void percent(int progress)
This signal should be emitted whenever the progress of an action in the agent (e.g.
virtual int status() const
This method returns the current status code of the agent.
Definition: agentbase_p.h:40
void onlineChanged(bool online)
Emitted when the online state changed.
void status(int status, const QString &message=QString())
This signal should be emitted whenever the status of the agent has been changed.
void configurationDialogRejected()
This signal is emitted whenever the user has rejected the configuration dialog.
void reloadConfiguration()
Emitted if another application has changed the agent's configuration remotely and called AgentInstanc...
void configurationDialogAccepted()
This signal is emitted whenever the user has accepted the configuration dialog.
BC extension of Observer with support for monitoring item and collection moves.
Definition: agentbase.h:246
BC extension of ObserverV2 with support for batch operations.
Definition: agentbase.h:311
void error(const QString &message)
This signal shall be used to report errors.
void setNeedsNetwork(bool needsNetwork)
Sets whether the agent needs network or not.
Observer that adds support for item tagging.
Definition: agentbase.h:370
virtual void cleanup()
This method is called when the agent is removed from the system, so it can do some cleanup stuff.
virtual void aboutToQuit()
This method is called whenever the agent application is about to quit.
void abortRequested()
Emitted when another application has remotely asked the agent to abort its current operation.
void advancedStatus(const QVariantMap &status)
This signal should be emitted whenever the status of the agent has been changed.
void warning(const QString &message)
This signal shall be used to report warnings.
void setTemporaryOffline(int makeOnlineInSeconds=300)
Sets the agent offline but will make it online again after a given time.
virtual int progress() const
This method returns the current progress of the agent in percentage.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jul 28 2020 00:00:00 by doxygen 1.8.18 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jul 28 2020 00:00:00 by doxygen 1.8.18 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.