2 * Copyright (c) 2002 Waldo Bastian <bastian@kde.org>
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License version 2 or at your option version 3 as published by
7 * the Free Software Foundation.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
20 #include "ku_deluser.h"
29 #include <KStandardGuiItem>
31 KU_DelUser::KU_DelUser(KU_User
*AUser
, QWidget
*parent
)
34 setCaption(i18n("Delete User"));
35 setButtons(KDialog::Ok
|KDialog::Cancel
);
36 setDefaultButton(KDialog::Ok
);
37 KVBox
*page
= new KVBox( this );
38 setMainWidget( page
);
39 new QLabel( i18n("<p>Deleting user <b>%1</b>"
40 "<br />Also perform the following actions:</p>", AUser
->getName()),
42 m_deleteHomeDir
= new QCheckBox(i18n("Delete &home folder: %1", AUser
->getHomeDir()), page
);
43 QString mailboxpath
= QFile::decodeName(MAIL_SPOOL_DIR
) + '/' + AUser
->getName();
44 m_deleteMailBox
= new QCheckBox(i18n("Delete &mailbox: %1", mailboxpath
), page
);
45 setButtonGuiItem(KDialog::Ok
, KStandardGuiItem::del());
48 #include "ku_deluser.moc"