source: proiecte/PPPP/gdm/gui/simple-greeter/gdm-greeter-login-window.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: 4.5 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 * Copyright (C) 2008 Red Hat, Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 *
20 */
21
22#ifndef __GDM_GREETER_LOGIN_WINDOW_H
23#define __GDM_GREETER_LOGIN_WINDOW_H
24
25#include <glib-object.h>
26
27G_BEGIN_DECLS
28
29#define GDM_TYPE_GREETER_LOGIN_WINDOW         (gdm_greeter_login_window_get_type ())
30#define GDM_GREETER_LOGIN_WINDOW(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GDM_TYPE_GREETER_LOGIN_WINDOW, GdmGreeterLoginWindow))
31#define GDM_GREETER_LOGIN_WINDOW_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), GDM_TYPE_GREETER_LOGIN_WINDOW, GdmGreeterLoginWindowClass))
32#define GDM_IS_GREETER_LOGIN_WINDOW(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDM_TYPE_GREETER_LOGIN_WINDOW))
33#define GDM_IS_GREETER_LOGIN_WINDOW_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), GDM_TYPE_GREETER_LOGIN_WINDOW))
34#define GDM_GREETER_LOGIN_WINDOW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDM_TYPE_GREETER_LOGIN_WINDOW, GdmGreeterLoginWindowClass))
35
36typedef struct GdmGreeterLoginWindowPrivate GdmGreeterLoginWindowPrivate;
37
38typedef struct
39{
40        GtkWindow                     parent;
41        GdmGreeterLoginWindowPrivate *priv;
42} GdmGreeterLoginWindow;
43
44typedef struct
45{
46        GtkWindowClass   parent_class;
47
48        /* signals */
49        void (* begin_auto_login)            (GdmGreeterLoginWindow *login_window,
50                                              const char            *username);
51        void (* begin_verification)          (GdmGreeterLoginWindow *login_window);
52        void (* begin_verification_for_user) (GdmGreeterLoginWindow *login_window,
53                                              const char            *username);
54        void (* query_answer)                (GdmGreeterLoginWindow *login_window,
55                                              const char            *text);
56        void (* user_selected)               (GdmGreeterLoginWindow *login_window,
57                                              const char            *text);
58        void (* cancelled)                   (GdmGreeterLoginWindow *login_window);
59        void (* disconnected)                (GdmGreeterLoginWindow *login_window);
60        void (* start_session)               (GdmGreeterLoginWindow *login_window);
61
62} GdmGreeterLoginWindowClass;
63
64GType               gdm_greeter_login_window_get_type           (void);
65GtkWidget *         gdm_greeter_login_window_new                (gboolean display_is_local);
66
67
68gboolean            gdm_greeter_login_window_reset              (GdmGreeterLoginWindow *login_window);
69gboolean            gdm_greeter_login_window_ready              (GdmGreeterLoginWindow *login_window);
70gboolean            gdm_greeter_login_window_info_query         (GdmGreeterLoginWindow *login_window,
71                                                                 const char *text);
72gboolean            gdm_greeter_login_window_secret_info_query  (GdmGreeterLoginWindow *login_window,
73                                                                 const char *text);
74gboolean            gdm_greeter_login_window_info               (GdmGreeterLoginWindow *login_window,
75                                                                 const char *text);
76gboolean            gdm_greeter_login_window_problem            (GdmGreeterLoginWindow *login_window,
77                                                                 const char *text);
78
79void               gdm_greeter_login_window_request_timed_login (GdmGreeterLoginWindow *login_window,
80                                                                 const char            *username,
81                                                                 int                    delay);
82void               gdm_greeter_login_window_user_authorized     (GdmGreeterLoginWindow *login_window);
83
84G_END_DECLS
85
86#endif /* __GDM_GREETER_LOGIN_WINDOW_H */
Note: See TracBrowser for help on using the repository browser.