diff --git a/.reuse/dep5 b/.reuse/dep5 index 0685d1e6..860c5a31 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -87,3 +87,8 @@ License: LGPL-3.0-or-later Files: 3rdparty/antlr4.tar.gz Copyright: 2012-2017 The ANTLR Project License: BSD-3-Clause + +Files: toolGenerate/**/* +Copyright: None +License: CC0-1.0 + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.GrandSearchAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.dde.GrandSearchAdaptor.cpp new file mode 100644 index 00000000..79a19da1 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.GrandSearchAdaptor.cpp @@ -0,0 +1,49 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-grand-search/src/grand-search/contacts/services/com.deepin.dde.GrandSearch.xml -a ./dde-grand-search/toolGenerate/qdbusxml2cpp/com.deepin.dde.GrandSearchAdaptor -i ./dde-grand-search/toolGenerate/qdbusxml2cpp/com.deepin.dde.GrandSearch.h + * + * 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. + */ + +#include "./dde-grand-search/toolGenerate/qdbusxml2cpp/com.deepin.dde.GrandSearchAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class GrandSearchAdaptor + */ + +GrandSearchAdaptor::GrandSearchAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +GrandSearchAdaptor::~GrandSearchAdaptor() +{ + // destructor +} + +bool GrandSearchAdaptor::IsVisible() +{ + // handle method call com.deepin.dde.GrandSearch.IsVisible + bool out0; + QMetaObject::invokeMethod(parent(), "IsVisible", Q_RETURN_ARG(bool, out0)); + return out0; +} + +void GrandSearchAdaptor::SetVisible(bool visible) +{ + // handle method call com.deepin.dde.GrandSearch.SetVisible + QMetaObject::invokeMethod(parent(), "SetVisible", Q_ARG(bool, visible)); +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.GrandSearchAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.dde.GrandSearchAdaptor.h new file mode 100644 index 00000000..08141e9e --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.GrandSearchAdaptor.h @@ -0,0 +1,59 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-grand-search/src/grand-search/contacts/services/com.deepin.dde.GrandSearch.xml -a ./dde-grand-search/toolGenerate/qdbusxml2cpp/com.deepin.dde.GrandSearchAdaptor -i ./dde-grand-search/toolGenerate/qdbusxml2cpp/com.deepin.dde.GrandSearch.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DDE_GRANDSEARCHADAPTOR_H +#define COM_DEEPIN_DDE_GRANDSEARCHADAPTOR_H + +#include +#include +#include "./dde-grand-search/toolGenerate/qdbusxml2cpp/com.deepin.dde.GrandSearch.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.dde.GrandSearch + */ +class GrandSearchAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.dde.GrandSearch") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + GrandSearchAdaptor(QObject *parent); + virtual ~GrandSearchAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + bool IsVisible(); + void SetVisible(bool visible); +Q_SIGNALS: // SIGNALS + void VisibleChanged(bool vidible); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.grandsearch.searchpluginAdaptor.cpp b/toolGenerate/qdbusxml2cpp/com.deepin.dde.grandsearch.searchpluginAdaptor.cpp new file mode 100644 index 00000000..b041dadd --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.grandsearch.searchpluginAdaptor.cpp @@ -0,0 +1,59 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-grand-search/src/dde-grand-search-daemon/searchplugin/interface/abstract/com.deepin.dde.grandsearch.searchplugin.xml -a ./dde-grand-search/toolGenerate/qdbusxml2cpp/com.deepin.dde.grandsearch.searchpluginAdaptor -i ./dde-grand-search/toolGenerate/qdbusxml2cpp/com.deepin.dde.grandsearch.searchplugin.h + * + * 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. + */ + +#include "./dde-grand-search/toolGenerate/qdbusxml2cpp/com.deepin.dde.grandsearch.searchpluginAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class SearchPluginAdaptor + */ + +SearchPluginAdaptor::SearchPluginAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +SearchPluginAdaptor::~SearchPluginAdaptor() +{ + // destructor +} + +bool SearchPluginAdaptor::Action(const QString &json) +{ + // handle method call com.deepin.dde.GrandSearch.SearchPlugin.Action + bool out0; + QMetaObject::invokeMethod(parent(), "Action", Q_RETURN_ARG(bool, out0), Q_ARG(QString, json)); + return out0; +} + +QString SearchPluginAdaptor::Search(const QString &json) +{ + // handle method call com.deepin.dde.GrandSearch.SearchPlugin.Search + QString out0; + QMetaObject::invokeMethod(parent(), "Search", Q_RETURN_ARG(QString, out0), Q_ARG(QString, json)); + return out0; +} + +bool SearchPluginAdaptor::Stop(const QString &json) +{ + // handle method call com.deepin.dde.GrandSearch.SearchPlugin.Stop + bool out0; + QMetaObject::invokeMethod(parent(), "Stop", Q_RETURN_ARG(bool, out0), Q_ARG(QString, json)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/com.deepin.dde.grandsearch.searchpluginAdaptor.h b/toolGenerate/qdbusxml2cpp/com.deepin.dde.grandsearch.searchpluginAdaptor.h new file mode 100644 index 00000000..9da72fe8 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/com.deepin.dde.grandsearch.searchpluginAdaptor.h @@ -0,0 +1,62 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-grand-search/src/dde-grand-search-daemon/searchplugin/interface/abstract/com.deepin.dde.grandsearch.searchplugin.xml -a ./dde-grand-search/toolGenerate/qdbusxml2cpp/com.deepin.dde.grandsearch.searchpluginAdaptor -i ./dde-grand-search/toolGenerate/qdbusxml2cpp/com.deepin.dde.grandsearch.searchplugin.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef COM_DEEPIN_DDE_GRANDSEARCH_SEARCHPLUGINADAPTOR_H +#define COM_DEEPIN_DDE_GRANDSEARCH_SEARCHPLUGINADAPTOR_H + +#include +#include +#include "./dde-grand-search/toolGenerate/qdbusxml2cpp/com.deepin.dde.grandsearch.searchplugin.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface com.deepin.dde.GrandSearch.SearchPlugin + */ +class SearchPluginAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "com.deepin.dde.GrandSearch.SearchPlugin") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + SearchPluginAdaptor(QObject *parent); + virtual ~SearchPluginAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + bool Action(const QString &json); + QString Search(const QString &json); + bool Stop(const QString &json); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.QueryLangAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.QueryLangAdaptor.cpp new file mode 100644 index 00000000..46e57885 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.QueryLangAdaptor.cpp @@ -0,0 +1,51 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-grand-search/3rdparty/interfaces/org.deepin.ai.daemon.QueryLang.xml -a ./dde-grand-search/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.QueryLangAdaptor -i ./dde-grand-search/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.QueryLang.h + * + * 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. + */ + +#include "./dde-grand-search/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.QueryLangAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class QueryLangAdaptor + */ + +QueryLangAdaptor::QueryLangAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +QueryLangAdaptor::~QueryLangAdaptor() +{ + // destructor +} + +bool QueryLangAdaptor::Enable() +{ + // handle method call org.deepin.ai.daemon.QueryLang.Enable + bool out0; + QMetaObject::invokeMethod(parent(), "Enable", Q_RETURN_ARG(bool, out0)); + return out0; +} + +QString QueryLangAdaptor::Query(const QString &content) +{ + // handle method call org.deepin.ai.daemon.QueryLang.Query + QString out0; + QMetaObject::invokeMethod(parent(), "Query", Q_RETURN_ARG(QString, out0), Q_ARG(QString, content)); + return out0; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.QueryLangAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.QueryLangAdaptor.h new file mode 100644 index 00000000..b3ac98a7 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.QueryLangAdaptor.h @@ -0,0 +1,56 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-grand-search/3rdparty/interfaces/org.deepin.ai.daemon.QueryLang.xml -a ./dde-grand-search/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.QueryLangAdaptor -i ./dde-grand-search/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.QueryLang.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_AI_DAEMON_QUERYLANGADAPTOR_H +#define ORG_DEEPIN_AI_DAEMON_QUERYLANGADAPTOR_H + +#include +#include +#include "./dde-grand-search/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.QueryLang.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.ai.daemon.QueryLang + */ +class QueryLangAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.ai.daemon.QueryLang") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + QueryLangAdaptor(QObject *parent); + virtual ~QueryLangAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + bool Enable(); + QString Query(const QString &content); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.VectorIndexAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.VectorIndexAdaptor.cpp new file mode 100644 index 00000000..5cb9f3f1 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.VectorIndexAdaptor.cpp @@ -0,0 +1,89 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-grand-search/3rdparty/interfaces/org.deepin.ai.daemon.VectorIndex.xml -a ./dde-grand-search/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.VectorIndexAdaptor -i ./dde-grand-search/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.VectorIndex.h + * + * 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. + */ + +#include "./dde-grand-search/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.VectorIndexAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class VectorIndexAdaptor + */ + +VectorIndexAdaptor::VectorIndexAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +VectorIndexAdaptor::~VectorIndexAdaptor() +{ + // destructor +} + +bool VectorIndexAdaptor::Create(const QString &appID, const QStringList &files) +{ + // handle method call org.deepin.ai.daemon.VectorIndex.Create + bool out0; + QMetaObject::invokeMethod(parent(), "Create", Q_RETURN_ARG(bool, out0), Q_ARG(QString, appID), Q_ARG(QStringList, files)); + return out0; +} + +bool VectorIndexAdaptor::Delete(const QString &appID, const QStringList &files) +{ + // handle method call org.deepin.ai.daemon.VectorIndex.Delete + bool out0; + QMetaObject::invokeMethod(parent(), "Delete", Q_RETURN_ARG(bool, out0), Q_ARG(QString, appID), Q_ARG(QStringList, files)); + return out0; +} + +QStringList VectorIndexAdaptor::DocFiles(const QString &appID) +{ + // handle method call org.deepin.ai.daemon.VectorIndex.DocFiles + QStringList out0; + QMetaObject::invokeMethod(parent(), "DocFiles", Q_RETURN_ARG(QStringList, out0), Q_ARG(QString, appID)); + return out0; +} + +bool VectorIndexAdaptor::Enable() +{ + // handle method call org.deepin.ai.daemon.VectorIndex.Enable + bool out0; + QMetaObject::invokeMethod(parent(), "Enable", Q_RETURN_ARG(bool, out0)); + return out0; +} + +QString VectorIndexAdaptor::Search(const QString &appID, const QString &query, int topK) +{ + // handle method call org.deepin.ai.daemon.VectorIndex.Search + QString out0; + QMetaObject::invokeMethod(parent(), "Search", Q_RETURN_ARG(QString, out0), Q_ARG(QString, appID), Q_ARG(QString, query), Q_ARG(int, topK)); + return out0; +} + +QString VectorIndexAdaptor::getAutoIndexStatus(const QString &appID) +{ + // handle method call org.deepin.ai.daemon.VectorIndex.getAutoIndexStatus + QString out0; + QMetaObject::invokeMethod(parent(), "getAutoIndexStatus", Q_RETURN_ARG(QString, out0), Q_ARG(QString, appID)); + return out0; +} + +void VectorIndexAdaptor::setAutoIndex(const QString &appID, bool on) +{ + // handle method call org.deepin.ai.daemon.VectorIndex.setAutoIndex + QMetaObject::invokeMethod(parent(), "setAutoIndex", Q_ARG(QString, appID), Q_ARG(bool, on)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.VectorIndexAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.VectorIndexAdaptor.h new file mode 100644 index 00000000..67592bf4 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.VectorIndexAdaptor.h @@ -0,0 +1,96 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-grand-search/3rdparty/interfaces/org.deepin.ai.daemon.VectorIndex.xml -a ./dde-grand-search/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.VectorIndexAdaptor -i ./dde-grand-search/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.VectorIndex.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_AI_DAEMON_VECTORINDEXADAPTOR_H +#define ORG_DEEPIN_AI_DAEMON_VECTORINDEXADAPTOR_H + +#include +#include +#include "./dde-grand-search/toolGenerate/qdbusxml2cpp/org.deepin.ai.daemon.VectorIndex.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.ai.daemon.VectorIndex + */ +class VectorIndexAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.ai.daemon.VectorIndex") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + VectorIndexAdaptor(QObject *parent); + virtual ~VectorIndexAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + bool Create(const QString &appID, const QStringList &files); + bool Delete(const QString &appID, const QStringList &files); + QStringList DocFiles(const QString &appID); + bool Enable(); + QString Search(const QString &appID, const QString &query, int topK); + QString getAutoIndexStatus(const QString &appID); + void setAutoIndex(const QString &appID, bool on); +Q_SIGNALS: // SIGNALS + void IndexDeleted(const QString &appID, const QStringList &files); + void IndexStatus(const QString &appID, const QStringList &files, int status); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.GrandSearchDaemonAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.deepin.dde.GrandSearchDaemonAdaptor.cpp new file mode 100644 index 00000000..3235d3cc --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.GrandSearchDaemonAdaptor.cpp @@ -0,0 +1,113 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-grand-search/src/dde-grand-search-daemon/dbusservice/org.deepin.dde.GrandSearchDaemon.xml -a ./dde-grand-search/toolGenerate/qdbusxml2cpp/org.deepin.dde.GrandSearchDaemonAdaptor -i ./dde-grand-search/toolGenerate/qdbusxml2cpp/org.deepin.dde.GrandSearchDaemon.h + * + * 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. + */ + +#include "./dde-grand-search/toolGenerate/qdbusxml2cpp/org.deepin.dde.GrandSearchDaemonAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class GrandSearchDaemonAdaptor + */ + +GrandSearchDaemonAdaptor::GrandSearchDaemonAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +GrandSearchDaemonAdaptor::~GrandSearchDaemonAdaptor() +{ + // destructor +} + +QVariantMap GrandSearchDaemonAdaptor::Configuration() +{ + // handle method call org.deepin.dde.GrandSearchDaemon.Configuration + QVariantMap out0; + QMetaObject::invokeMethod(parent(), "Configuration", Q_RETURN_ARG(QVariantMap, out0)); + return out0; +} + +bool GrandSearchDaemonAdaptor::Configure(const QVariantMap &in0) +{ + // handle method call org.deepin.dde.GrandSearchDaemon.Configure + bool out0; + QMetaObject::invokeMethod(parent(), "Configure", Q_RETURN_ARG(bool, out0), Q_ARG(QVariantMap, in0)); + return out0; +} + +QVariantMap GrandSearchDaemonAdaptor::FeedBackStrategy() +{ + // handle method call org.deepin.dde.GrandSearchDaemon.FeedBackStrategy + QVariantMap out0; + QMetaObject::invokeMethod(parent(), "FeedBackStrategy", Q_RETURN_ARG(QVariantMap, out0)); + return out0; +} + +bool GrandSearchDaemonAdaptor::KeepAlive(const QString &session) +{ + // handle method call org.deepin.dde.GrandSearchDaemon.KeepAlive + bool out0; + QMetaObject::invokeMethod(parent(), "KeepAlive", Q_RETURN_ARG(bool, out0), Q_ARG(QString, session)); + return out0; +} + +QByteArray GrandSearchDaemonAdaptor::MatchedBuffer(const QString &session) +{ + // handle method call org.deepin.dde.GrandSearchDaemon.MatchedBuffer + QByteArray out0; + QMetaObject::invokeMethod(parent(), "MatchedBuffer", Q_RETURN_ARG(QByteArray, out0), Q_ARG(QString, session)); + return out0; +} + +QByteArray GrandSearchDaemonAdaptor::MatchedResults(const QString &session) +{ + // handle method call org.deepin.dde.GrandSearchDaemon.MatchedResults + QByteArray out0; + QMetaObject::invokeMethod(parent(), "MatchedResults", Q_RETURN_ARG(QByteArray, out0), Q_ARG(QString, session)); + return out0; +} + +bool GrandSearchDaemonAdaptor::OpenWithPlugin(const QString &searcher, const QString &item) +{ + // handle method call org.deepin.dde.GrandSearchDaemon.OpenWithPlugin + bool out0; + QMetaObject::invokeMethod(parent(), "OpenWithPlugin", Q_RETURN_ARG(bool, out0), Q_ARG(QString, searcher), Q_ARG(QString, item)); + return out0; +} + +bool GrandSearchDaemonAdaptor::Search(const QString &session, const QString &key) +{ + // handle method call org.deepin.dde.GrandSearchDaemon.Search + bool out0; + QMetaObject::invokeMethod(parent(), "Search", Q_RETURN_ARG(bool, out0), Q_ARG(QString, session), Q_ARG(QString, key)); + return out0; +} + +bool GrandSearchDaemonAdaptor::SetFeedBackStrategy(const QVariantMap &in0) +{ + // handle method call org.deepin.dde.GrandSearchDaemon.SetFeedBackStrategy + bool out0; + QMetaObject::invokeMethod(parent(), "SetFeedBackStrategy", Q_RETURN_ARG(bool, out0), Q_ARG(QVariantMap, in0)); + return out0; +} + +void GrandSearchDaemonAdaptor::Terminate() +{ + // handle method call org.deepin.dde.GrandSearchDaemon.Terminate + QMetaObject::invokeMethod(parent(), "Terminate"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.deepin.dde.GrandSearchDaemonAdaptor.h b/toolGenerate/qdbusxml2cpp/org.deepin.dde.GrandSearchDaemonAdaptor.h new file mode 100644 index 00000000..b52a0531 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.deepin.dde.GrandSearchDaemonAdaptor.h @@ -0,0 +1,106 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-grand-search/src/dde-grand-search-daemon/dbusservice/org.deepin.dde.GrandSearchDaemon.xml -a ./dde-grand-search/toolGenerate/qdbusxml2cpp/org.deepin.dde.GrandSearchDaemonAdaptor -i ./dde-grand-search/toolGenerate/qdbusxml2cpp/org.deepin.dde.GrandSearchDaemon.h + * + * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd. + * + * This is an auto-generated file. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef ORG_DEEPIN_DDE_GRANDSEARCHDAEMONADAPTOR_H +#define ORG_DEEPIN_DDE_GRANDSEARCHDAEMONADAPTOR_H + +#include +#include +#include "./dde-grand-search/toolGenerate/qdbusxml2cpp/org.deepin.dde.GrandSearchDaemon.h" +QT_BEGIN_NAMESPACE +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; +QT_END_NAMESPACE + +/* + * Adaptor class for interface org.deepin.dde.GrandSearchDaemon + */ +class GrandSearchDaemonAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.deepin.dde.GrandSearchDaemon") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + GrandSearchDaemonAdaptor(QObject *parent); + virtual ~GrandSearchDaemonAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + QVariantMap Configuration(); + bool Configure(const QVariantMap &in0); + QVariantMap FeedBackStrategy(); + bool KeepAlive(const QString &session); + QByteArray MatchedBuffer(const QString &session); + QByteArray MatchedResults(const QString &session); + bool OpenWithPlugin(const QString &searcher, const QString &item); + bool Search(const QString &session, const QString &key); + bool SetFeedBackStrategy(const QVariantMap &in0); + void Terminate(); +Q_SIGNALS: // SIGNALS + void Matched(const QString &session); + void SearchCompleted(const QString &session); +}; + +#endif