mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-07 06:44:18 +00:00
48 lines
1.3 KiB
C
48 lines
1.3 KiB
C
/*
|
|
SNI Dbus serialisers
|
|
Copyright 2015 <davidedmundson@kde.org> David Edmundson
|
|
|
|
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QByteArray>
|
|
#include <QDBusArgument>
|
|
#include <QImage>
|
|
#include <QString>
|
|
#include <QVector>
|
|
|
|
// Custom message type for DBus
|
|
struct KDbusImageStruct {
|
|
KDbusImageStruct();
|
|
KDbusImageStruct(const QImage &image);
|
|
int width;
|
|
int height;
|
|
QByteArray data;
|
|
};
|
|
|
|
typedef QVector<KDbusImageStruct> KDbusImageVector;
|
|
|
|
struct KDbusToolTipStruct {
|
|
QString icon;
|
|
KDbusImageVector image;
|
|
QString title;
|
|
QString subTitle;
|
|
};
|
|
|
|
const QDBusArgument &operator<<(QDBusArgument &argument, const KDbusImageStruct &icon);
|
|
const QDBusArgument &operator>>(const QDBusArgument &argument, KDbusImageStruct &icon);
|
|
|
|
Q_DECLARE_METATYPE(KDbusImageStruct)
|
|
|
|
const QDBusArgument &operator<<(QDBusArgument &argument, const KDbusImageVector &iconVector);
|
|
const QDBusArgument &operator>>(const QDBusArgument &argument, KDbusImageVector &iconVector);
|
|
|
|
Q_DECLARE_METATYPE(KDbusImageVector)
|
|
|
|
const QDBusArgument &operator<<(QDBusArgument &argument, const KDbusToolTipStruct &toolTip);
|
|
const QDBusArgument &operator>>(const QDBusArgument &argument, KDbusToolTipStruct &toolTip);
|
|
|
|
Q_DECLARE_METATYPE(KDbusToolTipStruct)
|