]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-roster-contact.h
add empathy_roster_contact_get_avatar_pixbuf()
[empathy.git] / libempathy-gtk / empathy-roster-contact.h
1 #ifndef __EMPATHY_ROSTER_CONTACT_H__
2 #define __EMPATHY_ROSTER_CONTACT_H__
3
4 #include <gtk/gtk.h>
5 #include <folks/folks.h>
6
7 G_BEGIN_DECLS
8
9 typedef struct _EmpathyRosterContact EmpathyRosterContact;
10 typedef struct _EmpathyRosterContactClass EmpathyRosterContactClass;
11 typedef struct _EmpathyRosterContactPriv EmpathyRosterContactPriv;
12
13 struct _EmpathyRosterContactClass
14 {
15   /*<private>*/
16   GtkAlignmentClass parent_class;
17 };
18
19 struct _EmpathyRosterContact
20 {
21   /*<private>*/
22   GtkAlignment parent;
23   EmpathyRosterContactPriv *priv;
24 };
25
26 GType empathy_roster_contact_get_type (void);
27
28 /* TYPE MACROS */
29 #define EMPATHY_TYPE_ROSTER_CONTACT \
30   (empathy_roster_contact_get_type ())
31 #define EMPATHY_ROSTER_CONTACT(obj) \
32   (G_TYPE_CHECK_INSTANCE_CAST((obj), \
33     EMPATHY_TYPE_ROSTER_CONTACT, \
34     EmpathyRosterContact))
35 #define EMPATHY_ROSTER_CONTACT_CLASS(klass) \
36   (G_TYPE_CHECK_CLASS_CAST((klass), \
37     EMPATHY_TYPE_ROSTER_CONTACT, \
38     EmpathyRosterContactClass))
39 #define EMPATHY_IS_ROSTER_CONTACT(obj) \
40   (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
41     EMPATHY_TYPE_ROSTER_CONTACT))
42 #define EMPATHY_IS_ROSTER_CONTACT_CLASS(klass) \
43   (G_TYPE_CHECK_CLASS_TYPE((klass), \
44     EMPATHY_TYPE_ROSTER_CONTACT))
45 #define EMPATHY_ROSTER_CONTACT_GET_CLASS(obj) \
46   (G_TYPE_INSTANCE_GET_CLASS ((obj), \
47     EMPATHY_TYPE_ROSTER_CONTACT, \
48     EmpathyRosterContactClass))
49
50 GtkWidget * empathy_roster_contact_new (FolksIndividual *individual,
51     const gchar *group);
52
53 FolksIndividual * empathy_roster_contact_get_individual (EmpathyRosterContact *self);
54
55 const gchar * empathy_roster_contact_get_group (EmpathyRosterContact *self);
56
57 gboolean empathy_roster_contact_is_online (EmpathyRosterContact *self);
58
59 void empathy_roster_contact_set_event_icon (EmpathyRosterContact *self,
60     const gchar *icon);
61
62 GdkPixbuf * empathy_roster_contact_get_avatar_pixbuf (
63     EmpathyRosterContact *self);
64
65 G_END_DECLS
66
67 #endif /* #ifndef __EMPATHY_ROSTER_CONTACT_H__*/