]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-theme-adium.h
Fix broken nl translation
[empathy.git] / libempathy-gtk / empathy-theme-adium.h
1 /*
2  * Copyright (C) 2008-2012 Collabora Ltd.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17  *
18  * Authors: Xavier Claessens <xclaesse@gmail.com>
19  */
20
21 #ifndef __EMPATHY_THEME_ADIUM_H__
22 #define __EMPATHY_THEME_ADIUM_H__
23
24 #include <webkit/webkitwebview.h>
25
26 #include "empathy-message.h"
27
28 G_BEGIN_DECLS
29
30 /* TYPE MACROS */
31 #define EMPATHY_TYPE_THEME_ADIUM \
32   (empathy_theme_adium_get_type ())
33 #define EMPATHY_THEME_ADIUM(obj) \
34   (G_TYPE_CHECK_INSTANCE_CAST((obj), \
35     EMPATHY_TYPE_THEME_ADIUM, \
36     EmpathyThemeAdium))
37 #define EMPATHY_THEME_ADIUM_CLASS(klass) \
38   (G_TYPE_CHECK_CLASS_CAST((klass), \
39     EMPATHY_TYPE_THEME_ADIUM, \
40     EmpathyThemeAdiumClass))
41 #define EMPATHY_IS_THEME_ADIUM(obj) \
42   (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
43     EMPATHY_TYPE_THEME_ADIUM))
44 #define EMPATHY_IS_THEME_ADIUM_CLASS(klass) \
45   (G_TYPE_CHECK_CLASS_TYPE((klass), \
46     EMPATHY_TYPE_THEME_ADIUM))
47 #define EMPATHY_THEME_ADIUM_GET_CLASS(obj) \
48   (G_TYPE_INSTANCE_GET_CLASS ((obj), \
49     EMPATHY_TYPE_THEME_ADIUM, \
50     EmpathyThemeAdiumClass))
51
52
53
54 typedef struct _EmpathyThemeAdium EmpathyThemeAdium;
55 typedef struct _EmpathyThemeAdiumClass EmpathyThemeAdiumClass;
56 typedef struct _EmpathyThemeAdiumPriv EmpathyThemeAdiumPriv;
57
58 typedef struct _EmpathyAdiumData EmpathyAdiumData;
59
60 struct _EmpathyThemeAdium
61 {
62   WebKitWebView parent;
63   EmpathyThemeAdiumPriv *priv;
64 };
65
66 struct _EmpathyThemeAdiumClass
67 {
68   WebKitWebViewClass parent_class;
69 };
70
71 GType empathy_theme_adium_get_type (void) G_GNUC_CONST;
72
73 EmpathyThemeAdium *empathy_theme_adium_new (EmpathyAdiumData *data,
74     const gchar *variant);
75 void empathy_theme_adium_set_variant (EmpathyThemeAdium *theme,
76                 const gchar *variant);
77 void empathy_theme_adium_show_inspector (EmpathyThemeAdium *theme);
78
79 void empathy_theme_adium_append_message (EmpathyThemeAdium *self,
80     EmpathyMessage *msg,
81     gboolean should_highlight);
82
83 void empathy_theme_adium_append_event (EmpathyThemeAdium *self,
84     const gchar *str);
85
86 void empathy_theme_adium_append_event_markup (EmpathyThemeAdium *self,
87     const gchar *markup_text,
88     const gchar *fallback_text);
89
90 void empathy_theme_adium_prepend_message (EmpathyThemeAdium *self,
91     EmpathyMessage *msg,
92     gboolean should_highlight);
93
94 void empathy_theme_adium_edit_message (EmpathyThemeAdium *self,
95     EmpathyMessage *message);
96
97 void empathy_theme_adium_scroll (EmpathyThemeAdium *self,
98     gboolean allow_scrolling);
99
100 void empathy_theme_adium_scroll_down (EmpathyThemeAdium *self);
101
102 gboolean empathy_theme_adium_get_has_selection (EmpathyThemeAdium *self);
103
104 void empathy_theme_adium_clear (EmpathyThemeAdium *self);
105
106 gboolean empathy_theme_adium_find_previous (EmpathyThemeAdium *self,
107     const gchar *search_criteria,
108     gboolean new_search,
109     gboolean match_case);
110
111 gboolean empathy_theme_adium_find_next (EmpathyThemeAdium *self,
112     const gchar *search_criteria,
113     gboolean new_search,
114     gboolean match_case);
115
116 void empathy_theme_adium_find_abilities (EmpathyThemeAdium *self,
117     const gchar *search_criteria,
118     gboolean match_case,
119     gboolean *can_do_previous,
120     gboolean *can_do_next);
121
122 void empathy_theme_adium_highlight (EmpathyThemeAdium *self,
123     const gchar *text,
124     gboolean match_case);
125
126 void empathy_theme_adium_copy_clipboard (EmpathyThemeAdium *self);
127
128 void empathy_theme_adium_focus_toggled (EmpathyThemeAdium *self,
129     gboolean has_focus);
130
131 void empathy_theme_adium_message_acknowledged (EmpathyThemeAdium *self,
132     EmpathyMessage *message);
133
134 void empathy_theme_adium_set_show_avatars (EmpathyThemeAdium *self,
135     gboolean show_avatars);
136
137 /* not methods functions */
138
139 gboolean empathy_adium_path_is_valid (const gchar *path);
140
141 GHashTable *empathy_adium_info_new (const gchar *path);
142 const gchar * empathy_adium_info_get_default_variant (GHashTable *info);
143 GPtrArray * empathy_adium_info_get_available_variants (GHashTable *info);
144
145 #define EMPATHY_TYPE_ADIUM_DATA (empathy_adium_data_get_type ())
146 GType empathy_adium_data_get_type (void) G_GNUC_CONST;
147 EmpathyAdiumData *empathy_adium_data_new (const gchar *path);
148 EmpathyAdiumData *empathy_adium_data_new_with_info (const gchar *path,
149     GHashTable *info);
150 EmpathyAdiumData *empathy_adium_data_ref (EmpathyAdiumData *data);
151 void empathy_adium_data_unref (EmpathyAdiumData *data);
152 GHashTable *empathy_adium_data_get_info (EmpathyAdiumData *data);
153 const gchar *empathy_adium_data_get_path (EmpathyAdiumData *data);
154
155 G_END_DECLS
156
157 #endif /* __EMPATHY_THEME_ADIUM_H__ */