mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
121 lines
3.6 KiB
C++
121 lines
3.6 KiB
C++
/*
|
|
* Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd.
|
|
*
|
|
* Author: sbw <sbw@sbw.so>
|
|
*
|
|
* Maintainer: sbw <sbw@sbw.so>
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
/*
|
|
* This file was generated by qdbusxml2cpp version 0.8
|
|
* Command line was: qdbusxml2cpp -c DBusXMouseArea -p dbusxmousearea com.deepin.api.XMouseArea.xml
|
|
*
|
|
* qdbusxml2cpp is Copyright (C) 2015 Digia Plc and/or its subsidiary(-ies).
|
|
*
|
|
* This is an auto-generated file.
|
|
* Do not edit! All changes made to it will be lost.
|
|
*/
|
|
|
|
#ifndef DBUSXMOUSEAREA_H_1441764668
|
|
#define DBUSXMOUSEAREA_H_1441764668
|
|
|
|
#include <QtCore/QObject>
|
|
#include <QtCore/QByteArray>
|
|
#include <QtCore/QList>
|
|
#include <QtCore/QMap>
|
|
#include <QtCore/QString>
|
|
#include <QtCore/QStringList>
|
|
#include <QtCore/QVariant>
|
|
#include <QtDBus/QtDBus>
|
|
|
|
/*
|
|
* Proxy class for interface com.deepin.api.XMouseArea
|
|
*/
|
|
class DBusXMouseArea: public QDBusAbstractInterface
|
|
{
|
|
Q_OBJECT
|
|
|
|
Q_SLOT void __propertyChanged__(const QDBusMessage &msg)
|
|
{
|
|
QList<QVariant> arguments = msg.arguments();
|
|
if (3 != arguments.count()) {
|
|
return;
|
|
}
|
|
QString interfaceName = msg.arguments().at(0).toString();
|
|
if (interfaceName != "com.deepin.api.XMouseArea") {
|
|
return;
|
|
}
|
|
QVariantMap changedProps = qdbus_cast<QVariantMap>(arguments.at(1).value<QDBusArgument>());
|
|
QStringList keys = changedProps.keys();
|
|
foreach(const QString & prop, keys) {
|
|
const QMetaObject *self = metaObject();
|
|
for (int i = self->propertyOffset(); i < self->propertyCount(); ++i) {
|
|
QMetaProperty p = self->property(i);
|
|
if (p.name() == prop) {
|
|
Q_EMIT p.notifySignal().invoke(this);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public:
|
|
static inline const char *staticInterfaceName()
|
|
{
|
|
return "com.deepin.api.XMouseArea";
|
|
}
|
|
|
|
public:
|
|
explicit DBusXMouseArea(QObject *parent = 0);
|
|
|
|
~DBusXMouseArea();
|
|
|
|
public Q_SLOTS: // METHODS
|
|
inline QDBusPendingReply<QString> RegisterFullScreen()
|
|
{
|
|
QList<QVariant> argumentList;
|
|
return asyncCallWithArgumentList(QStringLiteral("RegisterFullScreen"), argumentList);
|
|
}
|
|
|
|
inline QDBusPendingReply<QString> RegisterArea(const qint32 x1, const qint32 y1, const qint32 x2, const qint32 y2, const qint32 flag)
|
|
{
|
|
QList<QVariant> argumentList;
|
|
argumentList << x1 << y1 << x2 << y2 << flag;
|
|
return asyncCallWithArgumentList(QStringLiteral("RegisterArea"), argumentList);
|
|
}
|
|
|
|
inline QDBusPendingReply<> UnregisterArea(const QString &in0)
|
|
{
|
|
QList<QVariant> argumentList;
|
|
argumentList << QVariant::fromValue(in0);
|
|
return asyncCallWithArgumentList(QStringLiteral("UnregisterArea"), argumentList);
|
|
}
|
|
|
|
Q_SIGNALS: // SIGNALS
|
|
void ButtonRelease(int button, int x, int y, const QString &id);
|
|
// begin property changed signals
|
|
};
|
|
|
|
namespace com
|
|
{
|
|
namespace deepin
|
|
{
|
|
namespace api
|
|
{
|
|
typedef ::DBusXMouseArea XMouseArea;
|
|
}
|
|
}
|
|
}
|
|
#endif
|