~ubuntu-branches/ubuntu/dapper/gnome-screensaver/dapper

« back to all changes in this revision

Viewing changes to src/gs-monitor.h

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2005-10-10 00:18:18 UTC
  • Revision ID: james.westby@ubuntu.com-20051010001818-3mujs05r8rht7xi1
Tags: upstream-0.0.15
ImportĀ upstreamĀ versionĀ 0.0.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
 
2
 *
 
3
 * Copyright (C) 2004-2005 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
 * Authors: William Jon McCann <mccann@jhu.edu>
 
20
 *
 
21
 */
 
22
 
 
23
#ifndef __GS_MONITOR_H
 
24
#define __GS_MONITOR_H
 
25
 
 
26
G_BEGIN_DECLS
 
27
 
 
28
#define GS_TYPE_MONITOR         (gs_monitor_get_type ())
 
29
#define GS_MONITOR(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GS_TYPE_MONITOR, GSMonitor))
 
30
#define GS_MONITOR_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), GS_TYPE_MONITOR, GSMonitorClass))
 
31
#define GS_IS_MONITOR(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GS_TYPE_MONITOR))
 
32
#define GS_IS_MONITOR_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), GS_TYPE_MONITOR))
 
33
#define GS_MONITOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GS_TYPE_MONITOR, GSMonitorClass))
 
34
 
 
35
typedef struct GSMonitorPrivate GSMonitorPrivate;
 
36
 
 
37
typedef struct
 
38
{
 
39
        GObject          parent;
 
40
        GSMonitorPrivate *priv;
 
41
} GSMonitor;
 
42
 
 
43
typedef struct
 
44
{
 
45
        GObjectClass     parent_class;
 
46
} GSMonitorClass;
 
47
 
 
48
GType       gs_monitor_get_type (void);
 
49
 
 
50
GSMonitor * gs_monitor_new              (void);
 
51
gboolean    gs_monitor_start            (GSMonitor *monitor,
 
52
                                         GError   **error);
 
53
void        gs_monitor_set_lock_enabled (GSMonitor *monitor,
 
54
                                         gboolean   lock_enabled);
 
55
G_END_DECLS
 
56
 
 
57
#endif /* __GS_MONITOR_H */