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 libgsignon-glib
6 * Copyright (C) 2009-2010 Nokia Corporation.
8 * Contact: Alberto Mardegan <alberto.mardegan@nokia.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 License
12 * version 2.1 as published by the Free Software Foundation.
14 * This library is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 #ifndef _SIGNON_AUTH_SERVICE_H_
26 #define _SIGNON_AUTH_SERVICE_H_
28 #include <glib-object.h>
32 #define SIGNON_TYPE_AUTH_SERVICE (signon_auth_service_get_type ())
33 #define SIGNON_AUTH_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SIGNON_TYPE_AUTH_SERVICE, SignonAuthService))
34 #define SIGNON_AUTH_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SIGNON_TYPE_AUTH_SERVICE, SignonAuthServiceClass))
35 #define SIGNON_IS_AUTH_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SIGNON_TYPE_AUTH_SERVICE))
36 #define SIGNON_IS_AUTH_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SIGNON_TYPE_AUTH_SERVICE))
37 #define SIGNON_AUTH_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SIGNON_TYPE_AUTH_SERVICE, SignonAuthServiceClass))
39 typedef struct _SignonAuthServiceClass SignonAuthServiceClass;
40 typedef struct _SignonAuthServicePrivate SignonAuthServicePrivate;
41 typedef struct _SignonAuthService SignonAuthService;
44 * SignonAuthServiceClass:
45 * @parent_class: a reference to the parent class
47 * Opaque struct. Use the accessor functions below.
49 struct _SignonAuthServiceClass
51 GObjectClass parent_class;
57 * Opaque struct. Use the accessor functions below.
59 struct _SignonAuthService
61 GObject parent_instance;
62 SignonAuthServicePrivate *priv;
65 GType signon_auth_service_get_type (void) G_GNUC_CONST;
67 typedef void (*SignonQueryMethodsCb) (SignonAuthService *auth_service,
72 typedef void (*SignonQueryMechanismCb) (SignonAuthService *auth_service,
81 * GList of #SignonIdentity items.
83 typedef GList SignonIdentityList;
86 * SignonIdentityFilter:
88 * #GHashTable based filter variant dictionary.
90 typedef GHashTable SignonIdentityFilter;
92 typedef void (*SignonQueryIdentitiesCb) (SignonAuthService *auth_service,
93 SignonIdentityList *identities,
97 SignonAuthService *signon_auth_service_new ();
99 void signon_auth_service_query_methods (SignonAuthService *auth_service,
100 SignonQueryMethodsCb cb,
103 void signon_auth_service_query_mechanisms (SignonAuthService *auth_service,
105 SignonQueryMechanismCb cb,
108 void signon_auth_service_query_identities (SignonAuthService *auth_service,
109 SignonIdentityFilter *filter,
110 const gchar *application_context,
111 SignonQueryIdentitiesCb cb,
116 #endif /* _SIGNON_AUTH_SERVICE_H_ */