Package de.justjanne.libquassel.protocol.variant

Types

Link copied to clipboard
sealed class QVariant<T>

Variant box for generic types

Link copied to clipboard
typealias QVariant_ = QVariant<*>

Simple alias for a generic QVariant type

Link copied to clipboard
typealias QVariantList = List<QVariant_>

Simple alias for a generic QVariantList type

Link copied to clipboard
typealias QVariantMap = Map<String, QVariant_>

Simple alias for a generic QVariantMap type

Link copied to clipboard
data class WrongVariantTypeException(expected: String, actual: String?) : Exception

Functions

Link copied to clipboard
inline fun <T> QVariant_?.into(): T?
inline fun <T> QVariant_?.into(defValue: T): T

Extract the content of a QVariant in a type-safe manner

Link copied to clipboard
inline fun <T> QVariant_?.intoOrThrow(): T

Extract the content of a QVariant in a type-safe manner

Link copied to clipboard
inline fun <T> qVariant(data: T, type: QtType): QVariant<T>
inline fun <T> qVariant(data: T, type: QuasselType): QVariant<T>

Construct a QVariant from data and type

Link copied to clipboard
fun QVariantMap.toVariantList(byteBuffer: Boolean = false): QVariantList

Transform a QVariantMap into a QVariantList of interleaved keys and values

Link copied to clipboard
fun QVariantList.toVariantMap(byteBuffer: Boolean = false): QVariantMap

Transform a QVariantList of interleaved keys and values into a QVariantMap