1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
/* user-settings.h: this file is part of users-admin, a ximian-setup-tool frontend
3
* for user administration.
5
* Copyright (C) 2001 Ximian, Inc.
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as
9
* published by the Free Software Foundation; either version 2 of the
10
* License, or (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
21
* Authors: Carlos Garnacho Parro <garparr@teleline.es>.
24
#ifndef __USER_SETTINGS_H
25
#define __USER_SETTINGS_H
29
#include "users-tool.h"
30
#include "user-profiles.h"
32
#define ADMIN_GROUP "admin"
35
gboolean user_delete (GtkTreeModel *model,
37
void user_settings_show (OobsUser *user);
38
gint user_settings_dialog_run (GtkWidget *dialog);
40
OobsUser * user_settings_dialog_get_data (GtkWidget *dialog);
41
GdkPixbuf * user_settings_get_user_face (OobsUser *user, int size);
42
uid_t user_settings_find_new_uid (gint uid_min,
44
gboolean user_settings_is_user_in_group (OobsUser *user,
47
gboolean user_settings_check_revoke_admin_rights ();
49
void on_user_new (GtkButton *button, gpointer user_data);
52
#endif /* USER_SETTINGS_H */