]> www.fi.muni.cz Git - evince.git/blob - cut-n-paste/totem-screensaver/totem-scrsaver.h
d175896bef639bee74b30c5833a2490d8e505841
[evince.git] / cut-n-paste / totem-screensaver / totem-scrsaver.h
1 /* 
2    Copyright (C) 2004, Bastien Nocera <hadess@hadess.net>
3
4    The Gnome Library is free software; you can redistribute it and/or
5    modify it under the terms of the GNU Library General Public License as
6    published by the Free Software Foundation; either version 2 of the
7    License, or (at your option) any later version.
8
9    The Gnome Library is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12    Library General Public License for more details.
13
14    You should have received a copy of the GNU Library General Public
15    License along with the Gnome Library; see the file COPYING.LIB.  If not,
16    write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17    Boston, MA 02110-1301  USA.
18
19    Author: Bastien Nocera <hadess@hadess.net>
20  */
21
22 #ifndef TOTEM_SCRSAVER_H
23 #define TOTEM_SCRSAVER_H
24
25 #include <glib.h>
26 #include <glib-object.h>
27 #ifdef ENABLE_DBUS
28 #include <gio/gio.h>
29 #endif
30
31 G_BEGIN_DECLS
32
33 #define TOTEM_TYPE_SCRSAVER             (totem_scrsaver_get_type ())
34 #define TOTEM_SCRSAVER(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOTEM_TYPE_SCRSAVER, TotemScrsaver))
35 #define TOTEM_SCRSAVER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), TOTEM_TYPE_SCRSAVER, TotemScrsaverClass))
36 #define TOTEM_IS_SCRSAVER(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOTEM_TYPE_SCRSAVER))
37 #define TOTEM_IS_SCRSAVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOTEM_TYPE_SCRSAVER))
38
39 typedef struct TotemScrsaver TotemScrsaver;
40 typedef struct TotemScrsaverClass TotemScrsaverClass;
41 typedef struct TotemScrsaverPrivate TotemScrsaverPrivate;
42
43 struct TotemScrsaver {
44         GObject parent;
45         TotemScrsaverPrivate *priv;
46 };
47
48 struct TotemScrsaverClass {
49         GObjectClass parent_class; 
50 };
51
52 GType totem_scrsaver_get_type           (void);
53 #ifdef ENABLE_DBUS
54 TotemScrsaver *totem_scrsaver_new      (GDBusConnection *connection);
55 #else
56 TotemScrsaver *totem_scrsaver_new       (void);
57 #endif
58 void totem_scrsaver_enable              (TotemScrsaver *scr);
59 void totem_scrsaver_disable             (TotemScrsaver *scr);
60 void totem_scrsaver_set_state           (TotemScrsaver *scr,
61                                          gboolean enable);
62
63 G_END_DECLS
64
65 #endif /* !TOTEM_SCRSAVER_H */