KontactInterface
uniqueapphandler.cpp
59 4c) close kaddressbook, type "kaddressbook -a foo@kde.org" -> kontact loads part and opens editor
103int UniqueAppHandler::newInstance(const QByteArray &startupId, const QStringList &args, const QString &workingDirectory)
123int KontactInterface::UniqueAppHandler::activate(const QStringList &args, const QString &workingDirectory)
173 d->mRunningStandalone = QDBusConnection::sessionBus().interface()->isServiceRegistered(serviceName);
197 qCDebug(KONTACTINTERFACE_LOG) << " plugin->objectName()=" << plugin->objectName() << " running standalone:" << d->mRunningStandalone;
219void KontactInterface::UniqueAppWatcher::slotApplicationRemoved(const QString &name, const QString &oldOwner, const QString &newOwner)
static void appStarted()
static void setStartupId(const QByteArray &startup_id)
static Q_INVOKABLE void activateWindow(QWindow *window, long time=0)
static bool isPlatformX11()
static Q_INVOKABLE void setCurrentXdgActivationToken(const QString &token)
static bool isPlatformWayland()
Base class for UniqueAppHandler.
Definition uniqueapphandler.h:66
virtual void loadCommandLineOptions(QCommandLineParser *parser)=0
This must be reimplemented so that app-specific command line options can be parsed.
static void setMainWidget(QWidget *widget)
Sets the main QWidget widget associated with this application.
Definition uniqueapphandler.cpp:232
QWidget * mainWidget()
Returns the main widget, which will zero if setMainWidget() has not be called yet.
Definition uniqueapphandler.cpp:237
If the standalone application is running by itself, we need to watch for when the user closes it,...
Definition uniqueapphandler.h:97
UniqueAppWatcher(UniqueAppHandlerFactoryBase *factory, Plugin *plugin)
Create an instance of UniqueAppWatcher, which does everything necessary for the "unique application" ...
Definition uniqueapphandler.cpp:162
QCA_EXPORT QString appName()
This file is part of the kpimutils library.
void process(const QCoreApplication &app)
ExportAllSlots
QString baseService() const const
QDBusConnectionInterface * interface() const const
bool registerObject(const QString &path, QObject *object, RegisterOptions options)
bool registerService(const QString &serviceName)
QDBusConnection sessionBus()
bool unregisterService(const QString &serviceName)
void serviceOwnerChanged(const QString &name, const QString &oldOwner, const QString &newOwner)
QDBusReply< bool > isServiceRegistered(const QString &serviceName) const const
QDBusReply< QString > serviceOwner(const QString &name) const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
objectName
QObject * parent() const const
QString fromUtf8(QByteArrayView str)
bool isEmpty() const const
void show()
QWindow * windowHandle() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:42 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:19:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.