summaryrefslogtreecommitdiffstats
path: root/tqdbusdatalist.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-11-18 21:21:15 +0100
committerSlávek Banko <slavek.banko@axis.cz>2013-11-18 21:21:15 +0100
commit9a134f5699708c76d4abd12da71c9df03830556a (patch)
treeb44367da3f90252d7d9dffd12c71e1160174bd11 /tqdbusdatalist.h
parent52933e3b969e8b44f6a94db486cb27ddf5c322d7 (diff)
downloaddbus-1-tqt-9a134f5699708c76d4abd12da71c9df03830556a.tar.gz
dbus-1-tqt-9a134f5699708c76d4abd12da71c9df03830556a.zip
Add support for data type UnixFD
Diffstat (limited to 'tqdbusdatalist.h')
-rw-r--r--tqdbusdatalist.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/tqdbusdatalist.h b/tqdbusdatalist.h
index 7b0432c..b04df0b 100644
--- a/tqdbusdatalist.h
+++ b/tqdbusdatalist.h
@@ -29,6 +29,7 @@
template <typename T> class TQValueList;
class TQT_DBusObjectPath;
class TQT_DBusVariant;
+class TQT_DBuxUnixFd;
class TQString;
class TQStringList;
@@ -299,6 +300,20 @@ public:
TQT_DBusDataList(const TQValueList<TQT_DBusObjectPath>& other);
/**
+ * @brief 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 @p 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
+ *
+ * @param other the TQValueList of unix file handle values to copy from
+ *
+ * @see toUnixFdList()
+ */
+ TQT_DBusDataList(const TQValueList<TQT_DBusUnixFd>& other);
+
+ /**
* @brief Destroys the list object
*/
~TQT_DBusDataList();
@@ -717,6 +732,24 @@ public:
*/
TQValueList<TQT_DBusVariant> toVariantList(bool* ok = 0) const;
+ /**
+ * @brief 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.
+ *
+ * @param ok optional pointer to a bool variable to store the
+ * success information in, i.e. will be set to @c true on success
+ * and to @c false if the conversion failed (not of type
+ * TQT_DBusData::UnixFd)
+ *
+ * @return a TQValueList of TQT_DBusUnixFd containing the list object's
+ * TQT_DBuxUnixFd elements or an empty list when converting fails
+ *
+ * @see TQT_DBusData::toUnixFd()
+ */
+ TQValueList<TQT_DBusUnixFd> toUnixFdList(bool* ok = 0) const;
+
private:
class Private;
Private* d;