Proof-reading - fixed one usage of the i18n plural form (it wasn't doing before,...
[kdeadmin.git] / kuser / ku_editgroup.h
blob1ce83bd3be4464a6f3311470fbe015badda8439b
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 **/
23 #ifndef _KU_EDITGROUP_H_
24 #define _KU_EDITGROUP_H_
26 #include <QCheckBox>
27 #include <QList>
28 #include <QTreeWidget>
30 #include <kdialog.h>
31 #include <kcombobox.h>
32 #include <klineedit.h>
34 #include "ku_group.h"
36 class KU_EditGroup : public KDialog
38 Q_OBJECT
39 public:
41 KU_EditGroup(const KU_Group &group, bool add,
42 QWidget* parent = 0);
44 virtual ~KU_EditGroup();
46 const KU_Group &getGroup() const { return mGroup; }
48 public slots:
49 virtual void accept();
51 protected slots:
52 void addClicked();
53 void delClicked();
54 void ridSelected( int index );
56 private:
57 bool mSamba, mAdd;
58 bool ro;
59 KU_Group mGroup;
60 QTreeWidget *m_list_in,*m_list_notin;
61 KLineEdit *legrpname;
62 KLineEdit *legid;
63 KComboBox *lerid;
64 KLineEdit *ledom;
65 KLineEdit *ledispname;
66 KLineEdit *ledesc;
67 KLineEdit *ledomsid;
68 KComboBox *letype;
69 QCheckBox *cbsamba;
70 QString mOldName;
71 typedef struct _RID {
72 uint rid;
73 QString name,desc;
74 } RID;
75 QList<RID> mRids;
77 #endif // _KU_EDITGROUP_H_