Proof-reading - fixed one usage of the i18n plural form (it wasn't doing before,...
[kdeadmin.git] / kuser / ku_adduser.h
blobbffd79f58119264cda08ebe872c3e3cf0066b99c
1 /*
2 * Copyright (c) 1998 Denis Perchine <dyp@perchine.com>
3 * Copyright (c) 2004 Szombathelyi György <gyurco@freemail.hu>
4 * Former maintainer: 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 version 2 or at your option version 3 as published by
9 * the Free Software Foundation.
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_ADDUSER_H_
23 #define _KU_ADDUSER_H_
25 #include <QCheckBox>
26 #include "ku_edituser.h"
28 class KU_AddUser: public KU_EditUser {
29 Q_OBJECT
30 public:
31 KU_AddUser(KU_User &user, bool useprivategroup,
32 QWidget *parent = 0 );
34 void setCreateHomeDir(bool b)
35 { createhome->setChecked(b); }
37 void setCopySkel(bool b)
38 { copyskel->setChecked(b); }
40 const KU_User &getNewUser() const { return mNewUser; }
42 protected slots:
43 virtual void accept();
44 protected:
45 bool checkHome();
46 bool checkMailBox();
48 QCheckBox *createhome;
49 QCheckBox *copyskel;
50 private:
51 KU_User mNewUser;
54 #endif // _KU_ADDUSER_H_