glibmm 2.29.11
|
TimeZoneMonitor - Monitor the local timezone. More...
#include <giomm/timezonemonitor.h>
Public Member Functions | |
virtual | ~TimeZoneMonitor () |
GTimeZoneMonitor* | gobj () |
Provides access to the underlying C GObject. | |
const GTimeZoneMonitor* | gobj () const |
Provides access to the underlying C GObject. | |
GTimeZoneMonitor* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
Glib::SignalProxy0< void > | signal_changed () |
Static Public Member Functions | |
static Glib::RefPtr < TimeZoneMonitor > | get () |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr < Gio::TimeZoneMonitor > | wrap (GTimeZoneMonitor* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
TimeZoneMonitor - Monitor the local timezone.
TimeZoneMonitor is a utility class to monitor the local timezone for changes (ie: in response to the user manually changing the timezone to that of a different locale).
You must use this class in order for your program to notice changes to the local timezone. It works by monitoring the /etc/localtime file. When the timezone is found to have changed, the "changed" signal is emitted on the TimeZoneMonitor.
See the C API docs for more information.
virtual Gio::TimeZoneMonitor::~TimeZoneMonitor | ( | ) | [virtual] |
static Glib::RefPtr<TimeZoneMonitor> Gio::TimeZoneMonitor::get | ( | ) | [static] |
GTimeZoneMonitor* Gio::TimeZoneMonitor::gobj | ( | ) | [inline] |
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase.
const GTimeZoneMonitor* Gio::TimeZoneMonitor::gobj | ( | ) | const [inline] |
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase.
GTimeZoneMonitor* Gio::TimeZoneMonitor::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
Glib::SignalProxy0< void > Gio::TimeZoneMonitor::signal_changed | ( | ) |
void on_my_changed()
Glib::RefPtr< Gio::TimeZoneMonitor > wrap | ( | GTimeZoneMonitor * | object, |
bool | take_copy = false |
||
) | [related] |
A Glib::wrap() method for this object.
object | The C instance. |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |