summaryrefslogtreecommitdiff
path: root/daemon/gdm-session.h
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/gdm-session.h')
-rw-r--r--daemon/gdm-session.h105
1 files changed, 105 insertions, 0 deletions
diff --git a/daemon/gdm-session.h b/daemon/gdm-session.h
new file mode 100644
index 00000000..5a14f54b
--- /dev/null
+++ b/daemon/gdm-session.h
@@ -0,0 +1,105 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
+ *
+ * Copyright (C) 2007 William Jon McCann <mccann@jhu.edu>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ */
+
+
+#ifndef __GDM_SESSION_H
+#define __GDM_SESSION_H
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define GDM_TYPE_SESSION (gdm_session_get_type ())
+#define GDM_SESSION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDM_TYPE_SESSION, GdmSession))
+#define GDM_SESSION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GDM_TYPE_SESSION, GdmSessionClass))
+#define GDM_IS_SESSION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDM_TYPE_SESSION))
+#define GDM_SESSION_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), GDM_TYPE_SESSION, GdmSessionIface))
+
+typedef struct _GdmSession GdmSession; /* Dummy typedef */
+typedef struct _GdmSessionIface GdmSessionIface;
+
+struct _GdmSessionIface
+{
+ GTypeInterface base_iface;
+
+ /* Methods */
+ void (* begin_verification) (GdmSession *session);
+ void (* begin_verification_for_user) (GdmSession *session,
+ const char *username);
+ void (* answer_query) (GdmSession *session,
+ const char *text);
+ void (* select_language) (GdmSession *session,
+ const char *text);
+ void (* select_session) (GdmSession *session,
+ const char *text);
+ void (* select_user) (GdmSession *session,
+ const char *text);
+ void (* open) (GdmSession *session);
+ void (* close) (GdmSession *session);
+ void (* cancel) (GdmSession *session);
+ void (* start_session) (GdmSession *session);
+
+ /* Signals */
+ void (* user_verified) (GdmSession *session);
+ void (* user_verification_error) (GdmSession *session,
+ const char *message);
+ void (* info_query) (GdmSession *session,
+ const char *query_text);
+ void (* secret_info_query) (GdmSession *session,
+ const char *query_text);
+ void (* info) (GdmSession *session,
+ const char *info);
+ void (* problem) (GdmSession *session,
+ const char *problem);
+ void (* session_started) (GdmSession *session);
+ void (* session_startup_error) (GdmSession *session,
+ const char *message);
+ void (* session_exited) (GdmSession *session,
+ int exit_code);
+ void (* session_died) (GdmSession *session,
+ int signal_number);
+ void (* opened) (GdmSession *session);
+ void (* closed) (GdmSession *session);
+ void (* selected_user_changed) (GdmSession *session,
+ const char *text);
+
+};
+
+GType gdm_session_get_type (void) G_GNUC_CONST;
+
+void gdm_session_begin_verification (GdmSession *session);
+void gdm_session_begin_verification_for_user (GdmSession *session,
+ const char *username);
+void gdm_session_answer_query (GdmSession *session,
+ const char *text);
+void gdm_session_select_session (GdmSession *session,
+ const char *session_name);
+void gdm_session_select_language (GdmSession *session,
+ const char *language);
+void gdm_session_select_user (GdmSession *session,
+ const char *username);
+void gdm_session_open (GdmSession *session);
+void gdm_session_close (GdmSession *session);
+void gdm_session_cancel (GdmSession *session);
+void gdm_session_start_session (GdmSession *session);
+
+G_END_DECLS
+
+#endif /* __GDM_SESSION_H */