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
00086 G_GNUC_DEPRECATED GValueArray * rtcom_el_iter_get_valuearray(
00087 RTComElIter * it,
00088 ...);
00089
00090
00100 GHashTable *rtcom_el_iter_get_value_map (RTComElIter *it, ...);
00101
00116 gboolean rtcom_el_iter_get_values (RTComElIter *it, ...);
00117
00123 RTComElAttachIter * rtcom_el_iter_get_attachments(
00124 RTComElIter * it);
00125
00126
00127
00136 gboolean rtcom_el_iter_get_raw(
00137 RTComElIter * it,
00138 const gchar * col,
00139 GValue * value);
00140
00151 gboolean rtcom_el_iter_get_full(
00152 RTComElIter * it,
00153 RTComElEvent * ev);
00154
00158 G_GNUC_DEPRECATED gboolean rtcom_el_iter_get(
00159 RTComElIter * it,
00160 RTComElEvent * ev);
00161
00162
00172 const GHashTable *rtcom_el_iter_get_columns(RTComElIter *it);
00173
00181 gchar * rtcom_el_iter_get_header_raw(
00182 RTComElIter * it,
00183 const gchar * key);
00184
00185
00186 G_GNUC_DEPRECATED gboolean rtcom_el_iter_get_int(
00187 RTComElIter * it,
00188 const gchar * key,
00189 gint * ret);
00190
00191 G_GNUC_DEPRECATED gboolean rtcom_el_iter_dup_string(
00192 RTComElIter * it,
00193 const gchar * key,
00194 gchar ** ret);
00195
00196 G_END_DECLS
00197
00198 #endif
00199
00200
00201