Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
servicemap.cpp
Go to the documentation of this file.
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
7
9
11{
13
14 while (!argument.atEnd()) {
15 quint32 uuid;
16 QString service;
17
19 argument >> uuid;
20 argument >> service;
22
23 serviceMap.insert(uuid, service);
24 }
25
27
28 return argument;
29}
30
DarwinBluetooth::ServiceHash serviceMap
\inmodule QtDBus
void beginMapEntry()
Opens a D-Bus map entry suitable for appending the key and value entries.
void endMapEntry()
Closes a D-Bus map entry opened with beginMapEntry().
void endMap()
Closes a D-Bus map opened with beginMap().
bool atEnd() const
Returns true if there are no more elements to be extracted from this QDBusArgument.
void beginMap(int keyMetaTypeId, int valueMetaTypeId)
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
Definition qhash.h:1283
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
Combined button and popup list for selecting options.
#define QT_IMPL_METATYPE_EXTERN(TYPE)
Definition qmetatype.h:1369
unsigned int quint32
Definition qtypes.h:45
QT_BEGIN_NAMESPACE typedef QMap< quint32, QString > ServiceMap
QDBusArgument argument