2
* Fast User Switch Applet: fusa-user.h
4
* Copyright (C) 2004-2005 James M. Cape <jcape@ignore-your.tv>.
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.
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.
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
22
* Facade object for user data, owned by FusaUserManager and updated by FusaVt
26
#define __FUSA_USER__ 1
28
#include <sys/types.h>
29
#include <gtk/gtkwidget.h>
30
#include <gdk-pixbuf/gdk-pixbuf.h>
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))
41
typedef struct _FusaUser FusaUser;
43
GType fusa_user_get_type (void) G_GNUC_CONST;
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);
51
GSList *fusa_user_get_displays (FusaUser *user);
52
guint fusa_user_get_n_displays (FusaUser *user);
54
GdkPixbuf *fusa_user_render_icon (FusaUser *user,
57
gboolean desktop_overlay);
59
gint fusa_user_collate (FusaUser *user1,
64
#endif /* !__FUSA_USER_MENU_ITEM__ */