You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.3 KiB
47 lines
1.3 KiB
/* |
|
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)
|
|
|