2 * Copyright (C) 2010-2011 Robert Ancell.
3 * Author: Robert Ancell <robert.ancell@canonical.com>
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
15 #include <glib-object.h>
22 #define DISPLAY_TYPE (display_get_type())
23 #define DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DISPLAY_TYPE, Display));
25 typedef struct DisplayPrivate DisplayPrivate;
29 GObject parent_instance;
35 GObjectClass parent_class;
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);
44 GType display_get_type (void);
46 Display *display_new (gint index);
48 gint display_get_index (Display *display);
50 void display_set_session_wrapper (Display *display, const gchar *session_wrapper);
52 const gchar *display_get_session_wrapper (Display *display);
54 void display_set_default_user (Display *display, const gchar *username);
56 const gchar *display_get_default_user (Display *display);
58 void display_set_default_user_timeout (Display *display, gint timeout);
60 gint display_get_default_user_timeout (Display *display);
62 void display_set_greeter_user (Display *display, const gchar *username);
64 const gchar *display_get_greeter_user (Display *display);
66 const gchar *display_get_session_user (Display *display);
68 void display_set_greeter_theme (Display *display, const gchar *greeter_theme);
70 const gchar *display_get_greeter_theme (Display *display);
72 void display_set_default_session (Display *display, const gchar *session);
74 const gchar *display_get_default_session (Display *display);
76 void display_set_pam_service (Display *display, const gchar *service);
78 const gchar *display_get_pam_service (Display *display);
80 void display_set_xserver (Display *display, XServer *xserver);
82 XServer *display_get_xserver (Display *display);
84 void display_set_vt (Display *display, gint vt);
86 gint display_get_vt (Display *display);
88 gboolean display_start (Display *display);
92 #endif /* _DISPLAY_H_ */