root / purple.h @ cd75287ef15854838c5bd632a56eb0441c5e74ac
History | View | Annotate | Download (2.5 KB)
| 1 | /* File: purple.h
|
|---|---|
| 2 | Time-stamp: <2012-04-05 17:05:44 gawen> |
| 3 | |
| 4 | Copyright (C) 2010 David Hauweele <david@hauweele.net> |
| 5 | Copyright (C) 2008,2009 Craig Harding <craigwharding@gmail.com> |
| 6 | Wolter Hellmund <wolterh@gmail.com> |
| 7 | |
| 8 | This program is free software: you can redistribute it and/or modify |
| 9 | it under the terms of the GNU General Public License as published by |
| 10 | the Free Software Foundation, either version 3 of the License, or |
| 11 | (at your option) any later version. |
| 12 | |
| 13 | This program is distributed in the hope that it will be useful, |
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | GNU General Public License for more details. |
| 17 | |
| 18 | You should have received a copy of the GNU General Public License |
| 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
| 20 | |
| 21 | #ifndef _PURPLE_H_
|
| 22 | #define _PURPLE_H_
|
| 23 | |
| 24 | #include "common.h" |
| 25 | |
| 26 | #include "gtk.h" |
| 27 | |
| 28 | struct pbar_prpl_signal {
|
| 29 | void *instance;
|
| 30 | const char *signal; |
| 31 | void *callback;
|
| 32 | }; |
| 33 | |
| 34 | /* not sure purple defines that */
|
| 35 | #ifndef PURPLE_PREFS_CALLBACK
|
| 36 | # define PURPLE_PREFS_CALLBACK(func) ((PurplePrefCallback)func)
|
| 37 | #endif
|
| 38 | |
| 39 | gboolean is_same_song(const PurpleStatus *old, const PurpleStatus *new); |
| 40 | gboolean is_gtk_blist_created(void);
|
| 41 | GdkPixbuf * create_prpl_icon_from_info(PurplePluginProtocolInfo *prpl_info, |
| 42 | PidginPrplIconSize size); |
| 43 | GdkPixbuf * get_buddy_icon(void);
|
| 44 | GdkPixbuf * get_buddy_icon_hover(void);
|
| 45 | GHashTable * get_protocol_attrs(PurplePluginProtocolInfo *protocol); |
| 46 | GHashTable * get_account_attrs(PurpleAccount *account); |
| 47 | const gchar * get_status_stock_id(void); |
| 48 | gchar * get_mood_icon_path(const gchar *mood);
|
| 49 | PurpleMood * get_global_moods(void);
|
| 50 | |
| 51 | void set_status_message(const gchar *pm); |
| 52 | void set_status_all(const gchar *status_id, GList *attrs); |
| 53 | void set_status_with_mood(PurpleAccount *account, const gchar *mood); |
| 54 | void set_status_with_mood_all(const gchar *mood); |
| 55 | void set_display_name(PurpleAccount *account, const gchar *name); |
| 56 | void set_display_name_all(const gchar *name); |
| 57 | void prpl_disconnect_signals(struct pbar_widget *w); |
| 58 | void prpl_prefs_disconnect_signals(struct pbar_widget *w); |
| 59 | void prpl_connect_signals(struct pbar_widget *w, |
| 60 | const struct pbar_prpl_signal *sig_list, |
| 61 | gpointer data); |
| 62 | void prpl_prefs_connect_signals(struct pbar_widget *w, |
| 63 | const struct pbar_prpl_signal *sig_list, |
| 64 | gpointer data); |
| 65 | |
| 66 | #endif /* _PURPLE_H_ */ |