2 * Copyright (C) 2010 Robert Ancell.
3 * Author: Robert Ancell <robert.ancell@canonical.com>
5 * This program is free software: you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License as published by the Free Software
7 * Foundation, either version 3 of the License, or (at your option) any later
8 * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
12 #ifndef _USER_MANAGER_H_
13 #define _USER_MANAGER_H_
15 #include <glib-object.h>
19 #define USER_MANAGER_TYPE (user_manager_get_type())
20 #define USER_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), USER_MANAGER_TYPE, UserManager));
22 typedef struct UserManagerPrivate UserManagerPrivate;
26 GObject parent_instance;
27 UserManagerPrivate *priv;
32 GObjectClass parent_class;
38 const gchar *real_name;
40 const gchar *home_dir;
44 GType user_manager_get_type (void);
46 UserManager *user_manager_new (GKeyFile *config_file);
48 gint user_manager_get_num_users (UserManager *manager);
50 const UserInfo *user_manager_get_user (UserManager *manager, const gchar *username);
52 gboolean user_manager_get_users (UserManager *manager, GPtrArray **users, GError *error);
54 gboolean user_manager_get_user_defaults (UserManager *manager, gchar *username, gchar **language, gchar **layout, gchar **session, GError *error);
58 #endif /* _USER_MANAGER_H_ */