2
* account-manager.h - header for a simple account manager service.
4
* Copyright (C) 2007-2009 Collabora Ltd. <http://www.collabora.co.uk/>
5
* Copyright (C) 2007-2008 Nokia Corporation
7
* Copying and distribution of this file, with or without modification,
8
* are permitted in any medium without royalty provided the copyright
9
* notice and this notice are preserved.
11
* Copied from telepathy-glib/tests/lib/simple-account-manager.h.
14
#ifndef __TP_TEST_ACCOUNT_MANAGER_H__
15
#define __TP_TEST_ACCOUNT_MANAGER_H__
17
#include <glib-object.h>
18
#include <telepathy-glib/dbus-properties-mixin.h>
23
typedef struct _TpTestAccountManager TpTestAccountManager;
24
typedef struct _TpTestAccountManagerClass TpTestAccountManagerClass;
25
typedef struct _TpTestAccountManagerPrivate TpTestAccountManagerPrivate;
27
struct _TpTestAccountManagerClass {
28
GObjectClass parent_class;
29
TpDBusPropertiesMixinClass dbus_props_class;
32
struct _TpTestAccountManager {
35
TpTestAccountManagerPrivate *priv;
38
GType tp_test_account_manager_get_type (void);
41
#define TP_TEST_TYPE_ACCOUNT_MANAGER \
42
(tp_test_account_manager_get_type ())
43
#define TP_TEST_ACCOUNT_MANAGER(obj) \
44
(G_TYPE_CHECK_INSTANCE_CAST((obj), TP_TEST_TYPE_ACCOUNT_MANAGER, \
45
TpTestAccountManager))
46
#define TP_TEST_ACCOUNT_MANAGER_CLASS(klass) \
47
(G_TYPE_CHECK_CLASS_CAST((klass), TP_TEST_TYPE_ACCOUNT_MANAGER, \
48
TpTestAccountManagerClass))
49
#define IS_TP_TEST_ACCOUNT_MANAGER(obj) \
50
(G_TYPE_CHECK_INSTANCE_TYPE((obj), TP_TEST_TYPE_ACCOUNT_MANAGER))
51
#define TP_TEST_IS_ACCOUNT_MANAGER_CLASS(klass) \
52
(G_TYPE_CHECK_CLASS_TYPE((klass), TP_TEST_TYPE_ACCOUNT_MANAGER))
53
#define TP_TEST_ACCOUNT_MANAGER_GET_CLASS(obj) \
54
(G_TYPE_INSTANCE_GET_CLASS ((obj), TP_TEST_TYPE_ACCOUNT_MANAGER, \
55
TpTestAccountManagerClass))
57
TpTestAccountManager *tp_test_account_manager_new (void);
59
void tp_test_account_manager_add_account (TpTestAccountManager *self,
60
const gchar *account_path);
61
void tp_test_account_manager_remove_account (TpTestAccountManager *self,
62
const gchar *account_path);
66
#endif /* #ifndef __TP_TEST_ACCOUNT_MANAGER_H__ */