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;
35
GObject parent_instance;
36
UserManagerPrivate *priv;
41
GObjectClass parent_class;
42
void (*user_added)(UserManager *manager, UserInfo *user);
43
void (*user_changed)(UserManager *manager, UserInfo *user);
44
void (*user_removed)(UserManager *manager, UserInfo *user);
47
GType user_manager_get_type (void);
49
UserManager *user_manager_new (GKeyFile *config_file);
51
gint user_manager_get_num_users (UserManager *manager);
53
const UserInfo *user_manager_get_user (UserManager *manager, const gchar *username);
55
GList *user_manager_get_users (UserManager *manager);
57
gboolean user_manager_get_user_defaults (UserManager *manager, gchar *username, gchar **language, gchar **layout, gchar **session);
61
#endif /* _USER_MANAGER_H_ */