1 | // Copyright (C) 2016 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #include "servicemap_p.h" |
5 | |
6 | QT_BEGIN_NAMESPACE |
7 | |
8 | QT_IMPL_METATYPE_EXTERN(ServiceMap) |
9 | |
10 | const QDBusArgument &operator>>(const QDBusArgument &argument, ServiceMap &serviceMap) |
11 | { |
12 | argument.beginMap(); |
13 | |
14 | while (!argument.atEnd()) { |
15 | quint32 uuid; |
16 | QString service; |
17 | |
18 | argument.beginMapEntry(); |
19 | argument >> uuid; |
20 | argument >> service; |
21 | argument.endMapEntry(); |
22 | |
23 | serviceMap.insert(key: uuid, value: service); |
24 | } |
25 | |
26 | argument.endMap(); |
27 | |
28 | return argument; |
29 | } |
30 | |
31 | QT_END_NAMESPACE |
32 |