Add a function to get the full input method group information (#44)
Co-authored-by: Weng Xuetian <wengxt@gmail.com>
This commit is contained in:
parent
0a2141eacd
commit
3a3384b1ca
|
@ -1,3 +1,4 @@
|
|||
.*
|
||||
*~
|
||||
build/*
|
||||
*.kdev4
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtcontrollerproxy -c FcitxQtControllerProxy interfaces/org.fcitx.Fcitx.Controller1.xml -i fcitxqtdbustypes.h -i fcitx5qt5dbusaddons_export.h
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtcontrollerproxy -c
|
||||
* FcitxQtControllerProxy interfaces/org.fcitx.Fcitx.Controller1.xml -i
|
||||
* fcitxqtdbustypes.h -i fcitx5qt5dbusaddons_export.h
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
|
||||
* qdbusxml2cpp is Copyright (C) 2022 The Qt Company Ltd.
|
||||
*
|
||||
* This is an auto-generated file.
|
||||
* This file may have been hand-edited. Look for HAND-EDIT comments
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtcontrollerproxy -c FcitxQtControllerProxy interfaces/org.fcitx.Fcitx.Controller1.xml -i fcitxqtdbustypes.h -i fcitx5qt5dbusaddons_export.h
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtcontrollerproxy -c
|
||||
* FcitxQtControllerProxy interfaces/org.fcitx.Fcitx.Controller1.xml -i
|
||||
* fcitxqtdbustypes.h -i fcitx5qt5dbusaddons_export.h
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
|
||||
* qdbusxml2cpp is Copyright (C) 2022 The Qt Company Ltd.
|
||||
*
|
||||
* This is an auto-generated file.
|
||||
* Do not edit! All changes made to it will be lost.
|
||||
|
@ -116,6 +118,34 @@ public Q_SLOTS: // METHODS
|
|||
return asyncCallWithArgumentList(QStringLiteral("Exit"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<QString, QString, QString, QVariantMap,
|
||||
FcitxQtFullInputMethodEntryList>
|
||||
FullInputMethodGroupInfo(const QString &in0) {
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0);
|
||||
return asyncCallWithArgumentList(
|
||||
QStringLiteral("FullInputMethodGroupInfo"), argumentList);
|
||||
}
|
||||
inline QDBusReply<QString> FullInputMethodGroupInfo(
|
||||
const QString &in0, QString &defaultInputMethod, QString &defaultLayout,
|
||||
QVariantMap &properties,
|
||||
FcitxQtFullInputMethodEntryList &inputMethodEntryList) {
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0);
|
||||
QDBusMessage reply = callWithArgumentList(
|
||||
QDBus::Block, QStringLiteral("FullInputMethodGroupInfo"),
|
||||
argumentList);
|
||||
if (reply.type() == QDBusMessage::ReplyMessage &&
|
||||
reply.arguments().count() == 5) {
|
||||
defaultInputMethod = qdbus_cast<QString>(reply.arguments().at(1));
|
||||
defaultLayout = qdbus_cast<QString>(reply.arguments().at(2));
|
||||
properties = qdbus_cast<QVariantMap>(reply.arguments().at(3));
|
||||
inputMethodEntryList = qdbus_cast<FcitxQtFullInputMethodEntryList>(
|
||||
reply.arguments().at(4));
|
||||
}
|
||||
return reply;
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<FcitxQtAddonInfoList> GetAddons()
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
|
|
|
@ -21,6 +21,7 @@ void registerFcitxQtDBusTypes() {
|
|||
FCITX5_QT_DEFINE_DBUS_TYPE(FcitxQtFormattedPreedit);
|
||||
FCITX5_QT_DEFINE_DBUS_TYPE(FcitxQtStringKeyValue);
|
||||
FCITX5_QT_DEFINE_DBUS_TYPE(FcitxQtInputMethodEntry);
|
||||
FCITX5_QT_DEFINE_DBUS_TYPE(FcitxQtFullInputMethodEntry);
|
||||
FCITX5_QT_DEFINE_DBUS_TYPE(FcitxQtLayoutInfo);
|
||||
FCITX5_QT_DEFINE_DBUS_TYPE(FcitxQtVariantInfo);
|
||||
FCITX5_QT_DEFINE_DBUS_TYPE(FcitxQtConfigOption);
|
||||
|
@ -108,6 +109,43 @@ const QDBusArgument &operator>>(const QDBusArgument &argument,
|
|||
return argument;
|
||||
}
|
||||
|
||||
QDBusArgument &operator<<(QDBusArgument &argument,
|
||||
const FcitxQtFullInputMethodEntry &arg) {
|
||||
argument.beginStructure();
|
||||
argument << arg.uniqueName();
|
||||
argument << arg.name();
|
||||
argument << arg.nativeName();
|
||||
argument << arg.icon();
|
||||
argument << arg.label();
|
||||
argument << arg.languageCode();
|
||||
argument << arg.addon();
|
||||
argument << arg.configurable();
|
||||
argument << arg.properties();
|
||||
argument.endStructure();
|
||||
return argument;
|
||||
}
|
||||
|
||||
const QDBusArgument &operator>>(const QDBusArgument &argument,
|
||||
FcitxQtFullInputMethodEntry &arg) {
|
||||
QString uniqueName, name, nativeName, icon, label, languageCode, addon;
|
||||
bool configurable;
|
||||
QVariantMap properties;
|
||||
argument.beginStructure();
|
||||
argument >> uniqueName >> name >> nativeName >> icon >> label >>
|
||||
languageCode >> addon >> configurable >> properties;
|
||||
argument.endStructure();
|
||||
arg.setUniqueName(uniqueName);
|
||||
arg.setName(name);
|
||||
arg.setNativeName(nativeName);
|
||||
arg.setIcon(icon);
|
||||
arg.setLabel(label);
|
||||
arg.setLanguageCode(languageCode);
|
||||
arg.setAddon(addon);
|
||||
arg.setConfigurable(configurable);
|
||||
arg.setProperties(properties);
|
||||
return argument;
|
||||
}
|
||||
|
||||
QDBusArgument &operator<<(QDBusArgument &argument,
|
||||
const FcitxQtVariantInfo &arg) {
|
||||
argument.beginStructure();
|
||||
|
|
|
@ -70,6 +70,18 @@ FCITX5_QT_DECLARE_FIELD(QString, languageCode, setLanguageCode);
|
|||
FCITX5_QT_DECLARE_FIELD(bool, configurable, setConfigurable);
|
||||
FCITX5_QT_END_DECLARE_DBUS_TYPE(FcitxQtInputMethodEntry);
|
||||
|
||||
FCITX5_QT_BEGIN_DECLARE_DBUS_TYPE(FcitxQtFullInputMethodEntry);
|
||||
FCITX5_QT_DECLARE_FIELD(QString, uniqueName, setUniqueName);
|
||||
FCITX5_QT_DECLARE_FIELD(QString, name, setName);
|
||||
FCITX5_QT_DECLARE_FIELD(QString, nativeName, setNativeName);
|
||||
FCITX5_QT_DECLARE_FIELD(QString, icon, setIcon);
|
||||
FCITX5_QT_DECLARE_FIELD(QString, label, setLabel);
|
||||
FCITX5_QT_DECLARE_FIELD(QString, languageCode, setLanguageCode);
|
||||
FCITX5_QT_DECLARE_FIELD(QString, addon, setAddon);
|
||||
FCITX5_QT_DECLARE_FIELD(bool, configurable, setConfigurable);
|
||||
FCITX5_QT_DECLARE_FIELD(QVariantMap, properties, setProperties);
|
||||
FCITX5_QT_END_DECLARE_DBUS_TYPE(FcitxQtFullInputMethodEntry);
|
||||
|
||||
FCITX5_QT_BEGIN_DECLARE_DBUS_TYPE(FcitxQtVariantInfo);
|
||||
FCITX5_QT_DECLARE_FIELD(QString, variant, setVariant);
|
||||
FCITX5_QT_DECLARE_FIELD(QString, description, setDescription);
|
||||
|
@ -133,6 +145,9 @@ Q_DECLARE_METATYPE(fcitx::FcitxQtStringKeyValueList)
|
|||
Q_DECLARE_METATYPE(fcitx::FcitxQtInputMethodEntry)
|
||||
Q_DECLARE_METATYPE(fcitx::FcitxQtInputMethodEntryList)
|
||||
|
||||
Q_DECLARE_METATYPE(fcitx::FcitxQtFullInputMethodEntry)
|
||||
Q_DECLARE_METATYPE(fcitx::FcitxQtFullInputMethodEntryList)
|
||||
|
||||
Q_DECLARE_METATYPE(fcitx::FcitxQtVariantInfo)
|
||||
Q_DECLARE_METATYPE(fcitx::FcitxQtVariantInfoList)
|
||||
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtinputcontextproxyimpl -c FcitxQtInputContextProxyImpl interfaces/org.fcitx.Fcitx.InputContext1.xml -i fcitxqtdbustypes.h -i fcitx5qt5dbusaddons_export.h
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtinputcontextproxyimpl -c
|
||||
* FcitxQtInputContextProxyImpl interfaces/org.fcitx.Fcitx.InputContext1.xml -i
|
||||
* fcitxqtdbustypes.h -i fcitx5qt5dbusaddons_export.h
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
|
||||
* qdbusxml2cpp is Copyright (C) 2022 The Qt Company Ltd.
|
||||
*
|
||||
* This is an auto-generated file.
|
||||
* This file may have been hand-edited. Look for HAND-EDIT comments
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtinputcontextproxyimpl -c FcitxQtInputContextProxyImpl interfaces/org.fcitx.Fcitx.InputContext1.xml -i fcitxqtdbustypes.h -i fcitx5qt5dbusaddons_export.h
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtinputcontextproxyimpl -c
|
||||
* FcitxQtInputContextProxyImpl interfaces/org.fcitx.Fcitx.InputContext1.xml -i
|
||||
* fcitxqtdbustypes.h -i fcitx5qt5dbusaddons_export.h
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
|
||||
* qdbusxml2cpp is Copyright (C) 2022 The Qt Company Ltd.
|
||||
*
|
||||
* This is an auto-generated file.
|
||||
* Do not edit! All changes made to it will be lost.
|
||||
|
@ -99,13 +101,6 @@ public Q_SLOTS: // METHODS
|
|||
return asyncCallWithArgumentList(QStringLiteral("SelectCandidate"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> SetSupportedCapability(qulonglong caps)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(caps);
|
||||
return asyncCallWithArgumentList(QStringLiteral("SetSupportedCapability"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> SetCapability(qulonglong caps)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
|
@ -127,6 +122,13 @@ public Q_SLOTS: // METHODS
|
|||
return asyncCallWithArgumentList(QStringLiteral("SetCursorRectV2"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> SetSupportedCapability(qulonglong caps) {
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(caps);
|
||||
return asyncCallWithArgumentList(
|
||||
QStringLiteral("SetSupportedCapability"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> SetSurroundingText(const QString &text,
|
||||
unsigned int cursor,
|
||||
unsigned int anchor) {
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtinputmethodproxy -c FcitxQtInputMethodProxy interfaces/org.fcitx.Fcitx.InputMethod1.xml -i fcitxqtdbustypes.h -i fcitx5qt5dbusaddons_export.h
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtinputmethodproxy -c
|
||||
* FcitxQtInputMethodProxy interfaces/org.fcitx.Fcitx.InputMethod1.xml -i
|
||||
* fcitxqtdbustypes.h -i fcitx5qt5dbusaddons_export.h
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
|
||||
* qdbusxml2cpp is Copyright (C) 2022 The Qt Company Ltd.
|
||||
*
|
||||
* This is an auto-generated file.
|
||||
* This file may have been hand-edited. Look for HAND-EDIT comments
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtinputmethodproxy -c FcitxQtInputMethodProxy interfaces/org.fcitx.Fcitx.InputMethod1.xml -i fcitxqtdbustypes.h -i fcitx5qt5dbusaddons_export.h
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtinputmethodproxy -c
|
||||
* FcitxQtInputMethodProxy interfaces/org.fcitx.Fcitx.InputMethod1.xml -i
|
||||
* fcitxqtdbustypes.h -i fcitx5qt5dbusaddons_export.h
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
|
||||
* qdbusxml2cpp is Copyright (C) 2022 The Qt Company Ltd.
|
||||
*
|
||||
* This is an auto-generated file.
|
||||
* Do not edit! All changes made to it will be lost.
|
||||
|
|
|
@ -41,6 +41,16 @@
|
|||
<method name="SetCurrentIM">
|
||||
<arg type="s" direction="in"/>
|
||||
</method>
|
||||
<method name="FullInputMethodGroupInfo">
|
||||
<arg type="s" direction="in"/>
|
||||
<arg type="s" name="groupName" direction="out"/>
|
||||
<arg type="s" name="defaultInputMethod" direction="out"/>
|
||||
<arg type="s" name="defaultLayout" direction="out"/>
|
||||
<arg type="a{sv}" name="properties" direction="out"/>
|
||||
<arg type="a(sssssssba{sv})" name="inputMethodEntryList" direction="out"/>
|
||||
<annotation name="org.qtproject.QtDBus.QtTypeName.Out3" value="QVariantMap" />
|
||||
<annotation name="org.qtproject.QtDBus.QtTypeName.Out4" value="FcitxQtFullInputMethodEntryList" />
|
||||
</method>
|
||||
<method name="InputMethodGroupInfo">
|
||||
<arg type="s" direction="in"/>
|
||||
<arg type="s" name="layout" direction="out"/>
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtcontrollerproxy -c
|
||||
* FcitxQtControllerProxy interfaces/org.fcitx.Fcitx.Controller1.xml -i
|
||||
* fcitxqtdbustypes.h -i fcitx5qt5dbusaddons_export.h
|
||||
* fcitxqtdbustypes.h -i fcitx5qt6dbusaddons_export.h
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
|
||||
* qdbusxml2cpp is Copyright (C) 2023 The Qt Company Ltd and other contributors.
|
||||
*
|
||||
* This is an auto-generated file.
|
||||
* This file may have been hand-edited. Look for HAND-EDIT comments
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtcontrollerproxy -c FcitxQtControllerProxy interfaces/org.fcitx.Fcitx.Controller1.xml -i fcitxqtdbustypes.h -i fcitx5qt6dbusaddons_export.h
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtcontrollerproxy -c
|
||||
* FcitxQtControllerProxy interfaces/org.fcitx.Fcitx.Controller1.xml -i
|
||||
* fcitxqtdbustypes.h -i fcitx5qt6dbusaddons_export.h
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
|
||||
* qdbusxml2cpp is Copyright (C) 2023 The Qt Company Ltd and other contributors.
|
||||
*
|
||||
* This is an auto-generated file.
|
||||
* Do not edit! All changes made to it will be lost.
|
||||
|
@ -116,6 +118,34 @@ public Q_SLOTS: // METHODS
|
|||
return asyncCallWithArgumentList(QStringLiteral("Exit"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<QString, QString, QString, QVariantMap,
|
||||
FcitxQtFullInputMethodEntryList>
|
||||
FullInputMethodGroupInfo(const QString &in0) {
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0);
|
||||
return asyncCallWithArgumentList(
|
||||
QStringLiteral("FullInputMethodGroupInfo"), argumentList);
|
||||
}
|
||||
inline QDBusReply<QString> FullInputMethodGroupInfo(
|
||||
const QString &in0, QString &defaultInputMethod, QString &defaultLayout,
|
||||
QVariantMap &properties,
|
||||
FcitxQtFullInputMethodEntryList &inputMethodEntryList) {
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0);
|
||||
QDBusMessage reply = callWithArgumentList(
|
||||
QDBus::Block, QStringLiteral("FullInputMethodGroupInfo"),
|
||||
argumentList);
|
||||
if (reply.type() == QDBusMessage::ReplyMessage &&
|
||||
reply.arguments().size() == 5) {
|
||||
defaultInputMethod = qdbus_cast<QString>(reply.arguments().at(1));
|
||||
defaultLayout = qdbus_cast<QString>(reply.arguments().at(2));
|
||||
properties = qdbus_cast<QVariantMap>(reply.arguments().at(3));
|
||||
inputMethodEntryList = qdbus_cast<FcitxQtFullInputMethodEntryList>(
|
||||
reply.arguments().at(4));
|
||||
}
|
||||
return reply;
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<FcitxQtAddonInfoList> GetAddons()
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
|
@ -139,7 +169,8 @@ public Q_SLOTS: // METHODS
|
|||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0);
|
||||
QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("GetConfig"), argumentList);
|
||||
if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 2) {
|
||||
if (reply.type() == QDBusMessage::ReplyMessage &&
|
||||
reply.arguments().size() == 2) {
|
||||
out1 = qdbus_cast<FcitxQtConfigTypeList>(reply.arguments().at(1));
|
||||
}
|
||||
return reply;
|
||||
|
@ -156,7 +187,8 @@ public Q_SLOTS: // METHODS
|
|||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0);
|
||||
QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("InputMethodGroupInfo"), argumentList);
|
||||
if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 2) {
|
||||
if (reply.type() == QDBusMessage::ReplyMessage &&
|
||||
reply.arguments().size() == 2) {
|
||||
items = qdbus_cast<FcitxQtStringKeyValueList>(reply.arguments().at(1));
|
||||
}
|
||||
return reply;
|
||||
|
|
|
@ -21,6 +21,7 @@ void registerFcitxQtDBusTypes() {
|
|||
FCITX5_QT_DEFINE_DBUS_TYPE(FcitxQtFormattedPreedit);
|
||||
FCITX5_QT_DEFINE_DBUS_TYPE(FcitxQtStringKeyValue);
|
||||
FCITX5_QT_DEFINE_DBUS_TYPE(FcitxQtInputMethodEntry);
|
||||
FCITX5_QT_DEFINE_DBUS_TYPE(FcitxQtFullInputMethodEntry);
|
||||
FCITX5_QT_DEFINE_DBUS_TYPE(FcitxQtLayoutInfo);
|
||||
FCITX5_QT_DEFINE_DBUS_TYPE(FcitxQtVariantInfo);
|
||||
FCITX5_QT_DEFINE_DBUS_TYPE(FcitxQtConfigOption);
|
||||
|
@ -108,6 +109,43 @@ const QDBusArgument &operator>>(const QDBusArgument &argument,
|
|||
return argument;
|
||||
}
|
||||
|
||||
QDBusArgument &operator<<(QDBusArgument &argument,
|
||||
const FcitxQtFullInputMethodEntry &arg) {
|
||||
argument.beginStructure();
|
||||
argument << arg.uniqueName();
|
||||
argument << arg.name();
|
||||
argument << arg.nativeName();
|
||||
argument << arg.icon();
|
||||
argument << arg.label();
|
||||
argument << arg.languageCode();
|
||||
argument << arg.addon();
|
||||
argument << arg.configurable();
|
||||
argument << arg.properties();
|
||||
argument.endStructure();
|
||||
return argument;
|
||||
}
|
||||
|
||||
const QDBusArgument &operator>>(const QDBusArgument &argument,
|
||||
FcitxQtFullInputMethodEntry &arg) {
|
||||
QString uniqueName, name, nativeName, icon, label, languageCode, addon;
|
||||
bool configurable;
|
||||
QVariantMap properties;
|
||||
argument.beginStructure();
|
||||
argument >> uniqueName >> name >> nativeName >> icon >> label >>
|
||||
languageCode >> addon >> configurable >> properties;
|
||||
argument.endStructure();
|
||||
arg.setUniqueName(uniqueName);
|
||||
arg.setName(name);
|
||||
arg.setNativeName(nativeName);
|
||||
arg.setIcon(icon);
|
||||
arg.setLabel(label);
|
||||
arg.setLanguageCode(languageCode);
|
||||
arg.setAddon(addon);
|
||||
arg.setConfigurable(configurable);
|
||||
arg.setProperties(properties);
|
||||
return argument;
|
||||
}
|
||||
|
||||
QDBusArgument &operator<<(QDBusArgument &argument,
|
||||
const FcitxQtVariantInfo &arg) {
|
||||
argument.beginStructure();
|
||||
|
|
|
@ -70,6 +70,18 @@ FCITX5_QT_DECLARE_FIELD(QString, languageCode, setLanguageCode);
|
|||
FCITX5_QT_DECLARE_FIELD(bool, configurable, setConfigurable);
|
||||
FCITX5_QT_END_DECLARE_DBUS_TYPE(FcitxQtInputMethodEntry);
|
||||
|
||||
FCITX5_QT_BEGIN_DECLARE_DBUS_TYPE(FcitxQtFullInputMethodEntry);
|
||||
FCITX5_QT_DECLARE_FIELD(QString, uniqueName, setUniqueName);
|
||||
FCITX5_QT_DECLARE_FIELD(QString, name, setName);
|
||||
FCITX5_QT_DECLARE_FIELD(QString, nativeName, setNativeName);
|
||||
FCITX5_QT_DECLARE_FIELD(QString, icon, setIcon);
|
||||
FCITX5_QT_DECLARE_FIELD(QString, label, setLabel);
|
||||
FCITX5_QT_DECLARE_FIELD(QString, languageCode, setLanguageCode);
|
||||
FCITX5_QT_DECLARE_FIELD(QString, addon, setAddon);
|
||||
FCITX5_QT_DECLARE_FIELD(bool, configurable, setConfigurable);
|
||||
FCITX5_QT_DECLARE_FIELD(QVariantMap, properties, setProperties);
|
||||
FCITX5_QT_END_DECLARE_DBUS_TYPE(FcitxQtFullInputMethodEntry);
|
||||
|
||||
FCITX5_QT_BEGIN_DECLARE_DBUS_TYPE(FcitxQtVariantInfo);
|
||||
FCITX5_QT_DECLARE_FIELD(QString, variant, setVariant);
|
||||
FCITX5_QT_DECLARE_FIELD(QString, description, setDescription);
|
||||
|
@ -133,6 +145,9 @@ Q_DECLARE_METATYPE(fcitx::FcitxQtStringKeyValueList)
|
|||
Q_DECLARE_METATYPE(fcitx::FcitxQtInputMethodEntry)
|
||||
Q_DECLARE_METATYPE(fcitx::FcitxQtInputMethodEntryList)
|
||||
|
||||
Q_DECLARE_METATYPE(fcitx::FcitxQtFullInputMethodEntry)
|
||||
Q_DECLARE_METATYPE(fcitx::FcitxQtFullInputMethodEntryList)
|
||||
|
||||
Q_DECLARE_METATYPE(fcitx::FcitxQtVariantInfo)
|
||||
Q_DECLARE_METATYPE(fcitx::FcitxQtVariantInfoList)
|
||||
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtinputcontextproxyimpl -c FcitxQtInputContextProxyImpl interfaces/org.fcitx.Fcitx.InputContext1.xml -i fcitxqtdbustypes.h -i fcitx5qt6dbusaddons_export.h
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtinputcontextproxyimpl -c
|
||||
* FcitxQtInputContextProxyImpl interfaces/org.fcitx.Fcitx.InputContext1.xml -i
|
||||
* fcitxqtdbustypes.h -i fcitx5qt6dbusaddons_export.h
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
|
||||
* qdbusxml2cpp is Copyright (C) 2023 The Qt Company Ltd and other contributors.
|
||||
*
|
||||
* This is an auto-generated file.
|
||||
* This file may have been hand-edited. Look for HAND-EDIT comments
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtinputcontextproxyimpl -c FcitxQtInputContextProxyImpl interfaces/org.fcitx.Fcitx.InputContext1.xml -i fcitxqtdbustypes.h -i fcitx5qt6dbusaddons_export.h
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtinputcontextproxyimpl -c
|
||||
* FcitxQtInputContextProxyImpl interfaces/org.fcitx.Fcitx.InputContext1.xml -i
|
||||
* fcitxqtdbustypes.h -i fcitx5qt6dbusaddons_export.h
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
|
||||
* qdbusxml2cpp is Copyright (C) 2023 The Qt Company Ltd and other contributors.
|
||||
*
|
||||
* This is an auto-generated file.
|
||||
* Do not edit! All changes made to it will be lost.
|
||||
|
@ -99,13 +101,6 @@ public Q_SLOTS: // METHODS
|
|||
return asyncCallWithArgumentList(QStringLiteral("SelectCandidate"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> SetSupportedCapability(qulonglong caps)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(caps);
|
||||
return asyncCallWithArgumentList(QStringLiteral("SetSupportedCapability"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> SetCapability(qulonglong caps)
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
|
@ -127,6 +122,13 @@ public Q_SLOTS: // METHODS
|
|||
return asyncCallWithArgumentList(QStringLiteral("SetCursorRectV2"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> SetSupportedCapability(qulonglong caps) {
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(caps);
|
||||
return asyncCallWithArgumentList(
|
||||
QStringLiteral("SetSupportedCapability"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> SetSurroundingText(const QString &text,
|
||||
unsigned int cursor,
|
||||
unsigned int anchor) {
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtinputmethodproxy -c FcitxQtInputMethodProxy interfaces/org.fcitx.Fcitx.InputMethod1.xml -i fcitxqtdbustypes.h -i fcitx5qt6dbusaddons_export.h
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtinputmethodproxy -c
|
||||
* FcitxQtInputMethodProxy interfaces/org.fcitx.Fcitx.InputMethod1.xml -i
|
||||
* fcitxqtdbustypes.h -i fcitx5qt6dbusaddons_export.h
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
|
||||
* qdbusxml2cpp is Copyright (C) 2023 The Qt Company Ltd and other contributors.
|
||||
*
|
||||
* This is an auto-generated file.
|
||||
* This file may have been hand-edited. Look for HAND-EDIT comments
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
/*
|
||||
* This file was generated by qdbusxml2cpp version 0.8
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtinputmethodproxy -c FcitxQtInputMethodProxy interfaces/org.fcitx.Fcitx.InputMethod1.xml -i fcitxqtdbustypes.h -i fcitx5qt6dbusaddons_export.h
|
||||
* Command line was: qdbusxml2cpp -N -p fcitxqtinputmethodproxy -c
|
||||
* FcitxQtInputMethodProxy interfaces/org.fcitx.Fcitx.InputMethod1.xml -i
|
||||
* fcitxqtdbustypes.h -i fcitx5qt6dbusaddons_export.h
|
||||
*
|
||||
* qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
|
||||
* qdbusxml2cpp is Copyright (C) 2023 The Qt Company Ltd and other contributors.
|
||||
*
|
||||
* This is an auto-generated file.
|
||||
* Do not edit! All changes made to it will be lost.
|
||||
|
@ -51,7 +53,8 @@ public Q_SLOTS: // METHODS
|
|||
QList<QVariant> argumentList;
|
||||
argumentList << QVariant::fromValue(in0);
|
||||
QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("CreateInputContext"), argumentList);
|
||||
if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 2) {
|
||||
if (reply.type() == QDBusMessage::ReplyMessage &&
|
||||
reply.arguments().size() == 2) {
|
||||
out1 = qdbus_cast<QByteArray>(reply.arguments().at(1));
|
||||
}
|
||||
return reply;
|
||||
|
|
Loading…
Reference in New Issue