src/dbus/qdbusmarshaller.cpp
branchRCL_3
changeset 4 3b1da2848fc7
parent 0 1918ee327afb
child 5 d3bac044e0f0
equal deleted inserted replaced
3:41300fa6a67c 4:3b1da2848fc7
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtDBus module of the Qt Toolkit.
     7 ** This file is part of the QtDBus module of the Qt Toolkit.
     8 **
     8 **
   385     }
   385     }
   386 
   386 
   387     switch (*signature) {
   387     switch (*signature) {
   388 #ifdef __OPTIMIZE__
   388 #ifdef __OPTIMIZE__
   389     case DBUS_TYPE_BYTE:
   389     case DBUS_TYPE_BYTE:
   390     case DBUS_TYPE_BOOLEAN:
       
   391     case DBUS_TYPE_INT16:
   390     case DBUS_TYPE_INT16:
   392     case DBUS_TYPE_UINT16:
   391     case DBUS_TYPE_UINT16:
   393     case DBUS_TYPE_INT32:
   392     case DBUS_TYPE_INT32:
   394     case DBUS_TYPE_UINT32:
   393     case DBUS_TYPE_UINT32:
   395     case DBUS_TYPE_INT64:
   394     case DBUS_TYPE_INT64:
   396     case DBUS_TYPE_UINT64:
   395     case DBUS_TYPE_UINT64:
   397     case DBUS_TYPE_DOUBLE:
   396     case DBUS_TYPE_DOUBLE:
   398         qIterAppend(&iterator, ba, *signature, arg.constData());
   397         qIterAppend(&iterator, ba, *signature, arg.constData());
       
   398         return true;
       
   399     case DBUS_TYPE_BOOLEAN:
       
   400         append( arg.toBool() );
   399         return true;
   401         return true;
   400 #else
   402 #else
   401     case DBUS_TYPE_BYTE:
   403     case DBUS_TYPE_BYTE:
   402         append( qvariant_cast<uchar>(arg) );
   404         append( qvariant_cast<uchar>(arg) );
   403         return true;
   405         return true;