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
68
69
70
71
72
73
74
75
|
/*
* roster.h - Headers for Gabble roster helper
*
* Copyright © 2006–2010 Collabora Ltd.
* Copyright © 2006–2010 Nokia Corporation
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __ROSTER_H__
#define __ROSTER_H__
#include <glib-object.h>
#include <telepathy-glib/telepathy-glib.h>
#include "types.h"
G_BEGIN_DECLS
typedef struct _GabbleRosterPrivate GabbleRosterPrivate;
typedef struct _GabbleRosterClass GabbleRosterClass;
GType gabble_roster_get_type (void);
/* TYPE MACROS */
#define GABBLE_TYPE_ROSTER \
(gabble_roster_get_type ())
#define GABBLE_ROSTER(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj), GABBLE_TYPE_ROSTER, GabbleRoster))
#define GABBLE_ROSTER_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass), GABBLE_TYPE_ROSTER, GabbleRosterClass))
#define GABBLE_IS_ROSTER(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj), GABBLE_TYPE_ROSTER))
#define GABBLE_IS_ROSTER_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass), GABBLE_TYPE_ROSTER))
#define GABBLE_ROSTER_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), GABBLE_TYPE_ROSTER, GabbleRosterClass))
struct _GabbleRosterClass {
TpBaseContactListClass parent_class;
};
struct _GabbleRoster {
TpBaseContactList parent;
GabbleRosterPrivate *priv;
};
GabbleRoster *gabble_roster_new (GabbleConnection *);
gboolean gabble_roster_handle_sends_presence_to_us (GabbleRoster *,
TpHandle);
gboolean gabble_roster_handle_gets_presence_from_us (GabbleRoster *,
TpHandle);
const gchar *gabble_roster_handle_get_name (GabbleRoster *, TpHandle);
gboolean gabble_roster_handle_set_name (GabbleRoster *, TpHandle,
const gchar *, GError **);
gboolean gabble_roster_handle_has_entry (GabbleRoster *, TpHandle);
G_END_DECLS
#endif /* __ROSTER_H__ */
|