Akonadi::AgentWidgetBase Class
| Header: | #include <Akonadi/AgentWidgetBase> |
| CMake: | find_package(KPim6Akonadi REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::AkonadiAgentBase) |
| Inherits: | Akonadi::AgentBase |
Static Public Members
| int | init(int argc, char **argv) |
Protected Functions
| AgentWidgetBase(const QString &id) |
Detailed Description
Member Function Documentation
[protected] AgentWidgetBase::AgentWidgetBase(const QString &id)
[static] template <typename T> int AgentWidgetBase::init(int argc, char **argv)
Use this method in the main function of your agent application to initialize your agent subclass. This method also takes care of creating a QApplication object and parsing command line arguments.
Note: In case the given class is also derived from AgentBase::Observer it gets registered as its own observer (see AgentBase::Observer), e.g. <tt>agentInstance->registerObserver( agentInstance );</tt>
class MyAgent : public AgentBase
{
...
};
AKONADI_AGENT_MAIN( MyAgent )
argc number of arguments argv arguments for the function