Help: Use stable 'if' namespace instead of experimental
[empathy-mirror.git] / libempathy-gtk / empathy-roster-contact.h
blob1dc463a79560bd1d9fef9197006f999c5287e302
1 #ifndef __EMPATHY_ROSTER_CONTACT_H__
2 #define __EMPATHY_ROSTER_CONTACT_H__
4 #include <gtk/gtk.h>
5 #include <folks/folks.h>
6 #include "empathy-contact.h"
8 G_BEGIN_DECLS
10 typedef struct _EmpathyRosterContact EmpathyRosterContact;
11 typedef struct _EmpathyRosterContactClass EmpathyRosterContactClass;
12 typedef struct _EmpathyRosterContactPriv EmpathyRosterContactPriv;
14 struct _EmpathyRosterContactClass
16 /*<private>*/
17 GtkListBoxRowClass parent_class;
20 struct _EmpathyRosterContact
22 /*<private>*/
23 GtkListBoxRow parent;
24 EmpathyRosterContactPriv *priv;
27 GType empathy_roster_contact_get_type (void);
29 /* TYPE MACROS */
30 #define EMPATHY_TYPE_ROSTER_CONTACT \
31 (empathy_roster_contact_get_type ())
32 #define EMPATHY_ROSTER_CONTACT(obj) \
33 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
34 EMPATHY_TYPE_ROSTER_CONTACT, \
35 EmpathyRosterContact))
36 #define EMPATHY_ROSTER_CONTACT_CLASS(klass) \
37 (G_TYPE_CHECK_CLASS_CAST((klass), \
38 EMPATHY_TYPE_ROSTER_CONTACT, \
39 EmpathyRosterContactClass))
40 #define EMPATHY_IS_ROSTER_CONTACT(obj) \
41 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
42 EMPATHY_TYPE_ROSTER_CONTACT))
43 #define EMPATHY_IS_ROSTER_CONTACT_CLASS(klass) \
44 (G_TYPE_CHECK_CLASS_TYPE((klass), \
45 EMPATHY_TYPE_ROSTER_CONTACT))
46 #define EMPATHY_ROSTER_CONTACT_GET_CLASS(obj) \
47 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
48 EMPATHY_TYPE_ROSTER_CONTACT, \
49 EmpathyRosterContactClass))
51 GtkWidget * empathy_roster_contact_new (FolksIndividual *individual,
52 const gchar *group);
54 FolksIndividual * empathy_roster_contact_get_individual (EmpathyRosterContact *self);
56 EmpathyContact * empathy_roster_contact_get_contact (EmpathyRosterContact *self);
58 const gchar * empathy_roster_contact_get_group (EmpathyRosterContact *self);
60 gboolean empathy_roster_contact_is_online (EmpathyRosterContact *self);
62 void empathy_roster_contact_set_event_icon (EmpathyRosterContact *self,
63 const gchar *icon);
65 GdkPixbuf * empathy_roster_contact_get_avatar_pixbuf (
66 EmpathyRosterContact *self);
68 gint64 empathy_roster_contact_get_most_recent_timestamp (EmpathyRosterContact *contact);
70 G_END_DECLS
72 #endif /* #ifndef __EMPATHY_ROSTER_CONTACT_H__*/