NetworkManagerQt

generictypes.h
1/*
2 This file is part of the KDE project
3 SPDX-FileCopyrightText: 2008 Will Stephenson <wstephenson@kde.org>
4 SPDX-FileCopyrightText: 2013 Jan Grulich <jgrulich@redhat.com>
5
6 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7*/
8
9#ifndef GENERIC_TYPES_H
10#define GENERIC_TYPES_H
11
12#include <networkmanagerqt/networkmanagerqt_export.h>
13
14#include <QDBusArgument>
15#include <QVariantMap>
16
18Q_DECLARE_METATYPE(UIntListList)
19
20typedef QList<uint> UIntList;
21Q_DECLARE_METATYPE(UIntList)
22
24Q_DECLARE_METATYPE(NMVariantMapMap)
25
27Q_DECLARE_METATYPE(NMVariantMapList)
28
31Q_DECLARE_METATYPE(NMStringMap)
32
33NETWORKMANAGERQT_EXPORT QDBusArgument &operator<<(QDBusArgument &argument, const NMStringMap &mydict);
34NETWORKMANAGERQT_EXPORT const QDBusArgument &operator>>(const QDBusArgument &argument, NMStringMap &mydict);
35
36typedef struct {
38 uint prefix;
39 QByteArray gateway;
40} IpV6DBusAddress;
41
42Q_DECLARE_METATYPE(IpV6DBusAddress)
44Q_DECLARE_METATYPE(IpV6DBusAddressList)
45
46NETWORKMANAGERQT_EXPORT QDBusArgument &operator<<(QDBusArgument &argument, const IpV6DBusAddress &address);
47NETWORKMANAGERQT_EXPORT const QDBusArgument &operator>>(const QDBusArgument &argument, IpV6DBusAddress &address);
48
49typedef struct {
50 QByteArray destination;
51 uint prefix;
52 QByteArray nexthop;
53 uint metric;
54} IpV6DBusRoute;
55
56Q_DECLARE_METATYPE(IpV6DBusRoute)
58Q_DECLARE_METATYPE(IpV6DBusRouteList)
59
60NETWORKMANAGERQT_EXPORT QDBusArgument &operator<<(QDBusArgument &argument, const IpV6DBusRoute &route);
61NETWORKMANAGERQT_EXPORT const QDBusArgument &operator>>(const QDBusArgument &argument, IpV6DBusRoute &route);
62
63// ipv6 nameservers
65Q_DECLARE_METATYPE(IpV6DBusNameservers)
66
67typedef struct {
68 uint state;
69 uint reason;
70} DeviceDBusStateReason;
71Q_DECLARE_METATYPE(DeviceDBusStateReason)
72
73NETWORKMANAGERQT_EXPORT QDBusArgument &operator<<(QDBusArgument &argument, const DeviceDBusStateReason &reason);
74NETWORKMANAGERQT_EXPORT const QDBusArgument &operator>>(const QDBusArgument &argument, DeviceDBusStateReason &reason);
75
76#endif // GENERIC_TYPES_H
KCALENDARCORE_EXPORT QDataStream & operator>>(QDataStream &in, const KCalendarCore::Alarm::Ptr &)
PostalAddress address(const QVariant &location)
QDebug operator<<(QDebug dbg, const PerceptualColor::MultiSpinBoxSection &value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.