Changeset View
Changeset View
Standalone View
Standalone View
virtualdesktopsdbustypes.h
- This file was added.
1 | /******************************************************************** | ||||
---|---|---|---|---|---|
2 | KWin - the KDE window manager | ||||
3 | This file is part of the KDE project. | ||||
4 | | ||||
5 | Copyright (C) 2018 Marco Martin <mart@kde.org> | ||||
6 | | ||||
7 | This program is free software; you can redistribute it and/or modify | ||||
8 | it under the terms of the GNU General Public License as published by | ||||
9 | the Free Software Foundation; either version 2 of the License, or | ||||
10 | (at your option) any later version. | ||||
11 | | ||||
12 | This program is distributed in the hope that it will be useful, | ||||
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
15 | GNU General Public License for more details. | ||||
16 | | ||||
17 | You should have received a copy of the GNU General Public License | ||||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
19 | *********************************************************************/ | ||||
20 | | ||||
21 | #ifndef KWIN_VIRTUALDESKTOPS_DBUS_TYPES_H | ||||
22 | #define KWIN_VIRTUALDESKTOPS_DBUS_TYPES_H | ||||
23 | | ||||
24 | #include <QtDBus> | ||||
25 | | ||||
26 | namespace KWin | ||||
27 | { | ||||
28 | | ||||
29 | struct DBusDesktopDataStruct { | ||||
30 | uint position; | ||||
31 | QString id; | ||||
32 | QString name; | ||||
33 | }; | ||||
34 | typedef QVector<DBusDesktopDataStruct> DBusDesktopDataVector; | ||||
35 | } | ||||
36 | | ||||
37 | const QDBusArgument &operator<<(QDBusArgument &argument, const KWin::DBusDesktopDataStruct &desk); | ||||
38 | const QDBusArgument &operator>>(const QDBusArgument &argument, KWin::DBusDesktopDataStruct &desk); | ||||
39 | | ||||
40 | Q_DECLARE_METATYPE(KWin::DBusDesktopDataStruct) | ||||
41 | | ||||
42 | const QDBusArgument &operator<<(QDBusArgument &argument, const KWin::DBusDesktopDataVector &deskVector); | ||||
43 | const QDBusArgument &operator>>(const QDBusArgument &argument, KWin::DBusDesktopDataVector &deskVector); | ||||
44 | | ||||
45 | Q_DECLARE_METATYPE(KWin::DBusDesktopDataVector) | ||||
46 | | ||||
47 | #endif // KWIN_VIRTUALDESKTOPS_DBUS_TYPES_H |