Updated Indonesian translation
[empathy-mirror.git] / libempathy-gtk / empathy-theme-adium.h
blob698d2846cf811499c35b0e86f5373752461ea809
1 /*
2 * Copyright (C) 2008-2012 Collabora Ltd.
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.
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.
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
18 * Authors: Xavier Claessens <xclaesse@gmail.com>
21 #ifndef __EMPATHY_THEME_ADIUM_H__
22 #define __EMPATHY_THEME_ADIUM_H__
24 #include <webkit/webkitwebview.h>
26 #include "empathy-message.h"
28 G_BEGIN_DECLS
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))
54 typedef struct _EmpathyThemeAdium EmpathyThemeAdium;
55 typedef struct _EmpathyThemeAdiumClass EmpathyThemeAdiumClass;
56 typedef struct _EmpathyThemeAdiumPriv EmpathyThemeAdiumPriv;
58 typedef struct _EmpathyAdiumData EmpathyAdiumData;
60 struct _EmpathyThemeAdium
62 WebKitWebView parent;
63 EmpathyThemeAdiumPriv *priv;
66 struct _EmpathyThemeAdiumClass
68 WebKitWebViewClass parent_class;
71 GType empathy_theme_adium_get_type (void) G_GNUC_CONST;
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);
79 void empathy_theme_adium_append_message (EmpathyThemeAdium *self,
80 EmpathyMessage *msg,
81 gboolean should_highlight);
83 void empathy_theme_adium_append_event (EmpathyThemeAdium *self,
84 const gchar *str);
86 void empathy_theme_adium_append_event_markup (EmpathyThemeAdium *self,
87 const gchar *markup_text,
88 const gchar *fallback_text);
90 void empathy_theme_adium_prepend_message (EmpathyThemeAdium *self,
91 EmpathyMessage *msg,
92 gboolean should_highlight);
94 void empathy_theme_adium_edit_message (EmpathyThemeAdium *self,
95 EmpathyMessage *message);
97 void empathy_theme_adium_scroll (EmpathyThemeAdium *self,
98 gboolean allow_scrolling);
100 void empathy_theme_adium_scroll_down (EmpathyThemeAdium *self);
102 gboolean empathy_theme_adium_get_has_selection (EmpathyThemeAdium *self);
104 void empathy_theme_adium_clear (EmpathyThemeAdium *self);
106 gboolean empathy_theme_adium_find_previous (EmpathyThemeAdium *self,
107 const gchar *search_criteria,
108 gboolean new_search,
109 gboolean match_case);
111 gboolean empathy_theme_adium_find_next (EmpathyThemeAdium *self,
112 const gchar *search_criteria,
113 gboolean new_search,
114 gboolean match_case);
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);
122 void empathy_theme_adium_highlight (EmpathyThemeAdium *self,
123 const gchar *text,
124 gboolean match_case);
126 void empathy_theme_adium_copy_clipboard (EmpathyThemeAdium *self);
128 void empathy_theme_adium_focus_toggled (EmpathyThemeAdium *self,
129 gboolean has_focus);
131 void empathy_theme_adium_message_acknowledged (EmpathyThemeAdium *self,
132 EmpathyMessage *message);
134 void empathy_theme_adium_set_show_avatars (EmpathyThemeAdium *self,
135 gboolean show_avatars);
137 /* not methods functions */
139 gboolean empathy_adium_path_is_valid (const gchar *path);
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);
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);
155 G_END_DECLS
157 #endif /* __EMPATHY_THEME_ADIUM_H__ */