Proof-reading - fixed one usage of the i18n plural form (it wasn't doing before,...
[kdeadmin.git] / kuser / ku_userfiles.h
bloba88ba1d58735908666d69ae172993181243aeaf2
1 /*
2 * Copyright (c) 1998 Denis Perchine <dyp@perchine.com>
3 * Copyright (c) 2004 Szombathelyi György <gyurco@freemail.hu>
4 * Maintained by Adriaan de Groot <groot@kde.org>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library 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 GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20 **/
22 #ifndef _KU_USERFILES_H_
23 #define _KU_USERFILES_H_
25 #include <sys/types.h>
27 #include "ku_user.h"
29 class KU_UserFiles : public KU_Users {
30 public:
31 KU_UserFiles(KU_PrefsBase *cfg);
32 virtual ~KU_UserFiles();
34 virtual bool dbcommit();
35 virtual bool reload();
36 virtual void createPassword( KU_User &user, const QString &password );
38 private:
39 bool pw_backuped;
40 bool s_backuped;
42 mode_t pwd_mode;
43 mode_t sdw_mode;
45 uid_t pwd_uid;
46 gid_t pwd_gid;
48 uid_t sdw_uid;
49 gid_t sdw_gid;
51 bool loadpwd();
52 bool loadsdw();
54 bool savepwd();
56 #endif // _KU_USERFILES_H_