3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-01-31 07:12:18 +00:00
Brooklyn/plasma/kcms/keyboard/layoutnames.cpp
Scare Crowe d2ebfd0519 QortalOS Titan 5.60.12
Screw the description like that inbred T3Q
2022-03-05 21:17:59 +05:00

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;
}