00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00032 #ifndef HILDON_LOG_H
00033 #define HILDON_LOG_H
00034
00035 #include <glib-object.h>
00036
00037 G_BEGIN_DECLS
00038
00039 #define HILDON_LOG_TYPE ( hildon_log_get_type() )
00040 #define HILDON_LOG(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, \
00041 HILDON_LOG_TYPE, \
00042 HildonLog))
00043 #define HILDON_LOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
00044 HILDON_LOG_TYPE, HildonLogClass))
00045 #define HILDON_IS_LOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, \
00046 HILDON_LOG_TYPE))
00047 #define HILDON_IS_LOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
00048 HILDON_LOG_TYPE))
00049 #define HILDON_LOG_GET_PRIVATE(obj) \
00050 (G_TYPE_INSTANCE_GET_PRIVATE ((obj), \
00051 HILDON_LOG_TYPE, HildonLogPrivate));
00052
00053 typedef struct _HildonLog HildonLog;
00054 typedef struct _HildonLogClass HildonLogClass;
00055
00056 struct _HildonLog
00057 {
00058 GObject parent;
00059 };
00060
00061 struct _HildonLogClass
00062 {
00063 GObjectClass parent_class;
00064
00065 void (*remove_file) (HildonLog *log);
00066 void (*add_group) (HildonLog *log,
00067 const gchar *group);
00068 void (*add_message) (HildonLog *log,
00069 const gchar *key,
00070 const gchar *message);
00071
00072 GList* (*get_incomplete_groups) (HildonLog *log, ...);
00073 };
00074
00075 GType hildon_log_get_type (void);
00076
00077 HildonLog *hildon_log_new (const gchar *filename);
00078
00079 void hildon_log_remove_file (HildonLog *log);
00080 void hildon_log_add_group (HildonLog *log, const gchar *group);
00081 void hildon_log_add_message (HildonLog *log, const gchar *key, const gchar *message);
00082 GList *hildon_log_get_incomplete_groups (HildonLog *log, ...);
00083
00084 G_END_DECLS
00085
00086 #endif