// This is a generated file. Do not edit it. Generated from ../glib/glibmm/../src/variant_basictypes.h.m4 #ifndef DOXYGEN_SHOULD_SKIP_THIS #ifndef _GLIBMM_VARIANT_H_INCLUDE_VARIANT_BASICTYPES_H #error "glibmm/variant_basictypes.h cannot be included directly" #endif #else #include #endif namespace Glib { /** Specialization of Glib::Variant containing a bool type. * * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = gboolean; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type() G_GNUC_CONST; /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(bool data); /** Gets the value of the Glib::Variant. * @return The bool value of the Glib::Variant. */ bool get() const; }; /** Specialization of Glib::Variant containing a unsigned char type. * * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = guchar; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type() G_GNUC_CONST; /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(unsigned char data); /** Gets the value of the Glib::Variant. * @return The unsigned char value of the Glib::Variant. */ unsigned char get() const; }; #if GLIBMM_SIZEOF_SHORT == 2 && GLIBMM_SIZEOF_INT == 2 /** Specialization of Glib::Variant containing a short type. * * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = gint16; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type() G_GNUC_CONST; /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(short data); /** Gets the value of the Glib::Variant. * @return The short value of the Glib::Variant. */ short get() const; }; /** Specialization of Glib::Variant containing a unsigned short type. * * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = guint16; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type() G_GNUC_CONST; /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(unsigned short data); /** Gets the value of the Glib::Variant. * @return The unsigned short value of the Glib::Variant. */ unsigned short get() const; }; /** Specialization of Glib::Variant containing a int type. * * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = gint16; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type() G_GNUC_CONST; /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(int data); /** Gets the value of the Glib::Variant. * @return The int value of the Glib::Variant. */ int get() const; }; /** Specialization of Glib::Variant containing a unsigned int type. * * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = guint16; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type() G_GNUC_CONST; /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(unsigned int data); /** Gets the value of the Glib::Variant. * @return The unsigned int value of the Glib::Variant. */ unsigned int get() const; }; #else /** Specialization of Glib::Variant containing a gint16 type. * * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = gint16; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type() G_GNUC_CONST; /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(gint16 data); /** Gets the value of the Glib::Variant. * @return The gint16 value of the Glib::Variant. */ gint16 get() const; }; /** Specialization of Glib::Variant containing a guint16 type. * * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = guint16; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type() G_GNUC_CONST; /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(guint16 data); /** Gets the value of the Glib::Variant. * @return The guint16 value of the Glib::Variant. */ guint16 get() const; }; #endif #if GLIBMM_SIZEOF_INT == 4 && GLIBMM_SIZEOF_LONG == 4 /** Specialization of Glib::Variant containing a int type. * * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = gint32; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type() G_GNUC_CONST; /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(int data); /** Creates a new Glib::Variant of type VARIANT_TYPE_HANDLE. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create_handle(int data); /** Gets the value of the Glib::Variant. * @return The int value of the Glib::Variant. */ int get() const; }; /** Specialization of Glib::Variant containing a unsigned int type. * * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = guint32; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type() G_GNUC_CONST; /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(unsigned int data); /** Gets the value of the Glib::Variant. * @return The unsigned int value of the Glib::Variant. */ unsigned int get() const; }; /** Specialization of Glib::Variant containing a long type. * * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = gint32; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type() G_GNUC_CONST; /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(long data); /** Creates a new Glib::Variant of type VARIANT_TYPE_HANDLE. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create_handle(long data); /** Gets the value of the Glib::Variant. * @return The long value of the Glib::Variant. */ long get() const; }; /** Specialization of Glib::Variant containing a unsigned long type. * * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = guint32; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type() G_GNUC_CONST; /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(unsigned long data); /** Gets the value of the Glib::Variant. * @return The unsigned long value of the Glib::Variant. */ unsigned long get() const; }; #else /** Specialization of Glib::Variant containing a gint32 type. * * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = gint32; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type() G_GNUC_CONST; /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(gint32 data); /** Creates a new Glib::Variant of type VARIANT_TYPE_HANDLE. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create_handle(gint32 data); /** Gets the value of the Glib::Variant. * @return The gint32 value of the Glib::Variant. */ gint32 get() const; }; /** Specialization of Glib::Variant containing a guint32 type. * * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = guint32; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type() G_GNUC_CONST; /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(guint32 data); /** Gets the value of the Glib::Variant. * @return The guint32 value of the Glib::Variant. */ guint32 get() const; }; #endif #if GLIBMM_SIZEOF_LONG == 8 && GLIBMM_SIZEOF_LONG_LONG == 8 /** Specialization of Glib::Variant containing a long type. * * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = gint64; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type() G_GNUC_CONST; /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(long data); /** Gets the value of the Glib::Variant. * @return The long value of the Glib::Variant. */ long get() const; }; /** Specialization of Glib::Variant containing a unsigned long type. * * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = guint64; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type() G_GNUC_CONST; /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(unsigned long data); /** Gets the value of the Glib::Variant. * @return The unsigned long value of the Glib::Variant. */ unsigned long get() const; }; /** Specialization of Glib::Variant containing a long long type. * * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = gint64; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type() G_GNUC_CONST; /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(long long data); /** Gets the value of the Glib::Variant. * @return The long long value of the Glib::Variant. */ long long get() const; }; /** Specialization of Glib::Variant containing a unsigned long long type. * * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = guint64; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type() G_GNUC_CONST; /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(unsigned long long data); /** Gets the value of the Glib::Variant. * @return The unsigned long long value of the Glib::Variant. */ unsigned long long get() const; }; #else /** Specialization of Glib::Variant containing a gint64 type. * * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = gint64; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type() G_GNUC_CONST; /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(gint64 data); /** Gets the value of the Glib::Variant. * @return The gint64 value of the Glib::Variant. */ gint64 get() const; }; /** Specialization of Glib::Variant containing a guint64 type. * * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = guint64; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type() G_GNUC_CONST; /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(guint64 data); /** Gets the value of the Glib::Variant. * @return The guint64 value of the Glib::Variant. */ guint64 get() const; }; #endif /** Specialization of Glib::Variant containing a DBusHandle type. * * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = gint32; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type() G_GNUC_CONST; /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(DBusHandle data); /** Gets the value of the Glib::Variant. * @return The DBusHandle value of the Glib::Variant. */ DBusHandle get() const; }; /** Specialization of Glib::Variant containing a double type. * * @ingroup Variant */ template <> class GLIBMM_API Variant : public VariantBase { public: using CType = gdouble; /// Default constructor. Variant() : VariantBase() {} /** GVariant constructor. * @param castitem The GVariant to wrap. * @param take_a_reference Whether to take an extra reference of the * GVariant or not (not taking one could destroy the GVariant with the * wrapper). */ explicit Variant(GVariant* castitem, bool take_a_reference = false) : VariantBase(castitem, take_a_reference) {} /** Gets the Glib::VariantType. * @return The Glib::VariantType. */ static const VariantType& variant_type() G_GNUC_CONST; /** Creates a new Glib::Variant. * @param data The value of the new Glib::Variant. * @return The new Glib::Variant. */ static Variant create(double data); /** Gets the value of the Glib::Variant. * @return The double value of the Glib::Variant. */ double get() const; }; } // namespace Glib