1 #ifndef __EMPATHY_ROSTER_CONTACT_H__
2 #define __EMPATHY_ROSTER_CONTACT_H__
5 #include <folks/folks.h>
6 #include "empathy-contact.h"
10 typedef struct _EmpathyRosterContact EmpathyRosterContact
;
11 typedef struct _EmpathyRosterContactClass EmpathyRosterContactClass
;
12 typedef struct _EmpathyRosterContactPriv EmpathyRosterContactPriv
;
14 struct _EmpathyRosterContactClass
17 GtkListBoxRowClass parent_class
;
20 struct _EmpathyRosterContact
24 EmpathyRosterContactPriv
*priv
;
27 GType
empathy_roster_contact_get_type (void);
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
,
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
,
65 GdkPixbuf
* empathy_roster_contact_get_avatar_pixbuf (
66 EmpathyRosterContact
*self
);
68 gint64
empathy_roster_contact_get_most_recent_timestamp (EmpathyRosterContact
*contact
);
72 #endif /* #ifndef __EMPATHY_ROSTER_CONTACT_H__*/