~ubuntu-branches/ubuntu/oneiric/kdenetwork/oneiric-updates

« back to all changes in this revision

Viewing changes to .pc/kubuntu_05_samba_sharing.diff/filesharing/advanced/kcm_sambaconf/groupselectdlg.ui.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac, Philip Muškovac
  • Date: 2011-07-10 12:36:35 UTC
  • mfrom: (1.1.59 upstream)
  • Revision ID: package-import@ubuntu.com-20110710123635-3db9oyxdswp4sp1e
Tags: 4:4.6.90-0ubuntu1
* New upstream release
 - Bump on kde-sc-dev-latest
 - s/kdebase-runtime-dev/kde-runtime-dev
* Dropped kubuntu_05_samba_sharing.diff <- went upstream
* Added kubuntu_05_make_old_symbols_reappear_and_fix_building.diff
* Refreshed *.install
* Refreshed symbols

[ Philip Muškovac ]
* fix debug package depends on kdebase-runtime-dbg -> kde-runtime-dbg 
  and recommends on kde-workspace-dbg

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/****************************************************************************
2
 
** ui.h extension file, included from the uic-generated form implementation.
3
 
**
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
 
*****************************************************************************/
9
 
 
10
 
#ifndef KCM_SAMBACONF_GROUPSELECTDLG_UI_H
11
 
#define KCM_SAMBACONF_GROUPSELECTDLG_UI_H
12
 
 
13
 
void GroupSelectDlg::init(const QStringList & specifiedGroups)
14
 
{
15
 
  QStringList unixGroups = getUnixGroups();
16
 
 
17
 
  for (QStringList::Iterator it = unixGroups.begin(); it != unixGroups.end(); ++it)
18
 
  {
19
 
      if ( ! specifiedGroups.contains(*it))
20
 
          new Q3ListViewItem(groupListView, *it, QString::number(getGroupGID(*it)));
21
 
  }
22
 
}
23
 
 
24
 
void GroupSelectDlg::accept()
25
 
{
26
 
  Q3ListViewItemIterator it( groupListView);
27
 
 
28
 
  for ( ; it.current(); ++it ) {
29
 
      if ( it.current()->isSelected() )
30
 
          selectedGroups << it.current()->text(0);
31
 
  }     
32
 
  
33
 
  access = accessBtnGrp->id(accessBtnGrp->selected());
34
 
  
35
 
  if (unixRadio->isChecked())
36
 
      groupKind = "+";
37
 
  else
38
 
      if (nisRadio->isChecked())
39
 
          groupKind = "&";
40
 
  else
41
 
      if (bothRadio->isChecked())
42
 
          groupKind = "@";
43
 
  
44
 
  QDialog::accept();
45
 
}
46
 
 
47
 
 
48
 
 
49
 
 
50
 
QStringList GroupSelectDlg::getSelectedGroups()
51
 
{
52
 
    return selectedGroups;
53
 
}
54
 
 
55
 
 
56
 
int GroupSelectDlg::getAccess()
57
 
{
58
 
    return access;
59
 
}
60
 
 
61
 
 
62
 
QString GroupSelectDlg::getGroupKind()
63
 
{
64
 
    return groupKind;
65
 
}
66
 
 
67
 
#endif // KCM_SAMBACONF_GROUPSELECTDLG_UI_H