1
/****************************************************************************
2
** ui.h extension file, included from the uic-generated form implementation.
4
** If you wish to add, delete or rename functions or slots use
5
** Qt Designer which will update this file, preserving your code. Create an
6
** init() function in place of a constructor, and a destroy() function in
7
** place of a destructor.
8
*****************************************************************************/
10
#ifndef KCM_SAMBACONF_GROUPSELECTDLG_UI_H
11
#define KCM_SAMBACONF_GROUPSELECTDLG_UI_H
13
void GroupSelectDlg::init(const QStringList & specifiedGroups)
15
QStringList unixGroups = getUnixGroups();
17
for (QStringList::Iterator it = unixGroups.begin(); it != unixGroups.end(); ++it)
19
if ( ! specifiedGroups.contains(*it))
20
new Q3ListViewItem(groupListView, *it, QString::number(getGroupGID(*it)));
24
void GroupSelectDlg::accept()
26
Q3ListViewItemIterator it( groupListView);
28
for ( ; it.current(); ++it ) {
29
if ( it.current()->isSelected() )
30
selectedGroups << it.current()->text(0);
33
access = accessBtnGrp->id(accessBtnGrp->selected());
35
if (unixRadio->isChecked())
38
if (nisRadio->isChecked())
41
if (bothRadio->isChecked())
50
QStringList GroupSelectDlg::getSelectedGroups()
52
return selectedGroups;
56
int GroupSelectDlg::getAccess()
62
QString GroupSelectDlg::getGroupKind()
67
#endif // KCM_SAMBACONF_GROUPSELECTDLG_UI_H