~ubuntu-branches/ubuntu/saucy/folks/saucy

« back to all changes in this revision

Viewing changes to tests/lib/telepathy/contactlist/account-manager.h

  • Committer: Package Import Robot
  • Author(s): Sjoerd Simons
  • Date: 2012-03-30 20:03:30 UTC
  • mfrom: (32.1.2 precise)
  • Revision ID: package-import@ubuntu.com-20120330200330-l61hwayt5vjz1zcf
Tags: 0.6.8-2
* d/p/0001-tpf-persona-use-tp_connection_get_account.patch
  + Added, fixes crash when accounts are disconnecting/connecting
* Target unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * account-manager.h - header for a simple account manager service.
 
3
 *
 
4
 * Copyright (C) 2007-2009 Collabora Ltd. <http://www.collabora.co.uk/>
 
5
 * Copyright (C) 2007-2008 Nokia Corporation
 
6
 *
 
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.
 
10
 *
 
11
 * Copied from telepathy-glib/tests/lib/simple-account-manager.h.
 
12
 */
 
13
 
 
14
#ifndef __TP_TEST_ACCOUNT_MANAGER_H__
 
15
#define __TP_TEST_ACCOUNT_MANAGER_H__
 
16
 
 
17
#include <glib-object.h>
 
18
#include <telepathy-glib/dbus-properties-mixin.h>
 
19
 
 
20
 
 
21
G_BEGIN_DECLS
 
22
 
 
23
typedef struct _TpTestAccountManager TpTestAccountManager;
 
24
typedef struct _TpTestAccountManagerClass TpTestAccountManagerClass;
 
25
typedef struct _TpTestAccountManagerPrivate TpTestAccountManagerPrivate;
 
26
 
 
27
struct _TpTestAccountManagerClass {
 
28
    GObjectClass parent_class;
 
29
    TpDBusPropertiesMixinClass dbus_props_class;
 
30
};
 
31
 
 
32
struct _TpTestAccountManager {
 
33
    GObject parent;
 
34
 
 
35
    TpTestAccountManagerPrivate *priv;
 
36
};
 
37
 
 
38
GType tp_test_account_manager_get_type (void);
 
39
 
 
40
/* TYPE MACROS */
 
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))
 
56
 
 
57
TpTestAccountManager *tp_test_account_manager_new (void);
 
58
 
 
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);
 
63
 
 
64
G_END_DECLS
 
65
 
 
66
#endif /* #ifndef __TP_TEST_ACCOUNT_MANAGER_H__ */