source: proiecte/PPPP/gdm/daemon/gdm-session.h @ 134

Last change on this file since 134 was 134, checked in by (none), 14 years ago

gdm sources with the modifications for webcam

File size: 7.9 KB
Line 
1/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
2 *
3 * Copyright (C) 2007 William Jon McCann <mccann@jhu.edu>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 *
19 */
20
21
22#ifndef __GDM_SESSION_H
23#define __GDM_SESSION_H
24
25#include <glib-object.h>
26
27G_BEGIN_DECLS
28
29#define GDM_TYPE_SESSION         (gdm_session_get_type ())
30#define GDM_SESSION(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GDM_TYPE_SESSION, GdmSession))
31#define GDM_SESSION_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), GDM_TYPE_SESSION, GdmSessionClass))
32#define GDM_IS_SESSION(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDM_TYPE_SESSION))
33#define GDM_SESSION_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), GDM_TYPE_SESSION, GdmSessionIface))
34
35typedef struct _GdmSession      GdmSession; /* Dummy typedef */
36typedef struct _GdmSessionIface GdmSessionIface;
37
38enum {
39        GDM_SESSION_CRED_ESTABLISH = 0,
40        GDM_SESSION_CRED_REFRESH,
41};
42
43struct _GdmSessionIface
44{
45        GTypeInterface base_iface;
46
47        /* Methods */
48        void (* open)                        (GdmSession   *session);
49        void (* setup)                       (GdmSession   *session,
50                                              const char   *service_name);
51        void (* setup_for_user)              (GdmSession   *session,
52                                              const char   *service_name,
53                                              const char   *username);
54        void (* reset)                       (GdmSession   *session);
55        void (* authenticate)                (GdmSession   *session);
56        void (* authorize)                   (GdmSession   *session);
57        void (* accredit)                    (GdmSession   *session,
58                                              int           cred_flag);
59        void (* answer_query)                (GdmSession   *session,
60                                              const char   *text);
61        void (* select_language)             (GdmSession   *session,
62                                              const char   *text);
63        void (* select_layout)               (GdmSession   *session,
64                                              const char   *text);
65        void (* select_session)              (GdmSession   *session,
66                                              const char   *text);
67        void (* select_user)                 (GdmSession   *session,
68                                              const char   *text);
69        void (* start_session)               (GdmSession   *session);
70        void (* close)                       (GdmSession   *session);
71        void (* cancel)                      (GdmSession   *session);
72
73        /* Signals */
74        void (* setup_complete)              (GdmSession   *session);
75        void (* setup_failed)                (GdmSession   *session,
76                                              const char   *message);
77        void (* reset_complete)              (GdmSession   *session);
78        void (* reset_failed)                (GdmSession   *session,
79                                              const char   *message);
80        void (* authenticated)               (GdmSession   *session);
81        void (* authentication_failed)       (GdmSession   *session,
82                                              const char   *message);
83        void (* authorized)                  (GdmSession   *session);
84        void (* authorization_failed)        (GdmSession   *session,
85                                              const char   *message);
86        void (* accredited)                  (GdmSession   *session);
87        void (* accreditation_failed)        (GdmSession   *session,
88                                              const char   *message);
89
90        void (* info_query)                  (GdmSession   *session,
91                                              const char   *query_text);
92        void (* secret_info_query)           (GdmSession   *session,
93                                              const char   *query_text);
94        void (* info)                        (GdmSession   *session,
95                                              const char   *info);
96        void (* problem)                     (GdmSession   *session,
97                                              const char   *problem);
98        void (* session_started)             (GdmSession   *session,
99                                              int           pid);
100        void (* session_start_failed)        (GdmSession   *session,
101                                              const char   *message);
102        void (* session_exited)              (GdmSession   *session,
103                                              int           exit_code);
104        void (* session_died)                (GdmSession   *session,
105                                              int           signal_number);
106        void (* opened)                      (GdmSession   *session);
107        void (* closed)                      (GdmSession   *session);
108        void (* selected_user_changed)       (GdmSession   *session,
109                                              const char   *text);
110
111        void (* default_language_name_changed)    (GdmSession   *session,
112                                                   const char   *text);
113        void (* default_layout_name_changed)      (GdmSession   *session,
114                                                   const char   *text);
115        void (* default_session_name_changed)     (GdmSession   *session,
116                                                   const char   *text);
117};
118
119GType    gdm_session_get_type                    (void) G_GNUC_CONST;
120
121void     gdm_session_open                        (GdmSession *session);
122void     gdm_session_setup                       (GdmSession *session,
123                                                  const char *service_name);
124void     gdm_session_setup_for_user              (GdmSession *session,
125                                                  const char *service_name,
126                                                  const char *username);
127void     gdm_session_reset                       (GdmSession *session);
128void     gdm_session_authenticate                (GdmSession *session);
129void     gdm_session_authorize                   (GdmSession *session);
130void     gdm_session_accredit                    (GdmSession *session,
131                                                  int         cred_flag);
132void     gdm_session_start_session               (GdmSession *session);
133void     gdm_session_close                       (GdmSession *session);
134
135void     gdm_session_answer_query                (GdmSession *session,
136                                                  const char *text);
137void     gdm_session_select_session              (GdmSession *session,
138                                                  const char *session_name);
139void     gdm_session_select_language             (GdmSession *session,
140                                                  const char *language);
141void     gdm_session_select_layout               (GdmSession *session,
142                                                  const char *language);
143void     gdm_session_select_user                 (GdmSession *session,
144                                                  const char *username);
145void     gdm_session_cancel                      (GdmSession *session);
146
147G_END_DECLS
148
149#endif /* __GDM_SESSION_H */
Note: See TracBrowser for help on using the repository browser.