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

« back to all changes in this revision

Viewing changes to src/cut-n-paste/fusa-user.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
/* 
 
2
 * Fast User Switch Applet: fusa-user.h
 
3
 * 
 
4
 * Copyright (C) 2004-2005 James M. Cape <jcape@ignore-your.tv>.
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; either version 2 of the License, or
 
9
 * (at your option) any later version.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, write to the Free Software
 
18
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
19
 */
 
20
 
 
21
/*
 
22
 * Facade object for user data, owned by FusaUserManager and updated by FusaVt
 
23
 */
 
24
 
 
25
#ifndef __FUSA_USER__
 
26
#define __FUSA_USER__ 1
 
27
 
 
28
#include <sys/types.h>
 
29
#include <gtk/gtkwidget.h>
 
30
#include <gdk-pixbuf/gdk-pixbuf.h>
 
31
 
 
32
G_BEGIN_DECLS
 
33
 
 
34
#define FUSA_TYPE_USER \
 
35
  (fusa_user_get_type ())
 
36
#define FUSA_USER(object) \
 
37
  (G_TYPE_CHECK_INSTANCE_CAST ((object), FUSA_TYPE_USER, FusaUser))
 
38
#define FUSA_IS_USER(object) \
 
39
  (G_TYPE_CHECK_INSTANCE_TYPE ((object), FUSA_TYPE_USER))
 
40
 
 
41
typedef struct _FusaUser FusaUser;
 
42
 
 
43
GType                 fusa_user_get_type         (void) G_GNUC_CONST;
 
44
 
 
45
uid_t                 fusa_user_get_uid            (FusaUser   *user);
 
46
G_CONST_RETURN gchar *fusa_user_get_user_name      (FusaUser   *user);
 
47
G_CONST_RETURN gchar *fusa_user_get_display_name   (FusaUser   *user);
 
48
G_CONST_RETURN gchar *fusa_user_get_home_directory (FusaUser   *user);
 
49
G_CONST_RETURN gchar *fusa_user_get_shell          (FusaUser   *user);
 
50
 
 
51
GSList               *fusa_user_get_displays       (FusaUser   *user);
 
52
guint                 fusa_user_get_n_displays     (FusaUser   *user);
 
53
 
 
54
GdkPixbuf            *fusa_user_render_icon        (FusaUser   *user,
 
55
                                                    GtkWidget  *widget,
 
56
                                                    gint        icon_size,
 
57
                                                    gboolean    desktop_overlay);
 
58
 
 
59
gint                  fusa_user_collate            (FusaUser   *user1,
 
60
                                                    FusaUser   *user2);
 
61
 
 
62
G_END_DECLS
 
63
 
 
64
#endif /* !__FUSA_USER_MENU_ITEM__ */