2 Copyright (C) 2004, Bastien Nocera <hadess@hadess.net>
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.
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.
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., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA.
19 Author: Bastien Nocera <hadess@hadess.net>
23 #include <glib-object.h>
26 #include <dbus/dbus-glib.h>
29 #define TOTEM_TYPE_SCRSAVER (totem_scrsaver_get_type ())
30 #define TOTEM_SCRSAVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOTEM_TYPE_SCRSAVER, TotemScrsaver))
31 #define TOTEM_SCRSAVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOTEM_TYPE_SCRSAVER, TotemScrsaverClass))
32 #define TOTEM_IS_SCRSAVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOTEM_TYPE_SCRSAVER))
33 #define TOTEM_IS_SCRSAVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOTEM_TYPE_SCRSAVER))
36 typedef struct TotemScrsaver TotemScrsaver;
37 typedef struct TotemScrsaverClass TotemScrsaverClass;
38 typedef struct TotemScrsaverPrivate TotemScrsaverPrivate;
40 struct TotemScrsaver {
42 TotemScrsaverPrivate *priv;
45 struct TotemScrsaverClass {
46 GObjectClass parent_class;
49 GType totem_scrsaver_get_type (void);
51 TotemScrsaver *totem_scrsaver_new (DBusGConnection *connection);
53 TotemScrsaver *totem_scrsaver_new ();
55 void totem_scrsaver_enable (TotemScrsaver *scr);
56 void totem_scrsaver_disable (TotemScrsaver *scr);