mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-01-31 07:12:18 +00:00
d2ebfd0519
Screw the description like that inbred T3Q
25 lines
709 B
C++
25 lines
709 B
C++
#include "layoutnames.h"
|
|
#include <QDBusMetaType>
|
|
|
|
void LayoutNames::registerMetaType()
|
|
{
|
|
qDBusRegisterMetaType<LayoutNames>();
|
|
qDBusRegisterMetaType<QVector<LayoutNames>>();
|
|
}
|
|
|
|
QDBusArgument &operator<<(QDBusArgument &argument, const LayoutNames &layoutNames)
|
|
{
|
|
argument.beginStructure();
|
|
argument << layoutNames.shortName << layoutNames.displayName << layoutNames.longName;
|
|
argument.endStructure();
|
|
return argument;
|
|
}
|
|
|
|
const QDBusArgument &operator>>(const QDBusArgument &argument, LayoutNames &layoutNames)
|
|
{
|
|
argument.beginStructure();
|
|
argument >> layoutNames.shortName >> layoutNames.displayName >> layoutNames.longName;
|
|
argument.endStructure();
|
|
return argument;
|
|
}
|