DBus-1-TQt
1.0
|
#include <tqdbusdatalist.h>
Classes | |
class | Private |
Private Attributes | |
Private * | d |
Class to transport lists of D-Bus data types.
array
this bindings use the term list
since the behavior and characteristics of the implementation is more list like.There are basically two ways to create TQT_DBusDataList objects:
Example for creating a filled list from content
Example for creating an empty list
Definition at line 71 of file tqdbusdatalist.h.
TQT_DBusDataList::TQT_DBusDataList | ( | ) |
Creates an empty and invalid list.
Definition at line 42 of file tqdbusdatalist.cpp.
|
explicit |
Creates an empty list with the given simple type for elements.
The given type has be one of the non-container types, i.e. any other than TQT_DBusData::Map, TQT_DBusData::List or TQT_DBusData::Struct
For creating a list with elements which are containers themselves, use TQT_DBusDataList(const TQT_DBusData&);
simpleItemType | the type of the elements in the new list |
Definition at line 46 of file tqdbusdatalist.cpp.
References d, and TQT_DBusDataList::Private::type.
|
explicit |
Creates an empty list with the given container type for elements.
For creating a list with simple elements you can also use TQT_DBusDataList(TQT_DBusData::Type);
containerItemType | the type of the elements in the new list |
Definition at line 51 of file tqdbusdatalist.cpp.
References TQT_DBusDataList::Private::containerItem, containerItemType(), d, TQT_DBusData::List, TQT_DBusData::Map, TQT_DBusData::Struct, TQT_DBusData::type(), and TQT_DBusDataList::Private::type.
TQT_DBusDataList::TQT_DBusDataList | ( | const TQT_DBusDataList & | other | ) |
Creates a list from the given other
list.
This behaves basically like copying a TQValueList through its copy constructor, i.e. no value are actually copied at this time.
other | the other list object to copy from |
Definition at line 68 of file tqdbusdatalist.cpp.
References TQT_DBusDataList::Private::containerItem, d, TQT_DBusDataList::Private::list, and TQT_DBusDataList::Private::type.
TQT_DBusDataList::TQT_DBusDataList | ( | const TQValueList< TQT_DBusData > & | other | ) |
Creates a list from the given TQValueList of TQT_DBusData objects.
If the other
list is empty, this will behave like TQT_DBusDataList(), i.e. create an empty and invalid list object.
Type information for the list object, i.e. element type and, if applicable, container item type, will be derived from the other
list's elements.
other
list do not all have the same type, the list object will also be empty and invalidother | the TQValueList of TQT_DBusData objects to copy from |
Definition at line 75 of file tqdbusdatalist.cpp.
References TQT_DBusData::buildDBusSignature(), TQT_DBusDataList::Private::containerItem, d, hasContainerItemType(), TQT_DBusData::Invalid, TQT_DBusDataList::Private::list, and TQT_DBusDataList::Private::type.
TQT_DBusDataList::TQT_DBusDataList | ( | const TQValueList< bool > & | other | ) |
Creates a list from the given TQValueList of boolean values.
Type information for the list object will be set to TQT_DBusData::Bool also when the other
list is empty, i.e. this allows to create an empty but valid list object, comparable to using TQT_DBusDataList(TQT_DBusData::Type) with TQT_DBusData::Bool
other | the TQValueList of boolean values to copy from |
Definition at line 115 of file tqdbusdatalist.cpp.
References TQT_DBusData::Bool, d, TQT_DBusData::fromBool(), TQT_DBusDataList::Private::list, and TQT_DBusDataList::Private::type.
TQT_DBusDataList::TQT_DBusDataList | ( | const TQValueList< TQ_UINT8 > & | other | ) |
Creates a list from the given TQValueList of byte (unsigned char) values.
Type information for the list object will be set to TQT_DBusData::Byte also when the other
list is empty, i.e. this allows to create an empty but valid list object, comparable to using TQT_DBusDataList(TQT_DBusData::Type) with TQT_DBusData::Byte
other | the TQValueList of byte (unsigned char) values to copy from |
Definition at line 129 of file tqdbusdatalist.cpp.
References TQT_DBusData::Byte, d, TQT_DBusData::fromByte(), TQT_DBusDataList::Private::list, and TQT_DBusDataList::Private::type.
TQT_DBusDataList::TQT_DBusDataList | ( | const TQValueList< TQ_INT16 > & | other | ) |
Creates a list from the given TQValueList of signed 16-bit integer values.
Type information for the list object will be set to TQT_DBusData::Int16 also when the other
list is empty, i.e. this allows to create an empty but valid list object, comparable to using TQT_DBusDataList(TQT_DBusData::Type) with TQT_DBusData::Int16
other | the TQValueList of signed 16-bit integer values to copy from |
Definition at line 143 of file tqdbusdatalist.cpp.
References d, TQT_DBusData::fromInt16(), TQT_DBusData::Int16, TQT_DBusDataList::Private::list, and TQT_DBusDataList::Private::type.
TQT_DBusDataList::TQT_DBusDataList | ( | const TQValueList< TQ_UINT16 > & | other | ) |
Creates a list from the given TQValueList of unsigned 16-bit integer values.
Type information for the list object will be set to TQT_DBusData::UInt16 also when the other
list is empty, i.e. this allows to create an empty but valid list object, comparable to using TQT_DBusDataList(TQT_DBusData::Type) with TQT_DBusData::UInt16
other | the TQValueList of unsigned 16-bit integer values to copy from |
Definition at line 157 of file tqdbusdatalist.cpp.
References d, TQT_DBusData::fromUInt16(), TQT_DBusDataList::Private::list, TQT_DBusDataList::Private::type, and TQT_DBusData::UInt16.
TQT_DBusDataList::TQT_DBusDataList | ( | const TQValueList< TQ_INT32 > & | other | ) |
Creates a list from the given TQValueList of signed 32-bit integer values.
Type information for the list object will be set to TQT_DBusData::Int32 also when the other
list is empty, i.e. this allows to create an empty but valid list object, comparable to using TQT_DBusDataList(TQT_DBusData::Type) with TQT_DBusData::Int32
other | the TQValueList of signed 32-bit integer values to copy from |
Definition at line 171 of file tqdbusdatalist.cpp.
References d, TQT_DBusData::fromInt32(), TQT_DBusData::Int32, TQT_DBusDataList::Private::list, and TQT_DBusDataList::Private::type.
TQT_DBusDataList::TQT_DBusDataList | ( | const TQValueList< TQ_UINT32 > & | other | ) |
Creates a list from the given TQValueList of unsigned 32-bit integer values.
Type information for the list object will be set to TQT_DBusData::UInt16 also when the other
list is empty, i.e. this allows to create an empty but valid list object, comparable to using TQT_DBusDataList(TQT_DBusData::Type) with TQT_DBusData::UInt32
other | the TQValueList of unsigned 32-bit integer values to copy from |
Definition at line 185 of file tqdbusdatalist.cpp.
References d, TQT_DBusData::fromUInt32(), TQT_DBusDataList::Private::list, TQT_DBusDataList::Private::type, and TQT_DBusData::UInt32.
TQT_DBusDataList::TQT_DBusDataList | ( | const TQValueList< TQ_INT64 > & | other | ) |
Creates a list from the given TQValueList of signed 64-bit integer values.
Type information for the list object will be set to TQT_DBusData::Int64 also when the other
list is empty, i.e. this allows to create an empty but valid list object, comparable to using TQT_DBusDataList(TQT_DBusData::Type) with TQT_DBusData::Int64
other | the TQValueList of signed 64-bit integer values to copy from |
Definition at line 199 of file tqdbusdatalist.cpp.
References d, TQT_DBusData::fromInt64(), TQT_DBusData::Int64, TQT_DBusDataList::Private::list, and TQT_DBusDataList::Private::type.
TQT_DBusDataList::TQT_DBusDataList | ( | const TQValueList< TQ_UINT64 > & | other | ) |
Creates a list from the given TQValueList of unsigned 64-bit integer values.
Type information for the list object will be set to TQT_DBusData::UInt64 also when the other
list is empty, i.e. this allows to create an empty but valid list object, comparable to using TQT_DBusDataList(TQT_DBusData::Type) with TQT_DBusData::UInt64
other | the TQValueList of unsigned 64-bit integer values to copy from |
Definition at line 213 of file tqdbusdatalist.cpp.
References d, TQT_DBusData::fromUInt64(), TQT_DBusDataList::Private::list, TQT_DBusDataList::Private::type, and TQT_DBusData::UInt64.
TQT_DBusDataList::TQT_DBusDataList | ( | const TQValueList< double > & | other | ) |
Creates a list from the given TQValueList of double values.
Type information for the list object will be set to TQT_DBusData::Double also when the other
list is empty, i.e. this allows to create an empty but valid list object, comparable to using TQT_DBusDataList(TQT_DBusData::Type) with TQT_DBusData::Double
other | the TQValueList of double values to copy from |
Definition at line 227 of file tqdbusdatalist.cpp.
References d, TQT_DBusData::Double, TQT_DBusData::fromDouble(), TQT_DBusDataList::Private::list, and TQT_DBusDataList::Private::type.
TQT_DBusDataList::TQT_DBusDataList | ( | const TQValueList< TQT_DBusVariant > & | other | ) |
Creates a list from the given TQValueList of TQT_DBusVariant values.
Type information for the list object will be set to TQT_DBusData::Variant also when the other
list is empty, i.e. this allows to create an empty but valid list object, comparable to using TQT_DBusDataList(TQT_DBusData::Type) with TQT_DBusData::Variant
other | the TQValueList of variant values to copy from |
Definition at line 241 of file tqdbusdatalist.cpp.
References d, TQT_DBusData::fromVariant(), TQT_DBusDataList::Private::list, TQT_DBusDataList::Private::type, and TQT_DBusData::Variant.
TQT_DBusDataList::TQT_DBusDataList | ( | const TQStringList & | other | ) |
Creates a list from the given TQStringList's values.
Type information for the list object will be set to TQT_DBusData::String also when the other
list is empty, i.e. this allows to create an empty but valid list object, comparable to using TQT_DBusDataList(TQT_DBusData::Type) with TQT_DBusData::String
other | the TQStringList to copy from |
Definition at line 256 of file tqdbusdatalist.cpp.
References d, TQT_DBusData::fromString(), TQT_DBusDataList::Private::list, TQT_DBusData::String, and TQT_DBusDataList::Private::type.
TQT_DBusDataList::TQT_DBusDataList | ( | const TQValueList< TQT_DBusObjectPath > & | other | ) |
Creates a list from the given TQValueList of object path values.
Type information for the list object will be set to TQT_DBusData::ObjectPath also when the other
list is empty, i.e. this allows to create an empty but valid list object, comparable to using TQT_DBusDataList(TQT_DBusData::Type) with TQT_DBusData::ObjectPath
other | the TQValueList of object path values to copy from |
Definition at line 270 of file tqdbusdatalist.cpp.
References d, TQT_DBusData::fromObjectPath(), TQT_DBusDataList::Private::list, TQT_DBusData::ObjectPath, and TQT_DBusDataList::Private::type.
TQT_DBusDataList::TQT_DBusDataList | ( | const TQValueList< TQT_DBusUnixFd > & | other | ) |
Creates a list from the given TQValueList of unix file handle values.
Type information for the list object will be set to TQT_DBusData::UnixFd also when the other
list is empty, i.e. this allows to create an empty but valid list object, comparable to using TQT_DBusDataList(TQT_DBusData::Type) with TQT_DBusData::UnixFd
other | the TQValueList of unix file handle values to copy from |
Definition at line 285 of file tqdbusdatalist.cpp.
References d, TQT_DBusData::fromUnixFd(), TQT_DBusDataList::Private::list, TQT_DBusDataList::Private::type, and TQT_DBusData::UnixFd.
TQT_DBusDataList::~TQT_DBusDataList | ( | ) |
void TQT_DBusDataList::clear | ( | ) |
Clears the list.
Type and, if applicable, container element type will stay untouched.
Definition at line 449 of file tqdbusdatalist.cpp.
References d, and TQT_DBusDataList::Private::list.
TQT_DBusData TQT_DBusDataList::containerItemType | ( | ) | const |
Returns a container prototype for the list's element type.
Lists which have containers as their elements, i.e. hasContainerItemType() returns true
this will actually specify the details for the use container, i.e. the returned data object can be queried for type and possible further subtypes.
Definition at line 390 of file tqdbusdatalist.cpp.
References TQT_DBusDataList::Private::containerItem, and d.
uint TQT_DBusDataList::count | ( | ) | const |
Returns the number of elements of this list object.
Definition at line 400 of file tqdbusdatalist.cpp.
References d, and TQT_DBusDataList::Private::list.
bool TQT_DBusDataList::hasContainerItemType | ( | ) | const |
Checks whether the element type is a data container itself.
If the elements of the list are containers as well, this will return true
In this case containerItemType() will return a prototype for such a container.
true
if the element type is either TQT_DBusData::Map, TQT_DBusData::List or TQT_DBusData::Struct, otherwise false
Definition at line 384 of file tqdbusdatalist.cpp.
References d, TQT_DBusData::List, TQT_DBusData::Map, TQT_DBusData::Struct, and TQT_DBusDataList::Private::type.
bool TQT_DBusDataList::isEmpty | ( | ) | const |
Checks whether this list object has any elements.
true
if there are no elements in this list, otherwise false
Definition at line 395 of file tqdbusdatalist.cpp.
References d, and TQT_DBusDataList::Private::list.
|
inline |
Checks whether this list object has a valid element type.
This is equal to checking type() for not being TQT_DBusData::Invalid
true
if the list object is valid, otherwise false
Definition at line 414 of file tqdbusdatalist.h.
References TQT_DBusData::Invalid.
bool TQT_DBusDataList::operator!= | ( | const TQT_DBusDataList & | other | ) | const |
Checks whether the given other
list is different from this one.
Two lists are considered different when they have the different type (or different container item type if the have one) or the element lists are equal are different.
other | the other list object to compare with |
true
if the lists are different, otherwise false
Definition at line 427 of file tqdbusdatalist.cpp.
References TQT_DBusData::buildDBusSignature(), TQT_DBusDataList::Private::containerItem, d, hasContainerItemType(), TQT_DBusDataList::Private::list, and TQT_DBusDataList::Private::type.
TQT_DBusDataList & TQT_DBusDataList::operator<< | ( | const TQT_DBusData & | data | ) |
Appends a given value to the list.
Basically works like the respective TQValueList operator, but checks if type of the new value matches the type of the list. Lists that are invalid will accept any new type and will then be typed accordingly.
If data
is invalid itself, it will not be appended at any time.
data | the data item to append to the list |
Definition at line 454 of file tqdbusdatalist.cpp.
References TQT_DBusData::buildDBusSignature(), TQT_DBusDataList::Private::containerItem, d, hasContainerItemType(), TQT_DBusData::Invalid, TQT_DBusDataList::Private::list, TQT_DBusData::type(), TQT_DBusDataList::Private::type, and TQT_DBusData::typeName().
TQT_DBusDataList & TQT_DBusDataList::operator= | ( | const TQStringList & | other | ) |
Copies from the given other
list.
Convenience overload as TQStringList is a very common data type in TQt and D-Bus methods also use "arrays of strings" quite often.
The list object's type will be set to TQT_DBusData::String. If the object previously had a container as its element type, this will be reset, i.e. hasContainerItemType() will return false
other | the stringlist to copy from |
Definition at line 363 of file tqdbusdatalist.cpp.
References TQT_DBusDataList::Private::containerItem, d, TQT_DBusData::fromString(), TQT_DBusDataList::Private::list, TQT_DBusData::String, and TQT_DBusDataList::Private::type.
TQT_DBusDataList & TQT_DBusDataList::operator= | ( | const TQT_DBusDataList & | other | ) |
Copies from the given other
list.
This behaves basically like copying a TQValueList through its assignment operator, i.e. no value are actually copied at this time.
other | the other list object to copy from |
Definition at line 305 of file tqdbusdatalist.cpp.
References TQT_DBusDataList::Private::containerItem, d, TQT_DBusDataList::Private::list, and TQT_DBusDataList::Private::type.
TQT_DBusDataList & TQT_DBusDataList::operator= | ( | const TQValueList< TQT_DBusData > & | other | ) |
Copies from the given other
list.
This behaves basically like copying a TQValueList through its assignment operator, i.e. no value are actually copied at this time.
other
list have to be of the same type. If they aren't this list's content will cleared and the type will be set to TQT_DBusData::Invalidother | the other list object to copy from |
Definition at line 316 of file tqdbusdatalist.cpp.
References TQT_DBusData::buildDBusSignature(), TQT_DBusDataList::Private::containerItem, d, hasContainerItemType(), TQT_DBusData::Invalid, TQT_DBusDataList::Private::list, and TQT_DBusDataList::Private::type.
bool TQT_DBusDataList::operator== | ( | const TQT_DBusDataList & | other | ) | const |
Checks whether the given other
list is equal to this one.
Two lists are considered equal when they have the same type (and same container item type if the have one) and the element lists are equal as well.
other | the other list object to compare with |
true
if the lists are equal, otherwise false
Definition at line 405 of file tqdbusdatalist.cpp.
References TQT_DBusData::buildDBusSignature(), TQT_DBusDataList::Private::containerItem, d, hasContainerItemType(), TQT_DBusDataList::Private::list, and TQT_DBusDataList::Private::type.
TQValueList< bool > TQT_DBusDataList::toBoolList | ( | bool * | ok = 0 | ) | const |
Tries to get the list object's elements as a TQValueList of bool.
This is a convenience overload for the case when the list is of type TQT_DBusData::Bool.
ok | optional pointer to a bool variable to store the success information in, i.e. will be set to true on success and to false if the conversion failed (not of type TQT_DBusData::Bool) |
Definition at line 519 of file tqdbusdatalist.cpp.
References TQT_DBusData::Bool, d, TQT_DBusDataList::Private::list, and TQT_DBusDataList::Private::type.
TQValueList< TQ_UINT8 > TQT_DBusDataList::toByteList | ( | bool * | ok = 0 | ) | const |
Tries to get the list object's elements as a TQValueList of TQ_UINT8.
This is a convenience overload for the case when the list is of type TQT_DBusData::Byte.
ok | optional pointer to a bool variable to store the success information in, i.e. will be set to true on success and to false if the conversion failed (not of type TQT_DBusData::Byte) |
Definition at line 541 of file tqdbusdatalist.cpp.
References TQT_DBusData::Byte, d, TQT_DBusDataList::Private::list, and TQT_DBusDataList::Private::type.
TQValueList< double > TQT_DBusDataList::toDoubleList | ( | bool * | ok = 0 | ) | const |
Tries to get the list object's elements as a TQValueList of double.
This is a convenience overload for the case when the list is of type TQT_DBusData::Double.
ok | optional pointer to a bool variable to store the success information in, i.e. will be set to true on success and to false if the conversion failed (not of type TQT_DBusData::Double) |
Definition at line 695 of file tqdbusdatalist.cpp.
References d, TQT_DBusData::Double, TQT_DBusDataList::Private::list, and TQT_DBusDataList::Private::type.
TQValueList< TQ_INT16 > TQT_DBusDataList::toInt16List | ( | bool * | ok = 0 | ) | const |
Tries to get the list object's elements as a TQValueList of TQ_INT16.
This is a convenience overload for the case when the list is of type TQT_DBusData::Int16.
ok | optional pointer to a bool variable to store the success information in, i.e. will be set to true on success and to false if the conversion failed (not of type TQT_DBusData::Int16) |
Definition at line 563 of file tqdbusdatalist.cpp.
References d, TQT_DBusData::Int16, TQT_DBusDataList::Private::list, and TQT_DBusDataList::Private::type.
TQValueList< TQ_INT32 > TQT_DBusDataList::toInt32List | ( | bool * | ok = 0 | ) | const |
Tries to get the list object's elements as a TQValueList of TQ_INT32.
This is a convenience overload for the case when the list is of type TQT_DBusData::Int32.
ok | optional pointer to a bool variable to store the success information in, i.e. will be set to true on success and to false if the conversion failed (not of type TQT_DBusData::Int32) |
Definition at line 607 of file tqdbusdatalist.cpp.
References d, TQT_DBusData::Int32, TQT_DBusDataList::Private::list, and TQT_DBusDataList::Private::type.
TQValueList< TQ_INT64 > TQT_DBusDataList::toInt64List | ( | bool * | ok = 0 | ) | const |
Tries to get the list object's elements as a TQValueList of TQ_INT64.
This is a convenience overload for the case when the list is of type TQT_DBusData::Int64.
ok | optional pointer to a bool variable to store the success information in, i.e. will be set to true on success and to false if the conversion failed (not of type TQT_DBusData::Int64) |
Definition at line 651 of file tqdbusdatalist.cpp.
References d, TQT_DBusData::Int64, TQT_DBusDataList::Private::list, and TQT_DBusDataList::Private::type.
TQValueList< TQT_DBusObjectPath > TQT_DBusDataList::toObjectPathList | ( | bool * | ok = 0 | ) | const |
Tries to get the list object's elements as a TQValueList of object paths.
ok | optional pointer to a bool variable to store the success information in, i.e. will be set to true on success and to false if the conversion failed (not of type TQT_DBusData::ObjectPath) |
Definition at line 722 of file tqdbusdatalist.cpp.
References d, TQT_DBusDataList::Private::list, TQT_DBusData::ObjectPath, and TQT_DBusDataList::Private::type.
TQValueList< TQString > TQT_DBusDataList::toStringList | ( | bool * | ok = 0 | ) | const |
Tries to get the list object's elements as a TQValueList of TQString.
This is a convenience overload for the case when the list is of type TQT_DBusData::String, see also toTQStringList().
ok | optional pointer to a bool variable to store the success information in, i.e. will be set to true on success and to false if the conversion failed (not of type TQT_DBusData::String) |
Definition at line 717 of file tqdbusdatalist.cpp.
References toTQStringList().
TQStringList TQT_DBusDataList::toTQStringList | ( | bool * | ok = 0 | ) | const |
Tries to get the list object's elements as a TQStringList.
This is a convenience overload for the case when the list is of type TQT_DBusData::String.
ok | optional pointer to a bool variable to store the success information in, i.e. will be set to true on success and to false if the conversion failed (not of type TQT_DBusData::String) |
Definition at line 497 of file tqdbusdatalist.cpp.
References d, TQT_DBusDataList::Private::list, TQT_DBusData::String, and TQT_DBusDataList::Private::type.
TQValueList< TQT_DBusData > TQT_DBusDataList::toTQValueList | ( | ) | const |
Converts the list object into a TQValueList with TQT_DBusData elements.
Definition at line 492 of file tqdbusdatalist.cpp.
References d, and TQT_DBusDataList::Private::list.
TQValueList< TQ_UINT16 > TQT_DBusDataList::toUInt16List | ( | bool * | ok = 0 | ) | const |
Tries to get the list object's elements as a TQValueList of TQ_UINT16.
This is a convenience overload for the case when the list is of type TQT_DBusData::UInt16.
ok | optional pointer to a bool variable to store the success information in, i.e. will be set to true on success and to false if the conversion failed (not of type TQT_DBusData::UInt16) |
Definition at line 585 of file tqdbusdatalist.cpp.
References d, TQT_DBusDataList::Private::list, TQT_DBusDataList::Private::type, and TQT_DBusData::UInt16.
TQValueList< TQ_UINT32 > TQT_DBusDataList::toUInt32List | ( | bool * | ok = 0 | ) | const |
Tries to get the list object's elements as a TQValueList of TQ_UINT32.
This is a convenience overload for the case when the list is of type TQT_DBusData::UInt32.
ok | optional pointer to a bool variable to store the success information in, i.e. will be set to true on success and to false if the conversion failed (not of type TQT_DBusData::UInt32) |
Definition at line 629 of file tqdbusdatalist.cpp.
References d, TQT_DBusDataList::Private::list, TQT_DBusDataList::Private::type, and TQT_DBusData::UInt32.
TQValueList< TQ_UINT64 > TQT_DBusDataList::toUInt64List | ( | bool * | ok = 0 | ) | const |
Tries to get the list object's elements as a TQValueList of TQ_UINT64.
This is a convenience overload for the case when the list is of type TQT_DBusData::UInt64.
ok | optional pointer to a bool variable to store the success information in, i.e. will be set to true on success and to false if the conversion failed (not of type TQT_DBusData::UInt64) |
Definition at line 673 of file tqdbusdatalist.cpp.
References d, TQT_DBusDataList::Private::list, TQT_DBusDataList::Private::type, and TQT_DBusData::UInt64.
TQValueList< TQT_DBusUnixFd > TQT_DBusDataList::toUnixFdList | ( | bool * | ok = 0 | ) | const |
Tries to get the list object's elements as a TQValueList of TQT_DBusUnixFd.
This is a convenience overload for the case when the list is of type TQT_DBusData::UnixFd.
ok | optional pointer to a bool variable to store the success information in, i.e. will be set to true on success and to false if the conversion failed (not of type TQT_DBusData::UnixFd) |
Definition at line 744 of file tqdbusdatalist.cpp.
References d, TQT_DBusDataList::Private::list, TQT_DBusDataList::Private::type, and TQT_DBusData::UnixFd.
TQValueList< TQT_DBusVariant > TQT_DBusDataList::toVariantList | ( | bool * | ok = 0 | ) | const |
Tries to get the list object's elements as a TQValueList of TQT_DBusVariant.
This is a convenience overload for the case when the list is of type TQT_DBusData::Variant.
ok | optional pointer to a bool variable to store the success information in, i.e. will be set to true on success and to false if the conversion failed (not of type TQT_DBusData::Variant) |
Definition at line 766 of file tqdbusdatalist.cpp.
References d, TQT_DBusDataList::Private::list, TQT_DBusDataList::Private::type, and TQT_DBusData::Variant.
TQT_DBusData::Type TQT_DBusDataList::type | ( | ) | const |
Returns the element type of the list object.
Definition at line 379 of file tqdbusdatalist.cpp.
References d, and TQT_DBusDataList::Private::type.
|
private |
Definition at line 755 of file tqdbusdatalist.h.