Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
utils::Glib Class Reference

Miscellaneous helpers for the Glib library. More...

#include <glib-loop.hpp>

Public Types

typedef std::function< bool()> OnTimerEventCallback
 A user provided function that will be called succesively after an interval has passed. More...
 

Static Public Member Functions

static void addTimerEvent (const unsigned int intervalMs, const OnTimerEventCallback &callback, const CallbackGuard &guard)
 Adds a timer event to the glib main loop. More...
 

Static Private Member Functions

static gboolean onTimerEvent (gpointer data)
 

Detailed Description

Miscellaneous helpers for the Glib library.

Member Typedef Documentation

typedef std::function<bool()> utils::Glib::OnTimerEventCallback

A user provided function that will be called succesively after an interval has passed.

Return true if the callback is supposed to be called further, false if the callback is not to be called anymore and be destroyed.

Member Function Documentation

void utils::Glib::addTimerEvent ( const unsigned int  intervalMs,
const OnTimerEventCallback callback,
const CallbackGuard guard 
)
static

Adds a timer event to the glib main loop.

gboolean utils::Glib::onTimerEvent ( gpointer  data)
staticprivate

The documentation for this class was generated from the following files: