~ubuntu-branches/ubuntu/precise/telepathy-mission-control-5/precise

« back to all changes in this revision

Viewing changes to src/mcd-account-manager-sso.h

Tags: upstream-5.5.0
Import upstream version 5.5.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * The SSO/libaccounts-glib manager keyfile storage pseudo-plugin
 
3
 *
 
4
 * Copyright © 2010 Nokia Corporation
 
5
 * Copyright © 2010 Collabora Ltd.
 
6
 *
 
7
 * This library is free software; you can redistribute it and/or
 
8
 * modify it under the terms of the GNU Lesser General Public
 
9
 * License as published by the Free Software Foundation; either
 
10
 * version 2.1 of the License, or (at your option) any later version.
 
11
 *
 
12
 * This library is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
15
 * Lesser General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU Lesser General Public
 
18
 * License along with this library; if not, write to the Free Software
 
19
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
20
 */
 
21
 
 
22
#include <mission-control-plugins/mission-control-plugins.h>
 
23
#include <libaccounts-glib/ag-manager.h>
 
24
#include <libaccounts-glib/ag-account.h>
 
25
 
 
26
#ifndef __MCD_ACCOUNT_MANAGER_SSO_H__
 
27
#define __MCD_ACCOUNT_MANAGER_SSO_H__
 
28
 
 
29
G_BEGIN_DECLS
 
30
 
 
31
#define MCD_TYPE_ACCOUNT_MANAGER_SSO \
 
32
  (mcd_account_manager_sso_get_type ())
 
33
 
 
34
#define MCD_ACCOUNT_MANAGER_SSO(o) \
 
35
  (G_TYPE_CHECK_INSTANCE_CAST ((o), MCD_TYPE_ACCOUNT_MANAGER_SSO,   \
 
36
      McdAccountManagerSso))
 
37
 
 
38
#define MCD_ACCOUNT_MANAGER_SSO_CLASS(k)     \
 
39
    (G_TYPE_CHECK_CLASS_CAST((k), MCD_TYPE_ACCOUNT_MANAGER_SSO, \
 
40
        McdAccountManagerClass))
 
41
 
 
42
#define MCD_IS_ACCOUNT_MANAGER_SSO(o) \
 
43
  (G_TYPE_CHECK_INSTANCE_TYPE ((o), MCD_TYPE_ACCOUNT_MANAGER_SSO))
 
44
 
 
45
#define MCD_IS_ACCOUNT_MANAGER_SSO_CLASS(k)  \
 
46
  (G_TYPE_CHECK_CLASS_TYPE ((k), MCD_TYPE_ACCOUNT_MANAGER_SSO))
 
47
 
 
48
#define MCD_ACCOUNT_MANAGER_SSO_GET_CLASS(o) \
 
49
    (G_TYPE_INSTANCE_GET_CLASS ((o), MCD_TYPE_ACCOUNT_MANAGER_SSO, \
 
50
        McdAccountManagerSsoClass))
 
51
 
 
52
typedef struct {
 
53
  GObject parent;
 
54
  GHashTable *accounts;
 
55
  GHashTable *id_name_map;
 
56
  GList *services;
 
57
  GQueue *pending_signals;
 
58
  AgManager *ag_manager;
 
59
  McpAccountManager *manager_interface;
 
60
  gboolean ready;
 
61
  gboolean save;
 
62
  gboolean loaded;
 
63
} _McdAccountManagerSso;
 
64
 
 
65
typedef struct {
 
66
  GObjectClass parent_class;
 
67
} _McdAccountManagerSsoClass;
 
68
 
 
69
typedef _McdAccountManagerSso McdAccountManagerSso;
 
70
typedef _McdAccountManagerSsoClass McdAccountManagerSsoClass;
 
71
 
 
72
GType mcd_account_manager_sso_get_type (void) G_GNUC_CONST;
 
73
 
 
74
McdAccountManagerSso *mcd_account_manager_sso_new (void);
 
75
 
 
76
#endif