/*
 * This file was generated by qdbusxml2cpp version 0.8
 * Command line was: qdbusxml2cpp -m -p ksmserver_interface /usr/share/dbus-1/interfaces/org.kde.KSMServerInterface.xml
 *
 * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
 *
 * This is an auto-generated file.
 * Do not edit! All changes made to it will be lost.
 */

#ifndef KSMSERVER_INTERFACE_H
#define KSMSERVER_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.KSMServerInterface
 */
class OrgKdeKSMServerInterfaceInterface: public QDBusAbstractInterface
{
    Q_OBJECT
public:
    static inline const char *staticInterfaceName()
    { return "org.kde.KSMServerInterface"; }

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

    ~OrgKdeKSMServerInterfaceInterface();

public Q_SLOTS: // METHODS
    inline QDBusPendingReply<bool> canShutdown()
    {
        QList<QVariant> argumentList;
        return asyncCallWithArgumentList(QStringLiteral("canShutdown"), argumentList);
    }

    inline QDBusPendingReply<QString> currentSession()
    {
        QList<QVariant> argumentList;
        return asyncCallWithArgumentList(QStringLiteral("currentSession"), argumentList);
    }

    inline QDBusPendingReply<bool> isShuttingDown()
    {
        QList<QVariant> argumentList;
        return asyncCallWithArgumentList(QStringLiteral("isShuttingDown"), argumentList);
    }

    inline QDBusPendingReply<> logout(int in0, int in1, int in2)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2);
        return asyncCallWithArgumentList(QStringLiteral("logout"), argumentList);
    }

    inline QDBusPendingReply<> openSwitchUserDialog()
    {
        QList<QVariant> argumentList;
        return asyncCallWithArgumentList(QStringLiteral("openSwitchUserDialog"), argumentList);
    }

    inline QDBusPendingReply<> restoreSubSession(const QString &in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);
        return asyncCallWithArgumentList(QStringLiteral("restoreSubSession"), argumentList);
    }

    inline QDBusPendingReply<> resumeStartup(const QString &in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);
        return asyncCallWithArgumentList(QStringLiteral("resumeStartup"), argumentList);
    }

    inline QDBusPendingReply<> saveCurrentSession()
    {
        QList<QVariant> argumentList;
        return asyncCallWithArgumentList(QStringLiteral("saveCurrentSession"), argumentList);
    }

    inline QDBusPendingReply<> saveCurrentSessionAs(const QString &in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);
        return asyncCallWithArgumentList(QStringLiteral("saveCurrentSessionAs"), argumentList);
    }

    inline QDBusPendingReply<> saveSubSession(const QString &in0, const QStringList &in1, const QStringList &in2)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2);
        return asyncCallWithArgumentList(QStringLiteral("saveSubSession"), argumentList);
    }

    inline QDBusPendingReply<QStringList> sessionList()
    {
        QList<QVariant> argumentList;
        return asyncCallWithArgumentList(QStringLiteral("sessionList"), argumentList);
    }

    inline QDBusPendingReply<> suspendStartup(const QString &in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);
        return asyncCallWithArgumentList(QStringLiteral("suspendStartup"), argumentList);
    }

    inline QDBusPendingReply<> wmChanged()
    {
        QList<QVariant> argumentList;
        return asyncCallWithArgumentList(QStringLiteral("wmChanged"), argumentList);
    }

Q_SIGNALS: // SIGNALS
    void subSessionCloseCanceled();
    void subSessionClosed();
    void subSessionOpened();
};

namespace org {
  namespace kde {
    typedef ::OrgKdeKSMServerInterfaceInterface KSMServerInterface;
  }
}
#endif
