aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-roster-contact.h
blob: 7b87e76d46ff88cb52965e44f0c46068bc228386 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#ifndef __EMPATHY_ROSTER_CONTACT_H__
#define __EMPATHY_ROSTER_CONTACT_H__

#include <gtk/gtk.h>
#include <folks/folks.h>

G_BEGIN_DECLS

typedef struct _EmpathyRosterContact EmpathyRosterContact;
typedef struct _EmpathyRosterContactClass EmpathyRosterContactClass;
typedef struct _EmpathyRosterContactPriv EmpathyRosterContactPriv;

struct _EmpathyRosterContactClass
{
  /*<private>*/
  GtkAlignmentClass parent_class;
};

struct _EmpathyRosterContact
{
  /*<private>*/
  GtkAlignment parent;
  EmpathyRosterContactPriv *priv;
};

GType empathy_roster_contact_get_type (void);

/* TYPE MACROS */
#define EMPATHY_TYPE_ROSTER_CONTACT \
  (empathy_roster_contact_get_type ())
#define EMPATHY_ROSTER_CONTACT(obj) \
  (G_TYPE_CHECK_INSTANCE_CAST((obj), \
    EMPATHY_TYPE_ROSTER_CONTACT, \
    EmpathyRosterContact))
#define EMPATHY_ROSTER_CONTACT_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_CAST((klass), \
    EMPATHY_TYPE_ROSTER_CONTACT, \
    EmpathyRosterContactClass))
#define EMPATHY_IS_ROSTER_CONTACT(obj) \
  (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
    EMPATHY_TYPE_ROSTER_CONTACT))
#define EMPATHY_IS_ROSTER_CONTACT_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_TYPE((klass), \
    EMPATHY_TYPE_ROSTER_CONTACT))
#define EMPATHY_ROSTER_CONTACT_GET_CLASS(obj) \
  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
    EMPATHY_TYPE_ROSTER_CONTACT, \
    EmpathyRosterContactClass))

GtkWidget * empathy_roster_contact_new (FolksIndividual *individual,
    const gchar *group);

FolksIndividual * empathy_roster_contact_get_individual (EmpathyRosterContact *self);

const gchar * empathy_roster_contact_get_group (EmpathyRosterContact *self);

gboolean empathy_roster_contact_is_online (EmpathyRosterContact *self);

void empathy_roster_contact_set_event_icon (EmpathyRosterContact *self,
    const gchar *icon);

GdkPixbuf * empathy_roster_contact_get_avatar_pixbuf (
    EmpathyRosterContact *self);

G_END_DECLS

#endif /* #ifndef __EMPATHY_ROSTER_CONTACT_H__*/