Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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)
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
#define QT_IMPL_METATYPE_EXTERN(TYPE)
Definition qmetatype.h:1390
unsigned int quint32
Definition qtypes.h:50
QT_BEGIN_NAMESPACE typedef QMap< quint32, QString > ServiceMap
QDBusArgument argument