Back to index

lightdm  1.3.2
greeter.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2010-2011 Robert Ancell.
00003  * Author: Robert Ancell <robert.ancell@canonical.com>
00004  * 
00005  * This program is free software: you can redistribute it and/or modify it under
00006  * the terms of the GNU General Public License as published by the Free Software
00007  * Foundation, either version 3 of the License, or (at your option) any later
00008  * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
00009  * license.
00010  */
00011 
00012 #ifndef _GREETER_H_
00013 #define _GREETER_H_
00014 
00015 #include "session.h"
00016 
00017 G_BEGIN_DECLS
00018 
00019 #define GREETER_TYPE (greeter_get_type())
00020 #define GREETER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GREETER_TYPE, Greeter))
00021 
00022 typedef struct GreeterPrivate GreeterPrivate;
00023 
00024 typedef struct
00025 {
00026     GObject         parent_instance;
00027     GreeterPrivate *priv;
00028 } Greeter;
00029 
00030 typedef struct
00031 {
00032     GObjectClass parent_class;
00033     void (*connected)(Greeter *greeter);
00034     Session *(*start_authentication)(Greeter *greeter, const gchar *username);
00035     gboolean (*start_session)(Greeter *greeter, const gchar *session, gboolean is_guest);
00036 } GreeterClass;
00037 
00038 GType greeter_get_type (void);
00039 
00040 Greeter *greeter_new (Session *session, const gchar *pam_service);
00041 
00042 void greeter_set_allow_guest (Greeter *greeter, gboolean allow_guest);
00043 
00044 void greeter_set_hint (Greeter *greeter, const gchar *name, const gchar *value);
00045 
00046 gboolean greeter_get_guest_authenticated (Greeter *greeter);
00047 
00048 Session *greeter_get_authentication_session (Greeter *greeter);
00049 
00050 gboolean greeter_get_start_session (Greeter *greeter);
00051 
00052 gboolean greeter_start (Greeter *greeter, const gchar *service, const gchar *username);
00053 
00054 G_END_DECLS
00055 
00056 #endif /* _GREETER_H_ */