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

« back to all changes in this revision

Viewing changes to mission-control-plugins/account.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
/* Mission Control plugin API - internals, for MC to use for account storage
 
2
 *
 
3
 * Copyright © 2010 Nokia Corporation
 
4
 * Copyright © 2010 Collabora Ltd.
 
5
 *
 
6
 * This library is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU Lesser General Public
 
8
 * License as published by the Free Software Foundation; either
 
9
 * version 2.1 of the License, or (at your option) any later version.
 
10
 *
 
11
 * This library is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * Lesser General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU Lesser General Public
 
17
 * License along with this library; if not, write to the Free Software
 
18
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
19
 */
 
20
 
 
21
#ifndef MCP_ACCOUNT_MANAGER_H
 
22
#define MCP_ACCOUNT_MANAGER_H
 
23
 
 
24
#ifndef _MCP_IN_MISSION_CONTROL_PLUGINS_H
 
25
#error Use <mission-control-plugins/mission-control-plugins.h> instead
 
26
#endif
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
typedef struct _McpAccountManager McpAccountManager;
 
31
typedef struct _McpAccountManagerIface McpAccountManagerIface;
 
32
 
 
33
#define MCP_TYPE_ACCOUNT_MANAGER (mcp_account_manager_get_type ())
 
34
 
 
35
#define MCP_ACCOUNT_MANAGER(o) \
 
36
  (G_TYPE_CHECK_INSTANCE_CAST ((o), MCP_TYPE_ACCOUNT_MANAGER, \
 
37
      McpAccountManager))
 
38
 
 
39
#define MCP_IS_ACCOUNT_MANAGER(o) \
 
40
  (G_TYPE_CHECK_INSTANCE_TYPE ((o), MCP_TYPE_ACCOUNT_MANAGER))
 
41
 
 
42
#define MCP_ACCOUNT_MANAGER_GET_IFACE(o) \
 
43
  (G_TYPE_INSTANCE_GET_INTERFACE ((o), MCP_TYPE_ACCOUNT_MANAGER, \
 
44
      McpAccountManagerIface))
 
45
 
 
46
GType mcp_account_manager_get_type (void) G_GNUC_CONST;
 
47
 
 
48
void mcp_account_manager_set_value (const McpAccountManager *mcpa,
 
49
    const gchar *acct,
 
50
    const gchar *key,
 
51
    const gchar *value);
 
52
 
 
53
gchar * mcp_account_manager_get_value (const McpAccountManager *mcpa,
 
54
    const gchar *acct,
 
55
    const gchar *key);
 
56
 
 
57
gboolean mcp_account_manager_parameter_is_secret (const McpAccountManager *mcpa,
 
58
    const gchar *acct,
 
59
    const gchar *key);
 
60
 
 
61
void mcp_account_manager_parameter_make_secret (const McpAccountManager *mcpa,
 
62
    const gchar *acct,
 
63
    const gchar *key);
 
64
 
 
65
gchar * mcp_account_manager_get_unique_name (McpAccountManager *mcpa,
 
66
    const gchar *manager,
 
67
    const gchar *protocol,
 
68
    const GHashTable *params);
 
69
 
 
70
G_END_DECLS
 
71
 
 
72
#endif