1 /* -*- Mode: C; indent-tabs-mode: nil; tab-width: 4 -*-
3 * Copyright (C) 2010-2011 Robert Ancell.
4 * Author: Robert Ancell <robert.ancell@canonical.com>
6 * This program is free software: you can redistribute it and/or modify it under
7 * the terms of the GNU General Public License as published by the Free Software
8 * Foundation, either version 3 of the License, or (at your option) any later
9 * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
16 #include <glib-object.h>
21 #define USER_TYPE (user_get_type())
22 #define USER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), USER_TYPE, User));
24 typedef struct UserPrivate UserPrivate;
28 GObject parent_instance;
34 GObjectClass parent_class;
37 User *accounts_get_user_by_name (const gchar *username);
39 User *accounts_get_current_user (void);
41 GType user_get_type (void);
43 const gchar *user_get_name (User *user);
45 uid_t user_get_uid (User *user);
47 gid_t user_get_gid (User *user);
49 const gchar *user_get_home_directory (User *user);
51 const gchar *user_get_shell (User *user);
53 const gchar *user_get_xsession (User *user);
55 void user_set_xsession (User *user, const gchar *session);
57 const gchar *user_get_language (User *user);
59 void user_set_language (User *user, const gchar *language);