diff --git a/src/tqdbusdatamap.h b/src/tqdbusdatamap.h index ecb06d2..df212d0 100644 --- a/src/tqdbusdatamap.h +++ b/src/tqdbusdatamap.h @@ -485,6 +485,166 @@ public: } } + /** + * @brief Creates a map from the given TQMap of TQT_DBusDataMap values + * + * @param other the TQMap of TQT_DBusDataMap values to copy from + */ + TQT_DBusDataMap(const TQMap >& other) + : TQMap(), m_valueType(TQT_DBusData::Map) + { + typename TQMap >::const_iterator it = other.begin(); + typename TQMap >::const_iterator endIt = other.end(); + for (; it != endIt; ++it) + { + insert(it.key(), TQT_DBusData::fromByteKeyMap(it.data())); + } + } + + /** + * @brief Creates a map from the given TQMap of TQT_DBusDataMap values + * + * @param other the TQMap of TQT_DBusDataMap values to copy from + */ + TQT_DBusDataMap(const TQMap >& other) + : TQMap(), m_valueType(TQT_DBusData::Map) + { + typename TQMap >::const_iterator it = other.begin(); + typename TQMap >::const_iterator endIt = other.end(); + for (; it != endIt; ++it) + { + insert(it.key(), TQT_DBusData::fromInt16KeyMap(it.data())); + } + } + + /** + * @brief Creates a map from the given TQMap of TQT_DBusDataMap values + * + * @param other the TQMap of TQT_DBusDataMap values to copy from + */ + TQT_DBusDataMap(const TQMap >& other) + : TQMap(), m_valueType(TQT_DBusData::Map) + { + typename TQMap >::const_iterator it = other.begin(); + typename TQMap >::const_iterator endIt = other.end(); + for (; it != endIt; ++it) + { + insert(it.key(), TQT_DBusData::fromUInt16KeyMap(it.data())); + } + } + + /** + * @brief Creates a map from the given TQMap of TQT_DBusDataMap values + * + * @param other the TQMap of TQT_DBusDataMap values to copy from + */ + TQT_DBusDataMap(const TQMap >& other) + : TQMap(), m_valueType(TQT_DBusData::Map) + { + typename TQMap >::const_iterator it = other.begin(); + typename TQMap >::const_iterator endIt = other.end(); + for (; it != endIt; ++it) + { + insert(it.key(), TQT_DBusData::fromInt32KeyMap(it.data())); + } + } + + /** + * @brief Creates a map from the given TQMap of TQT_DBusDataMap values + * + * @param other the TQMap of TQT_DBusDataMap values to copy from + */ + TQT_DBusDataMap(const TQMap >& other) + : TQMap(), m_valueType(TQT_DBusData::Map) + { + typename TQMap >::const_iterator it = other.begin(); + typename TQMap >::const_iterator endIt = other.end(); + for (; it != endIt; ++it) + { + insert(it.key(), TQT_DBusData::fromUInt32KeyMap(it.data())); + } + } + + /** + * @brief Creates a map from the given TQMap of TQT_DBusDataMap values + * + * @param other the TQMap of TQT_DBusDataMap values to copy from + */ + TQT_DBusDataMap(const TQMap >& other) + : TQMap(), m_valueType(TQT_DBusData::Map) + { + typename TQMap >::const_iterator it = other.begin(); + typename TQMap >::const_iterator endIt = other.end(); + for (; it != endIt; ++it) + { + insert(it.key(), TQT_DBusData::fromInt64KeyMap(it.data())); + } + } + + /** + * @brief Creates a map from the given TQMap of TQT_DBusDataMap values + * + * @param other the TQMap of TQT_DBusDataMap values to copy from + */ + TQT_DBusDataMap(const TQMap >& other) + : TQMap(), m_valueType(TQT_DBusData::Map) + { + typename TQMap >::const_iterator it = other.begin(); + typename TQMap >::const_iterator endIt = other.end(); + for (; it != endIt; ++it) + { + insert(it.key(), TQT_DBusData::fromUInt64KeyMap(it.data())); + } + } + + /** + * @brief Creates a map from the given TQMap of TQT_DBusDataMap values + * + * @param other the TQMap of TQT_DBusDataMap values to copy from + */ + TQT_DBusDataMap(const TQMap >& other) + : TQMap(), m_valueType(TQT_DBusData::Map) + { + typename TQMap >::const_iterator it = other.begin(); + typename TQMap >::const_iterator endIt = other.end(); + for (; it != endIt; ++it) + { + insert(it.key(), TQT_DBusData::fromStringKeyMap(it.data())); + } + } + + /** + * @brief Creates a map from the given TQMap of TQT_DBusDataMap values + * + * @param other the TQMap of TQT_DBusDataMap values to copy from + */ + TQT_DBusDataMap(const TQMap >& other) + : TQMap(), m_valueType(TQT_DBusData::Map) + { + typename TQMap >::const_iterator it = other.begin(); + typename TQMap >::const_iterator endIt = other.end(); + for (; it != endIt; ++it) + { + insert(it.key(), TQT_DBusData::fromObjectPathKeyMap(it.data())); + } + } + + /** + * @brief Creates a map from the given TQMap of TQT_DBusDataMap values + * + * @param other the TQMap of TQT_DBusDataMap values to copy from + */ + TQT_DBusDataMap(const TQMap >& other) + : TQMap(), m_valueType(TQT_DBusData::Map) + { + typename TQMap >::const_iterator it = other.begin(); + typename TQMap >::const_iterator endIt = other.end(); + for (; it != endIt; ++it) + { + insert(it.key(), TQT_DBusData::fromUnixFdKeyMap(it.data())); + } + } + /** * @brief Copies from the given @p other map *