/*
 * This file was generated by qdbusxml2cpp version 0.8
 * Command line was: 
 *
 * qdbusxml2cpp is Copyright (C) 2016 The Qt Company Ltd.
 *
 * This is an auto-generated file.
 * Do not edit! All changes made to it will be lost.
 */

#ifndef KLAUNCHER_INTERFACE_H
#define KLAUNCHER_INTERFACE_H

#include <QtCore/QObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
#include <QtDBus/QtDBus>

/*
 * Proxy class for interface org.kde.KSlaveLauncher
 */
class OrgKdeKSlaveLauncherInterface: public QDBusAbstractInterface
{
    Q_OBJECT
public:
    static inline const char *staticInterfaceName()
    { return "org.kde.KSlaveLauncher"; }

public:
    OrgKdeKSlaveLauncherInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr);

    ~OrgKdeKSlaveLauncherInterface();

public Q_SLOTS: // METHODS
    inline QDBusPendingReply<bool> checkForHeldSlave(const QString &url)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(url);
        return asyncCallWithArgumentList(QStringLiteral("checkForHeldSlave"), argumentList);
    }

    inline QDBusPendingReply<int> requestHoldSlave(const QString &url, const QString &app_socket)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(url) << QVariant::fromValue(app_socket);
        return asyncCallWithArgumentList(QStringLiteral("requestHoldSlave"), argumentList);
    }

    inline QDBusPendingReply<int, QString> requestSlave(const QString &protocol, const QString &host, const QString &app_socket)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(protocol) << QVariant::fromValue(host) << QVariant::fromValue(app_socket);
        return asyncCallWithArgumentList(QStringLiteral("requestSlave"), argumentList);
    }
    inline QDBusReply<int> requestSlave(const QString &protocol, const QString &host, const QString &app_socket, QString &error)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(protocol) << QVariant::fromValue(host) << QVariant::fromValue(app_socket);
        QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("requestSlave"), argumentList);
        if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 2) {
            error = qdbus_cast<QString>(reply.arguments().at(1));
        }
        return reply;
    }

    inline QDBusPendingReply<> waitForSlave(int pid)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(pid);
        return asyncCallWithArgumentList(QStringLiteral("waitForSlave"), argumentList);
    }

Q_SIGNALS: // SIGNALS
};

namespace org {
  namespace kde {
    typedef ::OrgKdeKSlaveLauncherInterface KSlaveLauncher;
  }
}
#endif
