KontactInterface
pimuniqueapplication.cpp
103 const QString objectName = QLatin1Char('/') + QApplication::applicationName() + "_PimApplication"_L1;
110static bool callNewInstance(const QString &appName, const QString &serviceName, const QByteArray &asn_id, const QStringList &arguments)
113 QDBusInterface iface(serviceName, objectName, QStringLiteral("org.kde.PIMUniqueApplication"), QDBusConnection::sessionBus());
115 QDBusReply<int> reply = iface.call(QStringLiteral("newInstance"), asn_id, arguments, QDir::currentPath());
125 return newInstance(QByteArray(), QStringList() << QApplication::applicationName(), QDir::currentPath());
165int PimUniqueApplication::newInstance(const QByteArray &startupId, const QStringList &arguments, const QString &workingDirectory)
190int PimUniqueApplication::activate(const QStringList &arguments, const QString &workingDirectory)
static void setApplicationData(const KAboutData &aboutData)
bool setupCommandLine(QCommandLineParser *parser)
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()
KDEPIM applications which can be integrated into kontact should use PimUniqueApplication instead of Q...
Definition pimuniqueapplication.h:27
static bool start(const QStringList &arguments)
Register this process as a unique application, if not already running.
Definition pimuniqueapplication.cpp:128
QCA_EXPORT QString appName()
qAppqApp
QWidgetList topLevelWidgets()
applicationName
QStringList arguments()
ExportScriptableSlots
bool registerObject(const QString &path, QObject *object, RegisterOptions options)
bool registerService(const QString &serviceName)
QDBusConnection sessionBus()
bool isValid() const const
QString currentPath()
PreferNoHinting
objectName
T qobject_cast(QObject *object)
QString fromUtf8(QByteArrayView str)
WA_NativeWindow
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.