/* This file is part of the sni-qt project Copyright 2011 Canonical Author: Aurelien Gateau sni-qt is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Foundation; version 3 of the License. sni-qt is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with sni-qt. If not, see . */ #ifndef DBUSIMAGE_H #define DBUSIMAGE_H // Qt #include #include #include class QDBusArgument; struct DBusImage; typedef QList DBusImageList; Q_DECLARE_METATYPE(DBusImageList) struct DBusImage { int width; int height; QByteArray pixels; static DBusImage createFromPixmap(const QPixmap&); static DBusImageList createListFromIcon(const QIcon&); }; Q_DECLARE_METATYPE(DBusImage) QDBusArgument& operator<<(QDBusArgument&, const DBusImage&); const QDBusArgument& operator>>(const QDBusArgument&, DBusImage&); #endif /* DBUSIMAGE_H */