/*
 * This file was generated by qdbusxml2cpp version 0.8
 * Command line was: qdbusxml2cpp -m -i maliit/settingdata.h -p minputmethodcontext1interface_interface /home/builduser/maliit-framework/maliit-framework/src/framework/dbus_interfaces/minputmethodcontext1interface.xml
 *
 * qdbusxml2cpp is Copyright (C) 2023 The Qt Company Ltd.
 *
 * This is an auto-generated file.
 * Do not edit! All changes made to it will be lost.
 */

#ifndef MINPUTMETHODCONTEXT1INTERFACE_INTERFACE_H
#define MINPUTMETHODCONTEXT1INTERFACE_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>
#include "maliit/settingdata.h"

/*
 * Proxy class for interface com.meego.inputmethod.inputcontext1
 */
class ComMeegoInputmethodInputcontext1Interface: public QDBusAbstractInterface
{
    Q_OBJECT
public:
    static inline const char *staticInterfaceName()
    { return "com.meego.inputmethod.inputcontext1"; }

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

    ~ComMeegoInputmethodInputcontext1Interface();

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

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

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

    inline QDBusPendingReply<> keyEvent(int in0, int in1, int in2, const QString &in3, bool in4, int in5, uchar in6)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2) << QVariant::fromValue(in3) << QVariant::fromValue(in4) << QVariant::fromValue(in5) << QVariant::fromValue(in6);
        return asyncCallWithArgumentList(QStringLiteral("keyEvent"), argumentList);
    }

    inline QDBusPendingReply<> notifyExtendedAttributeChanged(int in0, const QString &in1, const QString &in2, const QString &in3, const QDBusVariant &in4)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2) << QVariant::fromValue(in3) << QVariant::fromValue(in4);
        return asyncCallWithArgumentList(QStringLiteral("notifyExtendedAttributeChanged"), argumentList);
    }

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

    inline QDBusPendingReply<bool, int, int, int, int> preeditRectangle()
    {
        QList<QVariant> argumentList;
        return asyncCallWithArgumentList(QStringLiteral("preeditRectangle"), argumentList);
    }
    inline QDBusReply<bool> preeditRectangle(int &out1, int &out2, int &out3, int &out4)
    {
        QList<QVariant> argumentList;
        QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("preeditRectangle"), argumentList);
        if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 5) {
            out1 = qdbus_cast<int>(reply.arguments().at(1));
            out2 = qdbus_cast<int>(reply.arguments().at(2));
            out3 = qdbus_cast<int>(reply.arguments().at(3));
            out4 = qdbus_cast<int>(reply.arguments().at(4));
        }
        return reply;
    }

    inline QDBusPendingReply<bool, QString> selection()
    {
        QList<QVariant> argumentList;
        return asyncCallWithArgumentList(QStringLiteral("selection"), argumentList);
    }
    inline QDBusReply<bool> selection(QString &out1)
    {
        QList<QVariant> argumentList;
        QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("selection"), argumentList);
        if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 2) {
            out1 = qdbus_cast<QString>(reply.arguments().at(1));
        }
        return reply;
    }

    inline QDBusPendingReply<> setDetectableAutoRepeat(bool in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);
        return asyncCallWithArgumentList(QStringLiteral("setDetectableAutoRepeat"), argumentList);
    }

    inline QDBusPendingReply<> setGlobalCorrectionEnabled(bool in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);
        return asyncCallWithArgumentList(QStringLiteral("setGlobalCorrectionEnabled"), argumentList);
    }

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

    inline QDBusPendingReply<> setRedirectKeys(bool in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);
        return asyncCallWithArgumentList(QStringLiteral("setRedirectKeys"), argumentList);
    }

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

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

    inline QDBusPendingReply<> updatePreedit(const QString &in0, const QList<Maliit::PreeditTextFormat> &in1, int in2, int in3, int in4)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1) << QVariant::fromValue(in2) << QVariant::fromValue(in3) << QVariant::fromValue(in4);
        return asyncCallWithArgumentList(QStringLiteral("updatePreedit"), argumentList);
    }

Q_SIGNALS: // SIGNALS
};

namespace com {
  namespace meego {
    namespace inputmethod {
      typedef ::ComMeegoInputmethodInputcontext1Interface inputcontext1;
    }
  }
}
#endif
