1
/* Mission Control plugin API - internals, for MC to use for account storage
3
* Copyright © 2010 Nokia Corporation
4
* Copyright © 2010 Collabora Ltd.
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.
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.
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
21
#ifndef MCP_ACCOUNT_MANAGER_H
22
#define MCP_ACCOUNT_MANAGER_H
24
#ifndef _MCP_IN_MISSION_CONTROL_PLUGINS_H
25
#error Use <mission-control-plugins/mission-control-plugins.h> instead
30
typedef struct _McpAccountManager McpAccountManager;
31
typedef struct _McpAccountManagerIface McpAccountManagerIface;
33
#define MCP_TYPE_ACCOUNT_MANAGER (mcp_account_manager_get_type ())
35
#define MCP_ACCOUNT_MANAGER(o) \
36
(G_TYPE_CHECK_INSTANCE_CAST ((o), MCP_TYPE_ACCOUNT_MANAGER, \
39
#define MCP_IS_ACCOUNT_MANAGER(o) \
40
(G_TYPE_CHECK_INSTANCE_TYPE ((o), MCP_TYPE_ACCOUNT_MANAGER))
42
#define MCP_ACCOUNT_MANAGER_GET_IFACE(o) \
43
(G_TYPE_INSTANCE_GET_INTERFACE ((o), MCP_TYPE_ACCOUNT_MANAGER, \
44
McpAccountManagerIface))
46
GType mcp_account_manager_get_type (void) G_GNUC_CONST;
48
void mcp_account_manager_set_value (const McpAccountManager *mcpa,
53
gchar * mcp_account_manager_get_value (const McpAccountManager *mcpa,
57
gboolean mcp_account_manager_parameter_is_secret (const McpAccountManager *mcpa,
61
void mcp_account_manager_parameter_make_secret (const McpAccountManager *mcpa,
65
gchar * mcp_account_manager_get_unique_name (McpAccountManager *mcpa,
67
const gchar *protocol,
68
const GHashTable *params);