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

« back to all changes in this revision

Viewing changes to src/gs-manager.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_MANAGER_H
 
24
#define __GS_MANAGER_H
 
25
 
 
26
#include "gs-prefs.h"
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
#define GS_TYPE_MANAGER         (gs_manager_get_type ())
 
31
#define GS_MANAGER(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GS_TYPE_MANAGER, GSManager))
 
32
#define GS_MANAGER_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), GS_TYPE_MANAGER, GSManagerClass))
 
33
#define GS_IS_MANAGER(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GS_TYPE_MANAGER))
 
34
#define GS_IS_MANAGER_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), GS_TYPE_MANAGER))
 
35
#define GS_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GS_TYPE_MANAGER, GSManagerClass))
 
36
 
 
37
typedef struct GSManagerPrivate GSManagerPrivate;
 
38
 
 
39
typedef struct
 
40
{
 
41
        GObject          parent;
 
42
        GSManagerPrivate *priv;
 
43
} GSManager;
 
44
 
 
45
typedef struct
 
46
{
 
47
        GObjectClass     parent_class;
 
48
 
 
49
        void            (* blanked)          (GSManager *manager);
 
50
        void            (* unblanked)        (GSManager *manager);
 
51
 
 
52
} GSManagerClass;
 
53
 
 
54
GType       gs_manager_get_type             (void);
 
55
 
 
56
GSManager * gs_manager_new                  (void);
 
57
 
 
58
gboolean    gs_manager_blank                (GSManager  *manager);
 
59
gboolean    gs_manager_unblank              (GSManager  *manager);
 
60
gboolean    gs_manager_cycle                (GSManager  *manager);
 
61
 
 
62
gboolean    gs_manager_is_blanked           (GSManager  *manager);
 
63
void        gs_manager_set_lock_active      (GSManager  *manager,
 
64
                                             gboolean    lock_enabled);
 
65
void        gs_manager_set_lock_enabled     (GSManager  *manager,
 
66
                                             gboolean    lock_enabled);
 
67
void        gs_manager_set_lock_timeout     (GSManager  *manager,
 
68
                                             glong       lock_timeout);
 
69
void        gs_manager_set_logout_enabled   (GSManager  *manager,
 
70
                                             gboolean    logout_enabled);
 
71
void        gs_manager_set_user_switch_enabled (GSManager  *manager,
 
72
                                                gboolean    user_switch_enabled);
 
73
void        gs_manager_set_logout_timeout   (GSManager  *manager,
 
74
                                             glong       logout_timeout);
 
75
void        gs_manager_set_throttle_enabled (GSManager  *manager,
 
76
                                             gboolean    lock_enabled);
 
77
void        gs_manager_set_cycle_timeout    (GSManager  *manager,
 
78
                                             glong       cycle_timeout);
 
79
void        gs_manager_set_themes           (GSManager  *manager,
 
80
                                             GSList     *themes);
 
81
void        gs_manager_set_mode             (GSManager  *manager,
 
82
                                             GSSaverMode mode);
 
83
void        gs_manager_request_unlock       (GSManager  *manager);
 
84
 
 
85
G_END_DECLS
 
86
 
 
87
#endif /* __GS_MANAGER_H */