1 /* EasyTAG - Tag editor for audio files
2  * Copyright (C) 2014  David King <amigadave@amigadave.com>
3  * Copyright (C) 2000-2007  Jerome Couderc <easytag@gmail.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19 
20 #ifndef ET_LOG_AREA_H_
21 #define ET_LOG_AREA_H_
22 
23 #include <gtk/gtk.h>
24 
25 G_BEGIN_DECLS
26 
27 #define ET_TYPE_LOG_AREA (et_log_area_get_type ())
28 #define ET_LOG_AREA(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), ET_TYPE_LOG_AREA, EtLogArea))
29 
30 typedef struct _EtLogArea EtLogArea;
31 typedef struct _EtLogAreaClass EtLogAreaClass;
32 
33 struct _EtLogArea
34 {
35     /*< private >*/
36     GtkBin parent_instance;
37 };
38 
39 struct _EtLogAreaClass
40 {
41     /*< private >*/
42     GtkBinClass parent_class;
43 };
44 
45 /*
46  * Types of errors
47  */
48 typedef enum
49 {
50     LOG_UNKNOWN,
51     LOG_OK,
52     LOG_INFO,
53     LOG_WARNING,
54     LOG_ERROR
55 } EtLogAreaKind;
56 
57 
58 /**************
59  * Prototypes *
60  **************/
61 
62 GType et_log_area_get_type (void);
63 GtkWidget * et_log_area_new (void);
64 void et_log_area_clear (EtLogArea *self);
65 void Log_Print (EtLogAreaKind error_type,
66                 const gchar * const format, ...) G_GNUC_PRINTF (2, 3);
67 
68 G_END_DECLS
69 
70 #endif /* ET_LOG_AREA_H_ */
71