]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - src/display.h
Drop ldm_greeter_get_default_layout (X controls the layout), some cleanups in src...
[sojka/lightdm.git] / src / display.h
1 /*
2  * Copyright (C) 2010-2011 Robert Ancell.
3  * Author: Robert Ancell <robert.ancell@canonical.com>
4  * 
5  * This program is free software: you can redistribute it and/or modify it under
6  * the terms of the GNU General Public License as published by the Free Software
7  * Foundation, either version 3 of the License, or (at your option) any later
8  * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
9  * license.
10  */
11
12 #ifndef _DISPLAY_H_
13 #define _DISPLAY_H_
14
15 #include <glib-object.h>
16
17 #include "xserver.h"
18 #include "session.h"
19
20 G_BEGIN_DECLS
21
22 #define DISPLAY_TYPE (display_get_type())
23 #define DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DISPLAY_TYPE, Display));
24
25 typedef struct DisplayPrivate DisplayPrivate;
26
27 typedef struct
28 {
29     GObject         parent_instance;
30     DisplayPrivate *priv;
31 } Display;
32
33 typedef struct
34 {
35     GObjectClass parent_class;
36   
37     void (*start_greeter)(Display *display, Session *session);
38     void (*end_greeter)(Display *display, Session *session);  
39     void (*start_session)(Display *display, Session *session);
40     void (*end_session)(Display *display, Session *session);
41     void (*exited)(Display *display);
42 } DisplayClass;
43
44 GType display_get_type (void);
45
46 Display *display_new (gint index);
47
48 gint display_get_index (Display *display);
49
50 void display_set_session_wrapper (Display *display, const gchar *session_wrapper);
51
52 const gchar *display_get_session_wrapper (Display *display);
53
54 void display_set_default_user (Display *display, const gchar *username);
55
56 const gchar *display_get_default_user (Display *display);
57
58 void display_set_default_user_timeout (Display *display, gint timeout);
59
60 gint display_get_default_user_timeout (Display *display);
61
62 void display_set_greeter_user (Display *display, const gchar *username);
63
64 const gchar *display_get_greeter_user (Display *display);
65
66 const gchar *display_get_session_user (Display *display);
67
68 void display_set_greeter_theme (Display *display, const gchar *greeter_theme);
69
70 const gchar *display_get_greeter_theme (Display *display);
71
72 void display_set_default_session (Display *display, const gchar *session);
73
74 const gchar *display_get_default_session (Display *display);
75
76 void display_set_pam_service (Display *display, const gchar *service);
77
78 const gchar *display_get_pam_service (Display *display);
79
80 void display_set_xserver (Display *display, XServer *xserver);
81
82 XServer *display_get_xserver (Display *display);
83
84 void display_set_vt (Display *display, gint vt);
85
86 gint display_get_vt (Display *display);
87
88 gboolean display_start (Display *display);
89
90 G_END_DECLS
91
92 #endif /* _DISPLAY_H_ */