00001
00027 #ifndef __EVENT_LOGGER_ITER_H
00028 #define __EVENT_LOGGER_ITER_H
00029
00030 #include <glib-object.h>
00031 #include "rtcom-eventlogger/eventlogger-types.h"
00032 #include "rtcom-eventlogger/eventlogger-attach-iter.h"
00033 #include "rtcom-eventlogger/event.h"
00034
00035 G_BEGIN_DECLS
00036
00037 #define RTCOM_TYPE_EL_ITER (rtcom_el_iter_get_type ())
00038 #define RTCOM_EL_ITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RTCOM_TYPE_EL_ITER, RTComElIter))
00039 #define RTCOM_EL_ITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RTCOM_TYPE_EL_ITER, RTComElIterClass))
00040 #define RTCOM_IS_EL_ITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RTCOM_TYPE_EL_ITER))
00041 #define RTCOM_IS_EL_ITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RTCOM_TYPE_EL_ITER))
00042 #define RTCOM_EL_ITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RTCOM_TYPE_EL_ITER, RTComMElIterClass))
00043
00044 typedef struct _RTComElIterClass RTComElIterClass;
00045 typedef struct _RTComElIter RTComElIter;
00046
00047 struct _RTComElIterClass
00048 {
00049 GObjectClass parent_class;
00050 };
00051
00052 struct _RTComElIter
00053 {
00054 GObject parent_instance;
00055 };
00056
00057 GType rtcom_el_iter_get_type (void) G_GNUC_CONST;
00058
00063 gboolean rtcom_el_iter_first(
00064 RTComElIter * it);
00065
00070 gboolean rtcom_el_iter_next(
00071 RTComElIter * it);
00072
00080 gboolean rtcom_el_iter_refresh(
00081 RTComElIter * it);
00082
00097 GValueArray * rtcom_el_iter_get_valuearray(
00098 RTComElIter * it,
00099 ...);
00100
00106 RTComElAttachIter * rtcom_el_iter_get_attachments(
00107 RTComElIter * it);
00108
00114 const gchar * rtcom_el_iter_get_service(
00115 RTComElIter * it);
00116
00117
00123 const gchar * rtcom_el_iter_get_event_type(
00124 RTComElIter * it);
00125
00126
00127
00136 gboolean rtcom_el_iter_get_raw(
00137 RTComElIter * it,
00138 const gchar * col,
00139 GValue * value);
00140
00148 gboolean rtcom_el_iter_get(
00149 RTComElIter * it,
00150 RTComElEvent * ev);
00151
00159 gchar * rtcom_el_iter_get_header_raw(
00160 RTComElIter * it,
00161 const gchar * key);
00162
00163 gboolean rtcom_el_iter_get_int(
00164 RTComElIter * it,
00165 const gchar * key,
00166 gint * ret);
00167
00168 gboolean rtcom_el_iter_dup_string(
00169 RTComElIter * it,
00170 const gchar * key,
00171 gchar ** ret);
00172
00173 G_END_DECLS
00174
00175 #endif
00176
00177
00178