Back to index

indicator-datetime  12.10.0
Classes | Defines | Typedefs | Functions
datetime-interface.h File Reference
#include <glib.h>
#include <glib-object.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _DatetimeInterfaceClass
struct  _DatetimeInterface

Defines

#define DATETIME_INTERFACE_TYPE   (datetime_interface_get_type ())
#define DATETIME_INTERFACE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATETIME_INTERFACE_TYPE, DatetimeInterface))
#define DATETIME_INTERFACE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), DATETIME_INTERFACE_TYPE, DatetimeInterfaceClass))
#define IS_DATETIME_INTERFACE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATETIME_INTERFACE_TYPE))
#define IS_DATETIME_INTERFACE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), DATETIME_INTERFACE_TYPE))
#define DATETIME_INTERFACE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), DATETIME_INTERFACE_TYPE, DatetimeInterfaceClass))

Typedefs

typedef struct _DatetimeInterface
typedef struct _DatetimeInterfacePrivate
typedef struct _DatetimeInterfaceClass

Functions

GType datetime_interface_get_type (void)
void datetime_interface_update (DatetimeInterface *self)

Class Documentation

struct _DatetimeInterface

Definition at line 47 of file datetime-interface.h.

Class Members
GObject parent
DatetimeInterfacePrivate * priv

Define Documentation

#define DATETIME_INTERFACE (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), DATETIME_INTERFACE_TYPE, DatetimeInterface))

Definition at line 31 of file datetime-interface.h.

#define DATETIME_INTERFACE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), DATETIME_INTERFACE_TYPE, DatetimeInterfaceClass))

Definition at line 32 of file datetime-interface.h.

#define DATETIME_INTERFACE_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), DATETIME_INTERFACE_TYPE, DatetimeInterfaceClass))

Definition at line 35 of file datetime-interface.h.

Definition at line 30 of file datetime-interface.h.

#define IS_DATETIME_INTERFACE (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DATETIME_INTERFACE_TYPE))

Definition at line 33 of file datetime-interface.h.

#define IS_DATETIME_INTERFACE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), DATETIME_INTERFACE_TYPE))

Definition at line 34 of file datetime-interface.h.


Typedef Documentation

typedef struct _DatetimeInterface

Definition at line 37 of file datetime-interface.h.

typedef struct _DatetimeInterfaceClass

Definition at line 39 of file datetime-interface.h.

typedef struct _DatetimeInterfacePrivate

Definition at line 38 of file datetime-interface.h.


Function Documentation

GType datetime_interface_get_type ( void  )
void datetime_interface_update ( DatetimeInterface *  self)

Definition at line 178 of file datetime-interface.c.

{
       g_return_if_fail(IS_DATETIME_INTERFACE(self));

       DatetimeInterfacePrivate * priv = DATETIME_INTERFACE_GET_PRIVATE(self);
       GError * error = NULL;

       g_dbus_connection_emit_signal (priv->bus,
                                      NULL,
                                      SERVICE_OBJ,
                                      SERVICE_IFACE,
                                      "UpdateTime",
                                      NULL,
                                      &error);

       if (error != NULL) {
              g_error("Unable to send UpdateTime signal: %s", error->message);
              g_error_free(error);
              return;
       }

       return;
}

Here is the caller graph for this function: