dde-dock/frame/dbus/dbusdisplay.cpp
范朋程 2d958dd670 chore: V23接口改造适配
V23接口改造适配

Log: V23接口改造适配
Influence: 无
Task: https://pms.uniontech.com/task-view-207483.html
Change-Id: Ide530c023ea41f86fad2e8001ec67f1afaa897ab
2022-12-06 14:40:35 +08:00

55 lines
1.7 KiB
C++

/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp -p DBusDisplay -c DBusDisplay org.deepin.dde.Display1.xml
*
* qdbusxml2cpp is Copyright (C) 2015 Digia Plc and/or its subsidiary(-ies).
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#include "dbusdisplay.h"
/*
* Implementation of interface class DBusDisplay
*/
DBusDisplay::DBusDisplay(QObject *parent)
: QDBusAbstractInterface(staticServiceName(), staticObjectPath(), staticInterfaceName(), QDBusConnection::sessionBus(), parent)
{
qDBusRegisterMetaType<BrightnessMap>();
qDBusRegisterMetaType<DisplayRect>();
QDBusConnection::sessionBus().connect(this->service(), this->path(), "org.freedesktop.DBus.Properties", "PropertiesChanged","sa{sv}as", this, SLOT(__propertyChanged__(QDBusMessage)));
}
DBusDisplay::~DBusDisplay()
{
QDBusConnection::sessionBus().disconnect(service(), path(), "org.freedesktop.DBus.Properties", "PropertiesChanged", "sa{sv}as", this, SLOT(propertyChanged(QDBusMessage)));
}
QDBusArgument &operator<<(QDBusArgument &argument, const DisplayRect &rect)
{
argument.beginStructure();
argument << rect.x << rect.y << rect.width << rect.height;
argument.endStructure();
return argument;
}
const QDBusArgument &operator>>(const QDBusArgument &argument, DisplayRect &rect)
{
argument.beginStructure();
argument >> rect.x >> rect.y >> rect.width >> rect.height;
argument.endStructure();
return argument;
}
QDebug operator<<(QDebug deg, const DisplayRect &rect)
{
qDebug() << "x:" << rect.x << "y:" << rect.y << "width:" << rect.width << "height:" << rect.height;
return deg;
}