diff --git a/toolGenerate/dconfig2cpp/org_deepin_dde_am.hpp b/toolGenerate/dconfig2cpp/org_deepin_dde_am.hpp new file mode 100644 index 0000000..655ad7a --- /dev/null +++ b/toolGenerate/dconfig2cpp/org_deepin_dde_am.hpp @@ -0,0 +1,180 @@ +/** + * This file is generated by dconfig2cpp. + * Command line arguments: ./dconfig2cpp -p ./dde-application-manager/toolGenerate/dconfig2cpp ./dde-application-manager/misc/dsg/configs/dde-application-manager/org.deepin.dde.am.json + * Generation time: 2025-01-14T10:54:59 + * JSON file version: 1.0 + * + * WARNING: DO NOT MODIFY THIS FILE MANUALLY. + * If you need to change the content, please modify the dconfig2cpp tool. + */ + +#ifndef ORG_DEEPIN_DDE_AM_H +#define ORG_DEEPIN_DDE_AM_H + +#include +#include +#include +#include +#include +#include + +class org_deepin_dde_am : public QObject { + Q_OBJECT + + Q_PROPERTY(QVariantMap appsLaunchedTimes READ appsLaunchedTimes WRITE setAppsLaunchedTimes NOTIFY appsLaunchedTimesChanged) +public: + explicit org_deepin_dde_am(QThread *thread, const QString &appId, const QString &name, const QString &subpath, QObject *parent = nullptr) + : QObject(parent) { + + if (!thread->isRunning()) { + qWarning() << QStringLiteral("Warning: The provided thread is not running."); + } + Q_ASSERT(QThread::currentThread() != thread); + auto worker = new QObject(); + worker->moveToThread(thread); + QMetaObject::invokeMethod(worker, [=]() { + auto config = DTK_CORE_NAMESPACE::DConfig::create(appId, name, subpath, nullptr); + if (!config) { + qWarning() << QStringLiteral("Failed to create DConfig instance."); + worker->deleteLater(); + return; + } + config->moveToThread(QThread::currentThread()); + initialize(config); + worker->deleteLater(); + }); + } + explicit org_deepin_dde_am(QThread *thread, DTK_CORE_NAMESPACE::DConfigBackend *backend, const QString &appId, const QString &name, const QString &subpath, QObject *parent = nullptr) + : QObject(parent) { + + if (!thread->isRunning()) { + qWarning() << QStringLiteral("Warning: The provided thread is not running."); + } + Q_ASSERT(QThread::currentThread() != thread); + auto worker = new QObject(); + worker->moveToThread(thread); + QMetaObject::invokeMethod(worker, [=]() { + auto config = DTK_CORE_NAMESPACE::DConfig::create(backend, appId, name, subpath, nullptr); + if (!config) { + qWarning() << QStringLiteral("Failed to create DConfig instance."); + worker->deleteLater(); + return; + } + config->moveToThread(QThread::currentThread()); + initialize(config); + worker->deleteLater(); + }); + } + explicit org_deepin_dde_am(QThread *thread, const QString &name, const QString &subpath, QObject *parent = nullptr) + : QObject(parent) { + + if (!thread->isRunning()) { + qWarning() << QStringLiteral("Warning: The provided thread is not running."); + } + Q_ASSERT(QThread::currentThread() != thread); + auto worker = new QObject(); + worker->moveToThread(thread); + QMetaObject::invokeMethod(worker, [=]() { + auto config = DTK_CORE_NAMESPACE::DConfig::create(name, subpath, nullptr); + if (!config) { + qWarning() << QStringLiteral("Failed to create DConfig instance."); + worker->deleteLater(); + return; + } + config->moveToThread(QThread::currentThread()); + initialize(config); + worker->deleteLater(); + }); + } + explicit org_deepin_dde_am(QThread *thread, DTK_CORE_NAMESPACE::DConfigBackend *backend, const QString &name, const QString &subpath, QObject *parent = nullptr) + : QObject(parent) { + + if (!thread->isRunning()) { + qWarning() << QStringLiteral("Warning: The provided thread is not running."); + } + Q_ASSERT(QThread::currentThread() != thread); + auto worker = new QObject(); + worker->moveToThread(thread); + QMetaObject::invokeMethod(worker, [=]() { + auto config = DTK_CORE_NAMESPACE::DConfig::create(backend, name, subpath, nullptr); + if (!config) { + qWarning() << QStringLiteral("Failed to create DConfig instance."); + worker->deleteLater(); + return; + } + config->moveToThread(QThread::currentThread()); + initialize(config); + worker->deleteLater(); + }); + } + ~org_deepin_dde_am() { + if (m_config.loadRelaxed()) { + m_config.loadRelaxed()->deleteLater(); + } + } + + QVariantMap appsLaunchedTimes() const { + return p_appsLaunchedTimes; + } + void setAppsLaunchedTimes(const QVariantMap &value) { + auto oldValue = p_appsLaunchedTimes; + p_appsLaunchedTimes = value; + markPropertySet(0); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("appsLaunchedTimes"), value); + }); + } + if (p_appsLaunchedTimes != oldValue) { + Q_EMIT appsLaunchedTimesChanged(); + } + } +Q_SIGNALS: + void appsLaunchedTimesChanged(); +private: + void initialize(DTK_CORE_NAMESPACE::DConfig *config) { + Q_ASSERT(!m_config.loadRelaxed()); + m_config.storeRelaxed(config); + if (testPropertySet(0)) { + config->setValue(QStringLiteral("appsLaunchedTimes"), QVariant::fromValue(p_appsLaunchedTimes)); + } else { + updateValue(QStringLiteral("appsLaunchedTimes"), QVariant::fromValue(p_appsLaunchedTimes)); + } + + connect(config, &DTK_CORE_NAMESPACE::DConfig::valueChanged, this, [this](const QString &key) { + updateValue(key); + }, Qt::DirectConnection); + } + void updateValue(const QString &key, const QVariant &fallback = QVariant()) { + Q_ASSERT(QThread::currentThread() == m_config.loadRelaxed()->thread()); + const QVariant &value = m_config.loadRelaxed()->value(key, fallback); + if (key == QStringLiteral("appsLaunchedTimes")) { + auto newValue = qvariant_cast(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_appsLaunchedTimes != newValue) { + p_appsLaunchedTimes = newValue; + Q_EMIT appsLaunchedTimesChanged(); + } + }); + return; + } + } + inline void markPropertySet(const int index) { + if (index < 32) { + m_propertySetStatus0.fetchAndOrOrdered(1 << (index - 0)); + return; + } + Q_UNREACHABLE(); + } + inline bool testPropertySet(const int index) const { + if (index < 32) { + return (m_propertySetStatus0.loadRelaxed() & (1 << (index - 0))); + } + Q_UNREACHABLE(); + } + QAtomicPointer m_config = nullptr; + QVariantMap p_appsLaunchedTimes { QVariantMap{} }; + QAtomicInteger m_propertySetStatus0 = 0; +}; + +#endif // ORG_DEEPIN_DDE_AM_H diff --git a/toolGenerate/dconfig2cpp/org_deepin_dde_application-manager.hpp b/toolGenerate/dconfig2cpp/org_deepin_dde_application-manager.hpp new file mode 100644 index 0000000..f52d341 --- /dev/null +++ b/toolGenerate/dconfig2cpp/org_deepin_dde_application-manager.hpp @@ -0,0 +1,214 @@ +/** + * This file is generated by dconfig2cpp. + * Command line arguments: ./dconfig2cpp -p ./dde-application-manager/toolGenerate/dconfig2cpp ./dde-application-manager/misc/dsg/configs/dde-application-manager/org.deepin.dde.application-manager.json + * Generation time: 2025-01-14T10:54:59 + * JSON file version: 1.0 + * + * WARNING: DO NOT MODIFY THIS FILE MANUALLY. + * If you need to change the content, please modify the dconfig2cpp tool. + */ + +#ifndef ORG_DEEPIN_DDE_APPLICATION-MANAGER_H +#define ORG_DEEPIN_DDE_APPLICATION-MANAGER_H + +#include +#include +#include +#include +#include +#include + +class org_deepin_dde_application-manager : public QObject { + Q_OBJECT + + Q_PROPERTY(QList appEnvironmentsBlacklist READ appEnvironmentsBlacklist WRITE setAppEnvironmentsBlacklist NOTIFY appEnvironmentsBlacklistChanged) + Q_PROPERTY(QList appExtraEnvironments READ appExtraEnvironments WRITE setAppExtraEnvironments NOTIFY appExtraEnvironmentsChanged) +public: + explicit org_deepin_dde_application-manager(QThread *thread, const QString &appId, const QString &name, const QString &subpath, QObject *parent = nullptr) + : QObject(parent) { + + if (!thread->isRunning()) { + qWarning() << QStringLiteral("Warning: The provided thread is not running."); + } + Q_ASSERT(QThread::currentThread() != thread); + auto worker = new QObject(); + worker->moveToThread(thread); + QMetaObject::invokeMethod(worker, [=]() { + auto config = DTK_CORE_NAMESPACE::DConfig::create(appId, name, subpath, nullptr); + if (!config) { + qWarning() << QStringLiteral("Failed to create DConfig instance."); + worker->deleteLater(); + return; + } + config->moveToThread(QThread::currentThread()); + initialize(config); + worker->deleteLater(); + }); + } + explicit org_deepin_dde_application-manager(QThread *thread, DTK_CORE_NAMESPACE::DConfigBackend *backend, const QString &appId, const QString &name, const QString &subpath, QObject *parent = nullptr) + : QObject(parent) { + + if (!thread->isRunning()) { + qWarning() << QStringLiteral("Warning: The provided thread is not running."); + } + Q_ASSERT(QThread::currentThread() != thread); + auto worker = new QObject(); + worker->moveToThread(thread); + QMetaObject::invokeMethod(worker, [=]() { + auto config = DTK_CORE_NAMESPACE::DConfig::create(backend, appId, name, subpath, nullptr); + if (!config) { + qWarning() << QStringLiteral("Failed to create DConfig instance."); + worker->deleteLater(); + return; + } + config->moveToThread(QThread::currentThread()); + initialize(config); + worker->deleteLater(); + }); + } + explicit org_deepin_dde_application-manager(QThread *thread, const QString &name, const QString &subpath, QObject *parent = nullptr) + : QObject(parent) { + + if (!thread->isRunning()) { + qWarning() << QStringLiteral("Warning: The provided thread is not running."); + } + Q_ASSERT(QThread::currentThread() != thread); + auto worker = new QObject(); + worker->moveToThread(thread); + QMetaObject::invokeMethod(worker, [=]() { + auto config = DTK_CORE_NAMESPACE::DConfig::create(name, subpath, nullptr); + if (!config) { + qWarning() << QStringLiteral("Failed to create DConfig instance."); + worker->deleteLater(); + return; + } + config->moveToThread(QThread::currentThread()); + initialize(config); + worker->deleteLater(); + }); + } + explicit org_deepin_dde_application-manager(QThread *thread, DTK_CORE_NAMESPACE::DConfigBackend *backend, const QString &name, const QString &subpath, QObject *parent = nullptr) + : QObject(parent) { + + if (!thread->isRunning()) { + qWarning() << QStringLiteral("Warning: The provided thread is not running."); + } + Q_ASSERT(QThread::currentThread() != thread); + auto worker = new QObject(); + worker->moveToThread(thread); + QMetaObject::invokeMethod(worker, [=]() { + auto config = DTK_CORE_NAMESPACE::DConfig::create(backend, name, subpath, nullptr); + if (!config) { + qWarning() << QStringLiteral("Failed to create DConfig instance."); + worker->deleteLater(); + return; + } + config->moveToThread(QThread::currentThread()); + initialize(config); + worker->deleteLater(); + }); + } + ~org_deepin_dde_application-manager() { + if (m_config.loadRelaxed()) { + m_config.loadRelaxed()->deleteLater(); + } + } + + QList appEnvironmentsBlacklist() const { + return p_appEnvironmentsBlacklist; + } + void setAppEnvironmentsBlacklist(const QList &value) { + auto oldValue = p_appEnvironmentsBlacklist; + p_appEnvironmentsBlacklist = value; + markPropertySet(0); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("appEnvironmentsBlacklist"), value); + }); + } + if (p_appEnvironmentsBlacklist != oldValue) { + Q_EMIT appEnvironmentsBlacklistChanged(); + } + } + QList appExtraEnvironments() const { + return p_appExtraEnvironments; + } + void setAppExtraEnvironments(const QList &value) { + auto oldValue = p_appExtraEnvironments; + p_appExtraEnvironments = value; + markPropertySet(1); + if (auto config = m_config.loadRelaxed()) { + QMetaObject::invokeMethod(config, [this, value]() { + m_config.loadRelaxed()->setValue(QStringLiteral("appExtraEnvironments"), value); + }); + } + if (p_appExtraEnvironments != oldValue) { + Q_EMIT appExtraEnvironmentsChanged(); + } + } +Q_SIGNALS: + void appEnvironmentsBlacklistChanged(); + void appExtraEnvironmentsChanged(); +private: + void initialize(DTK_CORE_NAMESPACE::DConfig *config) { + Q_ASSERT(!m_config.loadRelaxed()); + m_config.storeRelaxed(config); + if (testPropertySet(0)) { + config->setValue(QStringLiteral("appEnvironmentsBlacklist"), QVariant::fromValue(p_appEnvironmentsBlacklist)); + } else { + updateValue(QStringLiteral("appEnvironmentsBlacklist"), QVariant::fromValue(p_appEnvironmentsBlacklist)); + } + if (testPropertySet(1)) { + config->setValue(QStringLiteral("appExtraEnvironments"), QVariant::fromValue(p_appExtraEnvironments)); + } else { + updateValue(QStringLiteral("appExtraEnvironments"), QVariant::fromValue(p_appExtraEnvironments)); + } + + connect(config, &DTK_CORE_NAMESPACE::DConfig::valueChanged, this, [this](const QString &key) { + updateValue(key); + }, Qt::DirectConnection); + } + void updateValue(const QString &key, const QVariant &fallback = QVariant()) { + Q_ASSERT(QThread::currentThread() == m_config.loadRelaxed()->thread()); + const QVariant &value = m_config.loadRelaxed()->value(key, fallback); + if (key == QStringLiteral("appEnvironmentsBlacklist")) { + auto newValue = qvariant_cast>(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_appEnvironmentsBlacklist != newValue) { + p_appEnvironmentsBlacklist = newValue; + Q_EMIT appEnvironmentsBlacklistChanged(); + } + }); + return; + } + if (key == QStringLiteral("appExtraEnvironments")) { + auto newValue = qvariant_cast>(value); + QMetaObject::invokeMethod(this, [this, newValue]() { + if (p_appExtraEnvironments != newValue) { + p_appExtraEnvironments = newValue; + Q_EMIT appExtraEnvironmentsChanged(); + } + }); + return; + } + } + inline void markPropertySet(const int index) { + if (index < 32) { + m_propertySetStatus0.fetchAndOrOrdered(1 << (index - 0)); + return; + } + Q_UNREACHABLE(); + } + inline bool testPropertySet(const int index) const { + if (index < 32) { + return (m_propertySetStatus0.loadRelaxed() & (1 << (index - 0))); + } + Q_UNREACHABLE(); + } + QAtomicPointer m_config = nullptr; + QList p_appEnvironmentsBlacklist { QList{} }; + QList p_appExtraEnvironments { QList{} }; + QAtomicInteger m_propertySetStatus0 = 0; +}; + +#endif // ORG_DEEPIN_DDE_APPLICATION-MANAGER_H diff --git a/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.ApplicationAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.ApplicationAdaptor.cpp new file mode 100644 index 0000000..42fda98 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.ApplicationAdaptor.cpp @@ -0,0 +1,209 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-application-manager/api/dbus/org.desktopspec.ApplicationManager1.Application.xml -a ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.ApplicationAdaptor -i ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.Application.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-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.ApplicationAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class ApplicationAdaptor + */ + +ApplicationAdaptor::ApplicationAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +ApplicationAdaptor::~ApplicationAdaptor() +{ + // destructor +} + +PropMap ApplicationAdaptor::actionName() const +{ + // get the value of property ActionName + return qvariant_cast< PropMap >(parent()->property("ActionName")); +} + +QStringList ApplicationAdaptor::actions() const +{ + // get the value of property Actions + return qvariant_cast< QStringList >(parent()->property("Actions")); +} + +bool ApplicationAdaptor::autoStart() const +{ + // get the value of property AutoStart + return qvariant_cast< bool >(parent()->property("AutoStart")); +} + +void ApplicationAdaptor::setAutoStart(bool value) +{ + // set the value of property AutoStart + parent()->setProperty("AutoStart", QVariant::fromValue(value)); +} + +QStringList ApplicationAdaptor::categories() const +{ + // get the value of property Categories + return qvariant_cast< QStringList >(parent()->property("Categories")); +} + +QString ApplicationAdaptor::environ() const +{ + // get the value of property Environ + return qvariant_cast< QString >(parent()->property("Environ")); +} + +void ApplicationAdaptor::setEnviron(const QString &value) +{ + // set the value of property Environ + parent()->setProperty("Environ", QVariant::fromValue(value)); +} + +QStringMap ApplicationAdaptor::genericName() const +{ + // get the value of property GenericName + return qvariant_cast< QStringMap >(parent()->property("GenericName")); +} + +QString ApplicationAdaptor::iD() const +{ + // get the value of property ID + return qvariant_cast< QString >(parent()->property("ID")); +} + +QStringMap ApplicationAdaptor::icons() const +{ + // get the value of property Icons + return qvariant_cast< QStringMap >(parent()->property("Icons")); +} + +qlonglong ApplicationAdaptor::installedTime() const +{ + // get the value of property InstalledTime + return qvariant_cast< qlonglong >(parent()->property("InstalledTime")); +} + +QList ApplicationAdaptor::instances() const +{ + // get the value of property Instances + return qvariant_cast< QList >(parent()->property("Instances")); +} + +qlonglong ApplicationAdaptor::lastLaunchedTime() const +{ + // get the value of property LastLaunchedTime + return qvariant_cast< qlonglong >(parent()->property("LastLaunchedTime")); +} + +qlonglong ApplicationAdaptor::launchedTimes() const +{ + // get the value of property LaunchedTimes + return qvariant_cast< qlonglong >(parent()->property("LaunchedTimes")); +} + +QStringList ApplicationAdaptor::mimeTypes() const +{ + // get the value of property MimeTypes + return qvariant_cast< QStringList >(parent()->property("MimeTypes")); +} + +void ApplicationAdaptor::setMimeTypes(const QStringList &value) +{ + // set the value of property MimeTypes + parent()->setProperty("MimeTypes", QVariant::fromValue(value)); +} + +QStringMap ApplicationAdaptor::name() const +{ + // get the value of property Name + return qvariant_cast< QStringMap >(parent()->property("Name")); +} + +bool ApplicationAdaptor::noDisplay() const +{ + // get the value of property NoDisplay + return qvariant_cast< bool >(parent()->property("NoDisplay")); +} + +QString ApplicationAdaptor::startupWMClass() const +{ + // get the value of property StartupWMClass + return qvariant_cast< QString >(parent()->property("StartupWMClass")); +} + +bool ApplicationAdaptor::terminal() const +{ + // get the value of property Terminal + return qvariant_cast< bool >(parent()->property("Terminal")); +} + +QString ApplicationAdaptor::x_Deepin_CreateBy() const +{ + // get the value of property X_Deepin_CreateBy + return qvariant_cast< QString >(parent()->property("X_Deepin_CreateBy")); +} + +QString ApplicationAdaptor::x_Deepin_Vendor() const +{ + // get the value of property X_Deepin_Vendor + return qvariant_cast< QString >(parent()->property("X_Deepin_Vendor")); +} + +bool ApplicationAdaptor::x_Flatpak() const +{ + // get the value of property X_Flatpak + return qvariant_cast< bool >(parent()->property("X_Flatpak")); +} + +bool ApplicationAdaptor::x_linglong() const +{ + // get the value of property X_linglong + return qvariant_cast< bool >(parent()->property("X_linglong")); +} + +bool ApplicationAdaptor::isOnDesktop() const +{ + // get the value of property isOnDesktop + return qvariant_cast< bool >(parent()->property("isOnDesktop")); +} + +QDBusObjectPath ApplicationAdaptor::Launch(const QString &action, const QStringList &fields, const QVariantMap &options) +{ + // handle method call org.desktopspec.ApplicationManager1.Application.Launch + QDBusObjectPath job; + QMetaObject::invokeMethod(parent(), "Launch", Q_RETURN_ARG(QDBusObjectPath, job), Q_ARG(QString, action), Q_ARG(QStringList, fields), Q_ARG(QVariantMap, options)); + return job; +} + +bool ApplicationAdaptor::RemoveFromDesktop() +{ + // handle method call org.desktopspec.ApplicationManager1.Application.RemoveFromDesktop + bool success; + QMetaObject::invokeMethod(parent(), "RemoveFromDesktop", Q_RETURN_ARG(bool, success)); + return success; +} + +bool ApplicationAdaptor::SendToDesktop() +{ + // handle method call org.desktopspec.ApplicationManager1.Application.SendToDesktop + bool success; + QMetaObject::invokeMethod(parent(), "SendToDesktop", Q_RETURN_ARG(bool, success)); + return success; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.ApplicationAdaptor.h b/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.ApplicationAdaptor.h new file mode 100644 index 0000000..4d81d56 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.ApplicationAdaptor.h @@ -0,0 +1,189 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-application-manager/api/dbus/org.desktopspec.ApplicationManager1.Application.xml -a ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.ApplicationAdaptor -i ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.Application.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_DESKTOPSPEC_APPLICATIONMANAGER1_APPLICATIONADAPTOR_H +#define ORG_DESKTOPSPEC_APPLICATIONMANAGER1_APPLICATIONADAPTOR_H + +#include +#include +#include "./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.Application.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.desktopspec.ApplicationManager1.Application + */ +class ApplicationAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.desktopspec.ApplicationManager1.Application") + 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" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + ApplicationAdaptor(QObject *parent); + virtual ~ApplicationAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(PropMap ActionName READ actionName) + PropMap actionName() const; + + Q_PROPERTY(QStringList Actions READ actions) + QStringList actions() const; + + Q_PROPERTY(bool AutoStart READ autoStart WRITE setAutoStart) + bool autoStart() const; + void setAutoStart(bool value); + + Q_PROPERTY(QStringList Categories READ categories) + QStringList categories() const; + + Q_PROPERTY(QString Environ READ environ WRITE setEnviron) + QString environ() const; + void setEnviron(const QString &value); + + Q_PROPERTY(QStringMap GenericName READ genericName) + QStringMap genericName() const; + + Q_PROPERTY(QString ID READ iD) + QString iD() const; + + Q_PROPERTY(QStringMap Icons READ icons) + QStringMap icons() const; + + Q_PROPERTY(qlonglong InstalledTime READ installedTime) + qlonglong installedTime() const; + + Q_PROPERTY(QList Instances READ instances) + QList instances() const; + + Q_PROPERTY(qlonglong LastLaunchedTime READ lastLaunchedTime) + qlonglong lastLaunchedTime() const; + + Q_PROPERTY(qlonglong LaunchedTimes READ launchedTimes) + qlonglong launchedTimes() const; + + Q_PROPERTY(QStringList MimeTypes READ mimeTypes WRITE setMimeTypes) + QStringList mimeTypes() const; + void setMimeTypes(const QStringList &value); + + Q_PROPERTY(QStringMap Name READ name) + QStringMap name() const; + + Q_PROPERTY(bool NoDisplay READ noDisplay) + bool noDisplay() const; + + Q_PROPERTY(QString StartupWMClass READ startupWMClass) + QString startupWMClass() const; + + Q_PROPERTY(bool Terminal READ terminal) + bool terminal() const; + + Q_PROPERTY(QString X_Deepin_CreateBy READ x_Deepin_CreateBy) + QString x_Deepin_CreateBy() const; + + Q_PROPERTY(QString X_Deepin_Vendor READ x_Deepin_Vendor) + QString x_Deepin_Vendor() const; + + Q_PROPERTY(bool X_Flatpak READ x_Flatpak) + bool x_Flatpak() const; + + Q_PROPERTY(bool X_linglong READ x_linglong) + bool x_linglong() const; + + Q_PROPERTY(bool isOnDesktop READ isOnDesktop) + bool isOnDesktop() const; + +public Q_SLOTS: // METHODS + QDBusObjectPath Launch(const QString &action, const QStringList &fields, const QVariantMap &options); + bool RemoveFromDesktop(); + bool SendToDesktop(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.InstanceAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.InstanceAdaptor.cpp new file mode 100644 index 0000000..11e95b8 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.InstanceAdaptor.cpp @@ -0,0 +1,65 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-application-manager/api/dbus/org.desktopspec.ApplicationManager1.Instance.xml -a ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.InstanceAdaptor -i ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.Instance.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-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.InstanceAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class InstanceAdaptor + */ + +InstanceAdaptor::InstanceAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +InstanceAdaptor::~InstanceAdaptor() +{ + // destructor +} + +QDBusObjectPath InstanceAdaptor::application() const +{ + // get the value of property Application + return qvariant_cast< QDBusObjectPath >(parent()->property("Application")); +} + +QString InstanceAdaptor::launcher() const +{ + // get the value of property Launcher + return qvariant_cast< QString >(parent()->property("Launcher")); +} + +bool InstanceAdaptor::orphaned() const +{ + // get the value of property Orphaned + return qvariant_cast< bool >(parent()->property("Orphaned")); +} + +QDBusObjectPath InstanceAdaptor::systemdUnitPath() const +{ + // get the value of property SystemdUnitPath + return qvariant_cast< QDBusObjectPath >(parent()->property("SystemdUnitPath")); +} + +void InstanceAdaptor::KillAll(int signal) +{ + // handle method call org.desktopspec.ApplicationManager1.Instance.KillAll + QMetaObject::invokeMethod(parent(), "KillAll", Q_ARG(int, signal)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.InstanceAdaptor.h b/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.InstanceAdaptor.h new file mode 100644 index 0000000..7581f2f --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.InstanceAdaptor.h @@ -0,0 +1,76 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-application-manager/api/dbus/org.desktopspec.ApplicationManager1.Instance.xml -a ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.InstanceAdaptor -i ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.Instance.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_DESKTOPSPEC_APPLICATIONMANAGER1_INSTANCEADAPTOR_H +#define ORG_DESKTOPSPEC_APPLICATIONMANAGER1_INSTANCEADAPTOR_H + +#include +#include +#include "./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.Instance.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.desktopspec.ApplicationManager1.Instance + */ +class InstanceAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.desktopspec.ApplicationManager1.Instance") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + InstanceAdaptor(QObject *parent); + virtual ~InstanceAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QDBusObjectPath Application READ application) + QDBusObjectPath application() const; + + Q_PROPERTY(QString Launcher READ launcher) + QString launcher() const; + + Q_PROPERTY(bool Orphaned READ orphaned) + bool orphaned() const; + + Q_PROPERTY(QDBusObjectPath SystemdUnitPath READ systemdUnitPath) + QDBusObjectPath systemdUnitPath() const; + +public Q_SLOTS: // METHODS + void KillAll(int signal); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1Adaptor.cpp new file mode 100644 index 0000000..7bb8289 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1Adaptor.cpp @@ -0,0 +1,67 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-application-manager/api/dbus/org.desktopspec.ApplicationManager1.xml -a ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1Adaptor -i ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.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-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class ApplicationManager1Adaptor + */ + +ApplicationManager1Adaptor::ApplicationManager1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +ApplicationManager1Adaptor::~ApplicationManager1Adaptor() +{ + // destructor +} + +QList ApplicationManager1Adaptor::list() const +{ + // get the value of property List + return qvariant_cast< QList >(parent()->property("List")); +} + +QString ApplicationManager1Adaptor::Identify(const QDBusUnixFileDescriptor &pidfd, QDBusObjectPath &instance, ObjectInterfaceMap &application_instance_info) +{ + // handle method call org.desktopspec.ApplicationManager1.Identify + //return static_cast(parent())->Identify(pidfd, instance, application_instance_info); +} + +void ApplicationManager1Adaptor::ReloadApplications() +{ + // handle method call org.desktopspec.ApplicationManager1.ReloadApplications + QMetaObject::invokeMethod(parent(), "ReloadApplications"); +} + +QString ApplicationManager1Adaptor::addUserApplication(const QVariantMap &desktop_file, const QString &name) +{ + // handle method call org.desktopspec.ApplicationManager1.addUserApplication + QString app_id; + QMetaObject::invokeMethod(parent(), "addUserApplication", Q_RETURN_ARG(QString, app_id), Q_ARG(QVariantMap, desktop_file), Q_ARG(QString, name)); + return app_id; +} + +void ApplicationManager1Adaptor::deleteUserApplication(const QString &app_id) +{ + // handle method call org.desktopspec.ApplicationManager1.deleteUserApplication + QMetaObject::invokeMethod(parent(), "deleteUserApplication", Q_ARG(QString, app_id)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1Adaptor.h new file mode 100644 index 0000000..08b5823 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1Adaptor.h @@ -0,0 +1,77 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-application-manager/api/dbus/org.desktopspec.ApplicationManager1.xml -a ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1Adaptor -i ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.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_DESKTOPSPEC_APPLICATIONMANAGER1ADAPTOR_H +#define ORG_DESKTOPSPEC_APPLICATIONMANAGER1ADAPTOR_H + +#include +#include +#include "./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationManager1.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.desktopspec.ApplicationManager1 + */ +class ApplicationManager1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.desktopspec.ApplicationManager1") + 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" + "") +public: + ApplicationManager1Adaptor(QObject *parent); + virtual ~ApplicationManager1Adaptor(); + +public: // PROPERTIES + Q_PROPERTY(QList List READ list) + QList list() const; + +public Q_SLOTS: // METHODS + QString Identify(const QDBusUnixFileDescriptor &pidfd, QDBusObjectPath &instance, ObjectInterfaceMap &application_instance_info); + void ReloadApplications(); + QString addUserApplication(const QVariantMap &desktop_file, const QString &name); + void deleteUserApplication(const QString &app_id); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationUpdateNotifier1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationUpdateNotifier1Adaptor.cpp new file mode 100644 index 0000000..47fba5f --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationUpdateNotifier1Adaptor.cpp @@ -0,0 +1,35 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-application-manager/apps/app-update-notifier/api/dbus/org.desktopspec.ApplicationUpdateNotifier1.xml -a ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationUpdateNotifier1Adaptor -i ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationUpdateNotifier1.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-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationUpdateNotifier1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class ApplicationUpdateNotifier1Adaptor + */ + +ApplicationUpdateNotifier1Adaptor::ApplicationUpdateNotifier1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +ApplicationUpdateNotifier1Adaptor::~ApplicationUpdateNotifier1Adaptor() +{ + // destructor +} + diff --git a/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationUpdateNotifier1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationUpdateNotifier1Adaptor.h new file mode 100644 index 0000000..47b6968 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationUpdateNotifier1Adaptor.h @@ -0,0 +1,51 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-application-manager/apps/app-update-notifier/api/dbus/org.desktopspec.ApplicationUpdateNotifier1.xml -a ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationUpdateNotifier1Adaptor -i ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationUpdateNotifier1.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_DESKTOPSPEC_APPLICATIONUPDATENOTIFIER1ADAPTOR_H +#define ORG_DESKTOPSPEC_APPLICATIONUPDATENOTIFIER1ADAPTOR_H + +#include +#include +#include "./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ApplicationUpdateNotifier1.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.desktopspec.ApplicationUpdateNotifier1 + */ +class ApplicationUpdateNotifier1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.desktopspec.ApplicationUpdateNotifier1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + ApplicationUpdateNotifier1Adaptor(QObject *parent); + virtual ~ApplicationUpdateNotifier1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS +Q_SIGNALS: // SIGNALS + void ApplicationUpdated(); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1.JobAdaptor.cpp b/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1.JobAdaptor.cpp new file mode 100644 index 0000000..791215e --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1.JobAdaptor.cpp @@ -0,0 +1,59 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-application-manager/api/dbus/org.desktopspec.JobManager1.Job.xml -a ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1.JobAdaptor -i ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1.Job.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-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1.JobAdaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class JobAdaptor + */ + +JobAdaptor::JobAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +JobAdaptor::~JobAdaptor() +{ + // destructor +} + +QString JobAdaptor::status() const +{ + // get the value of property Status + return qvariant_cast< QString >(parent()->property("Status")); +} + +void JobAdaptor::Cancel() +{ + // handle method call org.desktopspec.JobManager1.Job.Cancel + QMetaObject::invokeMethod(parent(), "Cancel"); +} + +void JobAdaptor::Resume() +{ + // handle method call org.desktopspec.JobManager1.Job.Resume + QMetaObject::invokeMethod(parent(), "Resume"); +} + +void JobAdaptor::Suspend() +{ + // handle method call org.desktopspec.JobManager1.Job.Suspend + QMetaObject::invokeMethod(parent(), "Suspend"); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1.JobAdaptor.h b/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1.JobAdaptor.h new file mode 100644 index 0000000..f826de0 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1.JobAdaptor.h @@ -0,0 +1,65 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-application-manager/api/dbus/org.desktopspec.JobManager1.Job.xml -a ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1.JobAdaptor -i ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1.Job.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_DESKTOPSPEC_JOBMANAGER1_JOBADAPTOR_H +#define ORG_DESKTOPSPEC_JOBMANAGER1_JOBADAPTOR_H + +#include +#include +#include "./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1.Job.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.desktopspec.JobManager1.Job + */ +class JobAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.desktopspec.JobManager1.Job") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + JobAdaptor(QObject *parent); + virtual ~JobAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(QString Status READ status) + QString status() const; + +public Q_SLOTS: // METHODS + void Cancel(); + void Resume(); + void Suspend(); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1Adaptor.cpp new file mode 100644 index 0000000..6b1c453 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1Adaptor.cpp @@ -0,0 +1,35 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-application-manager/api/dbus/org.desktopspec.JobManager1.xml -a ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1Adaptor -i ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1.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-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class JobManager1Adaptor + */ + +JobManager1Adaptor::JobManager1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +JobManager1Adaptor::~JobManager1Adaptor() +{ + // destructor +} + diff --git a/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1Adaptor.h new file mode 100644 index 0000000..73623b8 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1Adaptor.h @@ -0,0 +1,61 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-application-manager/api/dbus/org.desktopspec.JobManager1.xml -a ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1Adaptor -i ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1.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_DESKTOPSPEC_JOBMANAGER1ADAPTOR_H +#define ORG_DESKTOPSPEC_JOBMANAGER1ADAPTOR_H + +#include +#include +#include "./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.JobManager1.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.desktopspec.JobManager1 + */ +class JobManager1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.desktopspec.JobManager1") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + JobManager1Adaptor(QObject *parent); + virtual ~JobManager1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS +Q_SIGNALS: // SIGNALS + void JobNew(const QDBusObjectPath &job, const QDBusObjectPath &source); + void JobRemoved(const QDBusObjectPath &job, const QString &status, const QVariantList &result); +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1Adaptor.cpp new file mode 100644 index 0000000..04b3995 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1Adaptor.cpp @@ -0,0 +1,61 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-application-manager/api/dbus/org.desktopspec.MimeManager1.xml -a ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1Adaptor -i ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1.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-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class MimeManager1Adaptor + */ + +MimeManager1Adaptor::MimeManager1Adaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +MimeManager1Adaptor::~MimeManager1Adaptor() +{ + // destructor +} + +ObjectMap MimeManager1Adaptor::listApplications(const QString &mimeType) +{ + // handle method call org.desktopspec.MimeManager1.listApplications + ObjectMap applications_and_properties; + QMetaObject::invokeMethod(parent(), "listApplications", Q_RETURN_ARG(ObjectMap, applications_and_properties), Q_ARG(QString, mimeType)); + return applications_and_properties; +} + +QString MimeManager1Adaptor::queryDefaultApplication(const QString &content, QDBusObjectPath &application) +{ + // handle method call org.desktopspec.MimeManager1.queryDefaultApplication + //return static_cast(parent())->queryDefaultApplication(content, application); +} + +void MimeManager1Adaptor::setDefaultApplication(const QStringMap &defaultApps) +{ + // handle method call org.desktopspec.MimeManager1.setDefaultApplication + QMetaObject::invokeMethod(parent(), "setDefaultApplication", Q_ARG(QStringMap, defaultApps)); +} + +void MimeManager1Adaptor::unsetDefaultApplication(const QStringList &mimeTypes) +{ + // handle method call org.desktopspec.MimeManager1.unsetDefaultApplication + QMetaObject::invokeMethod(parent(), "unsetDefaultApplication", Q_ARG(QStringList, mimeTypes)); +} + diff --git a/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1Adaptor.h new file mode 100644 index 0000000..80f64f2 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1Adaptor.h @@ -0,0 +1,69 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-application-manager/api/dbus/org.desktopspec.MimeManager1.xml -a ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1Adaptor -i ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1.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_DESKTOPSPEC_MIMEMANAGER1ADAPTOR_H +#define ORG_DESKTOPSPEC_MIMEMANAGER1ADAPTOR_H + +#include +#include +#include "./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.MimeManager1.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.desktopspec.MimeManager1 + */ +class MimeManager1Adaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.desktopspec.MimeManager1") + 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" + "") +public: + MimeManager1Adaptor(QObject *parent); + virtual ~MimeManager1Adaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + ObjectMap listApplications(const QString &mimeType); + QString queryDefaultApplication(const QString &content, QDBusObjectPath &application); + void setDefaultApplication(const QStringMap &defaultApps); + void unsetDefaultApplication(const QStringList &mimeTypes); +Q_SIGNALS: // SIGNALS +}; + +#endif diff --git a/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1Adaptor.cpp b/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1Adaptor.cpp new file mode 100644 index 0000000..5f8f5b7 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1Adaptor.cpp @@ -0,0 +1,43 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-application-manager/api/dbus/org.desktopspec.ObjectManager1.xml -a ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1Adaptor -i ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1.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-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1Adaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class ObjectManagerAdaptor + */ + +ObjectManagerAdaptor::ObjectManagerAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +ObjectManagerAdaptor::~ObjectManagerAdaptor() +{ + // destructor +} + +ObjectMap ObjectManagerAdaptor::GetManagedObjects() +{ + // handle method call org.desktopspec.DBus.ObjectManager.GetManagedObjects + ObjectMap objpath_interfaces_and_properties; + QMetaObject::invokeMethod(parent(), "GetManagedObjects", Q_RETURN_ARG(ObjectMap, objpath_interfaces_and_properties)); + return objpath_interfaces_and_properties; +} + diff --git a/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1Adaptor.h b/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1Adaptor.h new file mode 100644 index 0000000..6a93537 --- /dev/null +++ b/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1Adaptor.h @@ -0,0 +1,63 @@ +/* + * This file was generated by qdbusxml2cpp version 0.8 + * Command line was: qdbusxml2cpp ./dde-application-manager/api/dbus/org.desktopspec.ObjectManager1.xml -a ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1Adaptor -i ./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1.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_DESKTOPSPEC_OBJECTMANAGER1ADAPTOR_H +#define ORG_DESKTOPSPEC_OBJECTMANAGER1ADAPTOR_H + +#include +#include +#include "./dde-application-manager/toolGenerate/qdbusxml2cpp/org.desktopspec.ObjectManager1.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.desktopspec.DBus.ObjectManager + */ +class ObjectManagerAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.desktopspec.DBus.ObjectManager") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + ObjectManagerAdaptor(QObject *parent); + virtual ~ObjectManagerAdaptor(); + +public: // PROPERTIES +public Q_SLOTS: // METHODS + ObjectMap GetManagedObjects(); +Q_SIGNALS: // SIGNALS + void InterfacesAdded(const QDBusObjectPath &object_path, ObjectInterfaceMap interfaces_and_properties); + void InterfacesRemoved(const QDBusObjectPath &object_path, const QStringList &interfaces); +}; + +#endif