source: proiecte/PPPP/gdm/gui/simple-greeter/gdm-timer.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: 2.1 KB
Line 
1/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
2 *
3 * Copyright (C) 2008 Red Hat, Inc.
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 *  Written by: Ray Strode <rstrode@redhat.com>
20 */
21
22#ifndef GDM_TIMER_H
23#define GDM_TIMER_H
24
25#include <glib-object.h>
26
27G_BEGIN_DECLS
28
29#define GDM_TYPE_TIMER         (gdm_timer_get_type ())
30#define GDM_TIMER(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GDM_TYPE_TIMER, GdmTimer))
31#define GDM_TIMER_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), GDM_TYPE_TIMER, GdmTimerClass))
32#define GDM_IS_TIMER(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDM_TYPE_TIMER))
33#define GDM_IS_TIMER_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), GDM_TYPE_TIMER))
34#define GDM_TIMER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDM_TYPE_TIMER, GdmTimerClass))
35
36typedef struct GdmTimerPrivate GdmTimerPrivate;
37
38typedef struct
39{
40        GObject          parent;
41        GdmTimerPrivate *priv;
42} GdmTimer;
43
44typedef struct
45{
46        GObjectClass   parent_class;
47
48        void (* tick)  (GdmTimer *timer, double progress);
49        void (* stop)  (GdmTimer *timer);
50} GdmTimerClass;
51
52GType     gdm_timer_get_type       (void);
53GdmTimer *gdm_timer_new            (void);
54#if 0
55GObject *gdm_timer_new_for_source (GdmTimerSource *source);
56#endif
57void      gdm_timer_start          (GdmTimer *timer,
58                                   double    number_of_seconds);
59void      gdm_timer_stop           (GdmTimer *timer);
60gboolean  gdm_timer_is_started     (GdmTimer *timer);
61
62#endif /* GDM_TIMER_H */
Note: See TracBrowser for help on using the repository browser.