Main Page | Directories | File List | File Members

hildon-log.h

Go to the documentation of this file.
00001 /*
00002  * This file is part of maemo-af-desktop
00003  *
00004  * Copyright (C) 2006 Nokia Corporation.
00005  *
00006  * Author:  Moises Martinez <moises.martinez@nokia.com>
00007  * Contact: Karoliina Salminen <karoliina.t.salminen@nokia.com>
00008  *
00009  * This library is free software; you can redistribute it and/or
00010  * modify it under the terms of the GNU Lesser General Public License
00011  * as published by the Free Software Foundation; either version 2.1 of
00012  * the License, or (at your option) any later version.
00013  *
00014  * This library is distributed in the hope that it will be useful, but
00015  * WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00017  * Lesser General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU Lesser General Public
00020  * License along with this library; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00022  * 02110-1301 USA
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 /* HILDON_LOG_H */

Generated on Thu Dec 21 11:26:52 2006 for maemo-af-desktop-documentation by  doxygen 1.4.2