1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3  *  ianjuta-message-view.h -- Autogenerated from libanjuta.idl
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 Library 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 _IANJUTA_MESSAGE_VIEW_H_
21 #define _IANJUTA_MESSAGE_VIEW_H_
22 
23 #include <glib-object.h>
24 
25 G_BEGIN_DECLS
26 
27 #define IANJUTA_TYPE_MESSAGE_VIEW (ianjuta_message_view_get_type ())
28 #define IANJUTA_MESSAGE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IANJUTA_TYPE_MESSAGE_VIEW, IAnjutaMessageView))
29 #define IANJUTA_IS_MESSAGE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IANJUTA_TYPE_MESSAGE_VIEW))
30 #define IANJUTA_MESSAGE_VIEW_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), IANJUTA_TYPE_MESSAGE_VIEW, IAnjutaMessageViewIface))
31 
32 #define IANJUTA_TYPE_MESSAGE_VIEW_TYPE (ianjuta_message_view_type_get_type())
33 
34 #define IANJUTA_MESSAGE_VIEW_ERROR ianjuta_message_view_error_quark()
35 
36 typedef struct _IAnjutaMessageView IAnjutaMessageView;
37 typedef struct _IAnjutaMessageViewIface IAnjutaMessageViewIface;
38 
39   /**
40    * IAnjutaMessageViewType:
41    * @IANJUTA_MESSAGE_VIEW_TYPE_NORMAL: Normal message
42    * @IANJUTA_MESSAGE_VIEW_TYPE_INFO: Info message (highlighed)
43    * @IANJUTA_MESSAGE_VIEW_TYPE_ERROR: Error message
44    * @IANJUTA_MESSAGE_VIEW_TYPE_WARNING: Warning message
45    *
46    * Speficy the type ot the message added to the message view
47    */
48 typedef enum {
49 	IANJUTA_MESSAGE_VIEW_TYPE_NORMAL,
50 	IANJUTA_MESSAGE_VIEW_TYPE_INFO,
51 	IANJUTA_MESSAGE_VIEW_TYPE_WARNING,
52 	IANJUTA_MESSAGE_VIEW_TYPE_ERROR
53 } IAnjutaMessageViewType;
54 
55 
56 struct _IAnjutaMessageViewIface {
57 	GTypeInterface g_iface;
58 
59 	/* Signal */
60 	void (*buffer_flushed) (IAnjutaMessageView *obj, const gchar *line);
61 	/* Signal */
62 	void (*message_clicked) (IAnjutaMessageView *obj, const gchar *message);
63 
64 	void (*append) (IAnjutaMessageView *obj, IAnjutaMessageViewType type,  const gchar *summary,  const gchar *details, GError **err);
65 	void (*buffer_append) (IAnjutaMessageView *obj, const gchar *text, GError **err);
66 	void (*clear) (IAnjutaMessageView *obj, GError **err);
67 	GList* (*get_all_messages) (IAnjutaMessageView *obj, GError **err);
68 	const gchar* (*get_current_message) (IAnjutaMessageView *obj, GError **err);
69 	void (*select_next) (IAnjutaMessageView *obj, GError **err);
70 	void (*select_previous) (IAnjutaMessageView *obj, GError **err);
71 
72 };
73 
74 GType ianjuta_message_view_type_get_type (void);
75 
76 GQuark ianjuta_message_view_error_quark     (void);
77 GType  ianjuta_message_view_get_type        (void);
78 
79 void ianjuta_message_view_append (IAnjutaMessageView *obj, IAnjutaMessageViewType type,  const gchar *summary,  const gchar *details, GError **err);
80 
81 void ianjuta_message_view_buffer_append (IAnjutaMessageView *obj, const gchar *text, GError **err);
82 
83 void ianjuta_message_view_clear (IAnjutaMessageView *obj, GError **err);
84 
85 GList* ianjuta_message_view_get_all_messages (IAnjutaMessageView *obj, GError **err);
86 
87 const gchar* ianjuta_message_view_get_current_message (IAnjutaMessageView *obj, GError **err);
88 
89 void ianjuta_message_view_select_next (IAnjutaMessageView *obj, GError **err);
90 
91 void ianjuta_message_view_select_previous (IAnjutaMessageView *obj, GError **err);
92 
93 
94 G_END_DECLS
95 
96 #endif
97