59 dbus_uint64_t maxValue;
70 q_dbus_message_iter_get_basic(it, &value);
71 q_dbus_message_iter_next(it);
81 char *sig = q_dbus_message_iter_get_signature(&
iterator);
95 return bool(qIterGet<dbus_bool_t>(&
iterator));
100 return qIterGet<dbus_uint16_t>(&
iterator);
105 return qIterGet<dbus_int16_t>(&
iterator);
110 return qIterGet<dbus_int32_t>(&
iterator);
115 return qIterGet<dbus_uint32_t>(&
iterator);
120 return qIterGet<qlonglong>(&
iterator);
125 return qIterGet<qulonglong>(&
iterator);
184 q_dbus_message_iter_next(&
iterator);
191 switch (q_dbus_message_iter_get_arg_type(&
iterator)) {
193 case DBUS_TYPE_INT16:
194 case DBUS_TYPE_UINT16:
195 case DBUS_TYPE_INT32:
196 case DBUS_TYPE_UINT32:
197 case DBUS_TYPE_INT64:
198 case DBUS_TYPE_UINT64:
199 case DBUS_TYPE_BOOLEAN:
200 case DBUS_TYPE_DOUBLE:
201 case DBUS_TYPE_STRING:
202 case DBUS_TYPE_OBJECT_PATH:
203 case DBUS_TYPE_SIGNATURE:
206 case DBUS_TYPE_VARIANT:
209 case DBUS_TYPE_ARRAY:
210 switch (q_dbus_message_iter_get_element_type(&
iterator)) {
212 case DBUS_TYPE_STRING:
215 case DBUS_TYPE_DICT_ENTRY:
221 case DBUS_TYPE_STRUCT:
223 case DBUS_TYPE_DICT_ENTRY:
230 case DBUS_TYPE_INVALID:
243 switch (q_dbus_message_iter_get_arg_type(&
iterator)) {
246 case DBUS_TYPE_INT16:
248 case DBUS_TYPE_UINT16:
250 case DBUS_TYPE_INT32:
252 case DBUS_TYPE_UINT32:
254 case DBUS_TYPE_DOUBLE:
256 case DBUS_TYPE_BOOLEAN:
258 case DBUS_TYPE_INT64:
260 case DBUS_TYPE_UINT64:
262 case DBUS_TYPE_STRING:
264 case DBUS_TYPE_OBJECT_PATH:
266 case DBUS_TYPE_SIGNATURE:
268 case DBUS_TYPE_VARIANT:
271 case DBUS_TYPE_ARRAY:
272 switch (q_dbus_message_iter_get_element_type(&
iterator)) {
276 case DBUS_TYPE_STRING:
278 case DBUS_TYPE_DICT_ENTRY:
285 case DBUS_TYPE_STRUCT:
298 ptr += q_dbus_message_iter_get_arg_type(&
iterator);
299 q_dbus_message_iter_next(&
iterator);
302 return QVariant::fromValue<void *>(
ptr);
309 const int type = q_dbus_message_iter_get_arg_type(&
iterator);
311 case DBUS_TYPE_STRING:
312 case DBUS_TYPE_OBJECT_PATH:
313 case DBUS_TYPE_SIGNATURE:
326 q_dbus_message_iter_next(&
iterator);
335 if (q_dbus_message_iter_get_arg_type(&
iterator) == DBUS_TYPE_ARRAY
336 && q_dbus_message_iter_get_element_type(&
iterator) == DBUS_TYPE_STRING)
345 q_dbus_message_iter_recurse(&
iterator, &sub);
346 q_dbus_message_iter_next(&
iterator);
349 q_dbus_message_iter_get_fixed_array(&sub,&data,&len);
355 if (q_dbus_message_iter_get_arg_type(&
iterator) == DBUS_TYPE_ARRAY
356 && q_dbus_message_iter_get_element_type(&
iterator) == DBUS_TYPE_BYTE) {
365 return q_dbus_message_iter_get_arg_type(&
iterator) == DBUS_TYPE_INVALID;
396 q_dbus_message_iter_next(&
iterator);
433 q_dbus_message_iter_next(&
iterator);
The QVariant class acts like a union for the most common Qt data types.
QDBusSignature toSignatureUnchecked()
static QDBusArgumentPrivate * d(QDBusArgument &q)
QDBusArgument::ElementType currentType()
QStringList toStringListUnchecked()
#define QT_END_NAMESPACE
This macro expands to.
QVariant qVariantFromValue(const T &)
QDBusDemarshaller * endStructure()
#define it(className, varName)
The QDBusArgument class is used to marshall and demarshall D-Bus arguments.
static QDBusArgument create(QDBusArgumentPrivate *d)
QString currentSignature()
QDBusDemarshaller * endMapEntry()
The QByteArray class provides an array of bytes.
The QDBusSignature class enables the programmer to identify the SIGNATURE type provided by the D-Bus ...
QDBusDemarshaller * parent
#define DBUS_TYPE_UNIX_FD
QDBusDemarshaller * beginMap()
The QString class provides a Unicode character string.
QDBusObjectPath toObjectPathUnchecked()
QDBusDemarshaller * endArray()
QString toStringUnchecked()
The QDBusUnixFileDescriptor class holds one Unix file descriptor.
void append(const T &t)
Inserts value at the end of the list.
QDBusArgument duplicate()
#define QT_BEGIN_NAMESPACE
This macro expands to.
QDBusDemarshaller * endCommon()
QStringList toStringList()
QByteArray toByteArrayUnchecked()
The QStringList class provides a list of strings.
static QString fromUtf8(const char *, int size=-1)
Returns a QString initialized with the first size bytes of the UTF-8 string str.
static const char * data(const QByteArray &arr)
const T * ptr(const T &t)
QDBusDemarshaller * beginStructure()
static QVariant fromValue(const T &value)
Returns a QVariant containing a copy of value.
QDBusSignature toSignature()
ElementType
This enum describes the type of element held by the argument.
QDBusDemarshaller * endMap()
QVariant toVariantInternal()
The QDBusObjectPath class enables the programmer to identify the OBJECT_PATH type provided by the D-B...
QDBusUnixFileDescriptor toUnixFileDescriptor()
void giveFileDescriptor(int fileDescriptor)
Sets the Unix file descriptor to fileDescriptor without copying.
static T qIterGet(DBusMessageIter *it)
QDBusObjectPath toObjectPath()
QDBusDemarshaller(int flags)
QDBusDemarshaller * beginArray()
The QDBusVariant class enables the programmer to identify the variant type provided by the D-Bus type...
bool isCurrentTypeStringLike()
QDBusDemarshaller * beginMapEntry()
QDBusDemarshaller * beginCommon()