KontactInterface::UniqueAppHandler Class
class KontactInterface::UniqueAppHandler| Header: | #include <KontactInterface/UniqueAppHandler> |
| CMake: | find_package(KPim6KontactInterface REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::KontactInterface) |
| Inherits: | QObject |
Public Functions
| UniqueAppHandler(KontactInterface::Plugin *plugin) | |
| QWidget * | mainWidget() |
Public Slots
| bool | load() |
| int | newInstance(const QByteArray &startupId, const QStringList &args, const QString &workingDirectory) |
Static Public Members
| void | setMainWidget(QWidget *widget) |
Detailed Description
D-Bus Object that has the name of the standalone application (e.g. "kmail") and implements newInstance() so that running the separate application does the right thing when kontact is running. By default this means simply bringing the main window to the front, but newInstance can be reimplemented.
Member Function Documentation
[explicit] UniqueAppHandler::UniqueAppHandler(KontactInterface::Plugin *plugin)
Creates a new handler for plugin.
[slot] bool UniqueAppHandler::load()
QWidget *UniqueAppHandler::mainWidget()
Returns the main widget, which will zero if setMainWidget() has not be called yet.
See also setMainWidget().
[slot] int UniqueAppHandler::newInstance(const QByteArray &startupId, const QStringList &args, const QString &workingDirectory)
[static] void UniqueAppHandler::setMainWidget(QWidget *widget)
Sets the main QWidget widget associated with this application. widget the QWidget to set as main
See also mainWidget().