Go to the documentation of this file.
39 #ifndef CGU_GVAR_HANDLE_H
40 #define CGU_GVAR_HANDLE_H
46 #if defined(DOXYGEN_PARSING) || GLIB_CHECK_VERSION(2,24,0)
173 if (obj_p) g_variant_unref(obj_p);
177 if (obj_p) g_variant_ref(obj_p);
198 if (ptr && g_variant_is_floating(ptr)) {
199 g_variant_ref_sink(ptr);
224 if (ptr && g_variant_is_floating(ptr)) {
225 g_variant_ref_sink(ptr);
256 if (obj_p != gvar.obj_p) {
276 GVariant*
get()
const {
return obj_p;}
285 operator GVariant*()
const {
return obj_p;}
297 #if defined(CGU_USE_SMART_PTR_COMPARISON) || defined(DOXYGEN_PARSING)
313 return (h1.
get() == h2.
get());
350 return std::less<GVariant*>()(h1.
get(), h2.
get());
353 #endif // CGU_USE_SMART_PTR_COMPARISON
358 #warning GvarHandle not available: glib >= 2.24.0 is required
GvarHandle & operator=(const GvarHandle &gvar)
Definition: gvar_handle.h:251
Definition: application.h:45
void reset(GVariant *ptr=0)
Definition: gvar_handle.h:217
bool operator!=(const GobjHandle< T > &h1, const GobjHandle< T > &h2)
Definition: gobj_handle.h:618
bool operator<(const GobjHandle< T > &h1, const GobjHandle< T > &h2)
Definition: gobj_handle.h:641
GvarHandle(GVariant *ptr=0)
Definition: gvar_handle.h:193
GVariant * get() const
Definition: gvar_handle.h:276
GvarHandle(const GvarHandle &gvar)
Definition: gvar_handle.h:236
~GvarHandle()
Definition: gvar_handle.h:294
bool operator==(const GobjHandle< T > &h1, const GobjHandle< T > &h2)
Definition: gobj_handle.h:602
This is a handle for managing the reference count of GVariant objects.
Definition: gvar_handle.h:168