DBus-1-TQt 1.0
tqdbusdata.cpp File Reference
#include "dbus/dbus.h"
#include "tqdbusdata.h"
#include "tqdbusdatalist.h"
#include "tqdbusdatamap.h"
#include "tqdbusobjectpath.h"
#include "tqdbusunixfd.h"
#include "tqdbusvariant.h"
#include <tqshared.h>
#include <tqstring.h>
#include <tqvaluelist.h>
+ Include dependency graph for tqdbusdata.cpp:

Go to the source code of this file.

Classes

class  TQT_DBusData::Private
 

Functions

static const char * qDBusTypeForTQT_DBusType (TQT_DBusData::Type type)
 
template<typename T >
TQCString qDBusSignatureForMapValue (const TQT_DBusDataMap< T > &map)
 

Function Documentation

◆ qDBusSignatureForMapValue()

template<typename T >
TQCString qDBusSignatureForMapValue ( const TQT_DBusDataMap< T > &  map)

Definition at line 1026 of file tqdbusdata.cpp.

1027{
1028 if (map.hasContainerValueType())
1030 else
1031 return qDBusTypeForTQT_DBusType(map.valueType());
1032}
TQCString buildDBusSignature() const
Creates the data objects D-Bus signature.
TQT_DBusData::Type valueType() const
Returns the value type of the map object.
TQT_DBusData containerValueType() const
Returns a container prototype for the map's value type.
bool hasContainerValueType() const
Checks whether the value type is a data container itself.
static const char * qDBusTypeForTQT_DBusType(TQT_DBusData::Type type)
Definition: tqdbusdata.cpp:987

References TQT_DBusData::buildDBusSignature(), TQT_DBusDataMap< T >::containerValueType(), TQT_DBusDataMap< T >::hasContainerValueType(), qDBusTypeForTQT_DBusType(), and TQT_DBusDataMap< T >::valueType().

+ Here is the call graph for this function:

◆ qDBusTypeForTQT_DBusType()

static const char * qDBusTypeForTQT_DBusType ( TQT_DBusData::Type  type)
static

Definition at line 987 of file tqdbusdata.cpp.

988{
989 switch (type)
990 {
992 return 0;
994 return DBUS_TYPE_BOOLEAN_AS_STRING;
996 return DBUS_TYPE_BYTE_AS_STRING;
998 return DBUS_TYPE_INT16_AS_STRING;
1000 return DBUS_TYPE_UINT16_AS_STRING;
1002 return DBUS_TYPE_INT32_AS_STRING;
1004 return DBUS_TYPE_UINT32_AS_STRING;
1006 return DBUS_TYPE_INT64_AS_STRING;
1008 return DBUS_TYPE_UINT64_AS_STRING;
1010 return DBUS_TYPE_DOUBLE_AS_STRING;
1012 return DBUS_TYPE_STRING_AS_STRING;
1014 return DBUS_TYPE_OBJECT_PATH_AS_STRING;
1018 return DBUS_TYPE_VARIANT_AS_STRING;
1019 default:
1020 break;
1021 }
1022 return 0;
1023}
#define DBUS_TYPE_UNIX_FD_AS_STRING
Definition: tqdbusunixfd.h:39

References TQT_DBusData::Bool, TQT_DBusData::Byte, DBUS_TYPE_UNIX_FD_AS_STRING, TQT_DBusData::Double, TQT_DBusData::Int16, TQT_DBusData::Int32, TQT_DBusData::Int64, TQT_DBusData::Invalid, TQT_DBusData::ObjectPath, TQT_DBusData::String, TQT_DBusData::UInt16, TQT_DBusData::UInt32, TQT_DBusData::UInt64, TQT_DBusData::UnixFd, and TQT_DBusData::Variant.

+ Here is the caller graph for this function: