[OpenDocString] kdeconnect-kde (cpp)
openconfig.cpp
void OpenConfig::setXdgActivationToken(const QString &token)
{
    m_currentToken = token;
}
Sets the activation token of the extension module.
void OpenConfig::openConfiguration(const QString &deviceId, const QString &pluginId)
{
    QStringList args;

    QString argument;

    if (!deviceId.isEmpty()) {
        args << QStringLiteral("--args");
        argument = deviceId;

        if (!pluginId.isEmpty()) {
            argument += QLatin1Char(':') + pluginId;
        }

        args << argument;
    }

#if HAVE_KIO
    auto job = new KIO::CommandLauncherJob(QStringLiteral("kdeconnect-settings"), args);
    job->setDesktopName(QStringLiteral("org.kde.kdeconnect-settings"));
    job->setStartupId(m_currentToken.toUtf8());
    job->start();
#else
    QProcess::startDetached(QStringLiteral("kdeconnect-settings"), args);
#endif

    m_currentToken = QString();
}
This opens the configuration for the plugin using the given deviceId and plugin id. It takes the deviceId and plugin id as arguments.