1 /* vi: set et sw=4 ts=4 cino=t0,(0: */
2 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
4 * This file is part of gsignond
6 * Copyright (C) 2012-2013 Intel Corporation.
8 * Contact: Alexander Kanavin <alex.kanavin@gmail.com>
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2.1 of the License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
26 #ifndef __GSIGNOND_SESSION_DATA_H__
27 #define __GSIGNOND_SESSION_DATA_H__
29 #include <gsignond/gsignond-dictionary.h>
33 #define GSIGNOND_TYPE_SESSION_DATA (GSIGNOND_TYPE_DICTIONARY)
35 #define GSIGNOND_SESSION_DATA(obj) \
36 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
37 GSIGNOND_TYPE_SESSION_DATA, \
39 #define GSIGNOND_IS_SESSION_DATA(obj) \
40 (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
41 GSIGNOND_TYPE_SESSION_DATA))
43 typedef GSignondDictionary GSignondSessionData;
46 GSIGNOND_UI_POLICY_DEFAULT = 0,
47 GSIGNOND_UI_POLICY_REQUEST_PASSWORD,
48 GSIGNOND_UI_POLICY_NO_USER_INTERACTION,
49 GSIGNOND_UI_POLICY_VALIDATION
54 gsignond_session_data_get_username (GSignondSessionData *data);
57 gsignond_session_data_set_username (GSignondSessionData *data,
58 const gchar *username);
61 gsignond_session_data_get_secret (GSignondSessionData *data);
64 gsignond_session_data_set_secret (GSignondSessionData *data,
68 gsignond_session_data_get_realm (GSignondSessionData *data);
71 gsignond_session_data_set_realm (GSignondSessionData *data,
75 gsignond_session_data_get_caption (GSignondSessionData *data);
78 gsignond_session_data_set_caption (GSignondSessionData *data,
79 const gchar *caption);
82 gsignond_session_data_get_renew_token (GSignondSessionData *data,
83 gboolean *renew_token);
86 gsignond_session_data_set_renew_token (GSignondSessionData *data,
87 gboolean renew_token);
90 gsignond_session_data_get_ui_policy (GSignondSessionData *data,
91 GSignondUiPolicy *ui_policy);
94 gsignond_session_data_set_ui_policy (GSignondSessionData *data,
95 GSignondUiPolicy ui_policy);
98 gsignond_session_data_get_network_proxy (GSignondSessionData *data);
101 gsignond_session_data_set_network_proxy (GSignondSessionData *data,
102 const gchar *network_proxy);
105 gsignond_session_data_get_network_timeout (GSignondSessionData *data,
106 guint32 *network_timeout);
109 gsignond_session_data_set_network_timeout (GSignondSessionData *data,
110 guint32 network_timeout);
113 gsignond_session_data_get_window_id (GSignondSessionData *data,
117 gsignond_session_data_set_window_id (GSignondSessionData *data,
123 #endif /* __GSIGNOND_SESSION_DATA_H__ */