-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into toolTohcpp
- Loading branch information
Showing
19 changed files
with
1,061 additions
and
741 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// SPDX-FileCopyrightText: 2024 - 2025 UnionTech Software Technology Co., Ltd. | ||
// | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#include "GrandSearchAdaptor.h" | ||
#include <QtCore/QMetaObject> | ||
#include <QtCore/QByteArray> | ||
#include <QtCore/QList> | ||
#include <QtCore/QMap> | ||
#include <QtCore/QString> | ||
#include <QtCore/QStringList> | ||
#include <QtCore/QVariant> | ||
|
||
/* | ||
* 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)); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// SPDX-FileCopyrightText: 2024 - 2025 UnionTech Software Technology Co., Ltd. | ||
// | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#ifndef GRANDSEARCHADAPTOR_H | ||
#define GRANDSEARCHADAPTOR_H | ||
|
||
#include <QtCore/QObject> | ||
#include <QtDBus/QtDBus> | ||
QT_BEGIN_NAMESPACE | ||
class QByteArray; | ||
template<class T> class QList; | ||
template<class Key, class Value> 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", "" | ||
" <interface name=\"com.deepin.dde.GrandSearch\">\n" | ||
" <signal name=\"VisibleChanged\">\n" | ||
" <arg direction=\"out\" type=\"b\" name=\"vidible\"/>\n" | ||
" </signal>\n" | ||
" <method name=\"IsVisible\">\n" | ||
" <arg direction=\"out\" type=\"b\"/>\n" | ||
" </method>\n" | ||
" <method name=\"SetVisible\">\n" | ||
" <arg direction=\"in\" type=\"b\" name=\"visible\"/>\n" | ||
" </method>\n" | ||
" </interface>\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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
// SPDX-FileCopyrightText: 2024 - 2025 UnionTech Software Technology Co., Ltd. | ||
// | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#include "GrandSearchDaemonAdaptor.h" | ||
#include <QtCore/QMetaObject> | ||
#include <QtCore/QByteArray> | ||
#include <QtCore/QList> | ||
#include <QtCore/QMap> | ||
#include <QtCore/QString> | ||
#include <QtCore/QStringList> | ||
#include <QtCore/QVariant> | ||
|
||
/* | ||
* 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"); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
// SPDX-FileCopyrightText: 2024 - 2025 UnionTech Software Technology Co., Ltd. | ||
// | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#ifndef GRANDSEARCHDAEMONADAPTOR_H | ||
#define GRANDSEARCHDAEMONADAPTOR_H | ||
|
||
#include <QtCore/QObject> | ||
#include <QtDBus/QtDBus> | ||
QT_BEGIN_NAMESPACE | ||
class QByteArray; | ||
template<class T> class QList; | ||
template<class Key, class Value> 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", "" | ||
" <interface name=\"org.deepin.dde.GrandSearchDaemon\">\n" | ||
" <signal name=\"Matched\">\n" | ||
" <arg direction=\"out\" type=\"s\" name=\"session\"/>\n" | ||
" </signal>\n" | ||
" <signal name=\"SearchCompleted\">\n" | ||
" <arg direction=\"out\" type=\"s\" name=\"session\"/>\n" | ||
" </signal>\n" | ||
" <method name=\"Search\">\n" | ||
" <arg direction=\"out\" type=\"b\"/>\n" | ||
" <arg direction=\"in\" type=\"s\" name=\"session\"/>\n" | ||
" <arg direction=\"in\" type=\"s\" name=\"key\"/>\n" | ||
" </method>\n" | ||
" <method name=\"Terminate\"/>\n" | ||
" <method name=\"MatchedResults\">\n" | ||
" <arg direction=\"out\" type=\"ay\"/>\n" | ||
" <arg direction=\"in\" type=\"s\" name=\"session\"/>\n" | ||
" </method>\n" | ||
" <method name=\"MatchedBuffer\">\n" | ||
" <arg direction=\"out\" type=\"ay\"/>\n" | ||
" <arg direction=\"in\" type=\"s\" name=\"session\"/>\n" | ||
" </method>\n" | ||
" <method name=\"OpenWithPlugin\">\n" | ||
" <arg direction=\"out\" type=\"b\"/>\n" | ||
" <arg direction=\"in\" type=\"s\" name=\"searcher\"/>\n" | ||
" <arg direction=\"in\" type=\"s\" name=\"item\"/>\n" | ||
" </method>\n" | ||
" <method name=\"Configure\">\n" | ||
" <arg direction=\"out\" type=\"b\"/>\n" | ||
" <arg direction=\"in\" type=\"a{sv}\"/>\n" | ||
" <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.In0\"/>\n" | ||
" </method>\n" | ||
" <method name=\"Configuration\">\n" | ||
" <arg direction=\"out\" type=\"a{sv}\"/>\n" | ||
" <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n" | ||
" </method>\n" | ||
" <method name=\"SetFeedBackStrategy\">\n" | ||
" <arg direction=\"out\" type=\"b\"/>\n" | ||
" <arg direction=\"in\" type=\"a{sv}\"/>\n" | ||
" <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.In0\"/>\n" | ||
" </method>\n" | ||
" <method name=\"FeedBackStrategy\">\n" | ||
" <arg direction=\"out\" type=\"a{sv}\"/>\n" | ||
" <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n" | ||
" </method>\n" | ||
" <method name=\"KeepAlive\">\n" | ||
" <arg direction=\"out\" type=\"b\"/>\n" | ||
" <arg direction=\"in\" type=\"s\" name=\"session\"/>\n" | ||
" </method>\n" | ||
" </interface>\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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// SPDX-FileCopyrightText: 2024 - 2025 UnionTech Software Technology Co., Ltd. | ||
// | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#include "QueryLangAdaptor.h" | ||
#include <QtCore/QMetaObject> | ||
#include <QtCore/QByteArray> | ||
#include <QtCore/QList> | ||
#include <QtCore/QMap> | ||
#include <QtCore/QString> | ||
#include <QtCore/QStringList> | ||
#include <QtCore/QVariant> | ||
|
||
/* | ||
* 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; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// SPDX-FileCopyrightText: 2024 - 2025 UnionTech Software Technology Co., Ltd. | ||
// | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#ifndef QUERYLANGADAPTOR_H | ||
#define QUERYLANGADAPTOR_H | ||
|
||
#include <QtCore/QObject> | ||
#include <QtDBus/QtDBus> | ||
QT_BEGIN_NAMESPACE | ||
class QByteArray; | ||
template<class T> class QList; | ||
template<class Key, class Value> 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", "" | ||
" <interface name=\"org.deepin.ai.daemon.QueryLang\">\n" | ||
" <method name=\"Query\">\n" | ||
" <arg direction=\"out\" type=\"s\"/>\n" | ||
" <arg direction=\"in\" type=\"s\" name=\"content\"/>\n" | ||
" </method>\n" | ||
" <method name=\"Enable\">\n" | ||
" <arg direction=\"out\" type=\"b\"/>\n" | ||
" </method>\n" | ||
" </interface>\n" | ||
"") | ||
public: | ||
QueryLangAdaptor(QObject *parent); | ||
virtual ~QueryLangAdaptor(); | ||
|
||
public: // PROPERTIES | ||
public Q_SLOTS: // METHODS | ||
bool Enable(); | ||
QString Query(const QString &content); | ||
Q_SIGNALS: // SIGNALS | ||
}; | ||
|
||
#endif |
Oops, something went wrong.