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

« back to all changes in this revision

Viewing changes to debian/patches/kubuntu_05_samba_sharing.diff

  • 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
 
Index: kdenetwork-4.6.3/filesharing/advanced/CMakeLists.txt
2
 
===================================================================
3
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/CMakeLists.txt   2011-01-19 17:21:04.000000000 -0500
4
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
5
 
@@ -1,2 +0,0 @@
6
 
-add_subdirectory(kcm_sambaconf)
7
 
-add_subdirectory(propsdlgplugin)
8
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/ChangeLog
9
 
===================================================================
10
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/ChangeLog  2011-01-19 17:21:04.000000000 -0500
11
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
12
 
@@ -1,53 +0,0 @@
13
 
-    * New features :
14
 
-        - Added new options of Samba 3.0.2
15
 
-    * Bugfixes :
16
 
-        - Fixed a crash if files are deleted from a directory 
17
 
-          that is configured by KSambaPlugin at the same time.
18
 
-    * New features :
19
 
-        - Support of Samba 3.0.1
20
 
-    * Bugfixes :         
21
 
-        - Should now be compileable with Qt 3.0
22
 
-    * New features :
23
 
-        - Works with Samba 3.x
24
 
-        - Supports all options of Samba 3.0 and Samba 2.x
25
 
-        - Supports loading and saving of remote Samba configuration files
26
 
-          with KIO slaves (e.g. fish)
27
 
-        - Complete rewrite of the user permission tab
28
 
-        - Accelerator keys added where possible
29
 
-        - Tab ordering fixed everywhere
30
 
-        - Redesigned big parts of the interface
31
 
-
32
 
-    * Bugfixes :
33
 
-        - Fixed crash, when smb.conf wasn't found
34
 
-        - Some other bugs fixed
35
 
-
36
 
-  * Bugfixes :
37
 
-    - "user only" changed to "only user"
38
 
-    - Changings in the advanced tab will enable the apply button
39
 
-  * New options :
40
 
-    - Many new options have been added to the Share dialog
41
 
-    - The layout of the Share dialog has been changed
42
 
-  * Automake :
43
 
-    - Doesn't depend on automake 1.7, but on version 1.5.x
44
 
-
45
 
-  * Bugfixes :
46
 
-    - General :
47
 
-      * adding a blank line between two sections in the smb.conf
48
 
-    - Konqueror Plugin :
49
 
-      * availabe changed to available
50
 
-      * when changing a share to be not shared the entry is removed from the smb.conf
51
 
-    - KControl Center Module :
52
 
-      * Changing of the socket options works now
53
 
-  * New layout :
54
 
-    - The KControl Center module layout has changed much
55
 
-    - The Konqueror plugin layout has been changed a little
56
 
-  * New options :
57
 
-    - Many new options have been added to the KControl Center module
58
 
-
59
 
-
60
 
-
61
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/CMakeLists.txt
62
 
===================================================================
63
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/CMakeLists.txt     2011-01-19 17:21:04.000000000 -0500
64
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
65
 
@@ -1,22 +0,0 @@
66
 
-set(kcm_kcmsambaconf_PART_SRCS kcmsambaconf.cpp kcminterface.cpp ${libfilesharesamba_SRCS})
67
 
-
68
 
-add_definitions(-D_KDEPRINT_COMPILE )
69
 
-
70
 
-kde4_add_ui3_files(kcm_kcmsambaconf_PART_SRCS socketoptionsdlg.ui userselectdlg.ui
71
 
-    groupselectdlg.ui usertab.ui filemodedlg.ui
72
 
-    joindomaindlg.ui
73
 
-)
74
 
-
75
 
-kde4_add_ui_files(kcm_kcmsambaconf_PART_SRCS share.ui kcminterface.ui expertuserdlg.ui)
76
 
-
77
 
-kde4_add_plugin(kcm_kcmsambaconf  ${kcm_kcmsambaconf_PART_SRCS})
78
 
-
79
 
-target_link_libraries(kcm_kcmsambaconf ${KDE4_KDEUI_LIBS} ${KDE4_KDE3SUPPORT_LIBS})
80
 
-
81
 
-install(TARGETS kcm_kcmsambaconf DESTINATION ${PLUGIN_INSTALL_DIR})
82
 
-
83
 
-########### install files ###############
84
 
-
85
 
-install(FILES kcmsambaconf.desktop DESTINATION  ${SERVICES_INSTALL_DIR} )
86
 
-
87
 
-kde4_install_icons(${ICON_INSTALL_DIR})
88
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/common.cpp
89
 
===================================================================
90
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/common.cpp 2011-01-19 17:21:04.000000000 -0500
91
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
92
 
@@ -1,73 +0,0 @@
93
 
-/***************************************************************************
94
 
-                          common.cpp  -  description
95
 
-                             -------------------
96
 
-    begin                : Tue June 6 2002
97
 
-    copyright            : (C) 2002 by Jan Schäfer
98
 
-    email                : janschaefer@users.sourceforge.net
99
 
- ***************************************************************************/
100
 
-
101
 
-/******************************************************************************
102
 
- *                                                                            *
103
 
- *  This file is part of KSambaPlugin.                                        *
104
 
- *                                                                            *
105
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify      *
106
 
- *  it under the terms of the GNU General Public License as published by      *
107
 
- *  the Free Software Foundation; either version 2 of the License, or         *
108
 
- *  (at your option) any later version.                                       *
109
 
- *                                                                            *
110
 
- *  KSambaPlugin is distributed in the hope that it will be useful,           *
111
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
112
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
113
 
- *  GNU General Public License for more details.                              *
114
 
- *                                                                            *
115
 
- *  You should have received a copy of the GNU General Public License         *
116
 
- *  along with KSambaPlugin; if not, write to the Free Software               *
117
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
118
 
- *                                                                            *
119
 
- ******************************************************************************/
120
 
-
121
 
-#include <qstring.h>
122
 
-#include <kcombobox.h>
123
 
-#include <q3listbox.h>
124
 
-
125
 
-#include "common.h"
126
 
-
127
 
-void setComboToString(QComboBox* combo,const QString & s)
128
 
-{
129
 
-  int i = /*combo->model()->index(*/combo->findText( s )/*)*/;//model()->findItem(s,Qt::ExactMatch));
130
 
-  combo->setCurrentItem(i);
131
 
-}
132
 
-
133
 
-bool boolFromText(const QString & value, bool testTrue)
134
 
-{
135
 
-  QString lower = value.toLower();
136
 
-  
137
 
-  if (testTrue) {
138
 
-    if (lower=="yes" ||
139
 
-        lower=="1" ||
140
 
-        lower=="true" ||
141
 
-        lower=="on")
142
 
-      return true;
143
 
-    else
144
 
-      return false;
145
 
-  } else {
146
 
-    if (lower=="no" ||
147
 
-        lower=="0" ||
148
 
-        lower=="false" ||
149
 
-        lower=="off" ||
150
 
-        lower=="disabled")
151
 
-      return false;
152
 
-    else
153
 
-      return true;
154
 
-  }
155
 
-}
156
 
-
157
 
-QString textFromBool(bool value)
158
 
-{
159
 
-  if (value)
160
 
-    return "yes";
161
 
-  else
162
 
-    return "no";
163
 
-}
164
 
-
165
 
-
166
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/common.h
167
 
===================================================================
168
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/common.h   2011-01-19 17:21:04.000000000 -0500
169
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
170
 
@@ -1,40 +0,0 @@
171
 
-/***************************************************************************
172
 
-                          common.h  -  description
173
 
-                             -------------------
174
 
-    begin                : Tue June 6 2002
175
 
-    copyright            : (C) 2002 by Jan Schäfer
176
 
-    email                : janschaefer@users.sourceforge.net
177
 
- ***************************************************************************/
178
 
-
179
 
-/******************************************************************************
180
 
- *                                                                            *
181
 
- *  This file is part of KSambaPlugin.                                        *
182
 
- *                                                                            *
183
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify      *
184
 
- *  it under the terms of the GNU General Public License as published by      *
185
 
- *  the Free Software Foundation; either version 2 of the License, or         *
186
 
- *  (at your option) any later version.                                       *
187
 
- *                                                                            *
188
 
- *  KSambaPlugin is distributed in the hope that it will be useful,           *
189
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
190
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
191
 
- *  GNU General Public License for more details.                              *
192
 
- *                                                                            *
193
 
- *  You should have received a copy of the GNU General Public License         *
194
 
- *  along with KSambaPlugin; if not, write to the Free Software               *
195
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
196
 
- *                                                                            *
197
 
- ******************************************************************************/
198
 
-
199
 
-#ifndef COMMON_H
200
 
-#define COMMON_H
201
 
-
202
 
-class QString;
203
 
-class QComboBox;
204
 
-
205
 
-
206
 
-void setComboToString(QComboBox*,const QString &);
207
 
-bool boolFromText(const QString & value,bool testTrue=true);
208
 
-QString textFromBool(bool value);
209
 
-
210
 
-#endif
211
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/dictmanager.cpp
212
 
===================================================================
213
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/dictmanager.cpp    2011-01-19 17:21:04.000000000 -0500
214
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
215
 
@@ -1,228 +0,0 @@
216
 
-/***************************************************************************
217
 
-                          dictmanager.cpp  -  description
218
 
-                             -------------------
219
 
-    begin                : Wed Jan 1 2003
220
 
-    copyright            : (C) 2003 by Jan Schäfer
221
 
-    email                : janschaefer@users.sourceforge.net
222
 
- ***************************************************************************/
223
 
-
224
 
-/******************************************************************************
225
 
- *                                                                            *
226
 
- *  This file is part of KSambaPlugin.                                          *
227
 
- *                                                                            *
228
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify            *
229
 
- *  it under the terms of the GNU General Public License as published by      *
230
 
- *  the Free Software Foundation; either version 2 of the License, or         *
231
 
- *  (at your option) any later version.                                       *
232
 
- *                                                                            *
233
 
- *  KSambaPlugin is distributed in the hope that it will be useful,                 *
234
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
235
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
236
 
- *  GNU General Public License for more details.                              *
237
 
- *                                                                            *
238
 
- *  You should have received a copy of the GNU General Public License         *
239
 
- *  along with KSambaPlugin; if not, write to the Free Software                     *
240
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
241
 
- *                                                                            *
242
 
- ******************************************************************************/
243
 
-
244
 
245
 
-#include <qlineedit.h>
246
 
-#include <qcheckbox.h>
247
 
-#include <qspinbox.h>
248
 
-#include <qcombobox.h>
249
 
-#include <qstringlist.h>
250
 
-
251
 
-#include <kurlrequester.h> 
252
 
-#include <klocale.h>
253
 
-#include <kdebug.h>
254
 
255
 
-#include "sambashare.h"
256
 
-#include "dictmanager.h" 
257
 
-#include "common.h"
258
 
-
259
 
-#define DEBUG 5009
260
 
261
 
-DictManager::DictManager(SambaShare* share):
262
 
-  lineEditDict(40,false),
263
 
-  checkBoxDict(40,false),
264
 
-  urlRequesterDict(40,false),
265
 
-  spinBoxDict(40,false),
266
 
-  comboBoxDict(20,false),
267
 
-  comboBoxValuesDict(20,false)
268
 
-{
269
 
-  _share = share;
270
 
-}
271
 
-
272
 
-DictManager::~DictManager() {
273
 
-}
274
 
-
275
 
-void DictManager::handleUnsupportedWidget(const QString & s, QWidget* w) {
276
 
-  kDebug(DEBUG) << s << endl;
277
 
-  Q_ASSERT(w);
278
 
-  w->setEnabled(false);
279
 
-  w->setToolTip(i18n("The option <em>%1</em> is not supported by your Samba version", s));
280
 
-}
281
 
-
282
 
-void DictManager::add(const QString & key, QLineEdit* lineEdit) {
283
 
-  kDebug(DEBUG) << key << " : QLineEdit" << endl;
284
 
-  if (_share->optionSupported(key)) {
285
 
-    lineEditDict.insert(key,lineEdit);
286
 
-    connect(lineEdit, SIGNAL(textChanged(const QString &)), this, SLOT(changedSlot()));
287
 
-  } else
288
 
-    handleUnsupportedWidget(key,lineEdit);
289
 
-}
290
 
-
291
 
-void DictManager::add(const QString & key, QCheckBox* checkBox){
292
 
-  kDebug(DEBUG) << key << " : QCheckBox " << endl;
293
 
-  if (_share->optionSupported(key)) {
294
 
-    checkBoxDict.insert(key,checkBox);
295
 
-    connect(checkBox, SIGNAL(clicked()), this, SLOT(changedSlot()));
296
 
-  } else
297
 
-    handleUnsupportedWidget(key,checkBox);
298
 
-}
299
 
-
300
 
-void DictManager::add(const QString & key, KUrlRequester* urlRq){
301
 
-  kDebug(DEBUG) << key << " : KUrlRequester " << endl;
302
 
-  if (_share->optionSupported(key)) {
303
 
-    urlRequesterDict.insert(key,urlRq);
304
 
-    connect(urlRq, SIGNAL(textChanged(const QString &)), this, SLOT(changedSlot()));
305
 
-  } else
306
 
-    handleUnsupportedWidget(key,urlRq);
307
 
-}
308
 
-
309
 
-void DictManager::add(const QString & key, QSpinBox* spinBox){
310
 
-  kDebug(DEBUG) << key << " : QSpinBox " << endl;
311
 
-  if (_share->optionSupported(key)) {
312
 
-    spinBoxDict.insert(key,spinBox);
313
 
-    connect(spinBox, SIGNAL(valueChanged(int)), this, SLOT(changedSlot()));
314
 
-  } else
315
 
-    handleUnsupportedWidget(key,spinBox);
316
 
-}
317
 
-              
318
 
-void DictManager::add(const QString & key, QComboBox* comboBox, QStringList* values){
319
 
-  kDebug(DEBUG) << key << endl;
320
 
-  if (_share->optionSupported(key)) {
321
 
-    comboBoxDict.insert(key,comboBox);
322
 
-    comboBoxValuesDict.insert(key,values);
323
 
-    connect(comboBox, SIGNAL(activated(int)), this, SLOT(changedSlot()));
324
 
-  } else
325
 
-    handleUnsupportedWidget(key,comboBox);
326
 
-}
327
 
-
328
 
-
329
 
-void DictManager::load(SambaShare* share, bool globalValue, bool defaultValue){
330
 
-  Q3DictIterator<QCheckBox> checkBoxIt( checkBoxDict ); 
331
 
-   
332
 
-  for( ; checkBoxIt.current(); ++checkBoxIt )  {
333
 
-    checkBoxIt.current()->setChecked(share->getBoolValue(checkBoxIt.currentKey(),globalValue,defaultValue));
334
 
-  }
335
 
-
336
 
-  Q3DictIterator<QLineEdit> lineEditIt( lineEditDict ); 
337
 
338
 
-  for( ; lineEditIt.current(); ++lineEditIt )  {
339
 
-    lineEditIt.current()->setText(share->getValue(lineEditIt.currentKey(),globalValue,defaultValue));
340
 
-  }
341
 
-
342
 
-  Q3DictIterator<KUrlRequester> urlRequesterIt( urlRequesterDict ); 
343
 
344
 
-  for( ; urlRequesterIt.current(); ++urlRequesterIt )  {
345
 
-    urlRequesterIt.current()->setUrl(share->getValue(urlRequesterIt.currentKey(),globalValue,defaultValue));
346
 
-  }
347
 
-
348
 
-  Q3DictIterator<QSpinBox> spinBoxIt( spinBoxDict ); 
349
 
-   
350
 
-  for( ; spinBoxIt.current(); ++spinBoxIt )    {
351
 
-    spinBoxIt.current()->setValue(share->getValue(spinBoxIt.currentKey(),globalValue,defaultValue).toInt());
352
 
-  }
353
 
-
354
 
-  loadComboBoxes(share,globalValue,defaultValue);
355
 
-
356
 
-}
357
 
-
358
 
-void DictManager::loadComboBoxes(SambaShare* share, bool globalValue, bool defaultValue) {
359
 
-  Q3DictIterator<QComboBox> comboBoxIt( comboBoxDict ); 
360
 
-   
361
 
-  for( ; comboBoxIt.current(); ++comboBoxIt )  {
362
 
-    QStringList *v = comboBoxValuesDict[comboBoxIt.currentKey()];
363
 
-    QString value = share->getValue(comboBoxIt.currentKey(),globalValue,defaultValue);
364
 
-
365
 
-    if (value.isNull())
366
 
-        continue;
367
 
-        
368
 
-    value = value.toLower();
369
 
-
370
 
-    
371
 
-    int comboIndex = 0;
372
 
-                                
373
 
-    QStringList::iterator it;
374
 
-    for ( it = v->begin(); it != v->end(); ++it ) {
375
 
-      QString lower = (*it).toLower();
376
 
-      if ( lower == "yes" &&
377
 
-           boolFromText(value))
378
 
-           break;
379
 
-
380
 
-      if ( lower == "no" &&
381
 
-           ! boolFromText(value,false))
382
 
-           break;
383
 
-
384
 
-      if ( lower == value ) 
385
 
-           break;                            
386
 
-      
387
 
-      comboIndex++;
388
 
-    }
389
 
-
390
 
-    comboBoxIt.current()->setCurrentItem(comboIndex);
391
 
-  }
392
 
-}
393
 
-
394
 
-
395
 
-void DictManager::save(SambaShare* share, bool globalValue, bool defaultValue){
396
 
-  Q3DictIterator<QCheckBox> checkBoxIt( checkBoxDict ); 
397
 
398
 
-  for( ; checkBoxIt.current(); ++checkBoxIt )  {
399
 
-    share->setValue(checkBoxIt.currentKey(),checkBoxIt.current()->isChecked(), globalValue, defaultValue );
400
 
-  }
401
 
-
402
 
-  Q3DictIterator<QLineEdit> lineEditIt( lineEditDict ); 
403
 
-   
404
 
-  for( ; lineEditIt.current(); ++lineEditIt )  {
405
 
-    share->setValue(lineEditIt.currentKey(),lineEditIt.current()->text(), globalValue, defaultValue );
406
 
-  }
407
 
-
408
 
-  Q3DictIterator<KUrlRequester> urlRequesterIt( urlRequesterDict ); 
409
 
410
 
-  for( ; urlRequesterIt.current(); ++urlRequesterIt )  {
411
 
-    share->setValue(urlRequesterIt.currentKey(),urlRequesterIt.current()->url().pathOrUrl(), globalValue, defaultValue );
412
 
-  }
413
 
-
414
 
-  Q3DictIterator<QSpinBox> spinBoxIt( spinBoxDict ); 
415
 
416
 
-  for( ; spinBoxIt.current(); ++spinBoxIt )    {
417
 
-    share->setValue(spinBoxIt.currentKey(),spinBoxIt.current()->value(), globalValue, defaultValue );
418
 
-  }
419
 
-
420
 
-  Q3DictIterator<QComboBox> comboBoxIt( comboBoxDict );
421
 
-  
422
 
-  for( ; comboBoxIt.current(); ++comboBoxIt )  {
423
 
-    QStringList* values = comboBoxValuesDict[comboBoxIt.currentKey()];
424
 
-    
425
 
-    int i = comboBoxIt.current()->currentItem();
426
 
-    if (i >= 0) {
427
 
-      share->setValue(comboBoxIt.currentKey(),(*values)[i], globalValue, defaultValue );
428
 
-    } else {
429
 
-      kDebug(DEBUG) << comboBoxIt.currentKey() << " not set! " << endl;
430
 
-    }
431
 
-  }  
432
 
-    
433
 
-}
434
 
-
435
 
-void DictManager::changedSlot() {
436
 
-  emit changed();
437
 
-}
438
 
-
439
 
-
440
 
-
441
 
-#include "dictmanager.moc"
442
 
-
443
 
-
444
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/dictmanager.h
445
 
===================================================================
446
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/dictmanager.h      2011-01-19 17:21:04.000000000 -0500
447
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
448
 
@@ -1,80 +0,0 @@
449
 
-/***************************************************************************
450
 
-                          dictmanager.h  -  description
451
 
-                             -------------------
452
 
-    begin                : Wed Jan 1 2003
453
 
-    copyright            : (C) 2003 by Jan Schäfer
454
 
-    email                : janschaefer@users.sourceforge.net
455
 
- ***************************************************************************/
456
 
-
457
 
-/******************************************************************************
458
 
- *                                                                            *
459
 
- *  This file is part of KSambaPlugin.                                          *
460
 
- *                                                                            *
461
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify            *
462
 
- *  it under the terms of the GNU General Public License as published by      *
463
 
- *  the Free Software Foundation; either version 2 of the License, or         *
464
 
- *  (at your option) any later version.                                       *
465
 
- *                                                                            *
466
 
- *  KSambaPlugin is distributed in the hope that it will be useful,                 *
467
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
468
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
469
 
- *  GNU General Public License for more details.                              *
470
 
- *                                                                            *
471
 
- *  You should have received a copy of the GNU General Public License         *
472
 
- *  along with KSambaPlugin; if not, write to the Free Software                     *
473
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
474
 
- *                                                                            *
475
 
- ******************************************************************************/
476
 
-
477
 
-#ifndef _DICTMANAGER_H_
478
 
-#define _DICTMANAGER_H_
479
 
-
480
 
-class SambaShare;
481
 
-class QLineEdit;
482
 
-class QCheckBox;
483
 
-class QSpinBox;
484
 
-class QComboBox;
485
 
-class QString;
486
 
-class SambaShare;
487
 
-class QStringList;
488
 
-
489
 
-/**
490
 
- * @author Jan Schäfer
491
 
- **/
492
 
-class DictManager : public QObject
493
 
-{
494
 
-Q_OBJECT
495
 
-  public :
496
 
-    DictManager(SambaShare *share);
497
 
-    virtual ~DictManager();
498
 
-    
499
 
-    void add(const QString &, QLineEdit*);
500
 
-    void add(const QString &, QCheckBox*);
501
 
-    void add(const QString &, KUrlRequester*);
502
 
-    void add(const QString &, QSpinBox*);
503
 
-    void add(const QString &, QComboBox*, QStringList*);
504
 
-              
505
 
-    void load(SambaShare* share, bool globalValue=true, bool defaultValue=true);
506
 
-    void save(SambaShare* share, bool globalValue=true, bool defaultValue=true);
507
 
-
508
 
-  protected :
509
 
-    Q3Dict<QLineEdit> lineEditDict;
510
 
-    Q3Dict<QCheckBox> checkBoxDict;
511
 
-    Q3Dict<KUrlRequester> urlRequesterDict;
512
 
-    Q3Dict<QSpinBox> spinBoxDict;
513
 
-    Q3Dict<QComboBox> comboBoxDict;
514
 
-    Q3Dict<QStringList> comboBoxValuesDict;
515
 
-    
516
 
-    SambaShare* _share;
517
 
-    
518
 
-    void handleUnsupportedWidget(const QString &, QWidget*);
519
 
-    void loadComboBoxes(SambaShare*, bool, bool);
520
 
-    
521
 
-  protected slots:
522
 
-    void changedSlot();
523
 
-    
524
 
-  signals:
525
 
-    void changed();  
526
 
-};
527
 
528
 
-#endif
529
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/expertuserdlg.ui
530
 
===================================================================
531
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/expertuserdlg.ui   2011-01-19 17:21:04.000000000 -0500
532
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
533
 
@@ -1,245 +0,0 @@
534
 
-<ui version="4.0" stdsetdef="1" >
535
 
-  <class>ExpertUserDlg</class>
536
 
-  <widget class="QDialog" name="ExpertUserDlg" >
537
 
-    <property name="geometry" >
538
 
-      <rect>
539
 
-        <x>0</x>
540
 
-        <y>0</y>
541
 
-        <width>463</width>
542
 
-        <height>221</height>
543
 
-      </rect>
544
 
-    </property>
545
 
-    <property name="windowTitle" >
546
 
-      <string>User Settings</string>
547
 
-    </property>
548
 
-    <property name="sizeGripEnabled" >
549
 
-      <bool>true</bool>
550
 
-    </property>
551
 
-    <layout class="QGridLayout" >
552
 
-      <item row="0" column="0" >
553
 
-        <widget class="QLabel" name="TextLabel12" >
554
 
-          <property name="sizePolicy" >
555
 
-            <sizepolicy>
556
 
-              <hsizetype>1</hsizetype>
557
 
-              <vsizetype>5</vsizetype>
558
 
-              <horstretch>0</horstretch>
559
 
-              <verstretch>0</verstretch>
560
 
-            </sizepolicy>
561
 
-          </property>
562
 
-          <property name="text" >
563
 
-            <string>&amp;Valid users:</string>
564
 
-          </property>
565
 
-          <property name="buddy" stdset="0" >
566
 
-            <cstring>validUsersEdit</cstring>
567
 
-          </property>
568
 
-          <property name="wordWrap" >
569
 
-            <bool>false</bool>
570
 
-          </property>
571
 
-        </widget>
572
 
-      </item>
573
 
-      <item row="0" column="1" >
574
 
-        <widget class="QLineEdit" name="validUsersEdit" />
575
 
-      </item>
576
 
-      <item row="3" column="0" >
577
 
-        <widget class="QLabel" name="TextLabel12_2_2_2" >
578
 
-          <property name="sizePolicy" >
579
 
-            <sizepolicy>
580
 
-              <hsizetype>1</hsizetype>
581
 
-              <vsizetype>5</vsizetype>
582
 
-              <horstretch>0</horstretch>
583
 
-              <verstretch>0</verstretch>
584
 
-            </sizepolicy>
585
 
-          </property>
586
 
-          <property name="text" >
587
 
-            <string>&amp;Admin users:</string>
588
 
-          </property>
589
 
-          <property name="buddy" stdset="0" >
590
 
-            <cstring>adminUsersEdit</cstring>
591
 
-          </property>
592
 
-          <property name="wordWrap" >
593
 
-            <bool>false</bool>
594
 
-          </property>
595
 
-        </widget>
596
 
-      </item>
597
 
-      <item row="3" column="1" >
598
 
-        <widget class="QLineEdit" name="adminUsersEdit" />
599
 
-      </item>
600
 
-      <item row="4" column="0" >
601
 
-        <widget class="QLabel" name="TextLabel12_2_2_2_2" >
602
 
-          <property name="sizePolicy" >
603
 
-            <sizepolicy>
604
 
-              <hsizetype>1</hsizetype>
605
 
-              <vsizetype>5</vsizetype>
606
 
-              <horstretch>0</horstretch>
607
 
-              <verstretch>0</verstretch>
608
 
-            </sizepolicy>
609
 
-          </property>
610
 
-          <property name="text" >
611
 
-            <string>&amp;Invalid users:</string>
612
 
-          </property>
613
 
-          <property name="buddy" stdset="0" >
614
 
-            <cstring>invalidUsersEdit</cstring>
615
 
-          </property>
616
 
-          <property name="wordWrap" >
617
 
-            <bool>false</bool>
618
 
-          </property>
619
 
-        </widget>
620
 
-      </item>
621
 
-      <item row="4" column="1" >
622
 
-        <widget class="QLineEdit" name="invalidUsersEdit" />
623
 
-      </item>
624
 
-      <item rowspan="1" row="6" column="0" colspan="2" >
625
 
-        <widget class="Q3Frame" name="frame16" >
626
 
-          <property name="frameShape" >
627
 
-            <enum>HLine</enum>
628
 
-          </property>
629
 
-          <property name="frameShadow" >
630
 
-            <enum>Raised</enum>
631
 
-          </property>
632
 
-        </widget>
633
 
-      </item>
634
 
-      <item rowspan="1" row="7" column="0" colspan="2" >
635
 
-        <layout class="QHBoxLayout" >
636
 
-          <property name="margin" >
637
 
-            <number>0</number>
638
 
-          </property>
639
 
-          <property name="spacing" >
640
 
-            <number>6</number>
641
 
-          </property>
642
 
-          <item>
643
 
-            <spacer name="Qt::Horizontal Spacing2" >
644
 
-              <property name="sizeHint" >
645
 
-                <size>
646
 
-                  <width>20</width>
647
 
-                  <height>20</height>
648
 
-                </size>
649
 
-              </property>
650
 
-              <property name="sizeType" >
651
 
-                <enum>QSizePolicy::Expanding</enum>
652
 
-              </property>
653
 
-              <property name="orientation" >
654
 
-                <enum>Qt::Horizontal</enum>
655
 
-              </property>
656
 
-            </spacer>
657
 
-          </item>
658
 
-          <item>
659
 
-            <widget class="QPushButton" name="buttonOk" >
660
 
-              <property name="text" >
661
 
-                <string>&amp;OK</string>
662
 
-              </property>
663
 
-              <property name="shortcut" >
664
 
-                <string/>
665
 
-              </property>
666
 
-              <property name="autoDefault" >
667
 
-                <bool>true</bool>
668
 
-              </property>
669
 
-              <property name="default" >
670
 
-                <bool>true</bool>
671
 
-              </property>
672
 
-            </widget>
673
 
-          </item>
674
 
-          <item>
675
 
-            <widget class="QPushButton" name="buttonCancel" >
676
 
-              <property name="text" >
677
 
-                <string>&amp;Cancel</string>
678
 
-              </property>
679
 
-              <property name="shortcut" >
680
 
-                <string/>
681
 
-              </property>
682
 
-              <property name="autoDefault" >
683
 
-                <bool>true</bool>
684
 
-              </property>
685
 
-            </widget>
686
 
-          </item>
687
 
-        </layout>
688
 
-      </item>
689
 
-      <item row="5" column="1" >
690
 
-        <spacer name="spacer97" >
691
 
-          <property name="sizeHint" >
692
 
-            <size>
693
 
-              <width>20</width>
694
 
-              <height>40</height>
695
 
-            </size>
696
 
-          </property>
697
 
-          <property name="sizeType" >
698
 
-            <enum>QSizePolicy::Expanding</enum>
699
 
-          </property>
700
 
-          <property name="orientation" >
701
 
-            <enum>Qt::Vertical</enum>
702
 
-          </property>
703
 
-        </spacer>
704
 
-      </item>
705
 
-      <item row="2" column="0" >
706
 
-        <widget class="QLabel" name="TextLabel12_2" >
707
 
-          <property name="sizePolicy" >
708
 
-            <sizepolicy>
709
 
-              <hsizetype>1</hsizetype>
710
 
-              <vsizetype>5</vsizetype>
711
 
-              <horstretch>0</horstretch>
712
 
-              <verstretch>0</verstretch>
713
 
-            </sizepolicy>
714
 
-          </property>
715
 
-          <property name="text" >
716
 
-            <string>&amp;Write list:</string>
717
 
-          </property>
718
 
-          <property name="buddy" stdset="0" >
719
 
-            <cstring>writeListEdit</cstring>
720
 
-          </property>
721
 
-          <property name="wordWrap" >
722
 
-            <bool>false</bool>
723
 
-          </property>
724
 
-        </widget>
725
 
-      </item>
726
 
-      <item row="2" column="1" >
727
 
-        <widget class="QLineEdit" name="writeListEdit" />
728
 
-      </item>
729
 
-      <item row="1" column="1" >
730
 
-        <widget class="QLineEdit" name="readListEdit" />
731
 
-      </item>
732
 
-      <item row="1" column="0" >
733
 
-        <widget class="QLabel" name="TextLabel12_2_2" >
734
 
-          <property name="sizePolicy" >
735
 
-            <sizepolicy>
736
 
-              <hsizetype>1</hsizetype>
737
 
-              <vsizetype>5</vsizetype>
738
 
-              <horstretch>0</horstretch>
739
 
-              <verstretch>0</verstretch>
740
 
-            </sizepolicy>
741
 
-          </property>
742
 
-          <property name="text" >
743
 
-            <string>&amp;Read list:</string>
744
 
-          </property>
745
 
-          <property name="buddy" stdset="0" >
746
 
-            <cstring>readListEdit</cstring>
747
 
-          </property>
748
 
-          <property name="wordWrap" >
749
 
-            <bool>false</bool>
750
 
-          </property>
751
 
-        </widget>
752
 
-      </item>
753
 
-    </layout>
754
 
-  </widget>
755
 
-    <tabstops>
756
 
-    <tabstop>validUsersEdit</tabstop>
757
 
-    <tabstop>readListEdit</tabstop>
758
 
-    <tabstop>writeListEdit</tabstop>
759
 
-    <tabstop>adminUsersEdit</tabstop>
760
 
-    <tabstop>invalidUsersEdit</tabstop>
761
 
-    <tabstop>buttonOk</tabstop>
762
 
-    <tabstop>buttonCancel</tabstop>
763
 
-  </tabstops>
764
 
-  <connections>
765
 
-    <connection>
766
 
-      <sender>buttonOk</sender>
767
 
-      <signal>clicked()</signal>
768
 
-      <receiver>ExpertUserDlg</receiver>
769
 
-      <slot>accept()</slot>
770
 
-    </connection>
771
 
-    <connection>
772
 
-      <sender>buttonCancel</sender>
773
 
-      <signal>clicked()</signal>
774
 
-      <receiver>ExpertUserDlg</receiver>
775
 
-      <slot>reject()</slot>
776
 
-    </connection>
777
 
-  </connections>
778
 
-</ui>
779
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/filemodedlgimpl.cpp
780
 
===================================================================
781
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/filemodedlgimpl.cpp        2011-01-19 17:21:04.000000000 -0500
782
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
783
 
@@ -1,118 +0,0 @@
784
 
-/***************************************************************************
785
 
-                          filemodedlgimpl.cpp  -  description
786
 
-                             -------------------
787
 
-    begin                : Thu Jul 18 2002
788
 
-    copyright            : (C) 2002 by Jan Schäfer
789
 
-    email                : janschaefer@users.sourceforge.net
790
 
- ***************************************************************************/
791
 
-
792
 
-/******************************************************************************
793
 
- *                                                                            *
794
 
- *  This file is part of KSambaPlugin.                                        *
795
 
- *                                                                            *
796
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify      *
797
 
- *  it under the terms of the GNU General Public License as published by      *
798
 
- *  the Free Software Foundation; either version 2 of the License, or         *
799
 
- *  (at your option) any later version.                                       *
800
 
- *                                                                            *
801
 
- *  KSambaPlugin is distributed in the hope that it will be useful,           *
802
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
803
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
804
 
- *  GNU General Public License for more details.                              *
805
 
- *                                                                            *
806
 
- *  You should have received a copy of the GNU General Public License         *
807
 
- *  along with KSambaPlugin; if not, write to the Free Software                     *
808
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
809
 
- *                                                                            *
810
 
- ******************************************************************************/
811
 
-
812
 
-#include <assert.h>
813
 
-
814
 
-#include <stdio.h>
815
 
-
816
 
-#include <qlineedit.h>
817
 
-#include <qcheckbox.h>
818
 
-
819
 
-#include "filemodedlgimpl.h"
820
 
-
821
 
-FileModeDlgImpl::FileModeDlgImpl(QWidget* parent, QLineEdit* edit)
822
 
-  : FileModeDlg(parent)
823
 
-{
824
 
-  assert(edit);
825
 
-  _edit = edit;
826
 
-
827
 
-  init();
828
 
-}
829
 
-
830
 
-FileModeDlgImpl::~FileModeDlgImpl()
831
 
-{
832
 
-}
833
 
-
834
 
-void FileModeDlgImpl::init()
835
 
-{
836
 
-  bool ok;
837
 
-  int mod = _edit->text().toInt(&ok,8);
838
 
-
839
 
-  if (!ok)
840
 
-     mod = 0;
841
 
-
842
 
-  stickyBitChk->setChecked( mod & 01000 );
843
 
-  setGIDChk->setChecked( mod & 02000 );
844
 
-  setUIDChk->setChecked( mod & 04000 );
845
 
-
846
 
-  ownerExecChk->setChecked( mod & 0100 );
847
 
-  ownerWriteChk->setChecked( mod & 0200 );
848
 
-  ownerReadChk->setChecked( mod & 0400 );
849
 
-
850
 
-  groupExecChk->setChecked( mod & 010 );
851
 
-  groupWriteChk->setChecked( mod & 020 );
852
 
-  groupReadChk->setChecked( mod & 040 );
853
 
-
854
 
-  othersExecChk->setChecked( mod & 01 );
855
 
-  othersWriteChk->setChecked( mod & 02 );
856
 
-  othersReadChk->setChecked( mod & 04 );
857
 
-
858
 
-}
859
 
-
860
 
-void FileModeDlgImpl::accept()
861
 
-{
862
 
-  QString s = ""; 
863
 
-
864
 
-  s += QString::number(
865
 
-        (stickyBitChk->isChecked() ? 1 : 0) +
866
 
-        (setGIDChk->isChecked() ? 2 : 0) +
867
 
-        (setUIDChk->isChecked() ? 4 : 0)
868
 
-       );
869
 
-
870
 
-  s += QString::number(
871
 
-        (ownerExecChk->isChecked() ? 1 : 0) +
872
 
-        (ownerWriteChk->isChecked() ? 2 : 0) +
873
 
-        (ownerReadChk->isChecked() ? 4 : 0)
874
 
-       );
875
 
-
876
 
-  s += QString::number(
877
 
-        (groupExecChk->isChecked() ? 1 : 0) +
878
 
-        (groupWriteChk->isChecked() ? 2 : 0) +
879
 
-        (groupReadChk->isChecked() ? 4 : 0)
880
 
-       );
881
 
-
882
 
-  s += QString::number(
883
 
-        (othersExecChk->isChecked() ? 1 : 0) +
884
 
-        (othersWriteChk->isChecked() ? 2 : 0) +
885
 
-        (othersReadChk->isChecked() ? 4 : 0)
886
 
-       );
887
 
-
888
 
-  // it's an octal number so start with a 0
889
 
-  // but remove all the other trailing 0's
890
 
-  s = QString::number( s.toInt());
891
 
-  s = '0'+s;
892
 
-
893
 
-  _edit->setText(s);
894
 
-
895
 
-
896
 
-
897
 
-  FileModeDlg::accept();
898
 
-}
899
 
-
900
 
-#include "filemodedlgimpl.moc"
901
 
-
902
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/filemodedlgimpl.h
903
 
===================================================================
904
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/filemodedlgimpl.h  2011-01-19 17:21:04.000000000 -0500
905
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
906
 
@@ -1,64 +0,0 @@
907
 
-/***************************************************************************
908
 
-                          filemodedlgimpl.cpp  -  description
909
 
-                             -------------------
910
 
-    begin                : Thu Jul 18 2002
911
 
-    copyright            : (C) 2002 by Jan Schäfer
912
 
-    email                : janschaefer@users.sourceforge.net
913
 
- ***************************************************************************/
914
 
-
915
 
-/******************************************************************************
916
 
- *                                                                            *
917
 
- *  This file is part of KSambaPlugin.                                        *
918
 
- *                                                                            *
919
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify      *
920
 
- *  it under the terms of the GNU General Public License as published by      *
921
 
- *  the Free Software Foundation; either version 2 of the License, or         *
922
 
- *  (at your option) any later version.                                       *
923
 
- *                                                                            *
924
 
- *  KSambaPlugin is distributed in the hope that it will be useful,           *
925
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
926
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
927
 
- *  GNU General Public License for more details.                              *
928
 
- *                                                                            *
929
 
- *  You should have received a copy of the GNU General Public License         *
930
 
- *  along with KSambaPlugin; if not, write to the Free Software                     *
931
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
932
 
- *                                                                            *
933
 
- ******************************************************************************/
934
 
-
935
 
-#ifndef FILEMODEDLGIMPL_H
936
 
-#define FILEMODEDLGIMPL_H
937
 
-
938
 
-/**
939
 
-  *@author Jan Schäfer
940
 
-  */
941
 
-
942
 
-#include "filemodedlg.h"
943
 
-
944
 
-class QLineEdit;
945
 
-
946
 
-/**
947
 
- * Small dialog to change the UNIX access rights
948
 
- * It is called with a QLineEdit as parameter.
949
 
- * The class then takes the text from the QLineEdit and
950
 
- * interprets it as an oktal UNIX access right string
951
 
- * e.g. 0744
952
 
- * After the user has changed the access rights with the dialog
953
 
- * the class sets the new access rights as a new octal string
954
 
- * of the QLineEdit
955
 
- * Implements the filemodedlg.ui interface
956
 
- **/  
957
 
-class FileModeDlgImpl : public FileModeDlg
958
 
-{
959
 
-Q_OBJECT
960
 
-public: 
961
 
-       FileModeDlgImpl(QWidget* parent, QLineEdit* edit);
962
 
-       ~FileModeDlgImpl();
963
 
-protected:
964
 
-  QLineEdit* _edit;
965
 
-  void init();
966
 
-protected slots:
967
 
-  virtual void accept();  
968
 
-};
969
 
-
970
 
-#endif
971
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/filemodedlg.ui
972
 
===================================================================
973
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/filemodedlg.ui     2011-01-19 17:21:04.000000000 -0500
974
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
975
 
@@ -1,429 +0,0 @@
976
 
-<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
977
 
-<class>FileModeDlg</class>
978
 
-<widget class="QDialog">
979
 
-    <property name="name">
980
 
-        <cstring>FileModeDlg</cstring>
981
 
-    </property>
982
 
-    <property name="geometry">
983
 
-        <rect>
984
 
-            <x>0</x>
985
 
-            <y>0</y>
986
 
-            <width>370</width>
987
 
-            <height>220</height>
988
 
-        </rect>
989
 
-    </property>
990
 
-    <property name="windowTitle">
991
 
-        <string>Access Modifiers</string>
992
 
-    </property>
993
 
-    <property name="sizeGripEnabled">
994
 
-        <bool>true</bool>
995
 
-    </property>
996
 
-    <vbox>
997
 
-        <property name="name">
998
 
-            <cstring>unnamed</cstring>
999
 
-        </property>
1000
 
-        <widget class="QGroupBox">
1001
 
-            <property name="name">
1002
 
-                <cstring>GroupBox1</cstring>
1003
 
-            </property>
1004
 
-            <property name="font">
1005
 
-                <font>
1006
 
-                </font>
1007
 
-            </property>
1008
 
-            <property name="title">
1009
 
-                <string>Access Permissions</string>
1010
 
-            </property>
1011
 
-            <grid>
1012
 
-                <property name="name">
1013
 
-                    <cstring>unnamed</cstring>
1014
 
-                </property>
1015
 
-                <property name="margin">
1016
 
-                    <number>11</number>
1017
 
-                </property>
1018
 
-                <property name="spacing">
1019
 
-                    <number>6</number>
1020
 
-                </property>
1021
 
-                <widget class="Line" row="0" column="4" rowspan="4" colspan="1">
1022
 
-                    <property name="name">
1023
 
-                        <cstring>Line4</cstring>
1024
 
-                    </property>
1025
 
-                    <property name="frameShape">
1026
 
-                        <enum>VLine</enum>
1027
 
-                    </property>
1028
 
-                    <property name="frameShadow">
1029
 
-                        <enum>Sunken</enum>
1030
 
-                    </property>
1031
 
-                    <property name="orientation">
1032
 
-                        <enum>Qt::Vertical</enum>
1033
 
-                    </property>
1034
 
-                </widget>
1035
 
-                <spacer row="4" column="1" rowspan="1" colspan="2">
1036
 
-                    <property name="name">
1037
 
-                        <cstring>Spacer37</cstring>
1038
 
-                    </property>
1039
 
-                    <property name="orientation">
1040
 
-                        <enum>Qt::Vertical</enum>
1041
 
-                    </property>
1042
 
-                    <property name="sizeType">
1043
 
-                        <enum>Expanding</enum>
1044
 
-                    </property>
1045
 
-                    <property name="sizeHint">
1046
 
-                        <size>
1047
 
-                            <width>20</width>
1048
 
-                            <height>43</height>
1049
 
-                        </size>
1050
 
-                    </property>
1051
 
-                </spacer>
1052
 
-                <spacer row="1" column="6" rowspan="2" colspan="1">
1053
 
-                    <property name="name">
1054
 
-                        <cstring>Spacer38</cstring>
1055
 
-                    </property>
1056
 
-                    <property name="orientation">
1057
 
-                        <enum>Qt::Horizontal</enum>
1058
 
-                    </property>
1059
 
-                    <property name="sizeType">
1060
 
-                        <enum>Expanding</enum>
1061
 
-                    </property>
1062
 
-                    <property name="sizeHint">
1063
 
-                        <size>
1064
 
-                            <width>70</width>
1065
 
-                            <height>20</height>
1066
 
-                        </size>
1067
 
-                    </property>
1068
 
-                </spacer>
1069
 
-                <widget class="QLabel" row="3" column="0">
1070
 
-                    <property name="name">
1071
 
-                        <cstring>TextLabel3</cstring>
1072
 
-                    </property>
1073
 
-                    <property name="font">
1074
 
-                        <font>
1075
 
-                        </font>
1076
 
-                    </property>
1077
 
-                    <property name="text">
1078
 
-                        <string>Others</string>
1079
 
-                    </property>
1080
 
-                </widget>
1081
 
-                <widget class="QLabel" row="0" column="1">
1082
 
-                    <property name="name">
1083
 
-                        <cstring>TextLabel4</cstring>
1084
 
-                    </property>
1085
 
-                    <property name="font">
1086
 
-                        <font>
1087
 
-                        </font>
1088
 
-                    </property>
1089
 
-                    <property name="text">
1090
 
-                        <string>Read</string>
1091
 
-                    </property>
1092
 
-                </widget>
1093
 
-                <widget class="QCheckBox" row="3" column="1">
1094
 
-                    <property name="name">
1095
 
-                        <cstring>othersReadChk</cstring>
1096
 
-                    </property>
1097
 
-                    <property name="font">
1098
 
-                        <font>
1099
 
-                        </font>
1100
 
-                    </property>
1101
 
-                    <property name="text">
1102
 
-                        <string></string>
1103
 
-                    </property>
1104
 
-                </widget>
1105
 
-                <widget class="QLabel" row="0" column="3">
1106
 
-                    <property name="name">
1107
 
-                        <cstring>TextLabel6</cstring>
1108
 
-                    </property>
1109
 
-                    <property name="font">
1110
 
-                        <font>
1111
 
-                        </font>
1112
 
-                    </property>
1113
 
-                    <property name="text">
1114
 
-                        <string>Exec</string>
1115
 
-                    </property>
1116
 
-                </widget>
1117
 
-                <widget class="QLabel" row="0" column="2">
1118
 
-                    <property name="name">
1119
 
-                        <cstring>TextLabel5</cstring>
1120
 
-                    </property>
1121
 
-                    <property name="font">
1122
 
-                        <font>
1123
 
-                        </font>
1124
 
-                    </property>
1125
 
-                    <property name="text">
1126
 
-                        <string>Write</string>
1127
 
-                    </property>
1128
 
-                </widget>
1129
 
-                <widget class="QCheckBox" row="2" column="2">
1130
 
-                    <property name="name">
1131
 
-                        <cstring>groupWriteChk</cstring>
1132
 
-                    </property>
1133
 
-                    <property name="font">
1134
 
-                        <font>
1135
 
-                        </font>
1136
 
-                    </property>
1137
 
-                    <property name="text">
1138
 
-                        <string></string>
1139
 
-                    </property>
1140
 
-                </widget>
1141
 
-                <widget class="QCheckBox" row="3" column="2">
1142
 
-                    <property name="name">
1143
 
-                        <cstring>othersWriteChk</cstring>
1144
 
-                    </property>
1145
 
-                    <property name="font">
1146
 
-                        <font>
1147
 
-                        </font>
1148
 
-                    </property>
1149
 
-                    <property name="text">
1150
 
-                        <string></string>
1151
 
-                    </property>
1152
 
-                </widget>
1153
 
-                <widget class="QCheckBox" row="1" column="2">
1154
 
-                    <property name="name">
1155
 
-                        <cstring>ownerWriteChk</cstring>
1156
 
-                    </property>
1157
 
-                    <property name="font">
1158
 
-                        <font>
1159
 
-                        </font>
1160
 
-                    </property>
1161
 
-                    <property name="text">
1162
 
-                        <string></string>
1163
 
-                    </property>
1164
 
-                </widget>
1165
 
-                <widget class="QCheckBox" row="3" column="3">
1166
 
-                    <property name="name">
1167
 
-                        <cstring>othersExecChk</cstring>
1168
 
-                    </property>
1169
 
-                    <property name="font">
1170
 
-                        <font>
1171
 
-                        </font>
1172
 
-                    </property>
1173
 
-                    <property name="text">
1174
 
-                        <string></string>
1175
 
-                    </property>
1176
 
-                </widget>
1177
 
-                <widget class="QCheckBox" row="2" column="1">
1178
 
-                    <property name="name">
1179
 
-                        <cstring>groupReadChk</cstring>
1180
 
-                    </property>
1181
 
-                    <property name="font">
1182
 
-                        <font>
1183
 
-                        </font>
1184
 
-                    </property>
1185
 
-                    <property name="text">
1186
 
-                        <string></string>
1187
 
-                    </property>
1188
 
-                </widget>
1189
 
-                <widget class="QCheckBox" row="1" column="1">
1190
 
-                    <property name="name">
1191
 
-                        <cstring>ownerReadChk</cstring>
1192
 
-                    </property>
1193
 
-                    <property name="font">
1194
 
-                        <font>
1195
 
-                        </font>
1196
 
-                    </property>
1197
 
-                    <property name="text">
1198
 
-                        <string></string>
1199
 
-                    </property>
1200
 
-                </widget>
1201
 
-                <widget class="QLabel" row="1" column="0">
1202
 
-                    <property name="name">
1203
 
-                        <cstring>TextLabel1</cstring>
1204
 
-                    </property>
1205
 
-                    <property name="font">
1206
 
-                        <font>
1207
 
-                        </font>
1208
 
-                    </property>
1209
 
-                    <property name="text">
1210
 
-                        <string>Owner</string>
1211
 
-                    </property>
1212
 
-                </widget>
1213
 
-                <widget class="QCheckBox" row="2" column="3">
1214
 
-                    <property name="name">
1215
 
-                        <cstring>groupExecChk</cstring>
1216
 
-                    </property>
1217
 
-                    <property name="font">
1218
 
-                        <font>
1219
 
-                        </font>
1220
 
-                    </property>
1221
 
-                    <property name="text">
1222
 
-                        <string></string>
1223
 
-                    </property>
1224
 
-                </widget>
1225
 
-                <widget class="QLabel" row="2" column="0">
1226
 
-                    <property name="name">
1227
 
-                        <cstring>TextLabel2</cstring>
1228
 
-                    </property>
1229
 
-                    <property name="font">
1230
 
-                        <font>
1231
 
-                        </font>
1232
 
-                    </property>
1233
 
-                    <property name="text">
1234
 
-                        <string>Group</string>
1235
 
-                    </property>
1236
 
-                </widget>
1237
 
-                <widget class="QCheckBox" row="1" column="3">
1238
 
-                    <property name="name">
1239
 
-                        <cstring>ownerExecChk</cstring>
1240
 
-                    </property>
1241
 
-                    <property name="font">
1242
 
-                        <font>
1243
 
-                        </font>
1244
 
-                    </property>
1245
 
-                    <property name="text">
1246
 
-                        <string></string>
1247
 
-                    </property>
1248
 
-                </widget>
1249
 
-                <widget class="QCheckBox" row="3" column="5">
1250
 
-                    <property name="name">
1251
 
-                        <cstring>stickyBitChk</cstring>
1252
 
-                    </property>
1253
 
-                    <property name="font">
1254
 
-                        <font>
1255
 
-                        </font>
1256
 
-                    </property>
1257
 
-                    <property name="text">
1258
 
-                        <string>Sticky</string>
1259
 
-                    </property>
1260
 
-                </widget>
1261
 
-                <widget class="QCheckBox" row="2" column="5">
1262
 
-                    <property name="name">
1263
 
-                        <cstring>setGIDChk</cstring>
1264
 
-                    </property>
1265
 
-                    <property name="font">
1266
 
-                        <font>
1267
 
-                        </font>
1268
 
-                    </property>
1269
 
-                    <property name="text">
1270
 
-                        <string>Set GID</string>
1271
 
-                    </property>
1272
 
-                </widget>
1273
 
-                <widget class="QCheckBox" row="1" column="5">
1274
 
-                    <property name="name">
1275
 
-                        <cstring>setUIDChk</cstring>
1276
 
-                    </property>
1277
 
-                    <property name="font">
1278
 
-                        <font>
1279
 
-                        </font>
1280
 
-                    </property>
1281
 
-                    <property name="text">
1282
 
-                        <string>Set UID</string>
1283
 
-                    </property>
1284
 
-                </widget>
1285
 
-                <widget class="QLabel" row="0" column="5">
1286
 
-                    <property name="name">
1287
 
-                        <cstring>TextLabel8</cstring>
1288
 
-                    </property>
1289
 
-                    <property name="font">
1290
 
-                        <font>
1291
 
-                        </font>
1292
 
-                    </property>
1293
 
-                    <property name="text">
1294
 
-                        <string>Special</string>
1295
 
-                    </property>
1296
 
-                </widget>
1297
 
-            </grid>
1298
 
-        </widget>
1299
 
-        <widget class="QLayoutWidget">
1300
 
-            <property name="name">
1301
 
-                <cstring>Layout1</cstring>
1302
 
-            </property>
1303
 
-            <hbox>
1304
 
-                <property name="name">
1305
 
-                    <cstring>unnamed</cstring>
1306
 
-                </property>
1307
 
-                <property name="margin">
1308
 
-                    <number>0</number>
1309
 
-                </property>
1310
 
-                <property name="spacing">
1311
 
-                    <number>6</number>
1312
 
-                </property>
1313
 
-                <widget class="QPushButton">
1314
 
-                    <property name="name">
1315
 
-                        <cstring>buttonHelp</cstring>
1316
 
-                    </property>
1317
 
-                    <property name="text">
1318
 
-                        <string>&amp;Help</string>
1319
 
-                    </property>
1320
 
-                    <property name="accel">
1321
 
-                        <string>F1</string>
1322
 
-                    </property>
1323
 
-                    <property name="autoDefault">
1324
 
-                        <bool>true</bool>
1325
 
-                    </property>
1326
 
-                </widget>
1327
 
-                <spacer>
1328
 
-                    <property name="name">
1329
 
-                        <cstring>Qt::Horizontal Spacing2</cstring>
1330
 
-                    </property>
1331
 
-                    <property name="orientation">
1332
 
-                        <enum>Qt::Horizontal</enum>
1333
 
-                    </property>
1334
 
-                    <property name="sizeType">
1335
 
-                        <enum>Expanding</enum>
1336
 
-                    </property>
1337
 
-                    <property name="sizeHint">
1338
 
-                        <size>
1339
 
-                            <width>20</width>
1340
 
-                            <height>20</height>
1341
 
-                        </size>
1342
 
-                    </property>
1343
 
-                </spacer>
1344
 
-                <widget class="QPushButton">
1345
 
-                    <property name="name">
1346
 
-                        <cstring>buttonOk</cstring>
1347
 
-                    </property>
1348
 
-                    <property name="text">
1349
 
-                        <string>&amp;OK</string>
1350
 
-                    </property>
1351
 
-                    <property name="autoDefault">
1352
 
-                        <bool>true</bool>
1353
 
-                    </property>
1354
 
-                    <property name="default">
1355
 
-                        <bool>true</bool>
1356
 
-                    </property>
1357
 
-                </widget>
1358
 
-                <widget class="QPushButton">
1359
 
-                    <property name="name">
1360
 
-                        <cstring>buttonCancel</cstring>
1361
 
-                    </property>
1362
 
-                    <property name="text">
1363
 
-                        <string>&amp;Cancel</string>
1364
 
-                    </property>
1365
 
-                    <property name="autoDefault">
1366
 
-                        <bool>true</bool>
1367
 
-                    </property>
1368
 
-                </widget>
1369
 
-            </hbox>
1370
 
-        </widget>
1371
 
-    </vbox>
1372
 
-</widget>
1373
 
-<connections>
1374
 
-    <connection>
1375
 
-        <sender>buttonOk</sender>
1376
 
-        <signal>clicked()</signal>
1377
 
-        <receiver>FileModeDlg</receiver>
1378
 
-        <slot>accept()</slot>
1379
 
-    </connection>
1380
 
-    <connection>
1381
 
-        <sender>buttonCancel</sender>
1382
 
-        <signal>clicked()</signal>
1383
 
-        <receiver>FileModeDlg</receiver>
1384
 
-        <slot>reject()</slot>
1385
 
-    </connection>
1386
 
-</connections>
1387
 
-<tabstops>
1388
 
-    <tabstop>ownerReadChk</tabstop>
1389
 
-    <tabstop>ownerWriteChk</tabstop>
1390
 
-    <tabstop>ownerExecChk</tabstop>
1391
 
-    <tabstop>groupReadChk</tabstop>
1392
 
-    <tabstop>groupWriteChk</tabstop>
1393
 
-    <tabstop>groupExecChk</tabstop>
1394
 
-    <tabstop>othersReadChk</tabstop>
1395
 
-    <tabstop>othersWriteChk</tabstop>
1396
 
-    <tabstop>othersExecChk</tabstop>
1397
 
-    <tabstop>setUIDChk</tabstop>
1398
 
-    <tabstop>setGIDChk</tabstop>
1399
 
-    <tabstop>stickyBitChk</tabstop>
1400
 
-    <tabstop>buttonHelp</tabstop>
1401
 
-    <tabstop>buttonOk</tabstop>
1402
 
-    <tabstop>buttonCancel</tabstop>
1403
 
-</tabstops>
1404
 
-</UI>
1405
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/groupselectdlg.ui
1406
 
===================================================================
1407
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/groupselectdlg.ui  2011-01-19 17:21:04.000000000 -0500
1408
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
1409
 
@@ -1,444 +0,0 @@
1410
 
-<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
1411
 
-<class>GroupSelectDlg</class>
1412
 
-<widget class="QDialog">
1413
 
-    <property name="name">
1414
 
-        <cstring>GroupSelectDlg</cstring>
1415
 
-    </property>
1416
 
-    <property name="geometry">
1417
 
-        <rect>
1418
 
-            <x>0</x>
1419
 
-            <y>0</y>
1420
 
-            <width>406</width>
1421
 
-            <height>370</height>
1422
 
-        </rect>
1423
 
-    </property>
1424
 
-    <property name="windowTitle">
1425
 
-        <string>Select Groups</string>
1426
 
-    </property>
1427
 
-    <property name="sizeGripEnabled">
1428
 
-        <bool>true</bool>
1429
 
-    </property>
1430
 
-    <grid>
1431
 
-        <property name="name">
1432
 
-            <cstring>unnamed</cstring>
1433
 
-        </property>
1434
 
-        <property name="margin">
1435
 
-            <number>11</number>
1436
 
-        </property>
1437
 
-        <property name="spacing">
1438
 
-            <number>6</number>
1439
 
-        </property>
1440
 
-        <widget class="QLayoutWidget" row="4" column="0" rowspan="1" colspan="2">
1441
 
-            <property name="name">
1442
 
-                <cstring>Layout1</cstring>
1443
 
-            </property>
1444
 
-            <hbox>
1445
 
-                <property name="name">
1446
 
-                    <cstring>unnamed</cstring>
1447
 
-                </property>
1448
 
-                <property name="margin">
1449
 
-                    <number>0</number>
1450
 
-                </property>
1451
 
-                <property name="spacing">
1452
 
-                    <number>6</number>
1453
 
-                </property>
1454
 
-                <spacer>
1455
 
-                    <property name="name">
1456
 
-                        <cstring>Qt::Horizontal Spacing2</cstring>
1457
 
-                    </property>
1458
 
-                    <property name="orientation">
1459
 
-                        <enum>Qt::Horizontal</enum>
1460
 
-                    </property>
1461
 
-                    <property name="sizeType">
1462
 
-                        <enum>Expanding</enum>
1463
 
-                    </property>
1464
 
-                    <property name="sizeHint">
1465
 
-                        <size>
1466
 
-                            <width>285</width>
1467
 
-                            <height>20</height>
1468
 
-                        </size>
1469
 
-                    </property>
1470
 
-                </spacer>
1471
 
-                <widget class="QPushButton">
1472
 
-                    <property name="name">
1473
 
-                        <cstring>buttonOk</cstring>
1474
 
-                    </property>
1475
 
-                    <property name="text">
1476
 
-                        <string>&amp;OK</string>
1477
 
-                    </property>
1478
 
-                    <property name="accel">
1479
 
-                        <number>0</number>
1480
 
-                    </property>
1481
 
-                    <property name="autoDefault">
1482
 
-                        <bool>true</bool>
1483
 
-                    </property>
1484
 
-                    <property name="default">
1485
 
-                        <bool>true</bool>
1486
 
-                    </property>
1487
 
-                </widget>
1488
 
-                <widget class="QPushButton">
1489
 
-                    <property name="name">
1490
 
-                        <cstring>buttonCancel</cstring>
1491
 
-                    </property>
1492
 
-                    <property name="text">
1493
 
-                        <string>&amp;Cancel</string>
1494
 
-                    </property>
1495
 
-                    <property name="accel">
1496
 
-                        <number>0</number>
1497
 
-                    </property>
1498
 
-                    <property name="autoDefault">
1499
 
-                        <bool>true</bool>
1500
 
-                    </property>
1501
 
-                </widget>
1502
 
-            </hbox>
1503
 
-        </widget>
1504
 
-        <widget class="QFrame" row="3" column="0" rowspan="1" colspan="2">
1505
 
-            <property name="name">
1506
 
-                <cstring>frame16</cstring>
1507
 
-            </property>
1508
 
-            <property name="frameShape">
1509
 
-                <enum>HLine</enum>
1510
 
-            </property>
1511
 
-            <property name="frameShadow">
1512
 
-                <enum>Raised</enum>
1513
 
-            </property>
1514
 
-        </widget>
1515
 
-        <spacer row="2" column="1">
1516
 
-            <property name="name">
1517
 
-                <cstring>spacer90</cstring>
1518
 
-            </property>
1519
 
-            <property name="orientation">
1520
 
-                <enum>Qt::Vertical</enum>
1521
 
-            </property>
1522
 
-            <property name="sizeType">
1523
 
-                <enum>Expanding</enum>
1524
 
-            </property>
1525
 
-            <property name="sizeHint">
1526
 
-                <size>
1527
 
-                    <width>20</width>
1528
 
-                    <height>20</height>
1529
 
-                </size>
1530
 
-            </property>
1531
 
-        </spacer>
1532
 
-        <widget class="QGroupBox" row="0" column="0" rowspan="3" colspan="1">
1533
 
-            <property name="name">
1534
 
-                <cstring>groupBox87</cstring>
1535
 
-            </property>
1536
 
-            <property name="sizePolicy">
1537
 
-                <sizepolicy>
1538
 
-                    <hsizetype>7</hsizetype>
1539
 
-                    <vsizetype>5</vsizetype>
1540
 
-                    <horstretch>100</horstretch>
1541
 
-                    <verstretch>0</verstretch>
1542
 
-                </sizepolicy>
1543
 
-            </property>
1544
 
-            <property name="title">
1545
 
-                <string>Selec&amp;t Groups</string>
1546
 
-            </property>
1547
 
-            <vbox>
1548
 
-                <property name="name">
1549
 
-                    <cstring>unnamed</cstring>
1550
 
-                </property>
1551
 
-                <property name="margin">
1552
 
-                    <number>11</number>
1553
 
-                </property>
1554
 
-                <property name="spacing">
1555
 
-                    <number>6</number>
1556
 
-                </property>
1557
 
-                <widget class="QListView">
1558
 
-                    <column>
1559
 
-                        <property name="text">
1560
 
-                            <string>Name</string>
1561
 
-                        </property>
1562
 
-                        <property name="clickable">
1563
 
-                            <bool>true</bool>
1564
 
-                        </property>
1565
 
-                        <property name="resizeable">
1566
 
-                            <bool>true</bool>
1567
 
-                        </property>
1568
 
-                    </column>
1569
 
-                    <column>
1570
 
-                        <property name="text">
1571
 
-                            <string>GID</string>
1572
 
-                        </property>
1573
 
-                        <property name="clickable">
1574
 
-                            <bool>true</bool>
1575
 
-                        </property>
1576
 
-                        <property name="resizeable">
1577
 
-                            <bool>true</bool>
1578
 
-                        </property>
1579
 
-                    </column>
1580
 
-                    <property name="name">
1581
 
-                        <cstring>groupListView</cstring>
1582
 
-                    </property>
1583
 
-                    <property name="sizePolicy">
1584
 
-                        <sizepolicy>
1585
 
-                            <hsizetype>7</hsizetype>
1586
 
-                            <vsizetype>7</vsizetype>
1587
 
-                            <horstretch>100</horstretch>
1588
 
-                            <verstretch>0</verstretch>
1589
 
-                        </sizepolicy>
1590
 
-                    </property>
1591
 
-                    <property name="selectionMode">
1592
 
-                        <enum>Extended</enum>
1593
 
-                    </property>
1594
 
-                </widget>
1595
 
-            </vbox>
1596
 
-        </widget>
1597
 
-        <widget class="QButtonGroup" row="0" column="1">
1598
 
-            <property name="name">
1599
 
-                <cstring>accessBtnGrp</cstring>
1600
 
-            </property>
1601
 
-            <property name="sizePolicy">
1602
 
-                <sizepolicy>
1603
 
-                    <hsizetype>1</hsizetype>
1604
 
-                    <vsizetype>5</vsizetype>
1605
 
-                    <horstretch>0</horstretch>
1606
 
-                    <verstretch>0</verstretch>
1607
 
-                </sizepolicy>
1608
 
-            </property>
1609
 
-            <property name="title">
1610
 
-                <string>Acc&amp;ess</string>
1611
 
-            </property>
1612
 
-            <vbox>
1613
 
-                <property name="name">
1614
 
-                    <cstring>unnamed</cstring>
1615
 
-                </property>
1616
 
-                <property name="margin">
1617
 
-                    <number>11</number>
1618
 
-                </property>
1619
 
-                <property name="spacing">
1620
 
-                    <number>6</number>
1621
 
-                </property>
1622
 
-                <widget class="QRadioButton">
1623
 
-                    <property name="name">
1624
 
-                        <cstring>defaultRadio</cstring>
1625
 
-                    </property>
1626
 
-                    <property name="sizePolicy">
1627
 
-                        <sizepolicy>
1628
 
-                            <hsizetype>0</hsizetype>
1629
 
-                            <vsizetype>0</vsizetype>
1630
 
-                            <horstretch>0</horstretch>
1631
 
-                            <verstretch>0</verstretch>
1632
 
-                        </sizepolicy>
1633
 
-                    </property>
1634
 
-                    <property name="text">
1635
 
-                        <string>&amp;Default</string>
1636
 
-                    </property>
1637
 
-                    <property name="accel">
1638
 
-                        <number>8388676</number>
1639
 
-                    </property>
1640
 
-                    <property name="checked">
1641
 
-                        <bool>true</bool>
1642
 
-                    </property>
1643
 
-                </widget>
1644
 
-                <widget class="QRadioButton">
1645
 
-                    <property name="name">
1646
 
-                        <cstring>readRadio</cstring>
1647
 
-                    </property>
1648
 
-                    <property name="sizePolicy">
1649
 
-                        <sizepolicy>
1650
 
-                            <hsizetype>0</hsizetype>
1651
 
-                            <vsizetype>0</vsizetype>
1652
 
-                            <horstretch>0</horstretch>
1653
 
-                            <verstretch>0</verstretch>
1654
 
-                        </sizepolicy>
1655
 
-                    </property>
1656
 
-                    <property name="text">
1657
 
-                        <string>&amp;Read access</string>
1658
 
-                    </property>
1659
 
-                    <property name="accel">
1660
 
-                        <number>8388690</number>
1661
 
-                    </property>
1662
 
-                </widget>
1663
 
-                <widget class="QRadioButton">
1664
 
-                    <property name="name">
1665
 
-                        <cstring>writeRadio</cstring>
1666
 
-                    </property>
1667
 
-                    <property name="sizePolicy">
1668
 
-                        <sizepolicy>
1669
 
-                            <hsizetype>0</hsizetype>
1670
 
-                            <vsizetype>0</vsizetype>
1671
 
-                            <horstretch>0</horstretch>
1672
 
-                            <verstretch>0</verstretch>
1673
 
-                        </sizepolicy>
1674
 
-                    </property>
1675
 
-                    <property name="text">
1676
 
-                        <string>&amp;Write access</string>
1677
 
-                    </property>
1678
 
-                    <property name="accel">
1679
 
-                        <number>8388695</number>
1680
 
-                    </property>
1681
 
-                </widget>
1682
 
-                <widget class="QRadioButton">
1683
 
-                    <property name="name">
1684
 
-                        <cstring>adminRadio</cstring>
1685
 
-                    </property>
1686
 
-                    <property name="sizePolicy">
1687
 
-                        <sizepolicy>
1688
 
-                            <hsizetype>0</hsizetype>
1689
 
-                            <vsizetype>0</vsizetype>
1690
 
-                            <horstretch>0</horstretch>
1691
 
-                            <verstretch>0</verstretch>
1692
 
-                        </sizepolicy>
1693
 
-                    </property>
1694
 
-                    <property name="text">
1695
 
-                        <string>&amp;Admin access</string>
1696
 
-                    </property>
1697
 
-                    <property name="accel">
1698
 
-                        <number>8388673</number>
1699
 
-                    </property>
1700
 
-                </widget>
1701
 
-                <widget class="QRadioButton">
1702
 
-                    <property name="name">
1703
 
-                        <cstring>noAccessRadio</cstring>
1704
 
-                    </property>
1705
 
-                    <property name="sizePolicy">
1706
 
-                        <sizepolicy>
1707
 
-                            <hsizetype>0</hsizetype>
1708
 
-                            <vsizetype>0</vsizetype>
1709
 
-                            <horstretch>0</horstretch>
1710
 
-                            <verstretch>0</verstretch>
1711
 
-                        </sizepolicy>
1712
 
-                    </property>
1713
 
-                    <property name="text">
1714
 
-                        <string>&amp;No access at all</string>
1715
 
-                    </property>
1716
 
-                    <property name="accel">
1717
 
-                        <number>8388686</number>
1718
 
-                    </property>
1719
 
-                </widget>
1720
 
-            </vbox>
1721
 
-        </widget>
1722
 
-        <widget class="QButtonGroup" row="1" column="1">
1723
 
-            <property name="name">
1724
 
-                <cstring>kindBtnGrp</cstring>
1725
 
-            </property>
1726
 
-            <property name="title">
1727
 
-                <string>&amp;Kind of Group</string>
1728
 
-            </property>
1729
 
-            <vbox>
1730
 
-                <property name="name">
1731
 
-                    <cstring>unnamed</cstring>
1732
 
-                </property>
1733
 
-                <property name="margin">
1734
 
-                    <number>11</number>
1735
 
-                </property>
1736
 
-                <property name="spacing">
1737
 
-                    <number>6</number>
1738
 
-                </property>
1739
 
-                <widget class="QRadioButton">
1740
 
-                    <property name="name">
1741
 
-                        <cstring>unixRadio</cstring>
1742
 
-                    </property>
1743
 
-                    <property name="sizePolicy">
1744
 
-                        <sizepolicy>
1745
 
-                            <hsizetype>0</hsizetype>
1746
 
-                            <vsizetype>0</vsizetype>
1747
 
-                            <horstretch>0</horstretch>
1748
 
-                            <verstretch>0</verstretch>
1749
 
-                        </sizepolicy>
1750
 
-                    </property>
1751
 
-                    <property name="text">
1752
 
-                        <string>&amp;UNIX group</string>
1753
 
-                    </property>
1754
 
-                    <property name="accel">
1755
 
-                        <number>8388693</number>
1756
 
-                    </property>
1757
 
-                    <property name="checked">
1758
 
-                        <bool>false</bool>
1759
 
-                    </property>
1760
 
-                    <property name="buttonGroupId">
1761
 
-                        <number>0</number>
1762
 
-                    </property>
1763
 
-                </widget>
1764
 
-                <widget class="QRadioButton">
1765
 
-                    <property name="name">
1766
 
-                        <cstring>nisRadio</cstring>
1767
 
-                    </property>
1768
 
-                    <property name="sizePolicy">
1769
 
-                        <sizepolicy>
1770
 
-                            <hsizetype>0</hsizetype>
1771
 
-                            <vsizetype>0</vsizetype>
1772
 
-                            <horstretch>0</horstretch>
1773
 
-                            <verstretch>0</verstretch>
1774
 
-                        </sizepolicy>
1775
 
-                    </property>
1776
 
-                    <property name="text">
1777
 
-                        <string>NI&amp;S group</string>
1778
 
-                    </property>
1779
 
-                    <property name="accel">
1780
 
-                        <number>8388691</number>
1781
 
-                    </property>
1782
 
-                    <property name="checked">
1783
 
-                        <bool>false</bool>
1784
 
-                    </property>
1785
 
-                    <property name="buttonGroupId">
1786
 
-                        <number>1</number>
1787
 
-                    </property>
1788
 
-                </widget>
1789
 
-                <widget class="QRadioButton">
1790
 
-                    <property name="name">
1791
 
-                        <cstring>bothRadio</cstring>
1792
 
-                    </property>
1793
 
-                    <property name="sizePolicy">
1794
 
-                        <sizepolicy>
1795
 
-                            <hsizetype>0</hsizetype>
1796
 
-                            <vsizetype>0</vsizetype>
1797
 
-                            <horstretch>0</horstretch>
1798
 
-                            <verstretch>0</verstretch>
1799
 
-                        </sizepolicy>
1800
 
-                    </property>
1801
 
-                    <property name="text">
1802
 
-                        <string>UNIX and NIS gr&amp;oup</string>
1803
 
-                    </property>
1804
 
-                    <property name="accel">
1805
 
-                        <number>8388687</number>
1806
 
-                    </property>
1807
 
-                    <property name="checked">
1808
 
-                        <bool>true</bool>
1809
 
-                    </property>
1810
 
-                </widget>
1811
 
-            </vbox>
1812
 
-        </widget>
1813
 
-    </grid>
1814
 
-</widget>
1815
 
-<connections>
1816
 
-    <connection>
1817
 
-        <sender>buttonOk</sender>
1818
 
-        <signal>clicked()</signal>
1819
 
-        <receiver>GroupSelectDlg</receiver>
1820
 
-        <slot>accept()</slot>
1821
 
-    </connection>
1822
 
-    <connection>
1823
 
-        <sender>buttonCancel</sender>
1824
 
-        <signal>clicked()</signal>
1825
 
-        <receiver>GroupSelectDlg</receiver>
1826
 
-        <slot>reject()</slot>
1827
 
-    </connection>
1828
 
-</connections>
1829
 
-<tabstops>
1830
 
-    <tabstop>groupListView</tabstop>
1831
 
-    <tabstop>defaultRadio</tabstop>
1832
 
-    <tabstop>bothRadio</tabstop>
1833
 
-    <tabstop>buttonOk</tabstop>
1834
 
-    <tabstop>buttonCancel</tabstop>
1835
 
-</tabstops>
1836
 
-<includes>
1837
 
-    <include location="local" impldecl="in declaration">qstringlist.h</include>
1838
 
-    <include location="local" impldecl="in implementation">passwd.h</include>
1839
 
-    <include location="local" impldecl="in implementation">groupselectdlg.ui.h</include>
1840
 
-</includes>
1841
 
-<variables>
1842
 
-    <variable>QString groupKind;</variable>
1843
 
-    <variable>int access;</variable>
1844
 
-    <variable>QStringList selectedGroups;</variable>
1845
 
-</variables>
1846
 
-<slots>
1847
 
-    <slot>init( const QStringList &amp; specifiedGroups )</slot>
1848
 
-    <slot access="protected">accept()</slot>
1849
 
-    <slot returnType="QStringList">getSelectedGroups()</slot>
1850
 
-    <slot returnType="int">getAccess()</slot>
1851
 
-    <slot returnType="QString">getGroupKind()</slot>
1852
 
-</slots>
1853
 
-</UI>
1854
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/groupselectdlg.ui.h
1855
 
===================================================================
1856
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/groupselectdlg.ui.h        2011-01-19 17:21:04.000000000 -0500
1857
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
1858
 
@@ -1,67 +0,0 @@
1859
 
-/****************************************************************************
1860
 
-** ui.h extension file, included from the uic-generated form implementation.
1861
 
-**
1862
 
-** If you wish to add, delete or rename functions or slots use
1863
 
-** Qt Designer which will update this file, preserving your code. Create an
1864
 
-** init() function in place of a constructor, and a destroy() function in
1865
 
-** place of a destructor.
1866
 
-*****************************************************************************/
1867
 
-
1868
 
-#ifndef KCM_SAMBACONF_GROUPSELECTDLG_UI_H
1869
 
-#define KCM_SAMBACONF_GROUPSELECTDLG_UI_H
1870
 
-
1871
 
-void GroupSelectDlg::init(const QStringList & specifiedGroups)
1872
 
-{
1873
 
-  QStringList unixGroups = getUnixGroups();
1874
 
-
1875
 
-  for (QStringList::Iterator it = unixGroups.begin(); it != unixGroups.end(); ++it)
1876
 
-  {
1877
 
-      if ( ! specifiedGroups.contains(*it))
1878
 
-         new Q3ListViewItem(groupListView, *it, QString::number(getGroupGID(*it)));
1879
 
-  }
1880
 
-}
1881
 
-
1882
 
-void GroupSelectDlg::accept()
1883
 
-{
1884
 
-  Q3ListViewItemIterator it( groupListView);
1885
 
-
1886
 
-  for ( ; it.current(); ++it ) {
1887
 
-      if ( it.current()->isSelected() )
1888
 
-         selectedGroups << it.current()->text(0);
1889
 
-  }    
1890
 
-  
1891
 
-  access = accessBtnGrp->id(accessBtnGrp->selected());
1892
 
-  
1893
 
-  if (unixRadio->isChecked())
1894
 
-      groupKind = "+";
1895
 
-  else
1896
 
-      if (nisRadio->isChecked())
1897
 
-         groupKind = "&";
1898
 
-  else
1899
 
-      if (bothRadio->isChecked())
1900
 
-         groupKind = "@";
1901
 
-  
1902
 
-  QDialog::accept();
1903
 
-}
1904
 
-
1905
 
-
1906
 
-
1907
 
-
1908
 
-QStringList GroupSelectDlg::getSelectedGroups()
1909
 
-{
1910
 
-    return selectedGroups;
1911
 
-}
1912
 
-
1913
 
-
1914
 
-int GroupSelectDlg::getAccess()
1915
 
-{
1916
 
-    return access;
1917
 
-}
1918
 
-
1919
 
-
1920
 
-QString GroupSelectDlg::getGroupKind()
1921
 
-{
1922
 
-    return groupKind;
1923
 
-}
1924
 
-
1925
 
-#endif // KCM_SAMBACONF_GROUPSELECTDLG_UI_H
1926
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/hiddenfileview.cpp
1927
 
===================================================================
1928
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/hiddenfileview.cpp 2011-01-19 17:21:04.000000000 -0500
1929
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
1930
 
@@ -1,613 +0,0 @@
1931
 
-/***************************************************************************
1932
 
-                          hiddenfileview.cpp  -  description
1933
 
-                             -------------------
1934
 
-    begin                : Wed Jan 1 2003
1935
 
-    copyright            : (C) 2003 by Jan Sch�er
1936
 
-    email                : janschaefer@users.sourceforge.net
1937
 
- ***************************************************************************/
1938
 
-
1939
 
-/******************************************************************************
1940
 
- *                                                                            *
1941
 
- *  This file is part of KSambaPlugin.                                          *
1942
 
- *                                                                            *
1943
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify            *
1944
 
- *  it under the terms of the GNU General Public License as published by      *
1945
 
- *  the Free Software Foundation; either version 2 of the License, or         *
1946
 
- *  (at your option) any later version.                                       *
1947
 
- *                                                                            *
1948
 
- *  KSambaPlugin is distributed in the hope that it will be useful,                 *
1949
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
1950
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
1951
 
- *  GNU General Public License for more details.                              *
1952
 
- *                                                                            *
1953
 
- *  You should have received a copy of the GNU General Public License         *
1954
 
- *  along with KSambaPlugin; if not, write to the Free Software                     *
1955
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
1956
 
- *                                                                            *
1957
 
- ******************************************************************************/
1958
 
-
1959
 
-#include <assert.h>
1960
 
-
1961
 
-#include <qcheckbox.h>
1962
 
-#include <qlineedit.h>
1963
 
-#include <qregexp.h>
1964
 
-#include <qstringlist.h>
1965
 
-#include <q3groupbox.h>
1966
 
-#include <qcursor.h>
1967
 
-//Added by qt3to4:
1968
 
-#include <Q3PtrList>
1969
 
-
1970
 
-
1971
 
-#include <kmenu.h>
1972
 
-#include <kaction.h>
1973
 
-#include <krestrictedline.h>
1974
 
-#include <klocale.h>
1975
 
-#include <kdirlister.h>
1976
 
-#include <kmessagebox.h>
1977
 
-#include <kurlrequester.h>
1978
 
-#include <ktoggleaction.h>
1979
 
-#include <kdebug.h>
1980
 
-
1981
 
-#include "hiddenfileview.h"
1982
 
-#include "sharedlgimpl.h"
1983
 
-#include "sambashare.h"
1984
 
-
1985
 
-#define DEBUG 5009
1986
 
-
1987
 
-#define COL_NAME 0
1988
 
-#define COL_HIDDEN 1
1989
 
-#define COL_VETO 2
1990
 
-#define COL_VETO_OPLOCK 3
1991
 
-#define COL_SIZE 4
1992
 
-#define COL_DATE 5
1993
 
-#define COL_PERM 6
1994
 
-#define COL_OWNER 7
1995
 
-#define COL_GROUP 8
1996
 
-
1997
 
-#define HIDDENTABINDEX 5
1998
 
-
1999
 
-HiddenListViewItem::HiddenListViewItem( Q3ListView *parent, const KFileItem &fi, bool hidden=false, bool veto=false, bool vetoOplock=false )
2000
 
-  : QMultiCheckListItem( parent )
2001
 
-{
2002
 
-  setPixmap( COL_NAME, fi.pixmap(KIconLoader::SizeSmall));
2003
 
-
2004
 
-  setText( COL_NAME, fi.text() );
2005
 
-  setText( COL_SIZE, KGlobal::locale()->formatNumber( fi.size(), 0));
2006
 
-  setText( COL_DATE,  fi.timeString() );
2007
 
-  setText( COL_PERM,  fi.permissionsString() );
2008
 
-  setText( COL_OWNER, fi.user() );
2009
 
-  setText( COL_GROUP, fi.group() );
2010
 
-
2011
 
-  setOn(COL_HIDDEN,hidden);
2012
 
-  setOn(COL_VETO,veto);
2013
 
-  setOn(COL_VETO_OPLOCK,vetoOplock);
2014
 
-
2015
 
-  _fileItem = fi;
2016
 
-}
2017
 
-
2018
 
-HiddenListViewItem::~HiddenListViewItem()
2019
 
-{
2020
 
-}
2021
 
-
2022
 
-KFileItem HiddenListViewItem::getFileItem() const
2023
 
-{
2024
 
-  return _fileItem;
2025
 
-}
2026
 
-
2027
 
-
2028
 
-void HiddenListViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment)
2029
 
-{
2030
 
-  QColorGroup _cg = cg;
2031
 
-
2032
 
-  if (isOn(COL_VETO))
2033
 
-     _cg.setColor(QPalette::Base,Qt::lightGray);
2034
 
-
2035
 
-  if (isOn(COL_HIDDEN))
2036
 
-     _cg.setColor(QPalette::Text,Qt::gray);
2037
 
-
2038
 
-  QMultiCheckListItem::paintCell(p, _cg, column, width, alignment);
2039
 
-}
2040
 
-
2041
 
-
2042
 
-
2043
 
-
2044
 
-HiddenFileView::HiddenFileView(ShareDlgImpl* shareDlg, SambaShare* share)
2045
 
-{
2046
 
-  _share = share;
2047
 
-  _dlg = shareDlg;
2048
 
-
2049
 
-  _hiddenActn = new KToggleAction(i18n("&Hide"), this);
2050
 
-  _vetoActn = new KToggleAction(i18n("&Veto"), this);
2051
 
-  _vetoOplockActn = new KToggleAction(i18n("&Veto Oplock"), this);
2052
 
-
2053
 
-  initListView();
2054
 
-
2055
 
-  _dlg->hiddenChk->setTristate(true);
2056
 
-  _dlg->vetoChk->setTristate(true);
2057
 
-
2058
 
-  connect( _dlg->hiddenChk, SIGNAL(toggled(bool)), this, SLOT( hiddenChkClicked(bool) ));
2059
 
-  connect( _dlg->vetoChk, SIGNAL(toggled(bool)), this, SLOT( vetoChkClicked(bool) ));
2060
 
-  connect( _dlg->vetoOplockChk, SIGNAL(toggled(bool)), this, SLOT( vetoOplockChkClicked(bool) ));
2061
 
-
2062
 
-  _dlg->hiddenEdit->setText( _share->getValue("hide files") );
2063
 
-  connect( _dlg->hiddenEdit, SIGNAL(textChanged(const QString &)), this, SLOT(updateView()));
2064
 
-
2065
 
-  _dlg->vetoEdit->setText( _share->getValue("veto files") );
2066
 
-  connect( _dlg->vetoEdit, SIGNAL(textChanged(const QString &)), this, SLOT(updateView()));
2067
 
-
2068
 
-  _dlg->vetoOplockEdit->setText( _share->getValue("veto oplock files") );
2069
 
-  connect( _dlg->vetoOplockEdit, SIGNAL(textChanged(const QString &)), this, SLOT(updateView()));
2070
 
-
2071
 
-//  new QLabel(i18n("Hint")+" : ",grid);
2072
 
-//  new QLabel(i18n("You have to separate the entries with a '/'. You can use the wildcards '*' and '?'"),grid);
2073
 
-//  new QLabel(i18n("Example")+" : ",grid);
2074
 
-//  new QLabel(i18n("*.tmp/*SECRET*/.*/file?.*/"),grid);
2075
 
-
2076
 
-  _dir = new KDirLister(this);
2077
 
-  _dir->setShowingDotFiles(true);
2078
 
-
2079
 
-  connect( _dir, SIGNAL(newItems(const KFileItemList &)),
2080
 
-           this, SLOT(insertNewFiles(const KFileItemList &)));
2081
 
-
2082
 
-  connect( _dir, SIGNAL(deleteItem(const KFileItem&)),
2083
 
-           this, SLOT(deleteItem(const KFileItem&)));
2084
 
-
2085
 
-  connect( _dir, SIGNAL(refreshItems(const QList<QPair<KFileItem, KFileItem> > &)),
2086
 
-           this, SLOT(refreshItems(const QList<QPair<KFileItem, KFileItem> > &)));
2087
 
-
2088
 
-  connect( _hiddenActn, SIGNAL(toggled(bool)), this, SLOT(hiddenChkClicked(bool)));
2089
 
-  connect( _vetoActn, SIGNAL(toggled(bool)), this, SLOT(vetoChkClicked(bool)));
2090
 
-  connect( _vetoOplockActn, SIGNAL(toggled(bool)), this, SLOT(vetoOplockChkClicked(bool)));
2091
 
-}
2092
 
-
2093
 
-void HiddenFileView::initListView()
2094
 
-{
2095
 
-  _dlg->hiddenListView->setMultiSelection(true);
2096
 
-  _dlg->hiddenListView->setSelectionMode(Q3ListView::Extended);
2097
 
-  _dlg->hiddenListView->setAllColumnsShowFocus(true);
2098
 
-
2099
 
-  _hiddenList = createRegExpList(_share->getValue("hide files"));
2100
 
-  _vetoList = createRegExpList(_share->getValue("veto files"));
2101
 
-  _vetoOplockList = createRegExpList(_share->getValue("veto oplock files"));
2102
 
-
2103
 
-  _popup = new KMenu(_dlg->hiddenListView);
2104
 
-
2105
 
-  _popup->addAction(_hiddenActn);
2106
 
-  _popup->addAction(_vetoActn);
2107
 
-  _popup->addAction(_vetoOplockActn);
2108
 
-
2109
 
-  connect( _dlg->hiddenListView, SIGNAL(selectionChanged()), this, SLOT(selectionChanged()));
2110
 
-  connect( _dlg->hiddenListView, SIGNAL(contextMenu(K3ListView*,Q3ListViewItem*,const QPoint&)),
2111
 
-           this, SLOT(showContextMenu()));
2112
 
-
2113
 
-  connect( _dlg->hideDotFilesChk, SIGNAL(toggled(bool)), this, SLOT(hideDotFilesChkClicked(bool)));
2114
 
-  connect( _dlg->hideUnreadableChk, SIGNAL(toggled(bool)), this, SLOT(hideUnreadableChkClicked(bool)));
2115
 
-
2116
 
-  connect( _dlg->hiddenListView, SIGNAL(mouseButtonPressed(int,Q3ListViewItem*,const QPoint &,int)),
2117
 
-           this, SLOT(slotMouseButtonPressed(int,Q3ListViewItem*,const QPoint &,int)));
2118
 
-}
2119
 
-
2120
 
-HiddenFileView::~HiddenFileView()
2121
 
-{
2122
 
-}
2123
 
-
2124
 
-void HiddenFileView::load()
2125
 
-{
2126
 
-  if (_dlg->hiddenListView)
2127
 
-    _dlg->hiddenListView->clear();
2128
 
-
2129
 
-  _dir->openUrl( _dlg->pathUrlRq->url() );
2130
 
-}
2131
 
-
2132
 
-void HiddenFileView::save()
2133
 
-{
2134
 
-  QString s = _dlg->hiddenEdit->text().trimmed();
2135
 
-  // it is important that the string ends with an '/'
2136
 
-  // otherwise Samba won't recognize the last entry
2137
 
-  if ( (!s.isEmpty()) && (s.right(1)!="/"))
2138
 
-      s+='/';
2139
 
-  _share->setValue("hide files", s);
2140
 
-
2141
 
-  s = _dlg->vetoEdit->text().trimmed();
2142
 
-  // it is important that the string ends with an '/'
2143
 
-  // otherwise Samba won't recognize the last entry
2144
 
-  if ( (!s.isEmpty()) && (s.right(1)!="/"))
2145
 
-      s+='/';
2146
 
-  _share->setValue("veto files", s);
2147
 
-
2148
 
-  s = _dlg->vetoOplockEdit->text().trimmed();
2149
 
-  // it is important that the string ends with an '/'
2150
 
-  // otherwise Samba won't recognize the last entry
2151
 
-  if ( (!s.isEmpty()) && (s.right(1)!="/"))
2152
 
-      s+='/';
2153
 
-  _share->setValue("veto oplock files", s);
2154
 
-
2155
 
-}
2156
 
-
2157
 
-void HiddenFileView::insertNewFiles(const KFileItemList &newone)
2158
 
-{
2159
 
-  if ( newone.isEmpty() )
2160
 
-     return;
2161
 
-
2162
 
-  int j=0;
2163
 
-
2164
 
-  KFileItemList::const_iterator it = newone.begin();
2165
 
-  const KFileItemList::const_iterator end = newone.end();
2166
 
-  for ( ; it != end; ++it ) {
2167
 
-    const KFileItem tmp = *it;
2168
 
-    j++;
2169
 
-
2170
 
-    bool hidden = matchHidden(tmp.text());
2171
 
-    bool veto = matchVeto(tmp.text());
2172
 
-    bool vetoOplock = matchVetoOplock(tmp.text());
2173
 
-    kDebug(DEBUG) << "creating new HiddenListViewItem " << tmp.text() << endl;
2174
 
-    new HiddenListViewItem( _dlg->hiddenListView, tmp, hidden, veto, vetoOplock );
2175
 
-
2176
 
-  }
2177
 
-}
2178
 
-
2179
 
-
2180
 
-
2181
 
-void HiddenFileView::columnClicked(int column) {
2182
 
-
2183
 
-
2184
 
-  switch (column) {
2185
 
-    case COL_HIDDEN : hiddenChkClicked( !_dlg->hiddenChk->isChecked() );break;
2186
 
-    case COL_VETO : vetoChkClicked( !_dlg->vetoChk->isChecked() );break;
2187
 
-    case COL_VETO_OPLOCK : vetoOplockChkClicked( !_dlg->vetoOplockChk->isChecked() );break;
2188
 
-    default : break;
2189
 
-  }
2190
 
-}
2191
 
-
2192
 
-void HiddenFileView::deleteItem( const KFileItem &fileItem )
2193
 
-{
2194
 
-  HiddenListViewItem* item;
2195
 
-  for (item = dynamic_cast<HiddenListViewItem*>(_dlg->hiddenListView->firstChild());item;
2196
 
-       item = dynamic_cast<HiddenListViewItem*>(item->nextSibling()))
2197
 
-  {
2198
 
-    if (item->getFileItem() == fileItem)
2199
 
-    {
2200
 
-      delete item;
2201
 
-      break;
2202
 
-    }
2203
 
-  }
2204
 
-
2205
 
-}
2206
 
-
2207
 
-void HiddenFileView::refreshItems( const QList<QPair<KFileItem, KFileItem> >& /*items*/ )
2208
 
-{
2209
 
-  updateView();
2210
 
-}
2211
 
-
2212
 
-
2213
 
-void HiddenFileView::showContextMenu()
2214
 
-{
2215
 
-  _popup->exec(QCursor::pos());
2216
 
-}
2217
 
-
2218
 
-
2219
 
-void HiddenFileView::selectionChanged()
2220
 
-{
2221
 
-  bool veto = false;
2222
 
-  bool noVeto = false;
2223
 
-  bool hide = false;
2224
 
-  bool noHide = false;
2225
 
-  bool vetoOplock = false;
2226
 
-  bool noVetoOplock = false;
2227
 
-
2228
 
-  int n = 0;
2229
 
-
2230
 
-  HiddenListViewItem* item;
2231
 
-  for (item = static_cast<HiddenListViewItem*>(_dlg->hiddenListView->firstChild());item;
2232
 
-       item = static_cast<HiddenListViewItem*>(item->nextSibling()))
2233
 
-  {
2234
 
-    if (!item->isSelected())
2235
 
-       continue;
2236
 
-
2237
 
-    n++;
2238
 
-
2239
 
-    if (item->isOn(COL_VETO))
2240
 
-       veto = true;
2241
 
-    else
2242
 
-       noVeto = true;
2243
 
-
2244
 
-    if (item->isOn(COL_VETO_OPLOCK))
2245
 
-       vetoOplock = true;
2246
 
-    else
2247
 
-       noVetoOplock = true;
2248
 
-
2249
 
-    if (item->isOn(COL_HIDDEN))
2250
 
-       hide = true;
2251
 
-    else
2252
 
-       noHide = true;
2253
 
-  }
2254
 
-
2255
 
-
2256
 
-  _dlg->selGrpBx->setEnabled(n>0);
2257
 
-
2258
 
-  if (veto && noVeto)
2259
 
-  {
2260
 
-    _dlg->vetoChk->setTristate(true);
2261
 
-    _dlg->vetoChk->setCheckState(Qt::PartiallyChecked);
2262
 
-    _dlg->vetoChk->update();
2263
 
-  }
2264
 
-  else
2265
 
-  {
2266
 
-    _dlg->vetoChk->setTristate(false);
2267
 
-    _dlg->vetoChk->setChecked(veto);
2268
 
-  }
2269
 
-
2270
 
-  if (vetoOplock && noVetoOplock)
2271
 
-  {
2272
 
-    _dlg->vetoOplockChk->setTristate(true);
2273
 
-    _dlg->vetoOplockChk->setCheckState(Qt::PartiallyChecked);
2274
 
-    _dlg->vetoOplockChk->update();
2275
 
-  }
2276
 
-  else
2277
 
-  {
2278
 
-    _dlg->vetoOplockChk->setTristate(false);
2279
 
-    _dlg->vetoOplockChk->setChecked(vetoOplock);
2280
 
-  }
2281
 
-
2282
 
-
2283
 
-  if (hide && noHide)
2284
 
-  {
2285
 
-    _dlg->hiddenChk->setTristate(true);
2286
 
-    _dlg->hiddenChk->setCheckState(Qt::PartiallyChecked);
2287
 
-    _dlg->hiddenChk->update();
2288
 
-  }
2289
 
-  else
2290
 
-  {
2291
 
-    _dlg->hiddenChk->setTristate(false);
2292
 
-    _dlg->hiddenChk->setChecked(hide);
2293
 
-  }
2294
 
-}
2295
 
-
2296
 
-void HiddenFileView::checkBoxClicked(QCheckBox* chkBox,KToggleAction* action,QLineEdit* edit, int column,Q3PtrList<QRegExp> & reqExpList,bool b) {
2297
 
-  // We don't save the old state so
2298
 
-  // disable the tristate mode
2299
 
-  chkBox->setTristate(false);
2300
 
-  action->setChecked(b);
2301
 
-  chkBox->setChecked(b);
2302
 
-
2303
 
-  HiddenListViewItem* item;
2304
 
-  for (item = static_cast<HiddenListViewItem*>(_dlg->hiddenListView->firstChild());item;
2305
 
-       item = static_cast<HiddenListViewItem*>(item->nextSibling()))
2306
 
-  {
2307
 
-    if (!item->isSelected())
2308
 
-        continue;
2309
 
-
2310
 
-    if (b == item->isOn(column))
2311
 
-        continue;
2312
 
-
2313
 
-    if (!b) {
2314
 
-        QRegExp* rx = getRegExpListMatch(item->text(0),reqExpList);
2315
 
-
2316
 
-        // Perhaps the file was hidden because it started with a dot
2317
 
-        if (!rx && item->text(0)[0]=='.' && _dlg->hideDotFilesChk->isChecked()) {
2318
 
-            int result = KMessageBox::questionYesNo(_dlg,i18n(
2319
 
-                    "<qt>Some files you have selected are hidden because they start with a dot; "
2320
 
-                    "do you want to uncheck all files starting with a dot?</qt>"),i18n("Files Starting With Dot"),KGuiItem(i18n("Uncheck Hidden")), KGuiItem(i18n("Keep Hidden")));
2321
 
-
2322
 
-            if (result == KMessageBox::No) {
2323
 
-                Q3PtrList<HiddenListViewItem> lst = getMatchingItems(QRegExp(".*",false,true));
2324
 
-                deselect(lst);
2325
 
-            } else {
2326
 
-                _dlg->hideDotFilesChk->setChecked(false);
2327
 
-            }
2328
 
-            continue;
2329
 
-        } else {
2330
 
-            if (rx) {
2331
 
-                // perhaps it is matched by a wildcard string
2332
 
-                QString p = rx->pattern();
2333
 
-                if ( p.contains('*') ||
2334
 
-                        p.contains('?') )
2335
 
-                {
2336
 
-                    // TODO after message freeze: why show three times the wildcard string? Once should be enough.
2337
 
-                   // TODO remove <b></b> and use <qt> instead
2338
 
-                    int result = KMessageBox::questionYesNo(_dlg,i18n(
2339
 
-                    "<b></b>Some files you have selected are matched by the wildcarded string <b>'%1'</b>; "
2340
 
-                    "do you want to uncheck all files matching <b>'%1'</b>?", rx->pattern()),
2341
 
-                    i18n("Wildcarded String"),KGuiItem(i18n("Uncheck Matches")),KGuiItem(i18n("Keep Selected")));
2342
 
-
2343
 
-                    Q3PtrList<HiddenListViewItem> lst = getMatchingItems( *rx );
2344
 
-
2345
 
-                    if (result == KMessageBox::No) {
2346
 
-                        deselect(lst);
2347
 
-                    } else {
2348
 
-                        setState(lst,column,false);
2349
 
-                        reqExpList.remove(rx);
2350
 
-                        updateEdit(edit, reqExpList);
2351
 
-                    }
2352
 
-                    continue;
2353
 
-                } else {
2354
 
-                    reqExpList.remove(rx);
2355
 
-                    updateEdit(edit, reqExpList);
2356
 
-                }
2357
 
-            }
2358
 
-        }
2359
 
-    }
2360
 
-    else {
2361
 
-        reqExpList.append( new QRegExp(item->text(0)) );
2362
 
-        updateEdit(edit, reqExpList);
2363
 
-    }
2364
 
-
2365
 
-    item->setOn(column,b);
2366
 
-  }
2367
 
-
2368
 
-  _dlg->hiddenListView->update();
2369
 
-}
2370
 
-
2371
 
-void HiddenFileView::hiddenChkClicked(bool b)
2372
 
-{
2373
 
-    checkBoxClicked(_dlg->hiddenChk, _hiddenActn, _dlg->hiddenEdit, COL_HIDDEN,_hiddenList,b);
2374
 
-
2375
 
-}
2376
 
-
2377
 
-void HiddenFileView::vetoOplockChkClicked(bool b) {
2378
 
-    checkBoxClicked(_dlg->vetoOplockChk, _vetoOplockActn, _dlg->vetoOplockEdit, COL_VETO_OPLOCK,_vetoOplockList,b);
2379
 
-}
2380
 
-
2381
 
-void HiddenFileView::vetoChkClicked(bool b)
2382
 
-{
2383
 
-    checkBoxClicked(_dlg->vetoChk, _vetoActn, _dlg->vetoEdit, COL_VETO,_vetoList,b);
2384
 
-}
2385
 
-
2386
 
-/**
2387
 
- * Sets the text of the QLineEdit edit to the entries of the passed QRegExp-List
2388
 
- **/
2389
 
-void HiddenFileView::updateEdit(QLineEdit* edit, Q3PtrList<QRegExp> & lst)
2390
 
-{
2391
 
-  QString s="";
2392
 
-
2393
 
-  QRegExp* rx;
2394
 
-  for(rx = static_cast<QRegExp*>(lst.first()); rx;
2395
 
-      rx = static_cast<QRegExp*>(lst.next()) )
2396
 
-  {
2397
 
-    s+= rx->pattern()+QString("/");
2398
 
-  }
2399
 
-
2400
 
-  edit->setText(s);
2401
 
-}
2402
 
-
2403
 
-
2404
 
-void HiddenFileView::setState(Q3PtrList<HiddenListViewItem> & lst, int column, bool b) {
2405
 
-  HiddenListViewItem* item;
2406
 
-  for(item = static_cast<HiddenListViewItem*>(lst.first()); item;
2407
 
-      item = static_cast<HiddenListViewItem*>(lst.next()) )
2408
 
-  {
2409
 
-    item->setOn(column,b);
2410
 
-  }
2411
 
-}
2412
 
-
2413
 
-
2414
 
-void HiddenFileView::deselect(Q3PtrList<HiddenListViewItem> & lst)
2415
 
-{
2416
 
-  HiddenListViewItem* item;
2417
 
-  for(item = static_cast<HiddenListViewItem*>(lst.first()); item;
2418
 
-      item = static_cast<HiddenListViewItem*>(lst.next()) )
2419
 
-  {
2420
 
-    item->setSelected(false);
2421
 
-  }
2422
 
-}
2423
 
-
2424
 
-
2425
 
-Q3PtrList<HiddenListViewItem> HiddenFileView::getMatchingItems(const QRegExp & rx)
2426
 
-{
2427
 
-  Q3PtrList<HiddenListViewItem> lst;
2428
 
-
2429
 
-  HiddenListViewItem* item;
2430
 
-  for (item = static_cast<HiddenListViewItem*>(_dlg->hiddenListView->firstChild());item;
2431
 
-       item = static_cast<HiddenListViewItem*>(item->nextSibling()))
2432
 
-  {
2433
 
-    if (rx.exactMatch(item->text(0)))
2434
 
-       lst.append(item);
2435
 
-  }
2436
 
-
2437
 
-  return lst;
2438
 
-}
2439
 
-
2440
 
-void HiddenFileView::updateView()
2441
 
-{
2442
 
-  _hiddenList = createRegExpList(_dlg->hiddenEdit->text());
2443
 
-  _vetoList = createRegExpList(_dlg->vetoEdit->text());
2444
 
-  _vetoOplockList = createRegExpList(_dlg->vetoOplockEdit->text());
2445
 
-
2446
 
-  HiddenListViewItem* item;
2447
 
-  for (item = static_cast<HiddenListViewItem*>(_dlg->hiddenListView->firstChild());item;
2448
 
-       item = static_cast<HiddenListViewItem*>(item->nextSibling()))
2449
 
-  {
2450
 
-    item->setOn(COL_HIDDEN,matchHidden(item->text(0)));
2451
 
-    item->setOn(COL_VETO,matchVeto(item->text(0)));
2452
 
-    item->setOn(COL_VETO_OPLOCK,matchVetoOplock(item->text(0)));
2453
 
-  }
2454
 
-
2455
 
-  _dlg->hiddenListView->repaint();
2456
 
-}
2457
 
-
2458
 
-
2459
 
-Q3PtrList<QRegExp> HiddenFileView::createRegExpList(const QString & s)
2460
 
-{
2461
 
-  Q3PtrList<QRegExp> lst;
2462
 
-  bool cs = _share->getBoolValue("case sensitive");
2463
 
-
2464
 
-  if (!s.isEmpty())
2465
 
-  {
2466
 
-    QStringList l = QStringList::split("/",s);
2467
 
-
2468
 
-    for ( QStringList::Iterator it = l.begin(); it != l.end(); ++it ) {
2469
 
-        lst.append( new QRegExp(*it,cs,true) );
2470
 
-    }
2471
 
-  }
2472
 
-
2473
 
-  return lst;
2474
 
-}
2475
 
-
2476
 
-bool HiddenFileView::matchHidden(const QString & s)
2477
 
-{
2478
 
-  Q3PtrList<QRegExp> hiddenList(_hiddenList);
2479
 
-
2480
 
-  if (_dlg->hideDotFilesChk->isChecked())
2481
 
-     hiddenList.append( new QRegExp(".*",false,true) );
2482
 
-
2483
 
-  return matchRegExpList(s,hiddenList);
2484
 
-}
2485
 
-
2486
 
-bool HiddenFileView::matchVeto(const QString & s)
2487
 
-{
2488
 
-  return matchRegExpList(s,_vetoList);
2489
 
-}
2490
 
-
2491
 
-bool HiddenFileView::matchVetoOplock(const QString & s)
2492
 
-{
2493
 
-  return matchRegExpList(s,_vetoOplockList);
2494
 
-}
2495
 
-
2496
 
-bool HiddenFileView::matchRegExpList(const QString & s, Q3PtrList<QRegExp> & lst)
2497
 
-{
2498
 
-  if (getRegExpListMatch(s,lst))
2499
 
-     return true;
2500
 
-  else
2501
 
-     return false;
2502
 
-}
2503
 
-
2504
 
-
2505
 
-QRegExp* HiddenFileView::getHiddenMatch(const QString & s)
2506
 
-{
2507
 
-  return getRegExpListMatch(s,_hiddenList);
2508
 
-}
2509
 
-
2510
 
-QRegExp* HiddenFileView::getVetoMatch(const QString & s)
2511
 
-{
2512
 
-  return getRegExpListMatch(s,_vetoList);
2513
 
-}
2514
 
-
2515
 
-QRegExp* HiddenFileView::getRegExpListMatch(const QString & s, Q3PtrList<QRegExp> & lst)
2516
 
-{
2517
 
-  QRegExp* rx;
2518
 
-
2519
 
-  for ( rx = lst.first(); rx; rx = lst.next() )
2520
 
-  {
2521
 
-    if (rx->exactMatch(s))
2522
 
-       return rx;
2523
 
-  }
2524
 
-
2525
 
-  return 0L;
2526
 
-}
2527
 
-
2528
 
-void HiddenFileView::hideDotFilesChkClicked(bool)
2529
 
-{
2530
 
-  updateView();
2531
 
-}
2532
 
-
2533
 
-void HiddenFileView::hideUnreadableChkClicked(bool)
2534
 
-{
2535
 
-  updateView();
2536
 
-}
2537
 
-
2538
 
-void HiddenFileView::slotMouseButtonPressed( int, Q3ListViewItem*, const QPoint&, int c ) {
2539
 
-  columnClicked(c);
2540
 
-}
2541
 
-
2542
 
-
2543
 
-#include "hiddenfileview.moc"
2544
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/hiddenfileview.h
2545
 
===================================================================
2546
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/hiddenfileview.h   2011-01-19 17:21:04.000000000 -0500
2547
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
2548
 
@@ -1,142 +0,0 @@
2549
 
-/***************************************************************************
2550
 
-                          hiddenfileview.h  -  description
2551
 
-                             -------------------
2552
 
-    begin                : Wed Jan 1 2003
2553
 
-    copyright            : (C) 2003 by Jan Schäfer
2554
 
-    email                : janschaefer@users.sourceforge.net
2555
 
- ***************************************************************************/
2556
 
-
2557
 
-/******************************************************************************
2558
 
- *                                                                            *
2559
 
- *  This file is part of KSambaPlugin.                                          *
2560
 
- *                                                                            *
2561
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify            *
2562
 
- *  it under the terms of the GNU General Public License as published by      *
2563
 
- *  the Free Software Foundation; either version 2 of the License, or         *
2564
 
- *  (at your option) any later version.                                       *
2565
 
- *                                                                            *
2566
 
- *  KSambaPlugin is distributed in the hope that it will be useful,                 *
2567
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
2568
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
2569
 
- *  GNU General Public License for more details.                              *
2570
 
- *                                                                            *
2571
 
- *  You should have received a copy of the GNU General Public License         *
2572
 
- *  along with KSambaPlugin; if not, write to the Free Software                     *
2573
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
2574
 
- *                                                                            *
2575
 
- ******************************************************************************/
2576
 
-
2577
 
-#ifndef _HIDDENFILEVIEW_H_
2578
 
-#define _HIDDENFILEVIEW_H_
2579
 
-
2580
 
-#include <kfileitem.h>
2581
 
-#include <k3listview.h>
2582
 
-
2583
 
-#include "qmultichecklistitem.h"
2584
 
-//Added by qt3to4:
2585
 
-#include <Q3PtrList>
2586
 
-
2587
 
-class KDirLister;
2588
 
-class QRegExp;
2589
 
-class ShareDlgImpl;
2590
 
-class SambaShare;
2591
 
-
2592
 
-class HiddenListViewItem : public QMultiCheckListItem
2593
 
-{
2594
 
-Q_OBJECT
2595
 
-public:
2596
 
-  HiddenListViewItem( Q3ListView *parent, const KFileItem &fi, bool hidden, bool veto, bool vetoOplock );
2597
 
-  ~HiddenListViewItem();
2598
 
-
2599
 
-  virtual void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment);
2600
 
-
2601
 
-  KFileItem getFileItem() const;
2602
 
-protected:
2603
 
-  KFileItem _fileItem;
2604
 
-};
2605
 
-
2606
 
-class KToggleAction;
2607
 
-class KMenu;
2608
 
-class ShareDlgImpl;
2609
 
-
2610
 
-
2611
 
-/**
2612
 
- * Widget which shows a list of files
2613
 
- * from a directory.
2614
 
- * It gets the directory from the SambaShare
2615
 
- * It also interprets the hidden files parameter
2616
 
- * of the SambaShare an offers the possibility of
2617
 
- * selecting the files which should be hidden
2618
 
- **/
2619
 
-class HiddenFileView : public QObject
2620
 
-{
2621
 
-Q_OBJECT
2622
 
-
2623
 
-public:
2624
 
-  HiddenFileView(ShareDlgImpl* shareDlg, SambaShare* share);
2625
 
-  ~HiddenFileView();
2626
 
-
2627
 
-  /**
2628
 
-   * Load the values from the share and show them
2629
 
-   **/
2630
 
-  void load();
2631
 
-
2632
 
-  /**
2633
 
-   * Save changings to the share
2634
 
-   **/
2635
 
-  void save();
2636
 
-
2637
 
-protected:
2638
 
-  SambaShare* _share;
2639
 
-  ShareDlgImpl* _dlg;
2640
 
-
2641
 
-  KDirLister* _dir;
2642
 
-  Q3PtrList<QRegExp> _hiddenList;
2643
 
-  Q3PtrList<QRegExp> _vetoList;
2644
 
-  Q3PtrList<QRegExp> _vetoOplockList;
2645
 
-
2646
 
-  KToggleAction* _hiddenActn;
2647
 
-  KToggleAction* _vetoActn;
2648
 
-  KToggleAction* _vetoOplockActn;
2649
 
-
2650
 
-  KMenu* _popup;
2651
 
-
2652
 
-  void initListView();
2653
 
-
2654
 
-  Q3PtrList<QRegExp> createRegExpList(const QString & s);
2655
 
-  bool matchHidden(const QString & s);
2656
 
-  bool matchVeto(const QString & s);
2657
 
-  bool matchVetoOplock(const QString & s);
2658
 
-  bool matchRegExpList(const QString & s, Q3PtrList<QRegExp> & lst);
2659
 
-
2660
 
-  QRegExp* getHiddenMatch(const QString & s);
2661
 
-  QRegExp* getVetoMatch(const QString & s);
2662
 
-  QRegExp* getRegExpListMatch(const QString & s, Q3PtrList<QRegExp> & lst);
2663
 
-
2664
 
-  Q3PtrList<HiddenListViewItem> getMatchingItems(const QRegExp & rx);
2665
 
-
2666
 
-  void setState(Q3PtrList<HiddenListViewItem> & lst,int column, bool b);
2667
 
-  void deselect(Q3PtrList<HiddenListViewItem> & lst);
2668
 
-
2669
 
-  void updateEdit(QLineEdit* edit, Q3PtrList<QRegExp> & lst);
2670
 
-
2671
 
-protected slots:
2672
 
-  // slots for KDirListener :
2673
 
-  void insertNewFiles(const KFileItemList &newone);
2674
 
-  void deleteItem( const KFileItem &_fileItem );
2675
 
-  void refreshItems( const QList<QPair<KFileItem, KFileItem> >& items );
2676
 
-  
2677
 
-  void selectionChanged();
2678
 
-  void hiddenChkClicked(bool b);
2679
 
-  void vetoChkClicked(bool b);
2680
 
-  void vetoOplockChkClicked(bool b);
2681
 
-  void checkBoxClicked(QCheckBox* chkBox,KToggleAction* action,QLineEdit* edit,int column,Q3PtrList<QRegExp> &reqExpList,bool b);
2682
 
-  void columnClicked(int column);
2683
 
-  void showContextMenu();
2684
 
-  void updateView();
2685
 
-  void hideDotFilesChkClicked(bool);
2686
 
-  void hideUnreadableChkClicked(bool);
2687
 
-  void slotMouseButtonPressed( int button, Q3ListViewItem * item, const QPoint & pos, int c );
2688
 
-};
2689
 
-
2690
 
-#endif
2691
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/joindomaindlg.ui
2692
 
===================================================================
2693
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/joindomaindlg.ui   2011-01-19 17:21:04.000000000 -0500
2694
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
2695
 
@@ -1,250 +0,0 @@
2696
 
-<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
2697
 
-<class>JoinDomainDlg</class>
2698
 
-<widget class="QDialog">
2699
 
-    <property name="name">
2700
 
-        <cstring>JoinDomainDlg</cstring>
2701
 
-    </property>
2702
 
-    <property name="geometry">
2703
 
-        <rect>
2704
 
-            <x>0</x>
2705
 
-            <y>0</y>
2706
 
-            <width>427</width>
2707
 
-            <height>215</height>
2708
 
-        </rect>
2709
 
-    </property>
2710
 
-    <property name="windowTitle">
2711
 
-        <string>Join Domain</string>
2712
 
-    </property>
2713
 
-    <property name="sizeGripEnabled">
2714
 
-        <bool>true</bool>
2715
 
-    </property>
2716
 
-    <grid>
2717
 
-        <property name="name">
2718
 
-            <cstring>unnamed</cstring>
2719
 
-        </property>
2720
 
-        <widget class="QLayoutWidget" row="7" column="0" rowspan="1" colspan="2">
2721
 
-            <property name="name">
2722
 
-                <cstring>Layout1</cstring>
2723
 
-            </property>
2724
 
-            <hbox>
2725
 
-                <property name="name">
2726
 
-                    <cstring>unnamed</cstring>
2727
 
-                </property>
2728
 
-                <property name="margin">
2729
 
-                    <number>0</number>
2730
 
-                </property>
2731
 
-                <property name="spacing">
2732
 
-                    <number>6</number>
2733
 
-                </property>
2734
 
-                <spacer>
2735
 
-                    <property name="name">
2736
 
-                        <cstring>Qt::Horizontal Spacing2</cstring>
2737
 
-                    </property>
2738
 
-                    <property name="orientation">
2739
 
-                        <enum>Qt::Horizontal</enum>
2740
 
-                    </property>
2741
 
-                    <property name="sizeType">
2742
 
-                        <enum>Expanding</enum>
2743
 
-                    </property>
2744
 
-                    <property name="sizeHint">
2745
 
-                        <size>
2746
 
-                            <width>20</width>
2747
 
-                            <height>20</height>
2748
 
-                        </size>
2749
 
-                    </property>
2750
 
-                </spacer>
2751
 
-                <widget class="QPushButton">
2752
 
-                    <property name="name">
2753
 
-                        <cstring>buttonOk</cstring>
2754
 
-                    </property>
2755
 
-                    <property name="text">
2756
 
-                        <string>&amp;OK</string>
2757
 
-                    </property>
2758
 
-                    <property name="accel">
2759
 
-                        <string></string>
2760
 
-                    </property>
2761
 
-                    <property name="autoDefault">
2762
 
-                        <bool>true</bool>
2763
 
-                    </property>
2764
 
-                    <property name="default">
2765
 
-                        <bool>true</bool>
2766
 
-                    </property>
2767
 
-                </widget>
2768
 
-                <widget class="QPushButton">
2769
 
-                    <property name="name">
2770
 
-                        <cstring>buttonCancel</cstring>
2771
 
-                    </property>
2772
 
-                    <property name="text">
2773
 
-                        <string>&amp;Cancel</string>
2774
 
-                    </property>
2775
 
-                    <property name="accel">
2776
 
-                        <string></string>
2777
 
-                    </property>
2778
 
-                    <property name="autoDefault">
2779
 
-                        <bool>true</bool>
2780
 
-                    </property>
2781
 
-                </widget>
2782
 
-            </hbox>
2783
 
-        </widget>
2784
 
-        <widget class="QLineEdit" row="0" column="1">
2785
 
-            <property name="name">
2786
 
-                <cstring>domainEdit</cstring>
2787
 
-            </property>
2788
 
-        </widget>
2789
 
-        <widget class="QLineEdit" row="1" column="1">
2790
 
-            <property name="name">
2791
 
-                <cstring>domainControllerEdit</cstring>
2792
 
-            </property>
2793
 
-        </widget>
2794
 
-        <widget class="QLineEdit" row="2" column="1">
2795
 
-            <property name="name">
2796
 
-                <cstring>usernameEdit</cstring>
2797
 
-            </property>
2798
 
-        </widget>
2799
 
-        <widget class="QLabel" row="4" column="0">
2800
 
-            <property name="name">
2801
 
-                <cstring>textLabel5_2_2</cstring>
2802
 
-            </property>
2803
 
-            <property name="text">
2804
 
-                <string>&amp;Verify:</string>
2805
 
-            </property>
2806
 
-            <property name="buddy" stdset="0">
2807
 
-                <cstring>verifyEdit</cstring>
2808
 
-            </property>
2809
 
-        </widget>
2810
 
-        <widget class="QLabel" row="3" column="0">
2811
 
-            <property name="name">
2812
 
-                <cstring>textLabel5_2</cstring>
2813
 
-            </property>
2814
 
-            <property name="text">
2815
 
-                <string>&amp;Password:</string>
2816
 
-            </property>
2817
 
-            <property name="buddy" stdset="0">
2818
 
-                <cstring>passwordEdit</cstring>
2819
 
-            </property>
2820
 
-        </widget>
2821
 
-        <widget class="QLabel" row="2" column="0">
2822
 
-            <property name="name">
2823
 
-                <cstring>textLabel5</cstring>
2824
 
-            </property>
2825
 
-            <property name="text">
2826
 
-                <string>&amp;Username:</string>
2827
 
-            </property>
2828
 
-            <property name="buddy" stdset="0">
2829
 
-                <cstring>usernameEdit</cstring>
2830
 
-            </property>
2831
 
-        </widget>
2832
 
-        <widget class="QLabel" row="1" column="0">
2833
 
-            <property name="name">
2834
 
-                <cstring>textLabel4_2</cstring>
2835
 
-            </property>
2836
 
-            <property name="text">
2837
 
-                <string>Domain co&amp;ntroller:</string>
2838
 
-            </property>
2839
 
-            <property name="buddy" stdset="0">
2840
 
-                <cstring>domainControllerEdit</cstring>
2841
 
-            </property>
2842
 
-        </widget>
2843
 
-        <widget class="QLabel" row="0" column="0">
2844
 
-            <property name="name">
2845
 
-                <cstring>textLabel4</cstring>
2846
 
-            </property>
2847
 
-            <property name="text">
2848
 
-                <string>&amp;Domain:</string>
2849
 
-            </property>
2850
 
-            <property name="buddy" stdset="0">
2851
 
-                <cstring>domainEdit</cstring>
2852
 
-            </property>
2853
 
-        </widget>
2854
 
-        <widget class="KLineEdit" row="3" column="1">
2855
 
-            <property name="name">
2856
 
-                <cstring>passwordEdit</cstring>
2857
 
-            </property>
2858
 
-            <property name="passwordMode">
2859
 
-                <bool>true</bool>
2860
 
-            </property>
2861
 
-        </widget>
2862
 
-        <widget class="KLineEdit" row="4" column="1">
2863
 
-            <property name="name">
2864
 
-                <cstring>verifyEdit</cstring>
2865
 
-            </property>
2866
 
-            <property name="passwordMode">
2867
 
-                <bool>true</bool>
2868
 
-            </property>
2869
 
-        </widget>
2870
 
-        <widget class="Line" row="6" column="0" rowspan="1" colspan="2">
2871
 
-            <property name="name">
2872
 
-                <cstring>line1</cstring>
2873
 
-            </property>
2874
 
-            <property name="frameShape">
2875
 
-                <enum>HLine</enum>
2876
 
-            </property>
2877
 
-            <property name="frameShadow">
2878
 
-                <enum>Sunken</enum>
2879
 
-            </property>
2880
 
-            <property name="orientation">
2881
 
-                <enum>Qt::Horizontal</enum>
2882
 
-            </property>
2883
 
-        </widget>
2884
 
-        <spacer row="5" column="1">
2885
 
-            <property name="name">
2886
 
-                <cstring>spacer65</cstring>
2887
 
-            </property>
2888
 
-            <property name="orientation">
2889
 
-                <enum>Qt::Vertical</enum>
2890
 
-            </property>
2891
 
-            <property name="sizeType">
2892
 
-                <enum>Expanding</enum>
2893
 
-            </property>
2894
 
-            <property name="sizeHint">
2895
 
-                <size>
2896
 
-                    <width>20</width>
2897
 
-                    <height>40</height>
2898
 
-                </size>
2899
 
-            </property>
2900
 
-        </spacer>
2901
 
-    </grid>
2902
 
-</widget>
2903
 
-<connections>
2904
 
-    <connection>
2905
 
-        <sender>buttonOk</sender>
2906
 
-        <signal>clicked()</signal>
2907
 
-        <receiver>JoinDomainDlg</receiver>
2908
 
-        <slot>accept()</slot>
2909
 
-    </connection>
2910
 
-    <connection>
2911
 
-        <sender>buttonCancel</sender>
2912
 
-        <signal>clicked()</signal>
2913
 
-        <receiver>JoinDomainDlg</receiver>
2914
 
-        <slot>reject()</slot>
2915
 
-    </connection>
2916
 
-</connections>
2917
 
-<tabstops>
2918
 
-    <tabstop>domainEdit</tabstop>
2919
 
-    <tabstop>domainControllerEdit</tabstop>
2920
 
-    <tabstop>usernameEdit</tabstop>
2921
 
-    <tabstop>passwordEdit</tabstop>
2922
 
-    <tabstop>verifyEdit</tabstop>
2923
 
-    <tabstop>buttonOk</tabstop>
2924
 
-    <tabstop>buttonCancel</tabstop>
2925
 
-</tabstops>
2926
 
-<customwidgets>
2927
 
-    <customwidget>
2928
 
-        <class>KPasswordEdit</class>
2929
 
-        <header location="global">kpassworddialog.h</header>
2930
 
-        <container>0</container>
2931
 
-    </customwidget>
2932
 
-</customwidgets>
2933
 
-<includes>
2934
 
-    <include location="global" impldecl="in declaration">kpassworddialog.h</include>
2935
 
-    <include location="global" impldecl="in implementation">kmessagebox.h</include>
2936
 
-    <include location="global" impldecl="in implementation">klocale.h</include>
2937
 
-    <include location="local" impldecl="in implementation">joindomaindlg.ui.h</include>
2938
 
-</includes>
2939
 
-<slots>
2940
 
-    <slot>accept()</slot>
2941
 
-</slots>
2942
 
-<includehints>
2943
 
-    <includehint>kpassworddialog.h</includehint>
2944
 
-</includehints>
2945
 
-</UI>
2946
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/joindomaindlg.ui.h
2947
 
===================================================================
2948
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/joindomaindlg.ui.h 2011-01-19 17:21:04.000000000 -0500
2949
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
2950
 
@@ -1,22 +0,0 @@
2951
 
-/****************************************************************************
2952
 
-** ui.h extension file, included from the uic-generated form implementation.
2953
 
-**
2954
 
-** If you wish to add, delete or rename functions or slots use
2955
 
-** Qt Designer which will update this file, preserving your code. Create an
2956
 
-** init() function in place of a constructor, and a destroy() function in
2957
 
-** place of a destructor.
2958
 
-*****************************************************************************/
2959
 
-
2960
 
-#ifndef KCM_SAMBACONF_JOINDOMAINDLG_UI_H
2961
 
-#define KCM_SAMBACONF_JOINDOMAINDLG_UI_H
2962
 
-
2963
 
-void JoinDomainDlg::accept() {
2964
 
-    if (passwordEdit->text() != verifyEdit->text()) {
2965
 
-        KMessageBox::sorry(this, i18n("Sorry"), i18n("You entered two different passwords. Please try again."));
2966
 
-       return;
2967
 
-    }
2968
 
-    
2969
 
-    QDialog::accept();
2970
 
-}
2971
 
-
2972
 
-#endif // KCM_SAMBACONF_JOINDOMAINDLG_UI_H
2973
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/kcminterface.cpp
2974
 
===================================================================
2975
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/kcminterface.cpp   2011-01-19 17:21:04.000000000 -0500
2976
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
2977
 
@@ -1,143 +0,0 @@
2978
 
-/******************************************************************************
2979
 
-*                                                                            *
2980
 
-*  This file is part of KSambaPlugin.                                        *
2981
 
-*                                                                            *
2982
 
-*  KSambaPlugin is free software; you can redistribute it and/or modify      *
2983
 
-*  it under the terms of the GNU General Public License as published by      *
2984
 
-*  the Free Software Foundation; either version 2 of the License, or         *
2985
 
-*  (at your option) any later version.                                       *
2986
 
-*                                                                            *
2987
 
-*  KSambaPlugin is distributed in the hope that it will be useful,           *
2988
 
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
2989
 
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
2990
 
-*  GNU General Public License for more details.                              *
2991
 
-*                                                                            *
2992
 
-*  You should have received a copy of the GNU General Public License         *
2993
 
-*  along with KSambaPlugin; if not, write to the Free Software                     *
2994
 
-*  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
2995
 
-*                                                                            *
2996
 
-******************************************************************************/
2997
 
-
2998
 
-#include "kcminterface.h"
2999
 
-
3000
 
-KcmInterface::KcmInterface(QWidget* parent) : 
3001
 
-  QWidget(parent) {
3002
 
-    setupUi(this);
3003
 
-    init();
3004
 
-}
3005
 
-
3006
 
-void KcmInterface::init()
3007
 
-{
3008
 
-    addShareBtn->setIconSet(SmallIconSet("document-new"));
3009
 
-    editShareBtn->setIconSet(SmallIconSet("document-properties"));
3010
 
-    removeShareBtn->setIconSet(SmallIconSet("edit-delete"));
3011
 
-    editDefaultShareBtn->setIconSet(SmallIconSet("queue"));
3012
 
-    
3013
 
-    addPrinterBtn->setIconSet(SmallIconSet("document-new"));
3014
 
-    editPrinterBtn->setIconSet(SmallIconSet("document-properties"));
3015
 
-    removePrinterBtn->setIconSet(SmallIconSet("edit-delete"));
3016
 
-    editDefaultPrinterBtn->setIconSet(SmallIconSet("printer-multiple"));
3017
 
-
3018
 
-    advancedWarningPixLbl->setPixmap(SmallIcon("dialog-warning"));
3019
 
-}
3020
 
-
3021
 
-void KcmInterface::changedSlot()
3022
 
-{
3023
 
-    emit changed();
3024
 
-}
3025
 
-
3026
 
-
3027
 
-void KcmInterface::securityLevelCombo_activated( int i )
3028
 
-{
3029
 
-   passwordServerEdit->setDisabled(i<2);
3030
 
-   allowGuestLoginsChk->setDisabled(i==0);
3031
 
-}
3032
 
-
3033
 
-
3034
 
- void KcmInterface::updateSecurityLevelHelpLbl() {
3035
 
-    if (shareRadio->isChecked()) {
3036
 
-      shareRadio_clicked();
3037
 
-    } else if (userRadio->isChecked()) {
3038
 
-      userRadio_clicked();
3039
 
-    } else if (serverRadio->isChecked()) {
3040
 
-      serverRadio_clicked();
3041
 
-    } else if (domainRadio->isChecked()) {
3042
 
-      domainRadio_clicked();
3043
 
-    } else if (adsRadio->isChecked()) {
3044
 
-      adsRadioClicked();
3045
 
-    }
3046
 
- }
3047
 
-
3048
 
-
3049
 
-void KcmInterface::shareRadio_clicked()
3050
 
-{
3051
 
-  securityLevelHelpLbl->setText(i18n("Use the <i>share</i> security level if you have a home network "
3052
 
-                                    "or a small office network.<br /> It allows everyone to read the list "
3053
 
-                                    "of all your shared directories and printers before a login is required."));
3054
 
-}
3055
 
-
3056
 
-
3057
 
-void KcmInterface::userRadio_clicked()
3058
 
-{
3059
 
-  securityLevelHelpLbl->setText(i18n("Use the <i>user</i> security level if you have a bigger network "
3060
 
-                                    "and you do not want to allow everyone to read your list of shared "
3061
 
-                                    "directories and printers without a login.<br /><br />"
3062
 
-                                    "If you want to run your Samba server as a <b>Primary Domain controller</b> (PDC) "
3063
 
-                                    "you also have to set this option."));
3064
 
-}
3065
 
-
3066
 
-void KcmInterface::serverRadio_clicked()
3067
 
-{
3068
 
-  securityLevelHelpLbl->setText(i18n("Use the <i>server</i> security level if you have a big network "
3069
 
-                                    "and the samba server should validate the username/password "
3070
 
-                                    "by passing it to another SMB server, such as an NT box."));
3071
 
-}
3072
 
-
3073
 
-
3074
 
-void KcmInterface::domainRadio_clicked()
3075
 
-{
3076
 
-  securityLevelHelpLbl->setText(i18n("Use the <i>domain</i> security level if you have a big network "
3077
 
-                                    "and the samba server should validate the username/password "
3078
 
-                                    "by passing it to a Windows NT Primary or Backup Domain Controller."));
3079
 
-}
3080
 
-
3081
 
-
3082
 
-void KcmInterface::adsRadioClicked()
3083
 
-{
3084
 
-  securityLevelHelpLbl->setText(i18n("Use the <i>ADS</i> security level if you have a big network "
3085
 
-                                    "and the samba server should act as a domain member in an ADS realm."));
3086
 
-}
3087
 
-
3088
 
-
3089
 
-void KcmInterface::KUrlLabel1_leftClickedURL()
3090
 
-{
3091
 
-    K3Process* p = new K3Process();
3092
 
-
3093
 
-    *p << "konqueror";
3094
 
-    *p << "man:smb.conf";
3095
 
-    p->start();
3096
 
-}
3097
 
-
3098
 
-
3099
 
-void KcmInterface::lmAnnounceCombo_activated( int i)
3100
 
-{
3101
 
-    lmIntervalSpin->setEnabled(i==0);
3102
 
-}
3103
 
-
3104
 
-
3105
 
-void KcmInterface::allowGuestLoginsChk_toggled( bool b)
3106
 
-{
3107
 
-    int i = 0;
3108
 
-    if (b)
3109
 
-       i = 1;
3110
 
-
3111
 
-    mapToGuestCombo->setCurrentItem(i);
3112
 
-}
3113
 
-
3114
 
-
3115
 
-void KcmInterface::mapToGuestCombo_activated( int i)
3116
 
-{
3117
 
-    allowGuestLoginsChk->setChecked(i>0);
3118
 
-}
3119
 
-
3120
 
-#include "kcminterface.moc"
3121
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/kcminterface.h
3122
 
===================================================================
3123
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/kcminterface.h     2011-01-19 17:21:04.000000000 -0500
3124
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
3125
 
@@ -1,58 +0,0 @@
3126
 
-/******************************************************************************
3127
 
- *                                                                            *
3128
 
- *  This file is part of KSambaPlugin.                                        *
3129
 
- *                                                                            *
3130
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify      *
3131
 
- *  it under the terms of the GNU General Public License as published by      *
3132
 
- *  the Free Software Foundation; either version 2 of the License, or         *
3133
 
- *  (at your option) any later version.                                       *
3134
 
- *                                                                            *
3135
 
- *  KSambaPlugin is distributed in the hope that it will be useful,           *
3136
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
3137
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
3138
 
- *  GNU General Public License for more details.                              *
3139
 
- *                                                                            *
3140
 
- *  You should have received a copy of the GNU General Public License         *
3141
 
- *  along with KSambaPlugin; if not, write to the Free Software                     *
3142
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
3143
 
- *                                                                            *
3144
 
- ******************************************************************************/
3145
 
-
3146
 
-
3147
 
-#ifndef KCMINTERFACE_H
3148
 
-#define KCMINTERFACE_H
3149
 
-
3150
 
-#include <kiconloader.h>
3151
 
-#include <k3process.h>
3152
 
-
3153
 
-
3154
 
-#include "ui_kcminterface.h"
3155
 
-
3156
 
-class KcmInterface : public QWidget, public Ui::KcmInterface
3157
 
-{
3158
 
-Q_OBJECT
3159
 
-
3160
 
-public:
3161
 
-  KcmInterface(QWidget* parent);
3162
 
-  void init();
3163
 
-
3164
 
-public slots:
3165
 
-  void changedSlot();
3166
 
-  void securityLevelCombo_activated( int i );
3167
 
-  void updateSecurityLevelHelpLbl();
3168
 
-  void shareRadio_clicked();
3169
 
-  void userRadio_clicked();
3170
 
-  void serverRadio_clicked();
3171
 
-  void domainRadio_clicked();
3172
 
-  void adsRadioClicked();
3173
 
-  void KUrlLabel1_leftClickedURL();
3174
 
-  void lmAnnounceCombo_activated( int i);
3175
 
-  void allowGuestLoginsChk_toggled( bool b);
3176
 
-  void mapToGuestCombo_activated( int i);
3177
 
-
3178
 
-signals:
3179
 
- void changed();
3180
 
-
3181
 
-};
3182
 
-
3183
 
-#endif // KCMINTERFACE_H
3184
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/kcminterface.ui
3185
 
===================================================================
3186
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/kcminterface.ui    2011-01-19 17:21:04.000000000 -0500
3187
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
3188
 
@@ -1,8586 +0,0 @@
3189
 
-<ui version="4.0" >
3190
 
- <comment>
3191
 
- ******************************************************************************
3192
 
- *                                                                            *
3193
 
- *  This file is part of KSambaPlugin.                                        *
3194
 
- *                                                                            *
3195
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify      *
3196
 
- *  it under the terms of the GNU General Public License as published by      *
3197
 
- *  the Free Software Foundation; either version 2 of the License, or         *
3198
 
- *  (at your option) any later version.                                       *
3199
 
- *                                                                            *
3200
 
- *  KSambaPlugin is distributed in the hope that it will be useful,           *
3201
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
3202
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
3203
 
- *  GNU General Public License for more details.                              *
3204
 
- *                                                                            *
3205
 
- *  You should have received a copy of the GNU General Public License         *
3206
 
- *  along with KSambaPlugin; if not, write to the Free Software                     *
3207
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
3208
 
- *                                                                            *
3209
 
- ******************************************************************************
3210
 
-</comment>
3211
 
- <class>KcmInterface</class>
3212
 
- <widget class="QWidget" name="KcmInterface" >
3213
 
-  <property name="geometry" >
3214
 
-   <rect>
3215
 
-    <x>0</x>
3216
 
-    <y>0</y>
3217
 
-    <width>839</width>
3218
 
-    <height>807</height>
3219
 
-   </rect>
3220
 
-  </property>
3221
 
-  <property name="sizePolicy" >
3222
 
-   <sizepolicy vsizetype="Minimum" hsizetype="Minimum" >
3223
 
-    <horstretch>0</horstretch>
3224
 
-    <verstretch>0</verstretch>
3225
 
-   </sizepolicy>
3226
 
-  </property>
3227
 
-  <layout class="QVBoxLayout" >
3228
 
-   <property name="spacing" >
3229
 
-    <number>6</number>
3230
 
-   </property>
3231
 
-   <property name="leftMargin" >
3232
 
-    <number>0</number>
3233
 
-   </property>
3234
 
-   <property name="topMargin" >
3235
 
-    <number>0</number>
3236
 
-   </property>
3237
 
-   <property name="rightMargin" >
3238
 
-    <number>0</number>
3239
 
-   </property>
3240
 
-   <property name="bottomMargin" >
3241
 
-    <number>0</number>
3242
 
-   </property>
3243
 
-   <item>
3244
 
-    <widget class="QTabWidget" name="mainTab" >
3245
 
-     <property name="whatsThis" >
3246
 
-      <string>&lt;qt>
3247
 
-Here you can edit the Samba users, stored in the smbpasswd file.
3248
 
-&lt;p>
3249
 
-Every Samba user must have a corresponding UNIX user.
3250
 
-On the right you can see all UNIX users, stored in the passwd file and not configured as Samba users.
3251
 
-You can see the Samba users on the left-hand side.
3252
 
-&lt;p>
3253
 
-To add new Samba users simply press the &lt;em>&amp;lt; add&lt;/em> button.
3254
 
-The selected UNIX users will then become Samba users and will be
3255
 
-removed from the UNIX users list (but they will remain UNIX users).
3256
 
-&lt;p>
3257
 
-To remove Samba users click the &lt;em>&amp;gt; remove&lt;/em> button.
3258
 
-The selected Samba users will be removed from the smbpasswd file
3259
 
-and reappear on the right-hand side, as UNIX users which are not Samba users.
3260
 
-&lt;/qt></string>
3261
 
-     </property>
3262
 
-     <property name="currentIndex" >
3263
 
-      <number>0</number>
3264
 
-     </property>
3265
 
-     <widget class="QWidget" name="tab" >
3266
 
-      <attribute name="title" >
3267
 
-       <string>&amp;Base Settings</string>
3268
 
-      </attribute>
3269
 
-      <layout class="QVBoxLayout" >
3270
 
-       <item>
3271
 
-        <layout class="QHBoxLayout" >
3272
 
-         <property name="spacing" >
3273
 
-          <number>6</number>
3274
 
-         </property>
3275
 
-         <property name="leftMargin" >
3276
 
-          <number>0</number>
3277
 
-         </property>
3278
 
-         <property name="topMargin" >
3279
 
-          <number>0</number>
3280
 
-         </property>
3281
 
-         <property name="rightMargin" >
3282
 
-          <number>0</number>
3283
 
-         </property>
3284
 
-         <property name="bottomMargin" >
3285
 
-          <number>0</number>
3286
 
-         </property>
3287
 
-         <item>
3288
 
-          <widget class="QLabel" name="TextLabel1_6" >
3289
 
-           <property name="text" >
3290
 
-            <string>Samba config file:</string>
3291
 
-           </property>
3292
 
-           <property name="wordWrap" >
3293
 
-            <bool>false</bool>
3294
 
-           </property>
3295
 
-           <property name="buddy" >
3296
 
-            <cstring>configUrlRq</cstring>
3297
 
-           </property>
3298
 
-          </widget>
3299
 
-         </item>
3300
 
-         <item>
3301
 
-          <widget class="KUrlRequester" name="configUrlRq" />
3302
 
-         </item>
3303
 
-         <item>
3304
 
-          <widget class="QPushButton" name="loadBtn" >
3305
 
-           <property name="enabled" >
3306
 
-            <bool>true</bool>
3307
 
-           </property>
3308
 
-           <property name="text" >
3309
 
-            <string>&amp;Load</string>
3310
 
-           </property>
3311
 
-          </widget>
3312
 
-         </item>
3313
 
-        </layout>
3314
 
-       </item>
3315
 
-       <item>
3316
 
-        <widget class="QGroupBox" name="GroupBox1_2" >
3317
 
-         <property name="font" >
3318
 
-          <font/>
3319
 
-         </property>
3320
 
-         <property name="title" >
3321
 
-          <string>Server Identification</string>
3322
 
-         </property>
3323
 
-         <layout class="QGridLayout" >
3324
 
-          <property name="leftMargin" >
3325
 
-           <number>11</number>
3326
 
-          </property>
3327
 
-          <property name="topMargin" >
3328
 
-           <number>11</number>
3329
 
-          </property>
3330
 
-          <property name="rightMargin" >
3331
 
-           <number>11</number>
3332
 
-          </property>
3333
 
-          <property name="bottomMargin" >
3334
 
-           <number>11</number>
3335
 
-          </property>
3336
 
-          <property name="horizontalSpacing" >
3337
 
-           <number>6</number>
3338
 
-          </property>
3339
 
-          <property name="verticalSpacing" >
3340
 
-           <number>6</number>
3341
 
-          </property>
3342
 
-          <item row="0" column="0" >
3343
 
-           <widget class="QLabel" name="TextLabel1_2_2_2" >
3344
 
-            <property name="font" >
3345
 
-             <font/>
3346
 
-            </property>
3347
 
-            <property name="text" >
3348
 
-             <string>Wor&amp;kgroup:</string>
3349
 
-            </property>
3350
 
-            <property name="wordWrap" >
3351
 
-             <bool>false</bool>
3352
 
-            </property>
3353
 
-            <property name="buddy" >
3354
 
-             <cstring>workgroupEdit</cstring>
3355
 
-            </property>
3356
 
-           </widget>
3357
 
-          </item>
3358
 
-          <item row="0" column="1" >
3359
 
-           <widget class="KLineEdit" name="workgroupEdit" >
3360
 
-            <property name="font" >
3361
 
-             <font/>
3362
 
-            </property>
3363
 
-            <property name="toolTip" >
3364
 
-             <string>Enter here the name of your workgroup/domain.</string>
3365
 
-            </property>
3366
 
-           </widget>
3367
 
-          </item>
3368
 
-          <item row="2" column="1" >
3369
 
-           <widget class="KLineEdit" name="serverStringEdit" >
3370
 
-            <property name="font" >
3371
 
-             <font/>
3372
 
-            </property>
3373
 
-           </widget>
3374
 
-          </item>
3375
 
-          <item row="1" column="1" >
3376
 
-           <widget class="KLineEdit" name="netbiosNameEdit" >
3377
 
-            <property name="font" >
3378
 
-             <font/>
3379
 
-            </property>
3380
 
-           </widget>
3381
 
-          </item>
3382
 
-          <item row="2" column="0" >
3383
 
-           <widget class="QLabel" name="TextLabel4_3" >
3384
 
-            <property name="font" >
3385
 
-             <font/>
3386
 
-            </property>
3387
 
-            <property name="text" >
3388
 
-             <string>Server strin&amp;g:</string>
3389
 
-            </property>
3390
 
-            <property name="wordWrap" >
3391
 
-             <bool>false</bool>
3392
 
-            </property>
3393
 
-            <property name="buddy" >
3394
 
-             <cstring>serverStringEdit</cstring>
3395
 
-            </property>
3396
 
-           </widget>
3397
 
-          </item>
3398
 
-          <item row="1" column="0" >
3399
 
-           <widget class="QLabel" name="TextLabel3_6" >
3400
 
-            <property name="font" >
3401
 
-             <font/>
3402
 
-            </property>
3403
 
-            <property name="text" >
3404
 
-             <string>NetBIOS name:</string>
3405
 
-            </property>
3406
 
-            <property name="wordWrap" >
3407
 
-             <bool>false</bool>
3408
 
-            </property>
3409
 
-            <property name="buddy" >
3410
 
-             <cstring>netbiosNameEdit</cstring>
3411
 
-            </property>
3412
 
-           </widget>
3413
 
-          </item>
3414
 
-         </layout>
3415
 
-        </widget>
3416
 
-       </item>
3417
 
-       <item>
3418
 
-        <widget class="Q3ButtonGroup" name="securityLevelBtnGrp" >
3419
 
-         <property name="font" >
3420
 
-          <font/>
3421
 
-         </property>
3422
 
-         <property name="title" >
3423
 
-          <string>Securit&amp;y Level</string>
3424
 
-         </property>
3425
 
-         <layout class="QHBoxLayout" >
3426
 
-          <property name="spacing" >
3427
 
-           <number>6</number>
3428
 
-          </property>
3429
 
-          <property name="leftMargin" >
3430
 
-           <number>11</number>
3431
 
-          </property>
3432
 
-          <property name="topMargin" >
3433
 
-           <number>11</number>
3434
 
-          </property>
3435
 
-          <property name="rightMargin" >
3436
 
-           <number>11</number>
3437
 
-          </property>
3438
 
-          <property name="bottomMargin" >
3439
 
-           <number>11</number>
3440
 
-          </property>
3441
 
-          <item>
3442
 
-           <layout class="QVBoxLayout" >
3443
 
-            <property name="spacing" >
3444
 
-             <number>6</number>
3445
 
-            </property>
3446
 
-            <property name="leftMargin" >
3447
 
-             <number>0</number>
3448
 
-            </property>
3449
 
-            <property name="topMargin" >
3450
 
-             <number>0</number>
3451
 
-            </property>
3452
 
-            <property name="rightMargin" >
3453
 
-             <number>0</number>
3454
 
-            </property>
3455
 
-            <property name="bottomMargin" >
3456
 
-             <number>0</number>
3457
 
-            </property>
3458
 
-            <item>
3459
 
-             <widget class="QRadioButton" name="shareRadio" >
3460
 
-              <property name="font" >
3461
 
-               <font/>
3462
 
-              </property>
3463
 
-              <property name="text" >
3464
 
-               <string>Share</string>
3465
 
-              </property>
3466
 
-              <property name="shortcut" >
3467
 
-               <string>Alt+</string>
3468
 
-              </property>
3469
 
-              <property name="checked" >
3470
 
-               <bool>true</bool>
3471
 
-              </property>
3472
 
-             </widget>
3473
 
-            </item>
3474
 
-            <item>
3475
 
-             <widget class="QRadioButton" name="userRadio" >
3476
 
-              <property name="font" >
3477
 
-               <font/>
3478
 
-              </property>
3479
 
-              <property name="text" >
3480
 
-               <string>User</string>
3481
 
-              </property>
3482
 
-              <property name="shortcut" >
3483
 
-               <string>Alt+</string>
3484
 
-              </property>
3485
 
-             </widget>
3486
 
-            </item>
3487
 
-            <item>
3488
 
-             <widget class="QRadioButton" name="serverRadio" >
3489
 
-              <property name="font" >
3490
 
-               <font/>
3491
 
-              </property>
3492
 
-              <property name="text" >
3493
 
-               <string>Server</string>
3494
 
-              </property>
3495
 
-              <property name="shortcut" >
3496
 
-               <string>Alt+</string>
3497
 
-              </property>
3498
 
-             </widget>
3499
 
-            </item>
3500
 
-            <item>
3501
 
-             <widget class="QRadioButton" name="domainRadio" >
3502
 
-              <property name="font" >
3503
 
-               <font/>
3504
 
-              </property>
3505
 
-              <property name="text" >
3506
 
-               <string>Domai&amp;n</string>
3507
 
-              </property>
3508
 
-             </widget>
3509
 
-            </item>
3510
 
-            <item>
3511
 
-             <widget class="QRadioButton" name="adsRadio" >
3512
 
-              <property name="font" >
3513
 
-               <font/>
3514
 
-              </property>
3515
 
-              <property name="text" >
3516
 
-               <string>ADS</string>
3517
 
-              </property>
3518
 
-              <property name="shortcut" >
3519
 
-               <string>Alt+</string>
3520
 
-              </property>
3521
 
-             </widget>
3522
 
-            </item>
3523
 
-           </layout>
3524
 
-          </item>
3525
 
-          <item>
3526
 
-           <widget class="QLabel" name="securityLevelHelpLbl" >
3527
 
-            <property name="sizePolicy" >
3528
 
-             <sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
3529
 
-              <horstretch>0</horstretch>
3530
 
-              <verstretch>0</verstretch>
3531
 
-             </sizepolicy>
3532
 
-            </property>
3533
 
-            <property name="font" >
3534
 
-             <font/>
3535
 
-            </property>
3536
 
-            <property name="text" >
3537
 
-             <string>Use the &lt;i>share&lt;/i> security level if you have a home network or a small office network.&lt;br> It allows everyone to read all share names before a login is required.</string>
3538
 
-            </property>
3539
 
-            <property name="textFormat" >
3540
 
-             <enum>Qt::RichText</enum>
3541
 
-            </property>
3542
 
-            <property name="alignment" >
3543
 
-             <set>Qt::AlignTop</set>
3544
 
-            </property>
3545
 
-            <property name="wordWrap" >
3546
 
-             <bool>true</bool>
3547
 
-            </property>
3548
 
-            <property name="indent" >
3549
 
-             <number>5</number>
3550
 
-            </property>
3551
 
-           </widget>
3552
 
-          </item>
3553
 
-         </layout>
3554
 
-        </widget>
3555
 
-       </item>
3556
 
-       <item>
3557
 
-        <widget class="QGroupBox" name="GroupBox12" >
3558
 
-         <property name="font" >
3559
 
-          <font/>
3560
 
-         </property>
3561
 
-         <property name="title" >
3562
 
-          <string>Further Options</string>
3563
 
-         </property>
3564
 
-         <layout class="QGridLayout" >
3565
 
-          <item row="0" column="0" >
3566
 
-           <widget class="QLabel" name="passwordServerLabel" >
3567
 
-            <property name="enabled" >
3568
 
-             <bool>false</bool>
3569
 
-            </property>
3570
 
-            <property name="font" >
3571
 
-             <font/>
3572
 
-            </property>
3573
 
-            <property name="text" >
3574
 
-             <string>Password server address/name:</string>
3575
 
-            </property>
3576
 
-            <property name="wordWrap" >
3577
 
-             <bool>false</bool>
3578
 
-            </property>
3579
 
-            <property name="buddy" >
3580
 
-             <cstring>passwordServerEdit</cstring>
3581
 
-            </property>
3582
 
-           </widget>
3583
 
-          </item>
3584
 
-          <item row="0" column="1" >
3585
 
-           <widget class="QLineEdit" name="passwordServerEdit" >
3586
 
-            <property name="enabled" >
3587
 
-             <bool>false</bool>
3588
 
-            </property>
3589
 
-           </widget>
3590
 
-          </item>
3591
 
-          <item row="1" column="0" >
3592
 
-           <widget class="QLabel" name="realmLabel" >
3593
 
-            <property name="enabled" >
3594
 
-             <bool>false</bool>
3595
 
-            </property>
3596
 
-            <property name="font" >
3597
 
-             <font/>
3598
 
-            </property>
3599
 
-            <property name="text" >
3600
 
-             <string>Real&amp;m:</string>
3601
 
-            </property>
3602
 
-            <property name="wordWrap" >
3603
 
-             <bool>false</bool>
3604
 
-            </property>
3605
 
-            <property name="buddy" >
3606
 
-             <cstring>realmEdit</cstring>
3607
 
-            </property>
3608
 
-           </widget>
3609
 
-          </item>
3610
 
-          <item row="1" column="1" >
3611
 
-           <widget class="QLineEdit" name="realmEdit" >
3612
 
-            <property name="enabled" >
3613
 
-             <bool>false</bool>
3614
 
-            </property>
3615
 
-            <property name="font" >
3616
 
-             <font/>
3617
 
-            </property>
3618
 
-           </widget>
3619
 
-          </item>
3620
 
-          <item row="2" column="0" >
3621
 
-           <widget class="QCheckBox" name="allowGuestLoginsChk" >
3622
 
-            <property name="enabled" >
3623
 
-             <bool>false</bool>
3624
 
-            </property>
3625
 
-            <property name="font" >
3626
 
-             <font/>
3627
 
-            </property>
3628
 
-            <property name="text" >
3629
 
-             <string>Allo&amp;w guest logins</string>
3630
 
-            </property>
3631
 
-           </widget>
3632
 
-          </item>
3633
 
-          <item row="2" column="1" >
3634
 
-           <layout class="QHBoxLayout" >
3635
 
-            <property name="spacing" >
3636
 
-             <number>6</number>
3637
 
-            </property>
3638
 
-            <property name="leftMargin" >
3639
 
-             <number>0</number>
3640
 
-            </property>
3641
 
-            <property name="topMargin" >
3642
 
-             <number>0</number>
3643
 
-            </property>
3644
 
-            <property name="rightMargin" >
3645
 
-             <number>0</number>
3646
 
-            </property>
3647
 
-            <property name="bottomMargin" >
3648
 
-             <number>0</number>
3649
 
-            </property>
3650
 
-            <item>
3651
 
-             <widget class="QLabel" name="TextLabel6_5" >
3652
 
-              <property name="enabled" >
3653
 
-               <bool>false</bool>
3654
 
-              </property>
3655
 
-              <property name="sizePolicy" >
3656
 
-               <sizepolicy vsizetype="Preferred" hsizetype="Fixed" >
3657
 
-                <horstretch>0</horstretch>
3658
 
-                <verstretch>0</verstretch>
3659
 
-               </sizepolicy>
3660
 
-              </property>
3661
 
-              <property name="font" >
3662
 
-               <font/>
3663
 
-              </property>
3664
 
-              <property name="text" >
3665
 
-               <string>Guest acc&amp;ount:</string>
3666
 
-              </property>
3667
 
-              <property name="wordWrap" >
3668
 
-               <bool>false</bool>
3669
 
-              </property>
3670
 
-              <property name="buddy" >
3671
 
-               <cstring>guestAccountCombo</cstring>
3672
 
-              </property>
3673
 
-             </widget>
3674
 
-            </item>
3675
 
-            <item>
3676
 
-             <widget class="QComboBox" name="guestAccountCombo" >
3677
 
-              <property name="enabled" >
3678
 
-               <bool>false</bool>
3679
 
-              </property>
3680
 
-              <property name="font" >
3681
 
-               <font/>
3682
 
-              </property>
3683
 
-             </widget>
3684
 
-            </item>
3685
 
-            <item>
3686
 
-             <spacer>
3687
 
-              <property name="orientation" >
3688
 
-               <enum>Qt::Horizontal</enum>
3689
 
-              </property>
3690
 
-              <property name="sizeHint" >
3691
 
-               <size>
3692
 
-                <width>40</width>
3693
 
-                <height>20</height>
3694
 
-               </size>
3695
 
-              </property>
3696
 
-             </spacer>
3697
 
-            </item>
3698
 
-           </layout>
3699
 
-          </item>
3700
 
-         </layout>
3701
 
-        </widget>
3702
 
-       </item>
3703
 
-       <item>
3704
 
-        <widget class="QGroupBox" name="GroupBox10" >
3705
 
-         <property name="font" >
3706
 
-          <font/>
3707
 
-         </property>
3708
 
-         <property name="title" >
3709
 
-          <string>Help</string>
3710
 
-         </property>
3711
 
-         <layout class="QHBoxLayout" >
3712
 
-          <item>
3713
 
-           <widget class="QLabel" name="TextLabel2_3" >
3714
 
-            <property name="sizePolicy" >
3715
 
-             <sizepolicy vsizetype="Preferred" hsizetype="MinimumExpanding" >
3716
 
-              <horstretch>0</horstretch>
3717
 
-              <verstretch>0</verstretch>
3718
 
-             </sizepolicy>
3719
 
-            </property>
3720
 
-            <property name="font" >
3721
 
-             <font/>
3722
 
-            </property>
3723
 
-            <property name="text" >
3724
 
-             <string>For detailed help about every option please look at:</string>
3725
 
-            </property>
3726
 
-            <property name="alignment" >
3727
 
-             <set>Qt::AlignVCenter</set>
3728
 
-            </property>
3729
 
-            <property name="wordWrap" >
3730
 
-             <bool>false</bool>
3731
 
-            </property>
3732
 
-           </widget>
3733
 
-          </item>
3734
 
-          <item>
3735
 
-           <widget class="KUrlLabel" name="KUrlLabel1" >
3736
 
-            <property name="sizePolicy" >
3737
 
-             <sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
3738
 
-              <horstretch>0</horstretch>
3739
 
-              <verstretch>0</verstretch>
3740
 
-             </sizepolicy>
3741
 
-            </property>
3742
 
-            <property name="text" >
3743
 
-             <string>man:smb.conf</string>
3744
 
-            </property>
3745
 
-           </widget>
3746
 
-          </item>
3747
 
-          <item>
3748
 
-           <spacer>
3749
 
-            <property name="orientation" >
3750
 
-             <enum>Qt::Horizontal</enum>
3751
 
-            </property>
3752
 
-            <property name="sizeHint" >
3753
 
-             <size>
3754
 
-              <width>40</width>
3755
 
-              <height>20</height>
3756
 
-             </size>
3757
 
-            </property>
3758
 
-           </spacer>
3759
 
-          </item>
3760
 
-         </layout>
3761
 
-        </widget>
3762
 
-       </item>
3763
 
-      </layout>
3764
 
-     </widget>
3765
 
-     <widget class="QWidget" name="shareTab" >
3766
 
-      <attribute name="title" >
3767
 
-       <string>&amp;Shares</string>
3768
 
-      </attribute>
3769
 
-      <layout class="QVBoxLayout" >
3770
 
-       <property name="spacing" >
3771
 
-        <number>6</number>
3772
 
-       </property>
3773
 
-       <property name="leftMargin" >
3774
 
-        <number>11</number>
3775
 
-       </property>
3776
 
-       <property name="topMargin" >
3777
 
-        <number>11</number>
3778
 
-       </property>
3779
 
-       <property name="rightMargin" >
3780
 
-        <number>11</number>
3781
 
-       </property>
3782
 
-       <property name="bottomMargin" >
3783
 
-        <number>11</number>
3784
 
-       </property>
3785
 
-       <item>
3786
 
-        <widget class="K3ListView" name="shareListView" >
3787
 
-         <property name="allColumnsShowFocus" >
3788
 
-          <bool>true</bool>
3789
 
-         </property>
3790
 
-         <property name="showSortIndicator" >
3791
 
-          <bool>true</bool>
3792
 
-         </property>
3793
 
-         <property name="rootIsDecorated" >
3794
 
-          <bool>false</bool>
3795
 
-         </property>
3796
 
-         <property name="resizeMode" >
3797
 
-          <enum>Q3ListView::NoColumn</enum>
3798
 
-         </property>
3799
 
-         <column>
3800
 
-          <property name="text" >
3801
 
-           <string>Name</string>
3802
 
-          </property>
3803
 
-         </column>
3804
 
-         <column>
3805
 
-          <property name="text" >
3806
 
-           <string>Path</string>
3807
 
-          </property>
3808
 
-         </column>
3809
 
-         <column>
3810
 
-          <property name="text" >
3811
 
-           <string>Comment</string>
3812
 
-          </property>
3813
 
-         </column>
3814
 
-         <column>
3815
 
-          <property name="text" >
3816
 
-           <string>Properties</string>
3817
 
-          </property>
3818
 
-         </column>
3819
 
-        </widget>
3820
 
-       </item>
3821
 
-       <item>
3822
 
-        <layout class="QHBoxLayout" >
3823
 
-         <property name="spacing" >
3824
 
-          <number>6</number>
3825
 
-         </property>
3826
 
-         <property name="leftMargin" >
3827
 
-          <number>0</number>
3828
 
-         </property>
3829
 
-         <property name="topMargin" >
3830
 
-          <number>0</number>
3831
 
-         </property>
3832
 
-         <property name="rightMargin" >
3833
 
-          <number>0</number>
3834
 
-         </property>
3835
 
-         <property name="bottomMargin" >
3836
 
-          <number>0</number>
3837
 
-         </property>
3838
 
-         <item>
3839
 
-          <widget class="QPushButton" name="editDefaultShareBtn" >
3840
 
-           <property name="text" >
3841
 
-            <string>Edit Defau&amp;lts...</string>
3842
 
-           </property>
3843
 
-          </widget>
3844
 
-         </item>
3845
 
-         <item>
3846
 
-          <spacer>
3847
 
-           <property name="orientation" >
3848
 
-            <enum>Qt::Horizontal</enum>
3849
 
-           </property>
3850
 
-           <property name="sizeHint" >
3851
 
-            <size>
3852
 
-             <width>40</width>
3853
 
-             <height>20</height>
3854
 
-            </size>
3855
 
-           </property>
3856
 
-          </spacer>
3857
 
-         </item>
3858
 
-         <item>
3859
 
-          <widget class="QPushButton" name="addShareBtn" >
3860
 
-           <property name="text" >
3861
 
-            <string>Add &amp;New Share...</string>
3862
 
-           </property>
3863
 
-          </widget>
3864
 
-         </item>
3865
 
-         <item>
3866
 
-          <widget class="QPushButton" name="editShareBtn" >
3867
 
-           <property name="text" >
3868
 
-            <string>Edit Share...</string>
3869
 
-           </property>
3870
 
-           <property name="shortcut" >
3871
 
-            <string>Alt+</string>
3872
 
-           </property>
3873
 
-          </widget>
3874
 
-         </item>
3875
 
-         <item>
3876
 
-          <widget class="QPushButton" name="removeShareBtn" >
3877
 
-           <property name="text" >
3878
 
-            <string>Re&amp;move Share</string>
3879
 
-           </property>
3880
 
-          </widget>
3881
 
-         </item>
3882
 
-        </layout>
3883
 
-       </item>
3884
 
-      </layout>
3885
 
-     </widget>
3886
 
-     <widget class="QWidget" name="tab" >
3887
 
-      <attribute name="title" >
3888
 
-       <string>Prin&amp;ters</string>
3889
 
-      </attribute>
3890
 
-      <layout class="QVBoxLayout" >
3891
 
-       <property name="spacing" >
3892
 
-        <number>6</number>
3893
 
-       </property>
3894
 
-       <property name="leftMargin" >
3895
 
-        <number>11</number>
3896
 
-       </property>
3897
 
-       <property name="topMargin" >
3898
 
-        <number>11</number>
3899
 
-       </property>
3900
 
-       <property name="rightMargin" >
3901
 
-        <number>11</number>
3902
 
-       </property>
3903
 
-       <property name="bottomMargin" >
3904
 
-        <number>11</number>
3905
 
-       </property>
3906
 
-       <item>
3907
 
-        <widget class="K3ListView" name="printerListView" >
3908
 
-         <property name="allColumnsShowFocus" >
3909
 
-          <bool>true</bool>
3910
 
-         </property>
3911
 
-         <property name="showSortIndicator" >
3912
 
-          <bool>true</bool>
3913
 
-         </property>
3914
 
-         <property name="rootIsDecorated" >
3915
 
-          <bool>false</bool>
3916
 
-         </property>
3917
 
-         <property name="resizeMode" >
3918
 
-          <enum>Q3ListView::NoColumn</enum>
3919
 
-         </property>
3920
 
-         <column>
3921
 
-          <property name="text" >
3922
 
-           <string>Name</string>
3923
 
-          </property>
3924
 
-         </column>
3925
 
-         <column>
3926
 
-          <property name="text" >
3927
 
-           <string>Printer</string>
3928
 
-          </property>
3929
 
-         </column>
3930
 
-         <column>
3931
 
-          <property name="text" >
3932
 
-           <string>Comment</string>
3933
 
-          </property>
3934
 
-         </column>
3935
 
-         <column>
3936
 
-          <property name="text" >
3937
 
-           <string>Properties</string>
3938
 
-          </property>
3939
 
-         </column>
3940
 
-        </widget>
3941
 
-       </item>
3942
 
-       <item>
3943
 
-        <layout class="QHBoxLayout" >
3944
 
-         <property name="spacing" >
3945
 
-          <number>6</number>
3946
 
-         </property>
3947
 
-         <property name="leftMargin" >
3948
 
-          <number>0</number>
3949
 
-         </property>
3950
 
-         <property name="topMargin" >
3951
 
-          <number>0</number>
3952
 
-         </property>
3953
 
-         <property name="rightMargin" >
3954
 
-          <number>0</number>
3955
 
-         </property>
3956
 
-         <property name="bottomMargin" >
3957
 
-          <number>0</number>
3958
 
-         </property>
3959
 
-         <item>
3960
 
-          <widget class="QPushButton" name="editDefaultPrinterBtn" >
3961
 
-           <property name="text" >
3962
 
-            <string>Edit Defau&amp;lts</string>
3963
 
-           </property>
3964
 
-          </widget>
3965
 
-         </item>
3966
 
-         <item>
3967
 
-          <spacer>
3968
 
-           <property name="orientation" >
3969
 
-            <enum>Qt::Horizontal</enum>
3970
 
-           </property>
3971
 
-           <property name="sizeHint" >
3972
 
-            <size>
3973
 
-             <width>40</width>
3974
 
-             <height>20</height>
3975
 
-            </size>
3976
 
-           </property>
3977
 
-          </spacer>
3978
 
-         </item>
3979
 
-         <item>
3980
 
-          <widget class="QPushButton" name="addPrinterBtn" >
3981
 
-           <property name="text" >
3982
 
-            <string>Add Ne&amp;w Printer</string>
3983
 
-           </property>
3984
 
-          </widget>
3985
 
-         </item>
3986
 
-         <item>
3987
 
-          <widget class="QPushButton" name="editPrinterBtn" >
3988
 
-           <property name="text" >
3989
 
-            <string>Edit Pri&amp;nter</string>
3990
 
-           </property>
3991
 
-          </widget>
3992
 
-         </item>
3993
 
-         <item>
3994
 
-          <widget class="QPushButton" name="removePrinterBtn" >
3995
 
-           <property name="text" >
3996
 
-            <string>Re&amp;move Printer</string>
3997
 
-           </property>
3998
 
-          </widget>
3999
 
-         </item>
4000
 
-        </layout>
4001
 
-       </item>
4002
 
-      </layout>
4003
 
-     </widget>
4004
 
-     <widget class="QWidget" name="tab" >
4005
 
-      <attribute name="title" >
4006
 
-       <string>&amp;Users</string>
4007
 
-      </attribute>
4008
 
-      <layout class="QVBoxLayout" >
4009
 
-       <property name="spacing" >
4010
 
-        <number>6</number>
4011
 
-       </property>
4012
 
-       <property name="leftMargin" >
4013
 
-        <number>11</number>
4014
 
-       </property>
4015
 
-       <property name="topMargin" >
4016
 
-        <number>11</number>
4017
 
-       </property>
4018
 
-       <property name="rightMargin" >
4019
 
-        <number>11</number>
4020
 
-       </property>
4021
 
-       <property name="bottomMargin" >
4022
 
-        <number>11</number>
4023
 
-       </property>
4024
 
-       <item>
4025
 
-        <layout class="QHBoxLayout" >
4026
 
-         <property name="spacing" >
4027
 
-          <number>6</number>
4028
 
-         </property>
4029
 
-         <property name="leftMargin" >
4030
 
-          <number>0</number>
4031
 
-         </property>
4032
 
-         <property name="topMargin" >
4033
 
-          <number>0</number>
4034
 
-         </property>
4035
 
-         <property name="rightMargin" >
4036
 
-          <number>0</number>
4037
 
-         </property>
4038
 
-         <property name="bottomMargin" >
4039
 
-          <number>0</number>
4040
 
-         </property>
4041
 
-         <item>
4042
 
-          <widget class="QGroupBox" name="groupBox51_2" >
4043
 
-           <property name="title" >
4044
 
-            <string>Sa&amp;mba Users</string>
4045
 
-           </property>
4046
 
-           <layout class="QVBoxLayout" >
4047
 
-            <property name="spacing" >
4048
 
-             <number>6</number>
4049
 
-            </property>
4050
 
-            <property name="leftMargin" >
4051
 
-             <number>11</number>
4052
 
-            </property>
4053
 
-            <property name="topMargin" >
4054
 
-             <number>11</number>
4055
 
-            </property>
4056
 
-            <property name="rightMargin" >
4057
 
-             <number>11</number>
4058
 
-            </property>
4059
 
-            <property name="bottomMargin" >
4060
 
-             <number>11</number>
4061
 
-            </property>
4062
 
-            <item>
4063
 
-             <widget class="K3ListView" name="sambaUsersListView" >
4064
 
-              <property name="sizePolicy" >
4065
 
-               <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
4066
 
-                <horstretch>10</horstretch>
4067
 
-                <verstretch>0</verstretch>
4068
 
-               </sizepolicy>
4069
 
-              </property>
4070
 
-              <column>
4071
 
-               <property name="text" >
4072
 
-                <string>Name</string>
4073
 
-               </property>
4074
 
-              </column>
4075
 
-              <column>
4076
 
-               <property name="text" >
4077
 
-                <string>UID</string>
4078
 
-               </property>
4079
 
-              </column>
4080
 
-              <column>
4081
 
-               <property name="text" >
4082
 
-                <string>Disabled</string>
4083
 
-               </property>
4084
 
-              </column>
4085
 
-              <column>
4086
 
-               <property name="text" >
4087
 
-                <string>No Password</string>
4088
 
-               </property>
4089
 
-              </column>
4090
 
-             </widget>
4091
 
-            </item>
4092
 
-           </layout>
4093
 
-          </widget>
4094
 
-         </item>
4095
 
-         <item>
4096
 
-          <layout class="QVBoxLayout" >
4097
 
-           <property name="spacing" >
4098
 
-            <number>6</number>
4099
 
-           </property>
4100
 
-           <property name="leftMargin" >
4101
 
-            <number>0</number>
4102
 
-           </property>
4103
 
-           <property name="topMargin" >
4104
 
-            <number>0</number>
4105
 
-           </property>
4106
 
-           <property name="rightMargin" >
4107
 
-            <number>0</number>
4108
 
-           </property>
4109
 
-           <property name="bottomMargin" >
4110
 
-            <number>0</number>
4111
 
-           </property>
4112
 
-           <item>
4113
 
-            <spacer>
4114
 
-             <property name="orientation" >
4115
 
-              <enum>Qt::Vertical</enum>
4116
 
-             </property>
4117
 
-             <property name="sizeType" >
4118
 
-              <enum>QSizePolicy::Expanding</enum>
4119
 
-             </property>
4120
 
-             <property name="sizeHint" >
4121
 
-              <size>
4122
 
-               <width>20</width>
4123
 
-               <height>30</height>
4124
 
-              </size>
4125
 
-             </property>
4126
 
-            </spacer>
4127
 
-           </item>
4128
 
-           <item>
4129
 
-            <widget class="QPushButton" name="addSambaUserBtn" >
4130
 
-             <property name="sizePolicy" >
4131
 
-              <sizepolicy vsizetype="Fixed" hsizetype="Preferred" >
4132
 
-               <horstretch>0</horstretch>
4133
 
-               <verstretch>0</verstretch>
4134
 
-              </sizepolicy>
4135
 
-             </property>
4136
 
-             <property name="text" >
4137
 
-              <string>Add</string>
4138
 
-             </property>
4139
 
-             <property name="shortcut" >
4140
 
-              <string/>
4141
 
-             </property>
4142
 
-            </widget>
4143
 
-           </item>
4144
 
-           <item>
4145
 
-            <spacer>
4146
 
-             <property name="orientation" >
4147
 
-              <enum>Qt::Vertical</enum>
4148
 
-             </property>
4149
 
-             <property name="sizeType" >
4150
 
-              <enum>QSizePolicy::Expanding</enum>
4151
 
-             </property>
4152
 
-             <property name="sizeHint" >
4153
 
-              <size>
4154
 
-               <width>20</width>
4155
 
-               <height>30</height>
4156
 
-              </size>
4157
 
-             </property>
4158
 
-            </spacer>
4159
 
-           </item>
4160
 
-           <item>
4161
 
-            <widget class="QPushButton" name="removeSambaUserBtn" >
4162
 
-             <property name="sizePolicy" >
4163
 
-              <sizepolicy vsizetype="Fixed" hsizetype="Preferred" >
4164
 
-               <horstretch>0</horstretch>
4165
 
-               <verstretch>0</verstretch>
4166
 
-              </sizepolicy>
4167
 
-             </property>
4168
 
-             <property name="text" >
4169
 
-              <string>Rem&amp;ove</string>
4170
 
-             </property>
4171
 
-            </widget>
4172
 
-           </item>
4173
 
-           <item>
4174
 
-            <spacer>
4175
 
-             <property name="orientation" >
4176
 
-              <enum>Qt::Vertical</enum>
4177
 
-             </property>
4178
 
-             <property name="sizeType" >
4179
 
-              <enum>QSizePolicy::Expanding</enum>
4180
 
-             </property>
4181
 
-             <property name="sizeHint" >
4182
 
-              <size>
4183
 
-               <width>20</width>
4184
 
-               <height>30</height>
4185
 
-              </size>
4186
 
-             </property>
4187
 
-            </spacer>
4188
 
-           </item>
4189
 
-          </layout>
4190
 
-         </item>
4191
 
-         <item>
4192
 
-          <widget class="QGroupBox" name="groupBox52_2" >
4193
 
-           <property name="title" >
4194
 
-            <string>UNI&amp;X Users</string>
4195
 
-           </property>
4196
 
-           <layout class="QVBoxLayout" >
4197
 
-            <property name="spacing" >
4198
 
-             <number>6</number>
4199
 
-            </property>
4200
 
-            <property name="leftMargin" >
4201
 
-             <number>11</number>
4202
 
-            </property>
4203
 
-            <property name="topMargin" >
4204
 
-             <number>11</number>
4205
 
-            </property>
4206
 
-            <property name="rightMargin" >
4207
 
-             <number>11</number>
4208
 
-            </property>
4209
 
-            <property name="bottomMargin" >
4210
 
-             <number>11</number>
4211
 
-            </property>
4212
 
-            <item>
4213
 
-             <widget class="K3ListView" name="unixUsersListView" >
4214
 
-              <property name="sizePolicy" >
4215
 
-               <sizepolicy vsizetype="Expanding" hsizetype="Preferred" >
4216
 
-                <horstretch>5</horstretch>
4217
 
-                <verstretch>0</verstretch>
4218
 
-               </sizepolicy>
4219
 
-              </property>
4220
 
-              <column>
4221
 
-               <property name="text" >
4222
 
-                <string>Name</string>
4223
 
-               </property>
4224
 
-              </column>
4225
 
-              <column>
4226
 
-               <property name="text" >
4227
 
-                <string>UID</string>
4228
 
-               </property>
4229
 
-              </column>
4230
 
-             </widget>
4231
 
-            </item>
4232
 
-           </layout>
4233
 
-          </widget>
4234
 
-         </item>
4235
 
-        </layout>
4236
 
-       </item>
4237
 
-       <item>
4238
 
-        <layout class="QHBoxLayout" >
4239
 
-         <property name="spacing" >
4240
 
-          <number>6</number>
4241
 
-         </property>
4242
 
-         <property name="leftMargin" >
4243
 
-          <number>0</number>
4244
 
-         </property>
4245
 
-         <property name="topMargin" >
4246
 
-          <number>0</number>
4247
 
-         </property>
4248
 
-         <property name="rightMargin" >
4249
 
-          <number>0</number>
4250
 
-         </property>
4251
 
-         <property name="bottomMargin" >
4252
 
-          <number>0</number>
4253
 
-         </property>
4254
 
-         <item>
4255
 
-          <widget class="QPushButton" name="sambaUserPasswordBtn" >
4256
 
-           <property name="text" >
4257
 
-            <string>Chan&amp;ge Password...</string>
4258
 
-           </property>
4259
 
-          </widget>
4260
 
-         </item>
4261
 
-         <item>
4262
 
-          <widget class="QPushButton" name="joinADomainBtn" >
4263
 
-           <property name="enabled" >
4264
 
-            <bool>false</bool>
4265
 
-           </property>
4266
 
-           <property name="text" >
4267
 
-            <string>&amp;Join Domain</string>
4268
 
-           </property>
4269
 
-          </widget>
4270
 
-         </item>
4271
 
-         <item>
4272
 
-          <spacer>
4273
 
-           <property name="orientation" >
4274
 
-            <enum>Qt::Horizontal</enum>
4275
 
-           </property>
4276
 
-           <property name="sizeHint" >
4277
 
-            <size>
4278
 
-             <width>40</width>
4279
 
-             <height>20</height>
4280
 
-            </size>
4281
 
-           </property>
4282
 
-          </spacer>
4283
 
-         </item>
4284
 
-        </layout>
4285
 
-       </item>
4286
 
-      </layout>
4287
 
-     </widget>
4288
 
-     <widget class="QWidget" name="advanced" >
4289
 
-      <attribute name="title" >
4290
 
-       <string>Advan&amp;ced</string>
4291
 
-      </attribute>
4292
 
-      <layout class="QVBoxLayout" >
4293
 
-       <property name="spacing" >
4294
 
-        <number>6</number>
4295
 
-       </property>
4296
 
-       <property name="leftMargin" >
4297
 
-        <number>11</number>
4298
 
-       </property>
4299
 
-       <property name="topMargin" >
4300
 
-        <number>11</number>
4301
 
-       </property>
4302
 
-       <property name="rightMargin" >
4303
 
-        <number>11</number>
4304
 
-       </property>
4305
 
-       <property name="bottomMargin" >
4306
 
-        <number>11</number>
4307
 
-       </property>
4308
 
-       <item>
4309
 
-        <widget class="QFrame" name="advancedFrame" >
4310
 
-         <property name="frameShape" >
4311
 
-          <enum>QFrame::NoFrame</enum>
4312
 
-         </property>
4313
 
-         <property name="frameShadow" >
4314
 
-          <enum>QFrame::Plain</enum>
4315
 
-         </property>
4316
 
-        </widget>
4317
 
-       </item>
4318
 
-       <item>
4319
 
-        <widget class="QFrame" name="Frame26" >
4320
 
-         <property name="frameShape" >
4321
 
-          <enum>QFrame::NoFrame</enum>
4322
 
-         </property>
4323
 
-         <property name="frameShadow" >
4324
 
-          <enum>QFrame::Plain</enum>
4325
 
-         </property>
4326
 
-        </widget>
4327
 
-       </item>
4328
 
-       <item>
4329
 
-        <layout class="QHBoxLayout" >
4330
 
-         <property name="spacing" >
4331
 
-          <number>6</number>
4332
 
-         </property>
4333
 
-         <property name="leftMargin" >
4334
 
-          <number>0</number>
4335
 
-         </property>
4336
 
-         <property name="topMargin" >
4337
 
-          <number>0</number>
4338
 
-         </property>
4339
 
-         <property name="rightMargin" >
4340
 
-          <number>0</number>
4341
 
-         </property>
4342
 
-         <property name="bottomMargin" >
4343
 
-          <number>0</number>
4344
 
-         </property>
4345
 
-         <item>
4346
 
-          <widget class="QLabel" name="advancedWarningPixLbl" >
4347
 
-           <property name="sizePolicy" >
4348
 
-            <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
4349
 
-             <horstretch>0</horstretch>
4350
 
-             <verstretch>0</verstretch>
4351
 
-            </sizepolicy>
4352
 
-           </property>
4353
 
-           <property name="scaledContents" >
4354
 
-            <bool>true</bool>
4355
 
-           </property>
4356
 
-           <property name="wordWrap" >
4357
 
-            <bool>false</bool>
4358
 
-           </property>
4359
 
-          </widget>
4360
 
-         </item>
4361
 
-         <item>
4362
 
-          <widget class="QLabel" name="TextLabel1_4" >
4363
 
-           <property name="font" >
4364
 
-            <font>
4365
 
-             <weight>75</weight>
4366
 
-             <bold>true</bold>
4367
 
-            </font>
4368
 
-           </property>
4369
 
-           <property name="text" >
4370
 
-            <string>Here you can change advanced options of the SAMBA server.
4371
 
-Only change something if you know what you are doing.</string>
4372
 
-           </property>
4373
 
-           <property name="wordWrap" >
4374
 
-            <bool>false</bool>
4375
 
-           </property>
4376
 
-          </widget>
4377
 
-         </item>
4378
 
-        </layout>
4379
 
-       </item>
4380
 
-      </layout>
4381
 
-     </widget>
4382
 
-     <widget class="QWidget" name="advancedDumpTab" >
4383
 
-      <attribute name="title" >
4384
 
-       <string>Advanced Dump</string>
4385
 
-      </attribute>
4386
 
-      <layout class="QVBoxLayout" >
4387
 
-       <property name="spacing" >
4388
 
-        <number>6</number>
4389
 
-       </property>
4390
 
-       <property name="leftMargin" >
4391
 
-        <number>11</number>
4392
 
-       </property>
4393
 
-       <property name="topMargin" >
4394
 
-        <number>11</number>
4395
 
-       </property>
4396
 
-       <property name="rightMargin" >
4397
 
-        <number>11</number>
4398
 
-       </property>
4399
 
-       <property name="bottomMargin" >
4400
 
-        <number>11</number>
4401
 
-       </property>
4402
 
-       <item>
4403
 
-        <widget class="QTabWidget" name="advancedTab" >
4404
 
-         <property name="tabShape" >
4405
 
-          <enum>QTabWidget::Rounded</enum>
4406
 
-         </property>
4407
 
-         <property name="currentIndex" >
4408
 
-          <number>0</number>
4409
 
-         </property>
4410
 
-         <widget class="QWidget" name="tab" >
4411
 
-          <attribute name="title" >
4412
 
-           <string>Security</string>
4413
 
-          </attribute>
4414
 
-          <layout class="QGridLayout" >
4415
 
-           <property name="leftMargin" >
4416
 
-            <number>0</number>
4417
 
-           </property>
4418
 
-           <property name="topMargin" >
4419
 
-            <number>0</number>
4420
 
-           </property>
4421
 
-           <property name="rightMargin" >
4422
 
-            <number>0</number>
4423
 
-           </property>
4424
 
-           <property name="bottomMargin" >
4425
 
-            <number>0</number>
4426
 
-           </property>
4427
 
-           <property name="horizontalSpacing" >
4428
 
-            <number>6</number>
4429
 
-           </property>
4430
 
-           <property name="verticalSpacing" >
4431
 
-            <number>6</number>
4432
 
-           </property>
4433
 
-           <item row="0" column="0" >
4434
 
-            <widget class="QTabWidget" name="tabWidget4" >
4435
 
-             <property name="currentIndex" >
4436
 
-              <number>0</number>
4437
 
-             </property>
4438
 
-             <widget class="QWidget" name="tab" >
4439
 
-              <attribute name="title" >
4440
 
-               <string>&amp;General</string>
4441
 
-              </attribute>
4442
 
-              <layout class="QGridLayout" >
4443
 
-               <property name="leftMargin" >
4444
 
-                <number>11</number>
4445
 
-               </property>
4446
 
-               <property name="topMargin" >
4447
 
-                <number>11</number>
4448
 
-               </property>
4449
 
-               <property name="rightMargin" >
4450
 
-                <number>11</number>
4451
 
-               </property>
4452
 
-               <property name="bottomMargin" >
4453
 
-                <number>11</number>
4454
 
-               </property>
4455
 
-               <property name="horizontalSpacing" >
4456
 
-                <number>6</number>
4457
 
-               </property>
4458
 
-               <property name="verticalSpacing" >
4459
 
-                <number>6</number>
4460
 
-               </property>
4461
 
-               <item row="2" column="0" >
4462
 
-                <spacer>
4463
 
-                 <property name="orientation" >
4464
 
-                  <enum>Qt::Vertical</enum>
4465
 
-                 </property>
4466
 
-                 <property name="sizeType" >
4467
 
-                  <enum>QSizePolicy::Expanding</enum>
4468
 
-                 </property>
4469
 
-                 <property name="sizeHint" >
4470
 
-                  <size>
4471
 
-                   <width>20</width>
4472
 
-                   <height>40</height>
4473
 
-                  </size>
4474
 
-                 </property>
4475
 
-                </spacer>
4476
 
-               </item>
4477
 
-               <item row="1" column="0" >
4478
 
-                <widget class="QGroupBox" name="groupBox66" >
4479
 
-                 <property name="title" >
4480
 
-                  <string>PAM</string>
4481
 
-                 </property>
4482
 
-                 <layout class="QVBoxLayout" >
4483
 
-                  <property name="spacing" >
4484
 
-                   <number>6</number>
4485
 
-                  </property>
4486
 
-                  <property name="leftMargin" >
4487
 
-                   <number>11</number>
4488
 
-                  </property>
4489
 
-                  <property name="topMargin" >
4490
 
-                   <number>11</number>
4491
 
-                  </property>
4492
 
-                  <property name="rightMargin" >
4493
 
-                   <number>11</number>
4494
 
-                  </property>
4495
 
-                  <property name="bottomMargin" >
4496
 
-                   <number>11</number>
4497
 
-                  </property>
4498
 
-                  <item>
4499
 
-                   <widget class="QCheckBox" name="obeyPamRestrictionsChk" >
4500
 
-                    <property name="font" >
4501
 
-                     <font/>
4502
 
-                    </property>
4503
 
-                    <property name="text" >
4504
 
-                     <string>Obey PAM restrictions</string>
4505
 
-                    </property>
4506
 
-                    <property name="shortcut" >
4507
 
-                     <string>Alt+</string>
4508
 
-                    </property>
4509
 
-                   </widget>
4510
 
-                  </item>
4511
 
-                  <item>
4512
 
-                   <widget class="QCheckBox" name="pamPasswordChangeChk" >
4513
 
-                    <property name="font" >
4514
 
-                     <font/>
4515
 
-                    </property>
4516
 
-                    <property name="text" >
4517
 
-                     <string>PAM password change</string>
4518
 
-                    </property>
4519
 
-                    <property name="shortcut" >
4520
 
-                     <string>Alt+</string>
4521
 
-                    </property>
4522
 
-                   </widget>
4523
 
-                  </item>
4524
 
-                 </layout>
4525
 
-                </widget>
4526
 
-               </item>
4527
 
-               <item row="1" column="1" >
4528
 
-                <widget class="QGroupBox" name="groupBox67" >
4529
 
-                 <property name="title" >
4530
 
-                  <string>Other Switches</string>
4531
 
-                 </property>
4532
 
-                 <layout class="QVBoxLayout" >
4533
 
-                  <property name="spacing" >
4534
 
-                   <number>6</number>
4535
 
-                  </property>
4536
 
-                  <property name="leftMargin" >
4537
 
-                   <number>11</number>
4538
 
-                  </property>
4539
 
-                  <property name="topMargin" >
4540
 
-                   <number>11</number>
4541
 
-                  </property>
4542
 
-                  <property name="rightMargin" >
4543
 
-                   <number>11</number>
4544
 
-                  </property>
4545
 
-                  <property name="bottomMargin" >
4546
 
-                   <number>11</number>
4547
 
-                  </property>
4548
 
-                  <item>
4549
 
-                   <widget class="QCheckBox" name="allowTrustedDomainsChk" >
4550
 
-                    <property name="font" >
4551
 
-                     <font/>
4552
 
-                    </property>
4553
 
-                    <property name="text" >
4554
 
-                     <string>A&amp;llow trusted domains</string>
4555
 
-                    </property>
4556
 
-                   </widget>
4557
 
-                  </item>
4558
 
-                  <item>
4559
 
-                   <widget class="QCheckBox" name="paranoidServerSecurityChk" >
4560
 
-                    <property name="text" >
4561
 
-                     <string>Paranoid server security</string>
4562
 
-                    </property>
4563
 
-                    <property name="shortcut" >
4564
 
-                     <string>Alt+</string>
4565
 
-                    </property>
4566
 
-                   </widget>
4567
 
-                  </item>
4568
 
-                 </layout>
4569
 
-                </widget>
4570
 
-               </item>
4571
 
-               <item row="0" column="0" colspan="2" >
4572
 
-                <widget class="QGroupBox" name="groupBox68" >
4573
 
-                 <property name="title" >
4574
 
-                  <string>General</string>
4575
 
-                 </property>
4576
 
-                 <layout class="QGridLayout" >
4577
 
-                  <property name="leftMargin" >
4578
 
-                   <number>11</number>
4579
 
-                  </property>
4580
 
-                  <property name="topMargin" >
4581
 
-                   <number>11</number>
4582
 
-                  </property>
4583
 
-                  <property name="rightMargin" >
4584
 
-                   <number>11</number>
4585
 
-                  </property>
4586
 
-                  <property name="bottomMargin" >
4587
 
-                   <number>11</number>
4588
 
-                  </property>
4589
 
-                  <property name="horizontalSpacing" >
4590
 
-                   <number>6</number>
4591
 
-                  </property>
4592
 
-                  <property name="verticalSpacing" >
4593
 
-                   <number>6</number>
4594
 
-                  </property>
4595
 
-                  <item row="3" column="0" >
4596
 
-                   <widget class="QLabel" name="TextLabel8_2_2_2_2_2_2" >
4597
 
-                    <property name="font" >
4598
 
-                     <font/>
4599
 
-                    </property>
4600
 
-                    <property name="text" >
4601
 
-                     <string>Auth methods:</string>
4602
 
-                    </property>
4603
 
-                    <property name="wordWrap" >
4604
 
-                     <bool>false</bool>
4605
 
-                    </property>
4606
 
-                    <property name="buddy" >
4607
 
-                     <cstring>authMethodsEdit</cstring>
4608
 
-                    </property>
4609
 
-                   </widget>
4610
 
-                  </item>
4611
 
-                  <item row="2" column="0" >
4612
 
-                   <widget class="QLabel" name="TextLabel8_2_2_2_2_2" >
4613
 
-                    <property name="font" >
4614
 
-                     <font/>
4615
 
-                    </property>
4616
 
-                    <property name="text" >
4617
 
-                     <string>Root director&amp;y:</string>
4618
 
-                    </property>
4619
 
-                    <property name="wordWrap" >
4620
 
-                     <bool>false</bool>
4621
 
-                    </property>
4622
 
-                    <property name="buddy" >
4623
 
-                     <cstring>rootDirectoryEdit</cstring>
4624
 
-                    </property>
4625
 
-                   </widget>
4626
 
-                  </item>
4627
 
-                  <item row="1" column="0" >
4628
 
-                   <widget class="QLabel" name="TextLabel1_2_5_2" >
4629
 
-                    <property name="text" >
4630
 
-                     <string>I&amp;nterfaces:</string>
4631
 
-                    </property>
4632
 
-                    <property name="wordWrap" >
4633
 
-                     <bool>false</bool>
4634
 
-                    </property>
4635
 
-                    <property name="buddy" >
4636
 
-                     <cstring>interfacesEdit</cstring>
4637
 
-                    </property>
4638
 
-                   </widget>
4639
 
-                  </item>
4640
 
-                  <item row="0" column="0" >
4641
 
-                   <widget class="QLabel" name="TextLabel2_5_2" >
4642
 
-                    <property name="sizePolicy" >
4643
 
-                     <sizepolicy vsizetype="Preferred" hsizetype="Fixed" >
4644
 
-                      <horstretch>0</horstretch>
4645
 
-                      <verstretch>0</verstretch>
4646
 
-                     </sizepolicy>
4647
 
-                    </property>
4648
 
-                    <property name="font" >
4649
 
-                     <font/>
4650
 
-                    </property>
4651
 
-                    <property name="text" >
4652
 
-                     <string>Map to guest:</string>
4653
 
-                    </property>
4654
 
-                    <property name="wordWrap" >
4655
 
-                     <bool>false</bool>
4656
 
-                    </property>
4657
 
-                    <property name="buddy" >
4658
 
-                     <cstring>mapToGuestCombo</cstring>
4659
 
-                    </property>
4660
 
-                   </widget>
4661
 
-                  </item>
4662
 
-                  <item row="1" column="3" >
4663
 
-                   <widget class="QCheckBox" name="bindInterfacesOnlyChk" >
4664
 
-                    <property name="text" >
4665
 
-                     <string>Bind interfaces only</string>
4666
 
-                    </property>
4667
 
-                    <property name="shortcut" >
4668
 
-                     <string>Alt+</string>
4669
 
-                    </property>
4670
 
-                   </widget>
4671
 
-                  </item>
4672
 
-                  <item row="0" column="1" >
4673
 
-                   <widget class="QComboBox" name="mapToGuestCombo" >
4674
 
-                    <item>
4675
 
-                     <property name="text" >
4676
 
-                      <string>Never</string>
4677
 
-                     </property>
4678
 
-                    </item>
4679
 
-                    <item>
4680
 
-                     <property name="text" >
4681
 
-                      <string>Bad User</string>
4682
 
-                     </property>
4683
 
-                    </item>
4684
 
-                    <item>
4685
 
-                     <property name="text" >
4686
 
-                      <string>Bad Password</string>
4687
 
-                     </property>
4688
 
-                    </item>
4689
 
-                   </widget>
4690
 
-                  </item>
4691
 
-                  <item row="4" column="0" >
4692
 
-                   <widget class="QLabel" name="TextLabel8_2_3_2" >
4693
 
-                    <property name="font" >
4694
 
-                     <font/>
4695
 
-                    </property>
4696
 
-                    <property name="text" >
4697
 
-                     <string>Hosts e&amp;quiv:</string>
4698
 
-                    </property>
4699
 
-                    <property name="wordWrap" >
4700
 
-                     <bool>false</bool>
4701
 
-                    </property>
4702
 
-                    <property name="buddy" >
4703
 
-                     <cstring>hostsEquivUrlRq</cstring>
4704
 
-                    </property>
4705
 
-                   </widget>
4706
 
-                  </item>
4707
 
-                  <item row="2" column="1" colspan="3" >
4708
 
-                   <widget class="QLineEdit" name="rootDirectoryEdit" >
4709
 
-                    <property name="font" >
4710
 
-                     <font>
4711
 
-                      <weight>75</weight>
4712
 
-                      <bold>true</bold>
4713
 
-                     </font>
4714
 
-                    </property>
4715
 
-                   </widget>
4716
 
-                  </item>
4717
 
-                  <item row="3" column="1" colspan="3" >
4718
 
-                   <widget class="QLineEdit" name="authMethodsEdit" >
4719
 
-                    <property name="font" >
4720
 
-                     <font>
4721
 
-                      <weight>75</weight>
4722
 
-                      <bold>true</bold>
4723
 
-                     </font>
4724
 
-                    </property>
4725
 
-                   </widget>
4726
 
-                  </item>
4727
 
-                  <item row="1" column="1" colspan="2" >
4728
 
-                   <widget class="QLineEdit" name="interfacesEdit" />
4729
 
-                  </item>
4730
 
-                  <item row="6" column="0" >
4731
 
-                   <widget class="QLabel" name="TextLabel6_7_2" >
4732
 
-                    <property name="font" >
4733
 
-                     <font/>
4734
 
-                    </property>
4735
 
-                    <property name="text" >
4736
 
-                     <string>Algorithmic rid base:</string>
4737
 
-                    </property>
4738
 
-                    <property name="wordWrap" >
4739
 
-                     <bool>false</bool>
4740
 
-                    </property>
4741
 
-                    <property name="buddy" >
4742
 
-                     <cstring>algorithmicRidBaseSpin</cstring>
4743
 
-                    </property>
4744
 
-                   </widget>
4745
 
-                  </item>
4746
 
-                  <item row="6" column="1" >
4747
 
-                   <widget class="KIntSpinBox" name="algorithmicRidBaseSpin" >
4748
 
-                    <property name="font" >
4749
 
-                     <font/>
4750
 
-                    </property>
4751
 
-                    <property name="maximum" >
4752
 
-                     <number>2147483647</number>
4753
 
-                    </property>
4754
 
-                   </widget>
4755
 
-                  </item>
4756
 
-                  <item row="4" column="1" colspan="3" >
4757
 
-                   <widget class="KUrlRequester" name="hostsEquivUrlRq" >
4758
 
-                    <property name="font" >
4759
 
-                     <font>
4760
 
-                      <weight>75</weight>
4761
 
-                      <bold>true</bold>
4762
 
-                     </font>
4763
 
-                    </property>
4764
 
-                   </widget>
4765
 
-                  </item>
4766
 
-                  <item row="5" column="0" >
4767
 
-                   <widget class="QLabel" name="TextLabel8_2_2_3_2_2" >
4768
 
-                    <property name="font" >
4769
 
-                     <font/>
4770
 
-                    </property>
4771
 
-                    <property name="text" >
4772
 
-                     <string>Private dir:</string>
4773
 
-                    </property>
4774
 
-                    <property name="wordWrap" >
4775
 
-                     <bool>false</bool>
4776
 
-                    </property>
4777
 
-                    <property name="buddy" >
4778
 
-                     <cstring>privateDirUrlRq</cstring>
4779
 
-                    </property>
4780
 
-                   </widget>
4781
 
-                  </item>
4782
 
-                  <item row="5" column="1" colspan="3" >
4783
 
-                   <widget class="KUrlRequester" name="privateDirUrlRq" >
4784
 
-                    <property name="font" >
4785
 
-                     <font/>
4786
 
-                    </property>
4787
 
-                   </widget>
4788
 
-                  </item>
4789
 
-                 </layout>
4790
 
-                </widget>
4791
 
-               </item>
4792
 
-              </layout>
4793
 
-             </widget>
4794
 
-             <widget class="QWidget" name="TabPage" >
4795
 
-              <attribute name="title" >
4796
 
-               <string>Pass&amp;word</string>
4797
 
-              </attribute>
4798
 
-              <layout class="QGridLayout" >
4799
 
-               <item rowspan="2" row="0" column="0" >
4800
 
-                <widget class="QGroupBox" name="groupBox75" >
4801
 
-                 <property name="title" >
4802
 
-                  <string>Samba Passwords</string>
4803
 
-                 </property>
4804
 
-                 <layout class="QGridLayout" >
4805
 
-                  <property name="leftMargin" >
4806
 
-                   <number>11</number>
4807
 
-                  </property>
4808
 
-                  <property name="topMargin" >
4809
 
-                   <number>11</number>
4810
 
-                  </property>
4811
 
-                  <property name="rightMargin" >
4812
 
-                   <number>11</number>
4813
 
-                  </property>
4814
 
-                  <property name="bottomMargin" >
4815
 
-                   <number>11</number>
4816
 
-                  </property>
4817
 
-                  <property name="horizontalSpacing" >
4818
 
-                   <number>6</number>
4819
 
-                  </property>
4820
 
-                  <property name="verticalSpacing" >
4821
 
-                   <number>6</number>
4822
 
-                  </property>
4823
 
-                  <item row="0" column="0" colspan="4" >
4824
 
-                   <widget class="QCheckBox" name="encryptPasswordsChk" >
4825
 
-                    <property name="font" >
4826
 
-                     <font/>
4827
 
-                    </property>
4828
 
-                    <property name="text" >
4829
 
-                     <string>E&amp;ncrypt passwords</string>
4830
 
-                    </property>
4831
 
-                    <property name="shortcut" >
4832
 
-                     <string/>
4833
 
-                    </property>
4834
 
-                   </widget>
4835
 
-                  </item>
4836
 
-                  <item row="1" column="0" >
4837
 
-                   <widget class="QLabel" name="TextLabel8_2_2_2" >
4838
 
-                    <property name="font" >
4839
 
-                     <font/>
4840
 
-                    </property>
4841
 
-                    <property name="text" >
4842
 
-                     <string>Smb passwd file:</string>
4843
 
-                    </property>
4844
 
-                    <property name="wordWrap" >
4845
 
-                     <bool>false</bool>
4846
 
-                    </property>
4847
 
-                    <property name="buddy" >
4848
 
-                     <cstring>smbPasswdFileUrlRq</cstring>
4849
 
-                    </property>
4850
 
-                   </widget>
4851
 
-                  </item>
4852
 
-                  <item row="1" column="1" colspan="3" >
4853
 
-                   <widget class="KUrlRequester" name="smbPasswdFileUrlRq" >
4854
 
-                    <property name="font" >
4855
 
-                     <font/>
4856
 
-                    </property>
4857
 
-                   </widget>
4858
 
-                  </item>
4859
 
-                  <item row="2" column="0" >
4860
 
-                   <widget class="QLabel" name="TextLabel3_5_3_2" >
4861
 
-                    <property name="font" >
4862
 
-                     <font/>
4863
 
-                    </property>
4864
 
-                    <property name="text" >
4865
 
-                     <string>Passdb bac&amp;kend:</string>
4866
 
-                    </property>
4867
 
-                    <property name="wordWrap" >
4868
 
-                     <bool>false</bool>
4869
 
-                    </property>
4870
 
-                    <property name="buddy" >
4871
 
-                     <cstring>passdbBackendEdit</cstring>
4872
 
-                    </property>
4873
 
-                   </widget>
4874
 
-                  </item>
4875
 
-                  <item row="3" column="1" colspan="3" >
4876
 
-                   <widget class="KLineEdit" name="passwdChatEdit" >
4877
 
-                    <property name="font" >
4878
 
-                     <font/>
4879
 
-                    </property>
4880
 
-                   </widget>
4881
 
-                  </item>
4882
 
-                  <item row="2" column="1" colspan="3" >
4883
 
-                   <widget class="KLineEdit" name="passdbBackendEdit" >
4884
 
-                    <property name="font" >
4885
 
-                     <font/>
4886
 
-                    </property>
4887
 
-                   </widget>
4888
 
-                  </item>
4889
 
-                  <item row="3" column="0" >
4890
 
-                   <widget class="QLabel" name="TextLabel3_5_3" >
4891
 
-                    <property name="font" >
4892
 
-                     <font/>
4893
 
-                    </property>
4894
 
-                    <property name="text" >
4895
 
-                     <string>Passwd chat:</string>
4896
 
-                    </property>
4897
 
-                    <property name="wordWrap" >
4898
 
-                     <bool>false</bool>
4899
 
-                    </property>
4900
 
-                    <property name="buddy" >
4901
 
-                     <cstring>passwdChatEdit</cstring>
4902
 
-                    </property>
4903
 
-                   </widget>
4904
 
-                  </item>
4905
 
-                  <item row="5" column="0" colspan="4" >
4906
 
-                   <widget class="QCheckBox" name="passwdChatDebugChk" >
4907
 
-                    <property name="font" >
4908
 
-                     <font/>
4909
 
-                    </property>
4910
 
-                    <property name="text" >
4911
 
-                     <string>Passwd chat debug</string>
4912
 
-                    </property>
4913
 
-                   </widget>
4914
 
-                  </item>
4915
 
-                  <item row="4" column="3" >
4916
 
-                   <widget class="QLabel" name="TextLabel5_2_3_4_3" >
4917
 
-                    <property name="text" >
4918
 
-                     <string comment="seconds" >Sec</string>
4919
 
-                    </property>
4920
 
-                    <property name="wordWrap" >
4921
 
-                     <bool>false</bool>
4922
 
-                    </property>
4923
 
-                   </widget>
4924
 
-                  </item>
4925
 
-                  <item row="4" column="0" colspan="2" >
4926
 
-                   <widget class="QLabel" name="TextLabel3_5_3_3" >
4927
 
-                    <property name="font" >
4928
 
-                     <font/>
4929
 
-                    </property>
4930
 
-                    <property name="text" >
4931
 
-                     <string>Passwd chat timeout:</string>
4932
 
-                    </property>
4933
 
-                    <property name="wordWrap" >
4934
 
-                     <bool>false</bool>
4935
 
-                    </property>
4936
 
-                    <property name="buddy" >
4937
 
-                     <cstring>passwdChatEdit</cstring>
4938
 
-                    </property>
4939
 
-                   </widget>
4940
 
-                  </item>
4941
 
-                  <item row="4" column="2" >
4942
 
-                   <widget class="KIntSpinBox" name="passwdChatTimeoutSpin" >
4943
 
-                    <property name="maximum" >
4944
 
-                     <number>2147483647</number>
4945
 
-                    </property>
4946
 
-                   </widget>
4947
 
-                  </item>
4948
 
-                 </layout>
4949
 
-                </widget>
4950
 
-               </item>
4951
 
-               <item row="0" column="1" >
4952
 
-                <widget class="QGroupBox" name="groupBox74" >
4953
 
-                 <property name="title" >
4954
 
-                  <string>Password</string>
4955
 
-                 </property>
4956
 
-                 <layout class="QGridLayout" >
4957
 
-                  <item row="0" column="0" >
4958
 
-                   <widget class="QCheckBox" name="nullPasswordsChk" >
4959
 
-                    <property name="font" >
4960
 
-                     <font/>
4961
 
-                    </property>
4962
 
-                    <property name="text" >
4963
 
-                     <string>Nu&amp;ll passwords</string>
4964
 
-                    </property>
4965
 
-                   </widget>
4966
 
-                  </item>
4967
 
-                  <item row="1" column="0" >
4968
 
-                   <widget class="QLabel" name="TextLabel6_7" >
4969
 
-                    <property name="font" >
4970
 
-                     <font/>
4971
 
-                    </property>
4972
 
-                    <property name="text" >
4973
 
-                     <string>Password level:</string>
4974
 
-                    </property>
4975
 
-                    <property name="wordWrap" >
4976
 
-                     <bool>false</bool>
4977
 
-                    </property>
4978
 
-                    <property name="buddy" >
4979
 
-                     <cstring>passwordLevelSpin</cstring>
4980
 
-                    </property>
4981
 
-                   </widget>
4982
 
-                  </item>
4983
 
-                  <item row="1" column="1" >
4984
 
-                   <widget class="KIntSpinBox" name="passwordLevelSpin" >
4985
 
-                    <property name="font" >
4986
 
-                     <font/>
4987
 
-                    </property>
4988
 
-                    <property name="maximum" >
4989
 
-                     <number>2147483647</number>
4990
 
-                    </property>
4991
 
-                   </widget>
4992
 
-                  </item>
4993
 
-                  <item row="2" column="0" >
4994
 
-                   <widget class="QLabel" name="TextLabel6_3_2" >
4995
 
-                    <property name="font" >
4996
 
-                     <font/>
4997
 
-                    </property>
4998
 
-                    <property name="text" >
4999
 
-                     <string>Min password length:</string>
5000
 
-                    </property>
5001
 
-                    <property name="wordWrap" >
5002
 
-                     <bool>false</bool>
5003
 
-                    </property>
5004
 
-                    <property name="buddy" >
5005
 
-                     <cstring>minPasswdLengthSpin</cstring>
5006
 
-                    </property>
5007
 
-                   </widget>
5008
 
-                  </item>
5009
 
-                  <item row="2" column="1" >
5010
 
-                   <widget class="KIntSpinBox" name="minPasswdLengthSpin" >
5011
 
-                    <property name="font" >
5012
 
-                     <font/>
5013
 
-                    </property>
5014
 
-                    <property name="maximum" >
5015
 
-                     <number>2147483647</number>
5016
 
-                    </property>
5017
 
-                   </widget>
5018
 
-                  </item>
5019
 
-                  <item row="3" column="0" >
5020
 
-                   <widget class="QLabel" name="TextLabel1" >
5021
 
-                    <property name="text" >
5022
 
-                     <string>Machine password timeout:</string>
5023
 
-                    </property>
5024
 
-                    <property name="wordWrap" >
5025
 
-                     <bool>false</bool>
5026
 
-                    </property>
5027
 
-                    <property name="buddy" >
5028
 
-                     <cstring>machinePasswordTimeoutSpin</cstring>
5029
 
-                    </property>
5030
 
-                   </widget>
5031
 
-                  </item>
5032
 
-                  <item row="3" column="1" >
5033
 
-                   <widget class="KIntSpinBox" name="machinePasswordTimeoutSpin" >
5034
 
-                    <property name="maximum" >
5035
 
-                     <number>2147483647</number>
5036
 
-                    </property>
5037
 
-                   </widget>
5038
 
-                  </item>
5039
 
-                  <item row="3" column="2" >
5040
 
-                   <widget class="QLabel" name="TextLabel5_2_3_4_2" >
5041
 
-                    <property name="text" >
5042
 
-                     <string comment="seconds" >Sec</string>
5043
 
-                    </property>
5044
 
-                    <property name="wordWrap" >
5045
 
-                     <bool>false</bool>
5046
 
-                    </property>
5047
 
-                   </widget>
5048
 
-                  </item>
5049
 
-                  <item row="3" column="3" >
5050
 
-                   <spacer>
5051
 
-                    <property name="orientation" >
5052
 
-                     <enum>Qt::Horizontal</enum>
5053
 
-                    </property>
5054
 
-                    <property name="sizeHint" >
5055
 
-                     <size>
5056
 
-                      <width>40</width>
5057
 
-                      <height>20</height>
5058
 
-                     </size>
5059
 
-                    </property>
5060
 
-                   </spacer>
5061
 
-                  </item>
5062
 
-                 </layout>
5063
 
-                </widget>
5064
 
-               </item>
5065
 
-               <item row="1" column="1" >
5066
 
-                <widget class="QGroupBox" name="groupBox73" >
5067
 
-                 <property name="title" >
5068
 
-                  <string>Migration</string>
5069
 
-                 </property>
5070
 
-                 <layout class="QVBoxLayout" >
5071
 
-                  <property name="spacing" >
5072
 
-                   <number>6</number>
5073
 
-                  </property>
5074
 
-                  <property name="leftMargin" >
5075
 
-                   <number>11</number>
5076
 
-                  </property>
5077
 
-                  <property name="topMargin" >
5078
 
-                   <number>11</number>
5079
 
-                  </property>
5080
 
-                  <property name="rightMargin" >
5081
 
-                   <number>11</number>
5082
 
-                  </property>
5083
 
-                  <property name="bottomMargin" >
5084
 
-                   <number>11</number>
5085
 
-                  </property>
5086
 
-                  <item>
5087
 
-                   <widget class="QCheckBox" name="updateEncryptedChk" >
5088
 
-                    <property name="font" >
5089
 
-                     <font/>
5090
 
-                    </property>
5091
 
-                    <property name="text" >
5092
 
-                     <string>Update encr&amp;ypted</string>
5093
 
-                    </property>
5094
 
-                   </widget>
5095
 
-                  </item>
5096
 
-                 </layout>
5097
 
-                </widget>
5098
 
-               </item>
5099
 
-               <item row="2" column="0" colspan="2" >
5100
 
-                <widget class="QGroupBox" name="groupBox76" >
5101
 
-                 <property name="title" >
5102
 
-                  <string>UNIX Passwords</string>
5103
 
-                 </property>
5104
 
-                 <layout class="QGridLayout" >
5105
 
-                  <property name="leftMargin" >
5106
 
-                   <number>11</number>
5107
 
-                  </property>
5108
 
-                  <property name="topMargin" >
5109
 
-                   <number>11</number>
5110
 
-                  </property>
5111
 
-                  <property name="rightMargin" >
5112
 
-                   <number>11</number>
5113
 
-                  </property>
5114
 
-                  <property name="bottomMargin" >
5115
 
-                   <number>11</number>
5116
 
-                  </property>
5117
 
-                  <property name="horizontalSpacing" >
5118
 
-                   <number>6</number>
5119
 
-                  </property>
5120
 
-                  <property name="verticalSpacing" >
5121
 
-                   <number>6</number>
5122
 
-                  </property>
5123
 
-                  <item row="0" column="0" >
5124
 
-                   <widget class="QLabel" name="TextLabel8_2_2_3_2" >
5125
 
-                    <property name="font" >
5126
 
-                     <font/>
5127
 
-                    </property>
5128
 
-                    <property name="text" >
5129
 
-                     <string>Passwd program:</string>
5130
 
-                    </property>
5131
 
-                    <property name="wordWrap" >
5132
 
-                     <bool>false</bool>
5133
 
-                    </property>
5134
 
-                    <property name="buddy" >
5135
 
-                     <cstring>passwdProgramUrlRq</cstring>
5136
 
-                    </property>
5137
 
-                   </widget>
5138
 
-                  </item>
5139
 
-                  <item row="0" column="1" >
5140
 
-                   <widget class="KUrlRequester" name="passwdProgramUrlRq" >
5141
 
-                    <property name="font" >
5142
 
-                     <font/>
5143
 
-                    </property>
5144
 
-                   </widget>
5145
 
-                  </item>
5146
 
-                  <item row="1" column="0" colspan="2" >
5147
 
-                   <widget class="QCheckBox" name="unixPasswordSyncChk" >
5148
 
-                    <property name="font" >
5149
 
-                     <font/>
5150
 
-                    </property>
5151
 
-                    <property name="text" >
5152
 
-                     <string>UNI&amp;X password sync</string>
5153
 
-                    </property>
5154
 
-                   </widget>
5155
 
-                  </item>
5156
 
-                 </layout>
5157
 
-                </widget>
5158
 
-               </item>
5159
 
-               <item row="3" column="0" >
5160
 
-                <spacer>
5161
 
-                 <property name="orientation" >
5162
 
-                  <enum>Qt::Vertical</enum>
5163
 
-                 </property>
5164
 
-                 <property name="sizeType" >
5165
 
-                  <enum>QSizePolicy::Expanding</enum>
5166
 
-                 </property>
5167
 
-                 <property name="sizeHint" >
5168
 
-                  <size>
5169
 
-                   <width>20</width>
5170
 
-                   <height>40</height>
5171
 
-                  </size>
5172
 
-                 </property>
5173
 
-                </spacer>
5174
 
-               </item>
5175
 
-              </layout>
5176
 
-             </widget>
5177
 
-             <widget class="QWidget" name="TabPage" >
5178
 
-              <attribute name="title" >
5179
 
-               <string>Userna&amp;me</string>
5180
 
-              </attribute>
5181
 
-              <layout class="QGridLayout" >
5182
 
-               <property name="leftMargin" >
5183
 
-                <number>11</number>
5184
 
-               </property>
5185
 
-               <property name="topMargin" >
5186
 
-                <number>11</number>
5187
 
-               </property>
5188
 
-               <property name="rightMargin" >
5189
 
-                <number>11</number>
5190
 
-               </property>
5191
 
-               <property name="bottomMargin" >
5192
 
-                <number>11</number>
5193
 
-               </property>
5194
 
-               <property name="horizontalSpacing" >
5195
 
-                <number>6</number>
5196
 
-               </property>
5197
 
-               <property name="verticalSpacing" >
5198
 
-                <number>6</number>
5199
 
-               </property>
5200
 
-               <item row="1" column="0" >
5201
 
-                <widget class="QLabel" name="TextLabel3_5_2_2" >
5202
 
-                 <property name="font" >
5203
 
-                  <font/>
5204
 
-                 </property>
5205
 
-                 <property name="text" >
5206
 
-                  <string>User&amp;name map:</string>
5207
 
-                 </property>
5208
 
-                 <property name="wordWrap" >
5209
 
-                  <bool>false</bool>
5210
 
-                 </property>
5211
 
-                 <property name="buddy" >
5212
 
-                  <cstring>usernameMapUrlRq</cstring>
5213
 
-                 </property>
5214
 
-                </widget>
5215
 
-               </item>
5216
 
-               <item row="1" column="1" colspan="2" >
5217
 
-                <widget class="KUrlRequester" name="usernameMapUrlRq" >
5218
 
-                 <property name="font" >
5219
 
-                  <font/>
5220
 
-                 </property>
5221
 
-                </widget>
5222
 
-               </item>
5223
 
-               <item row="0" column="0" >
5224
 
-                <widget class="QLabel" name="TextLabel6_4_2" >
5225
 
-                 <property name="font" >
5226
 
-                  <font/>
5227
 
-                 </property>
5228
 
-                 <property name="text" >
5229
 
-                  <string>Username &amp;level:</string>
5230
 
-                 </property>
5231
 
-                 <property name="wordWrap" >
5232
 
-                  <bool>false</bool>
5233
 
-                 </property>
5234
 
-                 <property name="buddy" >
5235
 
-                  <cstring>usernameLevelSpin</cstring>
5236
 
-                 </property>
5237
 
-                </widget>
5238
 
-               </item>
5239
 
-               <item row="0" column="1" >
5240
 
-                <widget class="KIntSpinBox" name="usernameLevelSpin" >
5241
 
-                 <property name="font" >
5242
 
-                  <font/>
5243
 
-                 </property>
5244
 
-                 <property name="maximum" >
5245
 
-                  <number>255</number>
5246
 
-                 </property>
5247
 
-                </widget>
5248
 
-               </item>
5249
 
-               <item row="2" column="0" colspan="2" >
5250
 
-                <widget class="QCheckBox" name="hideLocalUsersChk" >
5251
 
-                 <property name="font" >
5252
 
-                  <font/>
5253
 
-                 </property>
5254
 
-                 <property name="text" >
5255
 
-                  <string>Hide local users</string>
5256
 
-                 </property>
5257
 
-                </widget>
5258
 
-               </item>
5259
 
-               <item row="3" column="0" colspan="2" >
5260
 
-                <widget class="QCheckBox" name="restrictAnonymousChk" >
5261
 
-                 <property name="font" >
5262
 
-                  <font/>
5263
 
-                 </property>
5264
 
-                 <property name="text" >
5265
 
-                  <string>Restrict anon&amp;ymous</string>
5266
 
-                 </property>
5267
 
-                </widget>
5268
 
-               </item>
5269
 
-               <item row="4" column="0" colspan="3" >
5270
 
-                <widget class="QCheckBox" name="useRhostsChk" >
5271
 
-                 <property name="font" >
5272
 
-                  <font/>
5273
 
-                 </property>
5274
 
-                 <property name="text" >
5275
 
-                  <string>Use rhosts</string>
5276
 
-                 </property>
5277
 
-                </widget>
5278
 
-               </item>
5279
 
-               <item row="5" column="0" >
5280
 
-                <spacer>
5281
 
-                 <property name="orientation" >
5282
 
-                  <enum>Qt::Vertical</enum>
5283
 
-                 </property>
5284
 
-                 <property name="sizeType" >
5285
 
-                  <enum>QSizePolicy::Expanding</enum>
5286
 
-                 </property>
5287
 
-                 <property name="sizeHint" >
5288
 
-                  <size>
5289
 
-                   <width>20</width>
5290
 
-                   <height>170</height>
5291
 
-                  </size>
5292
 
-                 </property>
5293
 
-                </spacer>
5294
 
-               </item>
5295
 
-               <item row="0" column="2" >
5296
 
-                <spacer>
5297
 
-                 <property name="orientation" >
5298
 
-                  <enum>Qt::Horizontal</enum>
5299
 
-                 </property>
5300
 
-                 <property name="sizeHint" >
5301
 
-                  <size>
5302
 
-                   <width>40</width>
5303
 
-                   <height>20</height>
5304
 
-                  </size>
5305
 
-                 </property>
5306
 
-                </spacer>
5307
 
-               </item>
5308
 
-              </layout>
5309
 
-             </widget>
5310
 
-             <widget class="QWidget" name="tab" >
5311
 
-              <attribute name="title" >
5312
 
-               <string>Authenticati&amp;on</string>
5313
 
-              </attribute>
5314
 
-              <layout class="QGridLayout" >
5315
 
-               <property name="leftMargin" >
5316
 
-                <number>11</number>
5317
 
-               </property>
5318
 
-               <property name="topMargin" >
5319
 
-                <number>11</number>
5320
 
-               </property>
5321
 
-               <property name="rightMargin" >
5322
 
-                <number>11</number>
5323
 
-               </property>
5324
 
-               <property name="bottomMargin" >
5325
 
-                <number>11</number>
5326
 
-               </property>
5327
 
-               <property name="horizontalSpacing" >
5328
 
-                <number>6</number>
5329
 
-               </property>
5330
 
-               <property name="verticalSpacing" >
5331
 
-                <number>6</number>
5332
 
-               </property>
5333
 
-               <item row="0" column="1" >
5334
 
-                <widget class="QGroupBox" name="groupBox13" >
5335
 
-                 <property name="title" >
5336
 
-                  <string>Client</string>
5337
 
-                 </property>
5338
 
-                 <layout class="QGridLayout" >
5339
 
-                  <property name="leftMargin" >
5340
 
-                   <number>11</number>
5341
 
-                  </property>
5342
 
-                  <property name="topMargin" >
5343
 
-                   <number>11</number>
5344
 
-                  </property>
5345
 
-                  <property name="rightMargin" >
5346
 
-                   <number>11</number>
5347
 
-                  </property>
5348
 
-                  <property name="bottomMargin" >
5349
 
-                   <number>11</number>
5350
 
-                  </property>
5351
 
-                  <property name="horizontalSpacing" >
5352
 
-                   <number>6</number>
5353
 
-                  </property>
5354
 
-                  <property name="verticalSpacing" >
5355
 
-                   <number>6</number>
5356
 
-                  </property>
5357
 
-                  <item row="5" column="0" >
5358
 
-                   <widget class="QLabel" name="TextLabel3_5_2_3" >
5359
 
-                    <property name="text" >
5360
 
-                     <string>C&amp;lient signing:</string>
5361
 
-                    </property>
5362
 
-                    <property name="wordWrap" >
5363
 
-                     <bool>false</bool>
5364
 
-                    </property>
5365
 
-                    <property name="buddy" >
5366
 
-                     <cstring>clientSigningCombo</cstring>
5367
 
-                    </property>
5368
 
-                   </widget>
5369
 
-                  </item>
5370
 
-                  <item row="1" column="0" colspan="3" >
5371
 
-                   <widget class="QCheckBox" name="clientPlaintextAuthChk" >
5372
 
-                    <property name="font" >
5373
 
-                     <font/>
5374
 
-                    </property>
5375
 
-                    <property name="text" >
5376
 
-                     <string>Client plainte&amp;xt authentication</string>
5377
 
-                    </property>
5378
 
-                   </widget>
5379
 
-                  </item>
5380
 
-                  <item row="0" column="0" colspan="3" >
5381
 
-                   <widget class="QCheckBox" name="clientLanmanAuthChk" >
5382
 
-                    <property name="font" >
5383
 
-                     <font/>
5384
 
-                    </property>
5385
 
-                    <property name="text" >
5386
 
-                     <string>Client lanman authentication</string>
5387
 
-                    </property>
5388
 
-                   </widget>
5389
 
-                  </item>
5390
 
-                  <item row="5" column="1" >
5391
 
-                   <widget class="QComboBox" name="clientSigningCombo" >
5392
 
-                    <item>
5393
 
-                     <property name="text" >
5394
 
-                      <string>Auto</string>
5395
 
-                     </property>
5396
 
-                    </item>
5397
 
-                    <item>
5398
 
-                     <property name="text" >
5399
 
-                      <string>Mandatory</string>
5400
 
-                     </property>
5401
 
-                    </item>
5402
 
-                    <item>
5403
 
-                     <property name="text" >
5404
 
-                      <string>Disabled</string>
5405
 
-                     </property>
5406
 
-                    </item>
5407
 
-                   </widget>
5408
 
-                  </item>
5409
 
-                  <item row="4" column="1" >
5410
 
-                   <widget class="QComboBox" name="clientSchannelCombo" >
5411
 
-                    <item>
5412
 
-                     <property name="text" >
5413
 
-                      <string>Yes</string>
5414
 
-                     </property>
5415
 
-                    </item>
5416
 
-                    <item>
5417
 
-                     <property name="text" >
5418
 
-                      <string>No</string>
5419
 
-                     </property>
5420
 
-                    </item>
5421
 
-                    <item>
5422
 
-                     <property name="text" >
5423
 
-                      <string>Auto</string>
5424
 
-                     </property>
5425
 
-                    </item>
5426
 
-                   </widget>
5427
 
-                  </item>
5428
 
-                  <item row="4" column="0" >
5429
 
-                   <widget class="QLabel" name="TextLabel3_5_2" >
5430
 
-                    <property name="text" >
5431
 
-                     <string>Client channel:</string>
5432
 
-                    </property>
5433
 
-                    <property name="wordWrap" >
5434
 
-                     <bool>false</bool>
5435
 
-                    </property>
5436
 
-                    <property name="buddy" >
5437
 
-                     <cstring>clientSchannelCombo</cstring>
5438
 
-                    </property>
5439
 
-                   </widget>
5440
 
-                  </item>
5441
 
-                  <item row="3" column="0" colspan="3" >
5442
 
-                   <widget class="QCheckBox" name="clientUseSpnegoChk" >
5443
 
-                    <property name="font" >
5444
 
-                     <font/>
5445
 
-                    </property>
5446
 
-                    <property name="text" >
5447
 
-                     <string>Client use spnego</string>
5448
 
-                    </property>
5449
 
-                   </widget>
5450
 
-                  </item>
5451
 
-                  <item row="2" column="0" colspan="3" >
5452
 
-                   <widget class="QCheckBox" name="clientNTLMv2AuthChk" >
5453
 
-                    <property name="font" >
5454
 
-                     <font/>
5455
 
-                    </property>
5456
 
-                    <property name="text" >
5457
 
-                     <string>Client NTLMv&amp;2 authentication</string>
5458
 
-                    </property>
5459
 
-                   </widget>
5460
 
-                  </item>
5461
 
-                 </layout>
5462
 
-                </widget>
5463
 
-               </item>
5464
 
-               <item row="0" column="0" >
5465
 
-                <widget class="QGroupBox" name="groupBox13_2" >
5466
 
-                 <property name="title" >
5467
 
-                  <string>Server</string>
5468
 
-                 </property>
5469
 
-                 <layout class="QGridLayout" >
5470
 
-                  <property name="leftMargin" >
5471
 
-                   <number>11</number>
5472
 
-                  </property>
5473
 
-                  <property name="topMargin" >
5474
 
-                   <number>11</number>
5475
 
-                  </property>
5476
 
-                  <property name="rightMargin" >
5477
 
-                   <number>11</number>
5478
 
-                  </property>
5479
 
-                  <property name="bottomMargin" >
5480
 
-                   <number>11</number>
5481
 
-                  </property>
5482
 
-                  <property name="horizontalSpacing" >
5483
 
-                   <number>6</number>
5484
 
-                  </property>
5485
 
-                  <property name="verticalSpacing" >
5486
 
-                   <number>6</number>
5487
 
-                  </property>
5488
 
-                  <item row="5" column="0" >
5489
 
-                   <widget class="QLabel" name="TextLabel3_5_2_3_3" >
5490
 
-                    <property name="text" >
5491
 
-                     <string>Server signing:</string>
5492
 
-                    </property>
5493
 
-                    <property name="wordWrap" >
5494
 
-                     <bool>false</bool>
5495
 
-                    </property>
5496
 
-                    <property name="buddy" >
5497
 
-                     <cstring>serverSigningCombo</cstring>
5498
 
-                    </property>
5499
 
-                   </widget>
5500
 
-                  </item>
5501
 
-                  <item row="0" column="0" colspan="3" >
5502
 
-                   <widget class="QCheckBox" name="lanmanAuthChk" >
5503
 
-                    <property name="font" >
5504
 
-                     <font/>
5505
 
-                    </property>
5506
 
-                    <property name="text" >
5507
 
-                     <string>Lanman authentication</string>
5508
 
-                    </property>
5509
 
-                   </widget>
5510
 
-                  </item>
5511
 
-                  <item row="5" column="1" >
5512
 
-                   <widget class="QComboBox" name="serverSigningCombo" >
5513
 
-                    <item>
5514
 
-                     <property name="text" >
5515
 
-                      <string>Auto</string>
5516
 
-                     </property>
5517
 
-                    </item>
5518
 
-                    <item>
5519
 
-                     <property name="text" >
5520
 
-                      <string>Mandatory</string>
5521
 
-                     </property>
5522
 
-                    </item>
5523
 
-                    <item>
5524
 
-                     <property name="text" >
5525
 
-                      <string>Disabled</string>
5526
 
-                     </property>
5527
 
-                    </item>
5528
 
-                   </widget>
5529
 
-                  </item>
5530
 
-                  <item row="4" column="1" >
5531
 
-                   <widget class="QComboBox" name="serverSchannelCombo" >
5532
 
-                    <item>
5533
 
-                     <property name="text" >
5534
 
-                      <string>Yes</string>
5535
 
-                     </property>
5536
 
-                    </item>
5537
 
-                    <item>
5538
 
-                     <property name="text" >
5539
 
-                      <string>No</string>
5540
 
-                     </property>
5541
 
-                    </item>
5542
 
-                    <item>
5543
 
-                     <property name="text" >
5544
 
-                      <string>Auto</string>
5545
 
-                     </property>
5546
 
-                    </item>
5547
 
-                   </widget>
5548
 
-                  </item>
5549
 
-                  <item row="4" column="0" >
5550
 
-                   <widget class="QLabel" name="TextLabel3_5_2_5" >
5551
 
-                    <property name="text" >
5552
 
-                     <string>Server channel:</string>
5553
 
-                    </property>
5554
 
-                    <property name="wordWrap" >
5555
 
-                     <bool>false</bool>
5556
 
-                    </property>
5557
 
-                    <property name="buddy" >
5558
 
-                     <cstring>serverSchannelCombo</cstring>
5559
 
-                    </property>
5560
 
-                   </widget>
5561
 
-                  </item>
5562
 
-                  <item row="3" column="0" colspan="3" >
5563
 
-                   <widget class="QCheckBox" name="useSpnegoChk" >
5564
 
-                    <property name="font" >
5565
 
-                     <font/>
5566
 
-                    </property>
5567
 
-                    <property name="text" >
5568
 
-                     <string>Use sp&amp;nego</string>
5569
 
-                    </property>
5570
 
-                   </widget>
5571
 
-                  </item>
5572
 
-                  <item row="2" column="0" colspan="3" >
5573
 
-                   <widget class="QCheckBox" name="ntlmAuthChk" >
5574
 
-                    <property name="font" >
5575
 
-                     <font/>
5576
 
-                    </property>
5577
 
-                    <property name="text" >
5578
 
-                     <string>NTLM authentication</string>
5579
 
-                    </property>
5580
 
-                   </widget>
5581
 
-                  </item>
5582
 
-                 </layout>
5583
 
-                </widget>
5584
 
-               </item>
5585
 
-               <item row="1" column="0" >
5586
 
-                <spacer>
5587
 
-                 <property name="orientation" >
5588
 
-                  <enum>Qt::Vertical</enum>
5589
 
-                 </property>
5590
 
-                 <property name="sizeType" >
5591
 
-                  <enum>QSizePolicy::Expanding</enum>
5592
 
-                 </property>
5593
 
-                 <property name="sizeHint" >
5594
 
-                  <size>
5595
 
-                   <width>20</width>
5596
 
-                   <height>20</height>
5597
 
-                  </size>
5598
 
-                 </property>
5599
 
-                </spacer>
5600
 
-               </item>
5601
 
-              </layout>
5602
 
-             </widget>
5603
 
-            </widget>
5604
 
-           </item>
5605
 
-          </layout>
5606
 
-         </widget>
5607
 
-         <widget class="QWidget" name="tab" >
5608
 
-          <attribute name="title" >
5609
 
-           <string>Logging</string>
5610
 
-          </attribute>
5611
 
-          <layout class="QVBoxLayout" >
5612
 
-           <property name="spacing" >
5613
 
-            <number>6</number>
5614
 
-           </property>
5615
 
-           <property name="leftMargin" >
5616
 
-            <number>0</number>
5617
 
-           </property>
5618
 
-           <property name="topMargin" >
5619
 
-            <number>0</number>
5620
 
-           </property>
5621
 
-           <property name="rightMargin" >
5622
 
-            <number>0</number>
5623
 
-           </property>
5624
 
-           <property name="bottomMargin" >
5625
 
-            <number>0</number>
5626
 
-           </property>
5627
 
-           <item>
5628
 
-            <widget class="QFrame" name="loggingFrame" >
5629
 
-             <property name="sizePolicy" >
5630
 
-              <sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
5631
 
-               <horstretch>100</horstretch>
5632
 
-               <verstretch>0</verstretch>
5633
 
-              </sizepolicy>
5634
 
-             </property>
5635
 
-             <property name="frameShape" >
5636
 
-              <enum>QFrame::NoFrame</enum>
5637
 
-             </property>
5638
 
-             <property name="frameShadow" >
5639
 
-              <enum>QFrame::Plain</enum>
5640
 
-             </property>
5641
 
-             <layout class="QVBoxLayout" >
5642
 
-              <property name="spacing" >
5643
 
-               <number>6</number>
5644
 
-              </property>
5645
 
-              <property name="leftMargin" >
5646
 
-               <number>0</number>
5647
 
-              </property>
5648
 
-              <property name="topMargin" >
5649
 
-               <number>0</number>
5650
 
-              </property>
5651
 
-              <property name="rightMargin" >
5652
 
-               <number>0</number>
5653
 
-              </property>
5654
 
-              <property name="bottomMargin" >
5655
 
-               <number>0</number>
5656
 
-              </property>
5657
 
-              <item>
5658
 
-               <widget class="QGroupBox" name="groupBox36_2" >
5659
 
-                <property name="title" >
5660
 
-                 <string>General</string>
5661
 
-                </property>
5662
 
-                <layout class="QGridLayout" >
5663
 
-                 <property name="leftMargin" >
5664
 
-                  <number>11</number>
5665
 
-                 </property>
5666
 
-                 <property name="topMargin" >
5667
 
-                  <number>11</number>
5668
 
-                 </property>
5669
 
-                 <property name="rightMargin" >
5670
 
-                  <number>11</number>
5671
 
-                 </property>
5672
 
-                 <property name="bottomMargin" >
5673
 
-                  <number>11</number>
5674
 
-                 </property>
5675
 
-                 <property name="horizontalSpacing" >
5676
 
-                  <number>6</number>
5677
 
-                 </property>
5678
 
-                 <property name="verticalSpacing" >
5679
 
-                  <number>6</number>
5680
 
-                 </property>
5681
 
-                 <item row="0" column="0" >
5682
 
-                  <widget class="QLabel" name="TextLabel4_3_2_2_2_2" >
5683
 
-                   <property name="text" >
5684
 
-                    <string>L&amp;og file:</string>
5685
 
-                   </property>
5686
 
-                   <property name="wordWrap" >
5687
 
-                    <bool>false</bool>
5688
 
-                   </property>
5689
 
-                   <property name="buddy" >
5690
 
-                    <cstring>logFileUrlRq</cstring>
5691
 
-                   </property>
5692
 
-                  </widget>
5693
 
-                 </item>
5694
 
-                 <item row="0" column="1" colspan="3" >
5695
 
-                  <widget class="KUrlRequester" name="logFileUrlRq" />
5696
 
-                 </item>
5697
 
-                 <item row="2" column="2" >
5698
 
-                  <widget class="QLabel" name="TextLabel3_3_2_2_2_2" >
5699
 
-                   <property name="text" >
5700
 
-                    <string>kB</string>
5701
 
-                   </property>
5702
 
-                   <property name="wordWrap" >
5703
 
-                    <bool>false</bool>
5704
 
-                   </property>
5705
 
-                  </widget>
5706
 
-                 </item>
5707
 
-                 <item row="2" column="0" >
5708
 
-                  <widget class="QLabel" name="TextLabel2_2_2_2_2_2" >
5709
 
-                   <property name="text" >
5710
 
-                    <string>Ma&amp;x log size:</string>
5711
 
-                   </property>
5712
 
-                   <property name="wordWrap" >
5713
 
-                    <bool>false</bool>
5714
 
-                   </property>
5715
 
-                   <property name="buddy" >
5716
 
-                    <cstring>maxLogSizeSpin</cstring>
5717
 
-                   </property>
5718
 
-                  </widget>
5719
 
-                 </item>
5720
 
-                 <item row="3" column="0" >
5721
 
-                  <widget class="QLabel" name="TextLabel5_3_2_2_2_2" >
5722
 
-                   <property name="text" >
5723
 
-                    <string>S&amp;yslog:</string>
5724
 
-                   </property>
5725
 
-                   <property name="wordWrap" >
5726
 
-                    <bool>false</bool>
5727
 
-                   </property>
5728
 
-                   <property name="buddy" >
5729
 
-                    <cstring>syslogSpin</cstring>
5730
 
-                   </property>
5731
 
-                  </widget>
5732
 
-                 </item>
5733
 
-                 <item row="2" column="1" >
5734
 
-                  <widget class="KIntSpinBox" name="maxLogSizeSpin" >
5735
 
-                   <property name="maximum" >
5736
 
-                    <number>2147483647</number>
5737
 
-                   </property>
5738
 
-                  </widget>
5739
 
-                 </item>
5740
 
-                 <item row="1" column="0" >
5741
 
-                  <widget class="QLabel" name="TextLabel6_2_2_2_2_2" >
5742
 
-                   <property name="sizePolicy" >
5743
 
-                    <sizepolicy vsizetype="Preferred" hsizetype="Fixed" >
5744
 
-                     <horstretch>0</horstretch>
5745
 
-                     <verstretch>0</verstretch>
5746
 
-                    </sizepolicy>
5747
 
-                   </property>
5748
 
-                   <property name="minimumSize" >
5749
 
-                    <size>
5750
 
-                     <width>76</width>
5751
 
-                     <height>0</height>
5752
 
-                    </size>
5753
 
-                   </property>
5754
 
-                   <property name="text" >
5755
 
-                    <string>Log &amp;level:</string>
5756
 
-                   </property>
5757
 
-                   <property name="wordWrap" >
5758
 
-                    <bool>false</bool>
5759
 
-                   </property>
5760
 
-                   <property name="buddy" >
5761
 
-                    <cstring>logLevelEdit</cstring>
5762
 
-                   </property>
5763
 
-                  </widget>
5764
 
-                 </item>
5765
 
-                 <item row="1" column="1" colspan="3" >
5766
 
-                  <widget class="QLineEdit" name="logLevelEdit" />
5767
 
-                 </item>
5768
 
-                 <item row="3" column="1" >
5769
 
-                  <widget class="KIntSpinBox" name="syslogSpin" >
5770
 
-                   <property name="maximum" >
5771
 
-                    <number>4</number>
5772
 
-                   </property>
5773
 
-                  </widget>
5774
 
-                 </item>
5775
 
-                </layout>
5776
 
-               </widget>
5777
 
-              </item>
5778
 
-              <item>
5779
 
-               <widget class="QGroupBox" name="groupBox48" >
5780
 
-                <property name="title" >
5781
 
-                 <string>S&amp;witches</string>
5782
 
-                </property>
5783
 
-                <layout class="QVBoxLayout" >
5784
 
-                 <property name="spacing" >
5785
 
-                  <number>6</number>
5786
 
-                 </property>
5787
 
-                 <property name="leftMargin" >
5788
 
-                  <number>11</number>
5789
 
-                 </property>
5790
 
-                 <property name="topMargin" >
5791
 
-                  <number>11</number>
5792
 
-                 </property>
5793
 
-                 <property name="rightMargin" >
5794
 
-                  <number>11</number>
5795
 
-                 </property>
5796
 
-                 <property name="bottomMargin" >
5797
 
-                  <number>11</number>
5798
 
-                 </property>
5799
 
-                 <item>
5800
 
-                  <widget class="QCheckBox" name="syslogOnlyChk" >
5801
 
-                   <property name="sizePolicy" >
5802
 
-                    <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
5803
 
-                     <horstretch>0</horstretch>
5804
 
-                     <verstretch>0</verstretch>
5805
 
-                    </sizepolicy>
5806
 
-                   </property>
5807
 
-                   <property name="text" >
5808
 
-                    <string>Syslog o&amp;nly</string>
5809
 
-                   </property>
5810
 
-                  </widget>
5811
 
-                 </item>
5812
 
-                 <item>
5813
 
-                  <widget class="QCheckBox" name="statusChk" >
5814
 
-                   <property name="text" >
5815
 
-                    <string>Status</string>
5816
 
-                   </property>
5817
 
-                   <property name="checked" >
5818
 
-                    <bool>true</bool>
5819
 
-                   </property>
5820
 
-                  </widget>
5821
 
-                 </item>
5822
 
-                 <item>
5823
 
-                  <widget class="QCheckBox" name="timestampChk" >
5824
 
-                   <property name="sizePolicy" >
5825
 
-                    <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
5826
 
-                     <horstretch>0</horstretch>
5827
 
-                     <verstretch>0</verstretch>
5828
 
-                    </sizepolicy>
5829
 
-                   </property>
5830
 
-                   <property name="text" >
5831
 
-                    <string>Ti&amp;mestamp</string>
5832
 
-                   </property>
5833
 
-                   <property name="checked" >
5834
 
-                    <bool>false</bool>
5835
 
-                   </property>
5836
 
-                  </widget>
5837
 
-                 </item>
5838
 
-                 <item>
5839
 
-                  <widget class="QCheckBox" name="microsecondsChk" >
5840
 
-                   <property name="enabled" >
5841
 
-                    <bool>false</bool>
5842
 
-                   </property>
5843
 
-                   <property name="text" >
5844
 
-                    <string>microseconds</string>
5845
 
-                   </property>
5846
 
-                  </widget>
5847
 
-                 </item>
5848
 
-                 <item>
5849
 
-                  <widget class="QCheckBox" name="debugPidChk" >
5850
 
-                   <property name="sizePolicy" >
5851
 
-                    <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
5852
 
-                     <horstretch>0</horstretch>
5853
 
-                     <verstretch>0</verstretch>
5854
 
-                    </sizepolicy>
5855
 
-                   </property>
5856
 
-                   <property name="text" >
5857
 
-                    <string>Debug pid</string>
5858
 
-                   </property>
5859
 
-                  </widget>
5860
 
-                 </item>
5861
 
-                 <item>
5862
 
-                  <widget class="QCheckBox" name="debugUidChk" >
5863
 
-                   <property name="text" >
5864
 
-                    <string>Debu&amp;g uid</string>
5865
 
-                   </property>
5866
 
-                  </widget>
5867
 
-                 </item>
5868
 
-                </layout>
5869
 
-               </widget>
5870
 
-              </item>
5871
 
-              <item>
5872
 
-               <spacer>
5873
 
-                <property name="orientation" >
5874
 
-                 <enum>Qt::Vertical</enum>
5875
 
-                </property>
5876
 
-                <property name="sizeType" >
5877
 
-                 <enum>QSizePolicy::Expanding</enum>
5878
 
-                </property>
5879
 
-                <property name="sizeHint" >
5880
 
-                 <size>
5881
 
-                  <width>20</width>
5882
 
-                  <height>60</height>
5883
 
-                 </size>
5884
 
-                </property>
5885
 
-               </spacer>
5886
 
-              </item>
5887
 
-             </layout>
5888
 
-            </widget>
5889
 
-           </item>
5890
 
-          </layout>
5891
 
-         </widget>
5892
 
-         <widget class="QWidget" name="tab" >
5893
 
-          <attribute name="title" >
5894
 
-           <string>Tuning</string>
5895
 
-          </attribute>
5896
 
-          <layout class="QGridLayout" >
5897
 
-           <item row="0" column="0" colspan="2" >
5898
 
-            <widget class="QGroupBox" name="groupBox37_2" >
5899
 
-             <property name="title" >
5900
 
-              <string>Modules</string>
5901
 
-             </property>
5902
 
-             <layout class="QHBoxLayout" >
5903
 
-              <property name="spacing" >
5904
 
-               <number>6</number>
5905
 
-              </property>
5906
 
-              <property name="leftMargin" >
5907
 
-               <number>11</number>
5908
 
-              </property>
5909
 
-              <property name="topMargin" >
5910
 
-               <number>11</number>
5911
 
-              </property>
5912
 
-              <property name="rightMargin" >
5913
 
-               <number>11</number>
5914
 
-              </property>
5915
 
-              <property name="bottomMargin" >
5916
 
-               <number>11</number>
5917
 
-              </property>
5918
 
-              <item>
5919
 
-               <widget class="QLabel" name="TextLabel4_2_2" >
5920
 
-                <property name="text" >
5921
 
-                 <string>Pre&amp;load modules:</string>
5922
 
-                </property>
5923
 
-                <property name="wordWrap" >
5924
 
-                 <bool>false</bool>
5925
 
-                </property>
5926
 
-                <property name="buddy" >
5927
 
-                 <cstring>preloadModulesEdit</cstring>
5928
 
-                </property>
5929
 
-               </widget>
5930
 
-              </item>
5931
 
-              <item>
5932
 
-               <widget class="QLineEdit" name="preloadModulesEdit" />
5933
 
-              </item>
5934
 
-             </layout>
5935
 
-            </widget>
5936
 
-           </item>
5937
 
-           <item row="1" column="0" >
5938
 
-            <widget class="QGroupBox" name="groupBox44" >
5939
 
-             <property name="title" >
5940
 
-              <string>Switches</string>
5941
 
-             </property>
5942
 
-             <layout class="QVBoxLayout" >
5943
 
-              <property name="spacing" >
5944
 
-               <number>6</number>
5945
 
-              </property>
5946
 
-              <property name="leftMargin" >
5947
 
-               <number>11</number>
5948
 
-              </property>
5949
 
-              <property name="topMargin" >
5950
 
-               <number>11</number>
5951
 
-              </property>
5952
 
-              <property name="rightMargin" >
5953
 
-               <number>11</number>
5954
 
-              </property>
5955
 
-              <property name="bottomMargin" >
5956
 
-               <number>11</number>
5957
 
-              </property>
5958
 
-              <item>
5959
 
-               <widget class="QCheckBox" name="getwdCacheChk" >
5960
 
-                <property name="text" >
5961
 
-                 <string>&amp;Getwd cache</string>
5962
 
-                </property>
5963
 
-               </widget>
5964
 
-              </item>
5965
 
-              <item>
5966
 
-               <widget class="QCheckBox" name="useMmapChk" >
5967
 
-                <property name="text" >
5968
 
-                 <string>Use &amp;mmap</string>
5969
 
-                </property>
5970
 
-               </widget>
5971
 
-              </item>
5972
 
-              <item>
5973
 
-               <widget class="QCheckBox" name="kernelChangeNotifyChk" >
5974
 
-                <property name="text" >
5975
 
-                 <string>Kernel change notif&amp;y</string>
5976
 
-                </property>
5977
 
-               </widget>
5978
 
-              </item>
5979
 
-              <item>
5980
 
-               <widget class="QCheckBox" name="hostnameLookupsChk" >
5981
 
-                <property name="text" >
5982
 
-                 <string>H&amp;ostname lookups</string>
5983
 
-                </property>
5984
 
-               </widget>
5985
 
-              </item>
5986
 
-              <item>
5987
 
-               <widget class="QCheckBox" name="readRawChk" >
5988
 
-                <property name="font" >
5989
 
-                 <font/>
5990
 
-                </property>
5991
 
-                <property name="text" >
5992
 
-                 <string>Read ra&amp;w</string>
5993
 
-                </property>
5994
 
-                <property name="checked" >
5995
 
-                 <bool>true</bool>
5996
 
-                </property>
5997
 
-               </widget>
5998
 
-              </item>
5999
 
-              <item>
6000
 
-               <widget class="QCheckBox" name="writeRawChk" >
6001
 
-                <property name="font" >
6002
 
-                 <font/>
6003
 
-                </property>
6004
 
-                <property name="text" >
6005
 
-                 <string>Write raw</string>
6006
 
-                </property>
6007
 
-                <property name="checked" >
6008
 
-                 <bool>true</bool>
6009
 
-                </property>
6010
 
-               </widget>
6011
 
-              </item>
6012
 
-             </layout>
6013
 
-            </widget>
6014
 
-           </item>
6015
 
-           <item row="1" column="1" >
6016
 
-            <widget class="QGroupBox" name="groupBox45" >
6017
 
-             <property name="title" >
6018
 
-              <string>Times</string>
6019
 
-             </property>
6020
 
-             <layout class="QGridLayout" >
6021
 
-              <property name="leftMargin" >
6022
 
-               <number>11</number>
6023
 
-              </property>
6024
 
-              <property name="topMargin" >
6025
 
-               <number>11</number>
6026
 
-              </property>
6027
 
-              <property name="rightMargin" >
6028
 
-               <number>11</number>
6029
 
-              </property>
6030
 
-              <property name="bottomMargin" >
6031
 
-               <number>11</number>
6032
 
-              </property>
6033
 
-              <property name="horizontalSpacing" >
6034
 
-               <number>6</number>
6035
 
-              </property>
6036
 
-              <property name="verticalSpacing" >
6037
 
-               <number>6</number>
6038
 
-              </property>
6039
 
-              <item row="0" column="0" >
6040
 
-               <widget class="QLabel" name="TextLabel4_2_5" >
6041
 
-                <property name="text" >
6042
 
-                 <string>Change notify timeout:</string>
6043
 
-                </property>
6044
 
-                <property name="wordWrap" >
6045
 
-                 <bool>false</bool>
6046
 
-                </property>
6047
 
-                <property name="buddy" >
6048
 
-                 <cstring>changeNotifyTimeoutSpin</cstring>
6049
 
-                </property>
6050
 
-               </widget>
6051
 
-              </item>
6052
 
-              <item row="2" column="2" >
6053
 
-               <widget class="QLabel" name="TextLabel5_2_3_4" >
6054
 
-                <property name="text" >
6055
 
-                 <string comment="seconds" >Sec</string>
6056
 
-                </property>
6057
 
-                <property name="wordWrap" >
6058
 
-                 <bool>false</bool>
6059
 
-                </property>
6060
 
-               </widget>
6061
 
-              </item>
6062
 
-              <item row="2" column="0" >
6063
 
-               <widget class="QLabel" name="TextLabel4_2_3_4" >
6064
 
-                <property name="text" >
6065
 
-                 <string>&amp;Keepalive:</string>
6066
 
-                </property>
6067
 
-                <property name="wordWrap" >
6068
 
-                 <bool>false</bool>
6069
 
-                </property>
6070
 
-                <property name="buddy" >
6071
 
-                 <cstring>keepaliveSpin</cstring>
6072
 
-                </property>
6073
 
-               </widget>
6074
 
-              </item>
6075
 
-              <item row="0" column="1" >
6076
 
-               <widget class="KIntSpinBox" name="changeNotifyTimeoutSpin" >
6077
 
-                <property name="maximum" >
6078
 
-                 <number>2147483647</number>
6079
 
-                </property>
6080
 
-               </widget>
6081
 
-              </item>
6082
 
-              <item row="0" column="2" >
6083
 
-               <widget class="QLabel" name="TextLabel5_2_5" >
6084
 
-                <property name="text" >
6085
 
-                 <string comment="seconds" >Sec</string>
6086
 
-                </property>
6087
 
-                <property name="wordWrap" >
6088
 
-                 <bool>false</bool>
6089
 
-                </property>
6090
 
-               </widget>
6091
 
-              </item>
6092
 
-              <item row="2" column="1" >
6093
 
-               <widget class="KIntSpinBox" name="keepaliveSpin" >
6094
 
-                <property name="maximum" >
6095
 
-                 <number>2147483647</number>
6096
 
-                </property>
6097
 
-               </widget>
6098
 
-              </item>
6099
 
-              <item row="1" column="2" >
6100
 
-               <widget class="QLabel" name="TextLabel5_2_2_3" >
6101
 
-                <property name="text" >
6102
 
-                 <string comment="minutes" >Min</string>
6103
 
-                </property>
6104
 
-                <property name="wordWrap" >
6105
 
-                 <bool>false</bool>
6106
 
-                </property>
6107
 
-               </widget>
6108
 
-              </item>
6109
 
-              <item row="1" column="0" >
6110
 
-               <widget class="QLabel" name="TextLabel4_2_2_3" >
6111
 
-                <property name="text" >
6112
 
-                 <string>Deadtime:</string>
6113
 
-                </property>
6114
 
-                <property name="wordWrap" >
6115
 
-                 <bool>false</bool>
6116
 
-                </property>
6117
 
-                <property name="buddy" >
6118
 
-                 <cstring>deadtimeSpin</cstring>
6119
 
-                </property>
6120
 
-               </widget>
6121
 
-              </item>
6122
 
-              <item row="1" column="1" >
6123
 
-               <widget class="KIntSpinBox" name="deadtimeSpin" >
6124
 
-                <property name="maximum" >
6125
 
-                 <number>2147483647</number>
6126
 
-                </property>
6127
 
-               </widget>
6128
 
-              </item>
6129
 
-              <item row="3" column="0" >
6130
 
-               <widget class="QLabel" name="TextLabel4_2_3_2_4" >
6131
 
-                <property name="text" >
6132
 
-                 <string>Lp&amp;q cache time:</string>
6133
 
-                </property>
6134
 
-                <property name="wordWrap" >
6135
 
-                 <bool>false</bool>
6136
 
-                </property>
6137
 
-                <property name="buddy" >
6138
 
-                 <cstring>lpqCacheTimeSpin</cstring>
6139
 
-                </property>
6140
 
-               </widget>
6141
 
-              </item>
6142
 
-              <item row="3" column="1" >
6143
 
-               <widget class="KIntSpinBox" name="lpqCacheTimeSpin" >
6144
 
-                <property name="maximum" >
6145
 
-                 <number>2147483647</number>
6146
 
-                </property>
6147
 
-               </widget>
6148
 
-              </item>
6149
 
-              <item row="3" column="2" >
6150
 
-               <widget class="QLabel" name="TextLabel5_2_3_2_4" >
6151
 
-                <property name="text" >
6152
 
-                 <string comment="seconds" >Sec</string>
6153
 
-                </property>
6154
 
-                <property name="wordWrap" >
6155
 
-                 <bool>false</bool>
6156
 
-                </property>
6157
 
-               </widget>
6158
 
-              </item>
6159
 
-              <item row="4" column="2" >
6160
 
-               <widget class="QLabel" name="TextLabel5_2_3_2_4_2" >
6161
 
-                <property name="text" >
6162
 
-                 <string comment="seconds" >Sec</string>
6163
 
-                </property>
6164
 
-                <property name="wordWrap" >
6165
 
-                 <bool>false</bool>
6166
 
-                </property>
6167
 
-               </widget>
6168
 
-              </item>
6169
 
-              <item row="4" column="0" >
6170
 
-               <widget class="QLabel" name="TextLabel4_2_3_2_4_2" >
6171
 
-                <property name="text" >
6172
 
-                 <string>&amp;Name cache timeout:</string>
6173
 
-                </property>
6174
 
-                <property name="wordWrap" >
6175
 
-                 <bool>false</bool>
6176
 
-                </property>
6177
 
-                <property name="buddy" >
6178
 
-                 <cstring>nameCacheTimeoutSpin</cstring>
6179
 
-                </property>
6180
 
-               </widget>
6181
 
-              </item>
6182
 
-              <item row="4" column="1" >
6183
 
-               <widget class="KIntSpinBox" name="nameCacheTimeoutSpin" >
6184
 
-                <property name="maximum" >
6185
 
-                 <number>2147483647</number>
6186
 
-                </property>
6187
 
-               </widget>
6188
 
-              </item>
6189
 
-             </layout>
6190
 
-            </widget>
6191
 
-           </item>
6192
 
-           <item row="2" column="0" >
6193
 
-            <widget class="QGroupBox" name="groupBox46" >
6194
 
-             <property name="title" >
6195
 
-              <string>Sizes</string>
6196
 
-             </property>
6197
 
-             <layout class="QGridLayout" >
6198
 
-              <item row="0" column="0" >
6199
 
-               <widget class="QLabel" name="TextLabel4_2_3_2_2_2_5" >
6200
 
-                <property name="text" >
6201
 
-                 <string>Max disk size:</string>
6202
 
-                </property>
6203
 
-                <property name="wordWrap" >
6204
 
-                 <bool>false</bool>
6205
 
-                </property>
6206
 
-                <property name="buddy" >
6207
 
-                 <cstring>maxDiskSizeSpin</cstring>
6208
 
-                </property>
6209
 
-               </widget>
6210
 
-              </item>
6211
 
-              <item row="0" column="1" >
6212
 
-               <widget class="KIntSpinBox" name="maxDiskSizeSpin" >
6213
 
-                <property name="maximum" >
6214
 
-                 <number>2147483647</number>
6215
 
-                </property>
6216
 
-               </widget>
6217
 
-              </item>
6218
 
-              <item row="0" column="2" >
6219
 
-               <widget class="QLabel" name="TextLabel5_2_3_2_2_3" >
6220
 
-                <property name="text" >
6221
 
-                 <string comment="mega byte" >MB</string>
6222
 
-                </property>
6223
 
-                <property name="wordWrap" >
6224
 
-                 <bool>false</bool>
6225
 
-                </property>
6226
 
-               </widget>
6227
 
-              </item>
6228
 
-              <item row="0" column="3" >
6229
 
-               <spacer>
6230
 
-                <property name="orientation" >
6231
 
-                 <enum>Qt::Horizontal</enum>
6232
 
-                </property>
6233
 
-                <property name="sizeHint" >
6234
 
-                 <size>
6235
 
-                  <width>40</width>
6236
 
-                  <height>20</height>
6237
 
-                 </size>
6238
 
-                </property>
6239
 
-               </spacer>
6240
 
-              </item>
6241
 
-              <item row="1" column="0" >
6242
 
-               <widget class="QLabel" name="TextLabel4_2_3_2_2_2_2_2_3" >
6243
 
-                <property name="text" >
6244
 
-                 <string>Read si&amp;ze:</string>
6245
 
-                </property>
6246
 
-                <property name="wordWrap" >
6247
 
-                 <bool>false</bool>
6248
 
-                </property>
6249
 
-                <property name="buddy" >
6250
 
-                 <cstring>readSizeSpin</cstring>
6251
 
-                </property>
6252
 
-               </widget>
6253
 
-              </item>
6254
 
-              <item row="1" column="1" >
6255
 
-               <widget class="KIntSpinBox" name="readSizeSpin" >
6256
 
-                <property name="maximum" >
6257
 
-                 <number>65536</number>
6258
 
-                </property>
6259
 
-               </widget>
6260
 
-              </item>
6261
 
-              <item row="2" column="0" >
6262
 
-               <widget class="QLabel" name="TextLabel4_2_3_2_2_2_3_3" >
6263
 
-                <property name="text" >
6264
 
-                 <string>Stat cache size:</string>
6265
 
-                </property>
6266
 
-                <property name="wordWrap" >
6267
 
-                 <bool>false</bool>
6268
 
-                </property>
6269
 
-                <property name="buddy" >
6270
 
-                 <cstring>statCacheSizeSpin</cstring>
6271
 
-                </property>
6272
 
-               </widget>
6273
 
-              </item>
6274
 
-              <item row="2" column="1" >
6275
 
-               <widget class="KIntSpinBox" name="statCacheSizeSpin" >
6276
 
-                <property name="maximum" >
6277
 
-                 <number>2147483647</number>
6278
 
-                </property>
6279
 
-               </widget>
6280
 
-              </item>
6281
 
-              <item row="3" column="0" >
6282
 
-               <widget class="QLabel" name="TextLabel4_4_2_7_2_2_2" >
6283
 
-                <property name="font" >
6284
 
-                 <font/>
6285
 
-                </property>
6286
 
-                <property name="text" >
6287
 
-                 <string>Ma&amp;x xmit:</string>
6288
 
-                </property>
6289
 
-                <property name="wordWrap" >
6290
 
-                 <bool>false</bool>
6291
 
-                </property>
6292
 
-                <property name="buddy" >
6293
 
-                 <cstring>maxXmitSpin</cstring>
6294
 
-                </property>
6295
 
-               </widget>
6296
 
-              </item>
6297
 
-              <item row="3" column="1" >
6298
 
-               <widget class="KIntSpinBox" name="maxXmitSpin" >
6299
 
-                <property name="minimum" >
6300
 
-                 <number>0</number>
6301
 
-                </property>
6302
 
-                <property name="maximum" >
6303
 
-                 <number>65535</number>
6304
 
-                </property>
6305
 
-               </widget>
6306
 
-              </item>
6307
 
-             </layout>
6308
 
-            </widget>
6309
 
-           </item>
6310
 
-           <item row="2" column="1" >
6311
 
-            <widget class="QGroupBox" name="groupBox47" >
6312
 
-             <property name="title" >
6313
 
-              <string>Numbers</string>
6314
 
-             </property>
6315
 
-             <layout class="QGridLayout" >
6316
 
-              <item row="0" column="0" >
6317
 
-               <widget class="QLabel" name="TextLabel4_2_3_2_2_4" >
6318
 
-                <property name="text" >
6319
 
-                 <string>Max smbd processes:</string>
6320
 
-                </property>
6321
 
-                <property name="wordWrap" >
6322
 
-                 <bool>false</bool>
6323
 
-                </property>
6324
 
-                <property name="buddy" >
6325
 
-                 <cstring>maxSmbdProcessesSpin</cstring>
6326
 
-                </property>
6327
 
-               </widget>
6328
 
-              </item>
6329
 
-              <item row="0" column="1" >
6330
 
-               <widget class="KIntSpinBox" name="maxSmbdProcessesSpin" >
6331
 
-                <property name="maximum" >
6332
 
-                 <number>2147483647</number>
6333
 
-                </property>
6334
 
-               </widget>
6335
 
-              </item>
6336
 
-              <item row="0" column="2" >
6337
 
-               <spacer>
6338
 
-                <property name="orientation" >
6339
 
-                 <enum>Qt::Horizontal</enum>
6340
 
-                </property>
6341
 
-                <property name="sizeHint" >
6342
 
-                 <size>
6343
 
-                  <width>40</width>
6344
 
-                  <height>20</height>
6345
 
-                 </size>
6346
 
-                </property>
6347
 
-               </spacer>
6348
 
-              </item>
6349
 
-              <item row="1" column="0" >
6350
 
-               <widget class="QLabel" name="TextLabel4_2_3_2_2_2_2_4" >
6351
 
-                <property name="text" >
6352
 
-                 <string>Max open files:</string>
6353
 
-                </property>
6354
 
-                <property name="wordWrap" >
6355
 
-                 <bool>false</bool>
6356
 
-                </property>
6357
 
-                <property name="buddy" >
6358
 
-                 <cstring>maxOpenFilesSpin</cstring>
6359
 
-                </property>
6360
 
-               </widget>
6361
 
-              </item>
6362
 
-              <item row="1" column="1" >
6363
 
-               <widget class="KIntSpinBox" name="maxOpenFilesSpin" >
6364
 
-                <property name="maximum" >
6365
 
-                 <number>2147483647</number>
6366
 
-                </property>
6367
 
-               </widget>
6368
 
-              </item>
6369
 
-             </layout>
6370
 
-            </widget>
6371
 
-           </item>
6372
 
-           <item row="3" column="0" >
6373
 
-            <spacer>
6374
 
-             <property name="orientation" >
6375
 
-              <enum>Qt::Vertical</enum>
6376
 
-             </property>
6377
 
-             <property name="sizeType" >
6378
 
-              <enum>QSizePolicy::Expanding</enum>
6379
 
-             </property>
6380
 
-             <property name="sizeHint" >
6381
 
-              <size>
6382
 
-               <width>20</width>
6383
 
-               <height>50</height>
6384
 
-              </size>
6385
 
-             </property>
6386
 
-            </spacer>
6387
 
-           </item>
6388
 
-          </layout>
6389
 
-         </widget>
6390
 
-         <widget class="QWidget" name="tab" >
6391
 
-          <attribute name="title" >
6392
 
-           <string>Printing</string>
6393
 
-          </attribute>
6394
 
-          <layout class="QVBoxLayout" >
6395
 
-           <item>
6396
 
-            <widget class="QGroupBox" name="groupBox52" >
6397
 
-             <property name="title" >
6398
 
-              <string>&amp;General</string>
6399
 
-             </property>
6400
 
-             <layout class="QHBoxLayout" >
6401
 
-              <item>
6402
 
-               <widget class="QLabel" name="TextLabel1_3" >
6403
 
-                <property name="text" >
6404
 
-                 <string>Total print &amp;jobs:</string>
6405
 
-                </property>
6406
 
-                <property name="wordWrap" >
6407
 
-                 <bool>false</bool>
6408
 
-                </property>
6409
 
-                <property name="buddy" >
6410
 
-                 <cstring>totalPrintJobsSpin</cstring>
6411
 
-                </property>
6412
 
-               </widget>
6413
 
-              </item>
6414
 
-              <item>
6415
 
-               <widget class="KIntSpinBox" name="totalPrintJobsSpin" >
6416
 
-                <property name="maximum" >
6417
 
-                 <number>2147483647</number>
6418
 
-                </property>
6419
 
-               </widget>
6420
 
-              </item>
6421
 
-              <item>
6422
 
-               <spacer>
6423
 
-                <property name="orientation" >
6424
 
-                 <enum>Qt::Horizontal</enum>
6425
 
-                </property>
6426
 
-                <property name="sizeHint" >
6427
 
-                 <size>
6428
 
-                  <width>40</width>
6429
 
-                  <height>20</height>
6430
 
-                 </size>
6431
 
-                </property>
6432
 
-               </spacer>
6433
 
-              </item>
6434
 
-             </layout>
6435
 
-            </widget>
6436
 
-           </item>
6437
 
-           <item>
6438
 
-            <widget class="QGroupBox" name="groupBox51" >
6439
 
-             <property name="title" >
6440
 
-              <string>Drivers</string>
6441
 
-             </property>
6442
 
-             <layout class="QGridLayout" >
6443
 
-              <property name="leftMargin" >
6444
 
-               <number>11</number>
6445
 
-              </property>
6446
 
-              <property name="topMargin" >
6447
 
-               <number>11</number>
6448
 
-              </property>
6449
 
-              <property name="rightMargin" >
6450
 
-               <number>11</number>
6451
 
-              </property>
6452
 
-              <property name="bottomMargin" >
6453
 
-               <number>11</number>
6454
 
-              </property>
6455
 
-              <property name="horizontalSpacing" >
6456
 
-               <number>6</number>
6457
 
-              </property>
6458
 
-              <property name="verticalSpacing" >
6459
 
-               <number>6</number>
6460
 
-              </property>
6461
 
-              <item row="1" column="0" >
6462
 
-               <widget class="QLabel" name="TextLabel4_2_4" >
6463
 
-                <property name="text" >
6464
 
-                 <string>OS&amp;2 driver map:</string>
6465
 
-                </property>
6466
 
-                <property name="wordWrap" >
6467
 
-                 <bool>false</bool>
6468
 
-                </property>
6469
 
-                <property name="buddy" >
6470
 
-                 <cstring>os2DriverMapUrlRq</cstring>
6471
 
-                </property>
6472
 
-               </widget>
6473
 
-              </item>
6474
 
-              <item row="0" column="0" >
6475
 
-               <widget class="QLabel" name="TextLabel1_3_4" >
6476
 
-                <property name="text" >
6477
 
-                 <string>Printcap na&amp;me:</string>
6478
 
-                </property>
6479
 
-                <property name="wordWrap" >
6480
 
-                 <bool>false</bool>
6481
 
-                </property>
6482
 
-                <property name="buddy" >
6483
 
-                 <cstring>printcapNameUrlRq</cstring>
6484
 
-                </property>
6485
 
-               </widget>
6486
 
-              </item>
6487
 
-              <item row="0" column="1" >
6488
 
-               <widget class="KUrlRequester" name="printcapNameUrlRq" />
6489
 
-              </item>
6490
 
-              <item row="1" column="1" >
6491
 
-               <widget class="KUrlRequester" name="os2DriverMapUrlRq" />
6492
 
-              </item>
6493
 
-              <item row="2" column="0" >
6494
 
-               <widget class="QLabel" name="printerDriverLbl" >
6495
 
-                <property name="font" >
6496
 
-                 <font>
6497
 
-                  <italic>true</italic>
6498
 
-                 </font>
6499
 
-                </property>
6500
 
-                <property name="text" >
6501
 
-                 <string>Pri&amp;nter driver file: </string>
6502
 
-                </property>
6503
 
-                <property name="wordWrap" >
6504
 
-                 <bool>false</bool>
6505
 
-                </property>
6506
 
-                <property name="buddy" >
6507
 
-                 <cstring>printerDriverFileUrlRq</cstring>
6508
 
-                </property>
6509
 
-               </widget>
6510
 
-              </item>
6511
 
-              <item row="2" column="1" >
6512
 
-               <widget class="KUrlRequester" name="printerDriverFileUrlRq" />
6513
 
-              </item>
6514
 
-             </layout>
6515
 
-            </widget>
6516
 
-           </item>
6517
 
-           <item>
6518
 
-            <widget class="QGroupBox" name="groupBox50" >
6519
 
-             <property name="title" >
6520
 
-              <string>Commands</string>
6521
 
-             </property>
6522
 
-             <layout class="QGridLayout" >
6523
 
-              <property name="leftMargin" >
6524
 
-               <number>11</number>
6525
 
-              </property>
6526
 
-              <property name="topMargin" >
6527
 
-               <number>11</number>
6528
 
-              </property>
6529
 
-              <property name="rightMargin" >
6530
 
-               <number>11</number>
6531
 
-              </property>
6532
 
-              <property name="bottomMargin" >
6533
 
-               <number>11</number>
6534
 
-              </property>
6535
 
-              <property name="horizontalSpacing" >
6536
 
-               <number>6</number>
6537
 
-              </property>
6538
 
-              <property name="verticalSpacing" >
6539
 
-               <number>6</number>
6540
 
-              </property>
6541
 
-              <item row="2" column="0" >
6542
 
-               <widget class="QLabel" name="TextLabel2_2_2" >
6543
 
-                <property name="text" >
6544
 
-                 <string>Enumports command:</string>
6545
 
-                </property>
6546
 
-                <property name="wordWrap" >
6547
 
-                 <bool>false</bool>
6548
 
-                </property>
6549
 
-                <property name="buddy" >
6550
 
-                 <cstring>enumportsCommandEdit</cstring>
6551
 
-                </property>
6552
 
-               </widget>
6553
 
-              </item>
6554
 
-              <item row="0" column="0" >
6555
 
-               <widget class="QLabel" name="TextLabel3_3_3" >
6556
 
-                <property name="text" >
6557
 
-                 <string>Addprinter command:</string>
6558
 
-                </property>
6559
 
-                <property name="wordWrap" >
6560
 
-                 <bool>false</bool>
6561
 
-                </property>
6562
 
-                <property name="buddy" >
6563
 
-                 <cstring>addprinterCommandEdit</cstring>
6564
 
-                </property>
6565
 
-               </widget>
6566
 
-              </item>
6567
 
-              <item row="1" column="0" >
6568
 
-               <widget class="QLabel" name="TextLabel3_3_2" >
6569
 
-                <property name="text" >
6570
 
-                 <string>Deleteprinter command:</string>
6571
 
-                </property>
6572
 
-                <property name="wordWrap" >
6573
 
-                 <bool>false</bool>
6574
 
-                </property>
6575
 
-                <property name="buddy" >
6576
 
-                 <cstring>deleteprinterCommandEdit</cstring>
6577
 
-                </property>
6578
 
-               </widget>
6579
 
-              </item>
6580
 
-              <item row="0" column="1" >
6581
 
-               <widget class="QLineEdit" name="addprinterCommandEdit" />
6582
 
-              </item>
6583
 
-              <item row="1" column="1" >
6584
 
-               <widget class="QLineEdit" name="deleteprinterCommandEdit" />
6585
 
-              </item>
6586
 
-              <item row="2" column="1" >
6587
 
-               <widget class="QLineEdit" name="enumportsCommandEdit" />
6588
 
-              </item>
6589
 
-             </layout>
6590
 
-            </widget>
6591
 
-           </item>
6592
 
-           <item>
6593
 
-            <widget class="QGroupBox" name="groupBox49" >
6594
 
-             <property name="title" >
6595
 
-              <string>S&amp;witches</string>
6596
 
-             </property>
6597
 
-             <layout class="QHBoxLayout" >
6598
 
-              <property name="spacing" >
6599
 
-               <number>6</number>
6600
 
-              </property>
6601
 
-              <property name="leftMargin" >
6602
 
-               <number>11</number>
6603
 
-              </property>
6604
 
-              <property name="topMargin" >
6605
 
-               <number>11</number>
6606
 
-              </property>
6607
 
-              <property name="rightMargin" >
6608
 
-               <number>11</number>
6609
 
-              </property>
6610
 
-              <property name="bottomMargin" >
6611
 
-               <number>11</number>
6612
 
-              </property>
6613
 
-              <item>
6614
 
-               <widget class="QCheckBox" name="loadPrintersChk" >
6615
 
-                <property name="text" >
6616
 
-                 <string>L&amp;oad printers</string>
6617
 
-                </property>
6618
 
-               </widget>
6619
 
-              </item>
6620
 
-              <item>
6621
 
-               <widget class="QCheckBox" name="disableSpoolssChk" >
6622
 
-                <property name="text" >
6623
 
-                 <string>Disab&amp;le spools</string>
6624
 
-                </property>
6625
 
-               </widget>
6626
 
-              </item>
6627
 
-              <item>
6628
 
-               <widget class="QCheckBox" name="showAddPrinterWizardChk" >
6629
 
-                <property name="text" >
6630
 
-                 <string>Show add printer wi&amp;zard</string>
6631
 
-                </property>
6632
 
-               </widget>
6633
 
-              </item>
6634
 
-             </layout>
6635
 
-            </widget>
6636
 
-           </item>
6637
 
-           <item>
6638
 
-            <spacer>
6639
 
-             <property name="orientation" >
6640
 
-              <enum>Qt::Vertical</enum>
6641
 
-             </property>
6642
 
-             <property name="sizeType" >
6643
 
-              <enum>QSizePolicy::Expanding</enum>
6644
 
-             </property>
6645
 
-             <property name="sizeHint" >
6646
 
-              <size>
6647
 
-               <width>20</width>
6648
 
-               <height>40</height>
6649
 
-              </size>
6650
 
-             </property>
6651
 
-            </spacer>
6652
 
-           </item>
6653
 
-          </layout>
6654
 
-         </widget>
6655
 
-         <widget class="QWidget" name="TabPage" >
6656
 
-          <attribute name="title" >
6657
 
-           <string>Domain</string>
6658
 
-          </attribute>
6659
 
-          <layout class="QGridLayout" >
6660
 
-           <property name="leftMargin" >
6661
 
-            <number>0</number>
6662
 
-           </property>
6663
 
-           <property name="topMargin" >
6664
 
-            <number>0</number>
6665
 
-           </property>
6666
 
-           <property name="rightMargin" >
6667
 
-            <number>0</number>
6668
 
-           </property>
6669
 
-           <property name="bottomMargin" >
6670
 
-            <number>0</number>
6671
 
-           </property>
6672
 
-           <property name="horizontalSpacing" >
6673
 
-            <number>6</number>
6674
 
-           </property>
6675
 
-           <property name="verticalSpacing" >
6676
 
-            <number>6</number>
6677
 
-           </property>
6678
 
-           <item row="4" column="1" >
6679
 
-            <widget class="KIntSpinBox" name="osLevelSpin" >
6680
 
-             <property name="sizePolicy" >
6681
 
-              <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
6682
 
-               <horstretch>0</horstretch>
6683
 
-               <verstretch>0</verstretch>
6684
 
-              </sizepolicy>
6685
 
-             </property>
6686
 
-             <property name="maximum" >
6687
 
-              <number>2147483647</number>
6688
 
-             </property>
6689
 
-            </widget>
6690
 
-           </item>
6691
 
-           <item row="1" column="0" >
6692
 
-            <widget class="QCheckBox" name="localMasterChk" >
6693
 
-             <property name="sizePolicy" >
6694
 
-              <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
6695
 
-               <horstretch>0</horstretch>
6696
 
-               <verstretch>0</verstretch>
6697
 
-              </sizepolicy>
6698
 
-             </property>
6699
 
-             <property name="text" >
6700
 
-              <string>L&amp;ocal master</string>
6701
 
-             </property>
6702
 
-            </widget>
6703
 
-           </item>
6704
 
-           <item row="2" column="0" colspan="3" >
6705
 
-            <widget class="QCheckBox" name="domainMasterChk" >
6706
 
-             <property name="text" >
6707
 
-              <string>Domai&amp;n master</string>
6708
 
-             </property>
6709
 
-            </widget>
6710
 
-           </item>
6711
 
-           <item row="3" column="0" colspan="3" >
6712
 
-            <widget class="QCheckBox" name="domainLogonsChk" >
6713
 
-             <property name="text" >
6714
 
-              <string>Domain lo&amp;gons</string>
6715
 
-             </property>
6716
 
-            </widget>
6717
 
-           </item>
6718
 
-           <item row="0" column="0" >
6719
 
-            <widget class="QCheckBox" name="preferredMasterChk" >
6720
 
-             <property name="sizePolicy" >
6721
 
-              <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
6722
 
-               <horstretch>0</horstretch>
6723
 
-               <verstretch>0</verstretch>
6724
 
-              </sizepolicy>
6725
 
-             </property>
6726
 
-             <property name="text" >
6727
 
-              <string>Preferred &amp;master</string>
6728
 
-             </property>
6729
 
-            </widget>
6730
 
-           </item>
6731
 
-           <item row="4" column="0" >
6732
 
-            <widget class="QLabel" name="TextLabel5" >
6733
 
-             <property name="sizePolicy" >
6734
 
-              <sizepolicy vsizetype="Preferred" hsizetype="Fixed" >
6735
 
-               <horstretch>0</horstretch>
6736
 
-               <verstretch>0</verstretch>
6737
 
-              </sizepolicy>
6738
 
-             </property>
6739
 
-             <property name="text" >
6740
 
-              <string>OS &amp;level:</string>
6741
 
-             </property>
6742
 
-             <property name="wordWrap" >
6743
 
-              <bool>false</bool>
6744
 
-             </property>
6745
 
-             <property name="buddy" >
6746
 
-              <cstring>osLevelSpin</cstring>
6747
 
-             </property>
6748
 
-            </widget>
6749
 
-           </item>
6750
 
-           <item row="5" column="0" >
6751
 
-            <widget class="QLabel" name="TextLabel3_3_3_3" >
6752
 
-             <property name="font" >
6753
 
-              <font/>
6754
 
-             </property>
6755
 
-             <property name="text" >
6756
 
-              <string>Domain admin group:</string>
6757
 
-             </property>
6758
 
-             <property name="wordWrap" >
6759
 
-              <bool>false</bool>
6760
 
-             </property>
6761
 
-             <property name="buddy" >
6762
 
-              <cstring>domainAdminGroupEdit</cstring>
6763
 
-             </property>
6764
 
-            </widget>
6765
 
-           </item>
6766
 
-           <item row="6" column="0" >
6767
 
-            <widget class="QLabel" name="TextLabel3_3_3_4" >
6768
 
-             <property name="font" >
6769
 
-              <font/>
6770
 
-             </property>
6771
 
-             <property name="text" >
6772
 
-              <string>Domain guest group:</string>
6773
 
-             </property>
6774
 
-             <property name="wordWrap" >
6775
 
-              <bool>false</bool>
6776
 
-             </property>
6777
 
-             <property name="buddy" >
6778
 
-              <cstring>domainGuestGroupEdit</cstring>
6779
 
-             </property>
6780
 
-            </widget>
6781
 
-           </item>
6782
 
-           <item row="6" column="1" colspan="2" >
6783
 
-            <widget class="QLineEdit" name="domainGuestGroupEdit" />
6784
 
-           </item>
6785
 
-           <item row="5" column="1" colspan="2" >
6786
 
-            <widget class="QLineEdit" name="domainAdminGroupEdit" />
6787
 
-           </item>
6788
 
-           <item row="4" column="2" >
6789
 
-            <spacer>
6790
 
-             <property name="orientation" >
6791
 
-              <enum>Qt::Horizontal</enum>
6792
 
-             </property>
6793
 
-             <property name="sizeHint" >
6794
 
-              <size>
6795
 
-               <width>40</width>
6796
 
-               <height>20</height>
6797
 
-              </size>
6798
 
-             </property>
6799
 
-            </spacer>
6800
 
-           </item>
6801
 
-           <item row="7" column="1" >
6802
 
-            <spacer>
6803
 
-             <property name="orientation" >
6804
 
-              <enum>Qt::Vertical</enum>
6805
 
-             </property>
6806
 
-             <property name="sizeHint" >
6807
 
-              <size>
6808
 
-               <width>20</width>
6809
 
-               <height>40</height>
6810
 
-              </size>
6811
 
-             </property>
6812
 
-            </spacer>
6813
 
-           </item>
6814
 
-          </layout>
6815
 
-         </widget>
6816
 
-         <widget class="QWidget" name="TabPage" >
6817
 
-          <attribute name="title" >
6818
 
-           <string>WINS</string>
6819
 
-          </attribute>
6820
 
-          <layout class="QVBoxLayout" >
6821
 
-           <item>
6822
 
-            <widget class="Q3ButtonGroup" name="buttonGroup4" >
6823
 
-             <property name="title" >
6824
 
-              <string/>
6825
 
-             </property>
6826
 
-             <property name="lineWidth" >
6827
 
-              <number>0</number>
6828
 
-             </property>
6829
 
-             <layout class="QVBoxLayout" >
6830
 
-              <property name="spacing" >
6831
 
-               <number>6</number>
6832
 
-              </property>
6833
 
-              <property name="leftMargin" >
6834
 
-               <number>7</number>
6835
 
-              </property>
6836
 
-              <property name="topMargin" >
6837
 
-               <number>7</number>
6838
 
-              </property>
6839
 
-              <property name="rightMargin" >
6840
 
-               <number>7</number>
6841
 
-              </property>
6842
 
-              <property name="bottomMargin" >
6843
 
-               <number>7</number>
6844
 
-              </property>
6845
 
-              <item>
6846
 
-               <widget class="QRadioButton" name="noWinsSupportRadio" >
6847
 
-                <property name="text" >
6848
 
-                 <string>Deactivate &amp;WINS</string>
6849
 
-                </property>
6850
 
-                <property name="checked" >
6851
 
-                 <bool>true</bool>
6852
 
-                </property>
6853
 
-                <property name="autoRepeat" >
6854
 
-                 <bool>true</bool>
6855
 
-                </property>
6856
 
-               </widget>
6857
 
-              </item>
6858
 
-              <item>
6859
 
-               <widget class="QRadioButton" name="winsSupportRadio" >
6860
 
-                <property name="text" >
6861
 
-                 <string>Act as a WI&amp;NS server</string>
6862
 
-                </property>
6863
 
-               </widget>
6864
 
-              </item>
6865
 
-              <item>
6866
 
-               <widget class="QRadioButton" name="otherWinsRadio" >
6867
 
-                <property name="text" >
6868
 
-                 <string>Use an&amp;other WINS server</string>
6869
 
-                </property>
6870
 
-               </widget>
6871
 
-              </item>
6872
 
-             </layout>
6873
 
-            </widget>
6874
 
-           </item>
6875
 
-           <item>
6876
 
-            <widget class="QGroupBox" name="groupBox35" >
6877
 
-             <property name="enabled" >
6878
 
-              <bool>false</bool>
6879
 
-             </property>
6880
 
-             <property name="title" >
6881
 
-              <string>WINS Server Settin&amp;gs</string>
6882
 
-             </property>
6883
 
-             <layout class="QGridLayout" >
6884
 
-              <item row="0" column="0" colspan="4" >
6885
 
-               <widget class="QCheckBox" name="dnsProxyChk" >
6886
 
-                <property name="enabled" >
6887
 
-                 <bool>false</bool>
6888
 
-                </property>
6889
 
-                <property name="text" >
6890
 
-                 <string>DNS prox&amp;y</string>
6891
 
-                </property>
6892
 
-                <property name="tristate" >
6893
 
-                 <bool>false</bool>
6894
 
-                </property>
6895
 
-               </widget>
6896
 
-              </item>
6897
 
-              <item row="1" column="0" >
6898
 
-               <widget class="QLabel" name="winsHookLbl" >
6899
 
-                <property name="enabled" >
6900
 
-                 <bool>false</bool>
6901
 
-                </property>
6902
 
-                <property name="text" >
6903
 
-                 <string>WINS hoo&amp;k:</string>
6904
 
-                </property>
6905
 
-                <property name="wordWrap" >
6906
 
-                 <bool>false</bool>
6907
 
-                </property>
6908
 
-                <property name="buddy" >
6909
 
-                 <cstring>winsHookEdit</cstring>
6910
 
-                </property>
6911
 
-               </widget>
6912
 
-              </item>
6913
 
-              <item row="1" column="1" colspan="3" >
6914
 
-               <widget class="QLineEdit" name="winsHookEdit" >
6915
 
-                <property name="enabled" >
6916
 
-                 <bool>false</bool>
6917
 
-                </property>
6918
 
-               </widget>
6919
 
-              </item>
6920
 
-              <item row="2" column="0" >
6921
 
-               <widget class="QLabel" name="TextLabel4_4_2_4_3_2_2_2" >
6922
 
-                <property name="font" >
6923
 
-                 <font/>
6924
 
-                </property>
6925
 
-                <property name="text" >
6926
 
-                 <string>Max WINS tt&amp;l:</string>
6927
 
-                </property>
6928
 
-                <property name="wordWrap" >
6929
 
-                 <bool>false</bool>
6930
 
-                </property>
6931
 
-                <property name="buddy" >
6932
 
-                 <cstring>maxWinsTtlSpin</cstring>
6933
 
-                </property>
6934
 
-               </widget>
6935
 
-              </item>
6936
 
-              <item row="2" column="1" >
6937
 
-               <widget class="KIntSpinBox" name="maxWinsTtlSpin" >
6938
 
-                <property name="enabled" >
6939
 
-                 <bool>false</bool>
6940
 
-                </property>
6941
 
-                <property name="minimum" >
6942
 
-                 <number>0</number>
6943
 
-                </property>
6944
 
-                <property name="maximum" >
6945
 
-                 <number>2147483647</number>
6946
 
-                </property>
6947
 
-               </widget>
6948
 
-              </item>
6949
 
-              <item row="2" column="2" >
6950
 
-               <widget class="QLabel" name="TextLabel6_5_2_2_3_2_2_2" >
6951
 
-                <property name="text" >
6952
 
-                 <string comment="seconds" >Sec</string>
6953
 
-                </property>
6954
 
-                <property name="wordWrap" >
6955
 
-                 <bool>false</bool>
6956
 
-                </property>
6957
 
-               </widget>
6958
 
-              </item>
6959
 
-              <item row="2" column="3" >
6960
 
-               <spacer>
6961
 
-                <property name="orientation" >
6962
 
-                 <enum>Qt::Horizontal</enum>
6963
 
-                </property>
6964
 
-                <property name="sizeHint" >
6965
 
-                 <size>
6966
 
-                  <width>40</width>
6967
 
-                  <height>20</height>
6968
 
-                 </size>
6969
 
-                </property>
6970
 
-               </spacer>
6971
 
-              </item>
6972
 
-              <item row="3" column="0" >
6973
 
-               <widget class="QLabel" name="TextLabel4_4_2_5_3_2_2_2" >
6974
 
-                <property name="font" >
6975
 
-                 <font/>
6976
 
-                </property>
6977
 
-                <property name="text" >
6978
 
-                 <string>&amp;Min WINS ttl:</string>
6979
 
-                </property>
6980
 
-                <property name="wordWrap" >
6981
 
-                 <bool>false</bool>
6982
 
-                </property>
6983
 
-                <property name="buddy" >
6984
 
-                 <cstring>minWinsTtlSpin</cstring>
6985
 
-                </property>
6986
 
-               </widget>
6987
 
-              </item>
6988
 
-              <item row="3" column="1" >
6989
 
-               <widget class="KIntSpinBox" name="minWinsTtlSpin" >
6990
 
-                <property name="enabled" >
6991
 
-                 <bool>false</bool>
6992
 
-                </property>
6993
 
-                <property name="minimum" >
6994
 
-                 <number>0</number>
6995
 
-                </property>
6996
 
-                <property name="maximum" >
6997
 
-                 <number>2147483647</number>
6998
 
-                </property>
6999
 
-               </widget>
7000
 
-              </item>
7001
 
-              <item row="3" column="2" >
7002
 
-               <widget class="QLabel" name="TextLabel6_5_2_4_2_2_2" >
7003
 
-                <property name="text" >
7004
 
-                 <string comment="seconds" >Sec</string>
7005
 
-                </property>
7006
 
-                <property name="wordWrap" >
7007
 
-                 <bool>false</bool>
7008
 
-                </property>
7009
 
-               </widget>
7010
 
-              </item>
7011
 
-             </layout>
7012
 
-            </widget>
7013
 
-           </item>
7014
 
-           <item>
7015
 
-            <widget class="QGroupBox" name="groupBox36" >
7016
 
-             <property name="enabled" >
7017
 
-              <bool>false</bool>
7018
 
-             </property>
7019
 
-             <property name="title" >
7020
 
-              <string>WINS Server IP or DNS Name</string>
7021
 
-             </property>
7022
 
-             <layout class="QVBoxLayout" >
7023
 
-              <property name="spacing" >
7024
 
-               <number>6</number>
7025
 
-              </property>
7026
 
-              <property name="leftMargin" >
7027
 
-               <number>11</number>
7028
 
-              </property>
7029
 
-              <property name="topMargin" >
7030
 
-               <number>11</number>
7031
 
-              </property>
7032
 
-              <property name="rightMargin" >
7033
 
-               <number>11</number>
7034
 
-              </property>
7035
 
-              <property name="bottomMargin" >
7036
 
-               <number>11</number>
7037
 
-              </property>
7038
 
-              <item>
7039
 
-               <widget class="KLineEdit" name="winsServerEdit" >
7040
 
-                <property name="enabled" >
7041
 
-                 <bool>false</bool>
7042
 
-                </property>
7043
 
-               </widget>
7044
 
-              </item>
7045
 
-             </layout>
7046
 
-            </widget>
7047
 
-           </item>
7048
 
-           <item>
7049
 
-            <widget class="QGroupBox" name="groupBox37" >
7050
 
-             <property name="title" >
7051
 
-              <string>General Options</string>
7052
 
-             </property>
7053
 
-             <layout class="QGridLayout" >
7054
 
-              <property name="leftMargin" >
7055
 
-               <number>11</number>
7056
 
-              </property>
7057
 
-              <property name="topMargin" >
7058
 
-               <number>11</number>
7059
 
-              </property>
7060
 
-              <property name="rightMargin" >
7061
 
-               <number>11</number>
7062
 
-              </property>
7063
 
-              <property name="bottomMargin" >
7064
 
-               <number>11</number>
7065
 
-              </property>
7066
 
-              <property name="horizontalSpacing" >
7067
 
-               <number>6</number>
7068
 
-              </property>
7069
 
-              <property name="verticalSpacing" >
7070
 
-               <number>6</number>
7071
 
-              </property>
7072
 
-              <item row="1" column="0" >
7073
 
-               <widget class="QLabel" name="TextLabel3_3_3_2" >
7074
 
-                <property name="text" >
7075
 
-                 <string>WINS partners:</string>
7076
 
-                </property>
7077
 
-                <property name="wordWrap" >
7078
 
-                 <bool>false</bool>
7079
 
-                </property>
7080
 
-                <property name="buddy" >
7081
 
-                 <cstring>winsPartnersEdit</cstring>
7082
 
-                </property>
7083
 
-               </widget>
7084
 
-              </item>
7085
 
-              <item row="1" column="1" >
7086
 
-               <widget class="QLineEdit" name="winsPartnersEdit" />
7087
 
-              </item>
7088
 
-              <item row="0" column="0" colspan="2" >
7089
 
-               <widget class="QCheckBox" name="winsProxyChk" >
7090
 
-                <property name="enabled" >
7091
 
-                 <bool>true</bool>
7092
 
-                </property>
7093
 
-                <property name="sizePolicy" >
7094
 
-                 <sizepolicy vsizetype="Fixed" hsizetype="Preferred" >
7095
 
-                  <horstretch>0</horstretch>
7096
 
-                  <verstretch>0</verstretch>
7097
 
-                 </sizepolicy>
7098
 
-                </property>
7099
 
-                <property name="text" >
7100
 
-                 <string>WINS pro&amp;xy</string>
7101
 
-                </property>
7102
 
-                <property name="tristate" >
7103
 
-                 <bool>false</bool>
7104
 
-                </property>
7105
 
-               </widget>
7106
 
-              </item>
7107
 
-             </layout>
7108
 
-            </widget>
7109
 
-           </item>
7110
 
-           <item>
7111
 
-            <spacer>
7112
 
-             <property name="orientation" >
7113
 
-              <enum>Qt::Vertical</enum>
7114
 
-             </property>
7115
 
-             <property name="sizeType" >
7116
 
-              <enum>QSizePolicy::Expanding</enum>
7117
 
-             </property>
7118
 
-             <property name="sizeHint" >
7119
 
-              <size>
7120
 
-               <width>20</width>
7121
 
-               <height>120</height>
7122
 
-              </size>
7123
 
-             </property>
7124
 
-            </spacer>
7125
 
-           </item>
7126
 
-          </layout>
7127
 
-         </widget>
7128
 
-         <widget class="QWidget" name="tab" >
7129
 
-          <attribute name="title" >
7130
 
-           <string>Filenames</string>
7131
 
-          </attribute>
7132
 
-          <layout class="QVBoxLayout" >
7133
 
-           <item>
7134
 
-            <widget class="QGroupBox" name="groupBox54" >
7135
 
-             <property name="title" >
7136
 
-              <string>Ge&amp;neral</string>
7137
 
-             </property>
7138
 
-             <layout class="QVBoxLayout" >
7139
 
-              <property name="spacing" >
7140
 
-               <number>6</number>
7141
 
-              </property>
7142
 
-              <property name="leftMargin" >
7143
 
-               <number>11</number>
7144
 
-              </property>
7145
 
-              <property name="topMargin" >
7146
 
-               <number>11</number>
7147
 
-              </property>
7148
 
-              <property name="rightMargin" >
7149
 
-               <number>11</number>
7150
 
-              </property>
7151
 
-              <property name="bottomMargin" >
7152
 
-               <number>11</number>
7153
 
-              </property>
7154
 
-              <item>
7155
 
-               <widget class="QCheckBox" name="stripDotChk" >
7156
 
-                <property name="text" >
7157
 
-                 <string>Strip d&amp;ot</string>
7158
 
-                </property>
7159
 
-               </widget>
7160
 
-              </item>
7161
 
-             </layout>
7162
 
-            </widget>
7163
 
-           </item>
7164
 
-           <item>
7165
 
-            <widget class="QGroupBox" name="groupBox55" >
7166
 
-             <property name="title" >
7167
 
-              <string>&amp;Mangling</string>
7168
 
-             </property>
7169
 
-             <layout class="QGridLayout" >
7170
 
-              <item row="0" column="0" >
7171
 
-               <widget class="QLabel" name="TextLabel6_2_2" >
7172
 
-                <property name="sizePolicy" >
7173
 
-                 <sizepolicy vsizetype="Preferred" hsizetype="Fixed" >
7174
 
-                  <horstretch>0</horstretch>
7175
 
-                  <verstretch>0</verstretch>
7176
 
-                 </sizepolicy>
7177
 
-                </property>
7178
 
-                <property name="text" >
7179
 
-                 <string>Mangled stac&amp;k:</string>
7180
 
-                </property>
7181
 
-                <property name="wordWrap" >
7182
 
-                 <bool>false</bool>
7183
 
-                </property>
7184
 
-                <property name="buddy" >
7185
 
-                 <cstring>mangledStackSpin</cstring>
7186
 
-                </property>
7187
 
-               </widget>
7188
 
-              </item>
7189
 
-              <item row="0" column="1" >
7190
 
-               <widget class="KIntSpinBox" name="mangledStackSpin" >
7191
 
-                <property name="sizePolicy" >
7192
 
-                 <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
7193
 
-                  <horstretch>0</horstretch>
7194
 
-                  <verstretch>0</verstretch>
7195
 
-                 </sizepolicy>
7196
 
-                </property>
7197
 
-                <property name="maximum" >
7198
 
-                 <number>2147483647</number>
7199
 
-                </property>
7200
 
-               </widget>
7201
 
-              </item>
7202
 
-              <item row="0" column="2" >
7203
 
-               <spacer>
7204
 
-                <property name="orientation" >
7205
 
-                 <enum>Qt::Horizontal</enum>
7206
 
-                </property>
7207
 
-                <property name="sizeHint" >
7208
 
-                 <size>
7209
 
-                  <width>40</width>
7210
 
-                  <height>20</height>
7211
 
-                 </size>
7212
 
-                </property>
7213
 
-               </spacer>
7214
 
-              </item>
7215
 
-              <item row="1" column="0" >
7216
 
-               <widget class="QLabel" name="TextLabel6_2_2_2" >
7217
 
-                <property name="sizePolicy" >
7218
 
-                 <sizepolicy vsizetype="Preferred" hsizetype="Fixed" >
7219
 
-                  <horstretch>0</horstretch>
7220
 
-                  <verstretch>0</verstretch>
7221
 
-                 </sizepolicy>
7222
 
-                </property>
7223
 
-                <property name="text" >
7224
 
-                 <string>Mangle prefi&amp;x:</string>
7225
 
-                </property>
7226
 
-                <property name="wordWrap" >
7227
 
-                 <bool>false</bool>
7228
 
-                </property>
7229
 
-                <property name="buddy" >
7230
 
-                 <cstring>manglePrefixSpin</cstring>
7231
 
-                </property>
7232
 
-               </widget>
7233
 
-              </item>
7234
 
-              <item row="1" column="1" >
7235
 
-               <widget class="KIntSpinBox" name="manglePrefixSpin" >
7236
 
-                <property name="minimum" >
7237
 
-                 <number>1</number>
7238
 
-                </property>
7239
 
-                <property name="maximum" >
7240
 
-                 <number>6</number>
7241
 
-                </property>
7242
 
-               </widget>
7243
 
-              </item>
7244
 
-             </layout>
7245
 
-            </widget>
7246
 
-           </item>
7247
 
-           <item>
7248
 
-            <widget class="QGroupBox" name="groupBox53" >
7249
 
-             <property name="title" >
7250
 
-              <string>Specia&amp;l</string>
7251
 
-             </property>
7252
 
-             <layout class="QVBoxLayout" >
7253
 
-              <property name="spacing" >
7254
 
-               <number>6</number>
7255
 
-              </property>
7256
 
-              <property name="leftMargin" >
7257
 
-               <number>11</number>
7258
 
-              </property>
7259
 
-              <property name="topMargin" >
7260
 
-               <number>11</number>
7261
 
-              </property>
7262
 
-              <property name="rightMargin" >
7263
 
-               <number>11</number>
7264
 
-              </property>
7265
 
-              <property name="bottomMargin" >
7266
 
-               <number>11</number>
7267
 
-              </property>
7268
 
-              <item>
7269
 
-               <widget class="QCheckBox" name="statCacheChk" >
7270
 
-                <property name="text" >
7271
 
-                 <string>Stat cache</string>
7272
 
-                </property>
7273
 
-               </widget>
7274
 
-              </item>
7275
 
-             </layout>
7276
 
-            </widget>
7277
 
-           </item>
7278
 
-           <item>
7279
 
-            <spacer>
7280
 
-             <property name="orientation" >
7281
 
-              <enum>Qt::Vertical</enum>
7282
 
-             </property>
7283
 
-             <property name="sizeType" >
7284
 
-              <enum>QSizePolicy::Expanding</enum>
7285
 
-             </property>
7286
 
-             <property name="sizeHint" >
7287
 
-              <size>
7288
 
-               <width>20</width>
7289
 
-               <height>280</height>
7290
 
-              </size>
7291
 
-             </property>
7292
 
-            </spacer>
7293
 
-           </item>
7294
 
-          </layout>
7295
 
-         </widget>
7296
 
-         <widget class="QWidget" name="tab" >
7297
 
-          <attribute name="title" >
7298
 
-           <string>Locking</string>
7299
 
-          </attribute>
7300
 
-          <layout class="QVBoxLayout" >
7301
 
-           <item>
7302
 
-            <widget class="QGroupBox" name="groupBox59" >
7303
 
-             <property name="title" >
7304
 
-              <string>&amp;General</string>
7305
 
-             </property>
7306
 
-             <layout class="QHBoxLayout" >
7307
 
-              <property name="spacing" >
7308
 
-               <number>6</number>
7309
 
-              </property>
7310
 
-              <property name="leftMargin" >
7311
 
-               <number>11</number>
7312
 
-              </property>
7313
 
-              <property name="topMargin" >
7314
 
-               <number>11</number>
7315
 
-              </property>
7316
 
-              <property name="rightMargin" >
7317
 
-               <number>11</number>
7318
 
-              </property>
7319
 
-              <property name="bottomMargin" >
7320
 
-               <number>11</number>
7321
 
-              </property>
7322
 
-              <item>
7323
 
-               <widget class="QCheckBox" name="kernelOplocksChk" >
7324
 
-                <property name="text" >
7325
 
-                 <string>Use ker&amp;nel oplocks</string>
7326
 
-                </property>
7327
 
-               </widget>
7328
 
-              </item>
7329
 
-             </layout>
7330
 
-            </widget>
7331
 
-           </item>
7332
 
-           <item>
7333
 
-            <widget class="QGroupBox" name="groupBox56" >
7334
 
-             <property name="title" >
7335
 
-              <string>Direct&amp;ories</string>
7336
 
-             </property>
7337
 
-             <layout class="QGridLayout" >
7338
 
-              <property name="leftMargin" >
7339
 
-               <number>11</number>
7340
 
-              </property>
7341
 
-              <property name="topMargin" >
7342
 
-               <number>11</number>
7343
 
-              </property>
7344
 
-              <property name="rightMargin" >
7345
 
-               <number>11</number>
7346
 
-              </property>
7347
 
-              <property name="bottomMargin" >
7348
 
-               <number>11</number>
7349
 
-              </property>
7350
 
-              <property name="horizontalSpacing" >
7351
 
-               <number>6</number>
7352
 
-              </property>
7353
 
-              <property name="verticalSpacing" >
7354
 
-               <number>6</number>
7355
 
-              </property>
7356
 
-              <item row="0" column="0" >
7357
 
-               <widget class="QLabel" name="TextLabel5_2" >
7358
 
-                <property name="text" >
7359
 
-                 <string>Loc&amp;k directory:</string>
7360
 
-                </property>
7361
 
-                <property name="wordWrap" >
7362
 
-                 <bool>false</bool>
7363
 
-                </property>
7364
 
-                <property name="buddy" >
7365
 
-                 <cstring>lockDirectoryUrlRq</cstring>
7366
 
-                </property>
7367
 
-               </widget>
7368
 
-              </item>
7369
 
-              <item row="0" column="1" >
7370
 
-               <widget class="KUrlRequester" name="lockDirectoryUrlRq" />
7371
 
-              </item>
7372
 
-              <item row="1" column="0" >
7373
 
-               <widget class="QLabel" name="TextLabel6_2" >
7374
 
-                <property name="text" >
7375
 
-                 <string>Pid director&amp;y:</string>
7376
 
-                </property>
7377
 
-                <property name="wordWrap" >
7378
 
-                 <bool>false</bool>
7379
 
-                </property>
7380
 
-                <property name="buddy" >
7381
 
-                 <cstring>pidDirectoryUrlRq</cstring>
7382
 
-                </property>
7383
 
-               </widget>
7384
 
-              </item>
7385
 
-              <item row="1" column="1" >
7386
 
-               <widget class="KUrlRequester" name="pidDirectoryUrlRq" />
7387
 
-              </item>
7388
 
-             </layout>
7389
 
-            </widget>
7390
 
-           </item>
7391
 
-           <item>
7392
 
-            <widget class="QGroupBox" name="groupBox57" >
7393
 
-             <property name="title" >
7394
 
-              <string>Lock Spin</string>
7395
 
-             </property>
7396
 
-             <layout class="QGridLayout" >
7397
 
-              <item row="0" column="0" >
7398
 
-               <widget class="QLabel" name="textLabel2_2" >
7399
 
-                <property name="text" >
7400
 
-                 <string>&amp;Lock spin count:</string>
7401
 
-                </property>
7402
 
-                <property name="wordWrap" >
7403
 
-                 <bool>false</bool>
7404
 
-                </property>
7405
 
-                <property name="buddy" >
7406
 
-                 <cstring>lockSpinCountSpin</cstring>
7407
 
-                </property>
7408
 
-               </widget>
7409
 
-              </item>
7410
 
-              <item row="0" column="1" >
7411
 
-               <widget class="KIntSpinBox" name="lockSpinCountSpin" >
7412
 
-                <property name="maximum" >
7413
 
-                 <number>2147483647</number>
7414
 
-                </property>
7415
 
-               </widget>
7416
 
-              </item>
7417
 
-              <item row="1" column="0" >
7418
 
-               <widget class="QLabel" name="textLabel2_2_2" >
7419
 
-                <property name="text" >
7420
 
-                 <string>Lock spin ti&amp;me:</string>
7421
 
-                </property>
7422
 
-                <property name="wordWrap" >
7423
 
-                 <bool>false</bool>
7424
 
-                </property>
7425
 
-                <property name="buddy" >
7426
 
-                 <cstring>lockSpinTimeSpin</cstring>
7427
 
-                </property>
7428
 
-               </widget>
7429
 
-              </item>
7430
 
-              <item row="1" column="1" >
7431
 
-               <widget class="KIntSpinBox" name="lockSpinTimeSpin" >
7432
 
-                <property name="maximum" >
7433
 
-                 <number>2147483647</number>
7434
 
-                </property>
7435
 
-               </widget>
7436
 
-              </item>
7437
 
-              <item row="1" column="2" >
7438
 
-               <widget class="QLabel" name="textLabel3_2" >
7439
 
-                <property name="text" >
7440
 
-                 <string>microseconds</string>
7441
 
-                </property>
7442
 
-                <property name="wordWrap" >
7443
 
-                 <bool>false</bool>
7444
 
-                </property>
7445
 
-               </widget>
7446
 
-              </item>
7447
 
-              <item row="1" column="3" >
7448
 
-               <spacer>
7449
 
-                <property name="orientation" >
7450
 
-                 <enum>Qt::Horizontal</enum>
7451
 
-                </property>
7452
 
-                <property name="sizeHint" >
7453
 
-                 <size>
7454
 
-                  <width>40</width>
7455
 
-                  <height>20</height>
7456
 
-                 </size>
7457
 
-                </property>
7458
 
-               </spacer>
7459
 
-              </item>
7460
 
-             </layout>
7461
 
-            </widget>
7462
 
-           </item>
7463
 
-           <item>
7464
 
-            <widget class="QGroupBox" name="groupBox58" >
7465
 
-             <property name="title" >
7466
 
-              <string>Very Advanced</string>
7467
 
-             </property>
7468
 
-             <layout class="QHBoxLayout" >
7469
 
-              <item>
7470
 
-               <widget class="QLabel" name="textLabel2" >
7471
 
-                <property name="font" >
7472
 
-                 <font/>
7473
 
-                </property>
7474
 
-                <property name="text" >
7475
 
-                 <string>Oplock break &amp;wait time:</string>
7476
 
-                </property>
7477
 
-                <property name="alignment" >
7478
 
-                 <set>Qt::AlignVCenter</set>
7479
 
-                </property>
7480
 
-                <property name="wordWrap" >
7481
 
-                 <bool>false</bool>
7482
 
-                </property>
7483
 
-                <property name="buddy" >
7484
 
-                 <cstring>oplockBreakWaitTimeSpin</cstring>
7485
 
-                </property>
7486
 
-               </widget>
7487
 
-              </item>
7488
 
-              <item>
7489
 
-               <widget class="KIntSpinBox" name="oplockBreakWaitTimeSpin" >
7490
 
-                <property name="maximum" >
7491
 
-                 <number>2147483647</number>
7492
 
-                </property>
7493
 
-               </widget>
7494
 
-              </item>
7495
 
-              <item>
7496
 
-               <widget class="QLabel" name="textLabel3" >
7497
 
-                <property name="text" >
7498
 
-                 <string>milliseconds</string>
7499
 
-                </property>
7500
 
-                <property name="wordWrap" >
7501
 
-                 <bool>false</bool>
7502
 
-                </property>
7503
 
-               </widget>
7504
 
-              </item>
7505
 
-              <item>
7506
 
-               <spacer>
7507
 
-                <property name="orientation" >
7508
 
-                 <enum>Qt::Horizontal</enum>
7509
 
-                </property>
7510
 
-                <property name="sizeHint" >
7511
 
-                 <size>
7512
 
-                  <width>40</width>
7513
 
-                  <height>20</height>
7514
 
-                 </size>
7515
 
-                </property>
7516
 
-               </spacer>
7517
 
-              </item>
7518
 
-             </layout>
7519
 
-            </widget>
7520
 
-           </item>
7521
 
-           <item>
7522
 
-            <spacer>
7523
 
-             <property name="orientation" >
7524
 
-              <enum>Qt::Vertical</enum>
7525
 
-             </property>
7526
 
-             <property name="sizeType" >
7527
 
-              <enum>QSizePolicy::Expanding</enum>
7528
 
-             </property>
7529
 
-             <property name="sizeHint" >
7530
 
-              <size>
7531
 
-               <width>20</width>
7532
 
-               <height>120</height>
7533
 
-              </size>
7534
 
-             </property>
7535
 
-            </spacer>
7536
 
-           </item>
7537
 
-          </layout>
7538
 
-         </widget>
7539
 
-         <widget class="QWidget" name="tab" >
7540
 
-          <attribute name="title" >
7541
 
-           <string>Charset</string>
7542
 
-          </attribute>
7543
 
-          <layout class="QVBoxLayout" >
7544
 
-           <property name="spacing" >
7545
 
-            <number>6</number>
7546
 
-           </property>
7547
 
-           <property name="leftMargin" >
7548
 
-            <number>0</number>
7549
 
-           </property>
7550
 
-           <property name="topMargin" >
7551
 
-            <number>0</number>
7552
 
-           </property>
7553
 
-           <property name="rightMargin" >
7554
 
-            <number>0</number>
7555
 
-           </property>
7556
 
-           <property name="bottomMargin" >
7557
 
-            <number>0</number>
7558
 
-           </property>
7559
 
-           <item>
7560
 
-            <widget class="QGroupBox" name="groupBox40" >
7561
 
-             <property name="title" >
7562
 
-              <string>Samba &amp;3.x</string>
7563
 
-             </property>
7564
 
-             <layout class="QGridLayout" >
7565
 
-              <property name="leftMargin" >
7566
 
-               <number>11</number>
7567
 
-              </property>
7568
 
-              <property name="topMargin" >
7569
 
-               <number>11</number>
7570
 
-              </property>
7571
 
-              <property name="rightMargin" >
7572
 
-               <number>11</number>
7573
 
-              </property>
7574
 
-              <property name="bottomMargin" >
7575
 
-               <number>11</number>
7576
 
-              </property>
7577
 
-              <property name="horizontalSpacing" >
7578
 
-               <number>6</number>
7579
 
-              </property>
7580
 
-              <property name="verticalSpacing" >
7581
 
-               <number>6</number>
7582
 
-              </property>
7583
 
-              <item row="3" column="0" >
7584
 
-               <widget class="QLabel" name="TextLabel1_2_4_2_2_2_2_3" >
7585
 
-                <property name="font" >
7586
 
-                 <font/>
7587
 
-                </property>
7588
 
-                <property name="text" >
7589
 
-                 <string>D&amp;OS charset:</string>
7590
 
-                </property>
7591
 
-                <property name="wordWrap" >
7592
 
-                 <bool>false</bool>
7593
 
-                </property>
7594
 
-                <property name="buddy" >
7595
 
-                 <cstring>dosCharsetEdit</cstring>
7596
 
-                </property>
7597
 
-               </widget>
7598
 
-              </item>
7599
 
-              <item row="3" column="1" >
7600
 
-               <widget class="QLineEdit" name="dosCharsetEdit" >
7601
 
-                <property name="font" >
7602
 
-                 <font/>
7603
 
-                </property>
7604
 
-               </widget>
7605
 
-              </item>
7606
 
-              <item row="2" column="0" >
7607
 
-               <widget class="QLabel" name="TextLabel1_2_4_2_2_2_2_2" >
7608
 
-                <property name="font" >
7609
 
-                 <font/>
7610
 
-                </property>
7611
 
-                <property name="text" >
7612
 
-                 <string>UNI&amp;X charset:</string>
7613
 
-                </property>
7614
 
-                <property name="wordWrap" >
7615
 
-                 <bool>false</bool>
7616
 
-                </property>
7617
 
-                <property name="buddy" >
7618
 
-                 <cstring>unixCharsetEdit</cstring>
7619
 
-                </property>
7620
 
-               </widget>
7621
 
-              </item>
7622
 
-              <item row="2" column="1" >
7623
 
-               <widget class="QLineEdit" name="unixCharsetEdit" >
7624
 
-                <property name="font" >
7625
 
-                 <font/>
7626
 
-                </property>
7627
 
-               </widget>
7628
 
-              </item>
7629
 
-              <item row="1" column="0" >
7630
 
-               <widget class="QLabel" name="TextLabel1_2_4_2_2_2_2" >
7631
 
-                <property name="font" >
7632
 
-                 <font/>
7633
 
-                </property>
7634
 
-                <property name="text" >
7635
 
-                 <string>Displa&amp;y charset:</string>
7636
 
-                </property>
7637
 
-                <property name="wordWrap" >
7638
 
-                 <bool>false</bool>
7639
 
-                </property>
7640
 
-                <property name="buddy" >
7641
 
-                 <cstring>displayCharsetEdit</cstring>
7642
 
-                </property>
7643
 
-               </widget>
7644
 
-              </item>
7645
 
-              <item row="1" column="1" >
7646
 
-               <widget class="QLineEdit" name="displayCharsetEdit" >
7647
 
-                <property name="font" >
7648
 
-                 <font/>
7649
 
-                </property>
7650
 
-               </widget>
7651
 
-              </item>
7652
 
-              <item row="0" column="0" colspan="2" >
7653
 
-               <widget class="QCheckBox" name="unicodeChk" >
7654
 
-                <property name="text" >
7655
 
-                 <string>U&amp;nicode</string>
7656
 
-                </property>
7657
 
-               </widget>
7658
 
-              </item>
7659
 
-             </layout>
7660
 
-            </widget>
7661
 
-           </item>
7662
 
-           <item>
7663
 
-            <widget class="QGroupBox" name="groupBox39" >
7664
 
-             <property name="title" >
7665
 
-              <string>Samba &amp;2.x</string>
7666
 
-             </property>
7667
 
-             <layout class="QGridLayout" >
7668
 
-              <property name="leftMargin" >
7669
 
-               <number>11</number>
7670
 
-              </property>
7671
 
-              <property name="topMargin" >
7672
 
-               <number>11</number>
7673
 
-              </property>
7674
 
-              <property name="rightMargin" >
7675
 
-               <number>11</number>
7676
 
-              </property>
7677
 
-              <property name="bottomMargin" >
7678
 
-               <number>11</number>
7679
 
-              </property>
7680
 
-              <property name="horizontalSpacing" >
7681
 
-               <number>6</number>
7682
 
-              </property>
7683
 
-              <property name="verticalSpacing" >
7684
 
-               <number>6</number>
7685
 
-              </property>
7686
 
-              <item row="0" column="0" >
7687
 
-               <widget class="QLabel" name="TextLabel5_2_4" >
7688
 
-                <property name="text" >
7689
 
-                 <string>Character set:</string>
7690
 
-                </property>
7691
 
-                <property name="wordWrap" >
7692
 
-                 <bool>false</bool>
7693
 
-                </property>
7694
 
-                <property name="buddy" >
7695
 
-                 <cstring>characterSetEdit</cstring>
7696
 
-                </property>
7697
 
-               </widget>
7698
 
-              </item>
7699
 
-              <item row="0" column="1" >
7700
 
-               <widget class="QLineEdit" name="characterSetEdit" />
7701
 
-              </item>
7702
 
-              <item row="1" column="1" >
7703
 
-               <widget class="QLineEdit" name="clientCodePageEdit" >
7704
 
-                <property name="font" >
7705
 
-                 <font/>
7706
 
-                </property>
7707
 
-               </widget>
7708
 
-              </item>
7709
 
-              <item row="4" column="0" >
7710
 
-               <widget class="QLabel" name="TextLabel12" >
7711
 
-                <property name="text" >
7712
 
-                 <string>Va&amp;lid chars:</string>
7713
 
-                </property>
7714
 
-                <property name="wordWrap" >
7715
 
-                 <bool>false</bool>
7716
 
-                </property>
7717
 
-                <property name="buddy" >
7718
 
-                 <cstring>validCharsEdit</cstring>
7719
 
-                </property>
7720
 
-               </widget>
7721
 
-              </item>
7722
 
-              <item row="2" column="1" >
7723
 
-               <widget class="KUrlRequester" name="codePageDirUrlRq" >
7724
 
-                <property name="font" >
7725
 
-                 <font/>
7726
 
-                </property>
7727
 
-               </widget>
7728
 
-              </item>
7729
 
-              <item row="4" column="1" >
7730
 
-               <widget class="QLineEdit" name="validCharsEdit" />
7731
 
-              </item>
7732
 
-              <item row="2" column="0" >
7733
 
-               <widget class="QLabel" name="TextLabel1_2_4_3_2" >
7734
 
-                <property name="font" >
7735
 
-                 <font/>
7736
 
-                </property>
7737
 
-                <property name="text" >
7738
 
-                 <string>Code page directory:</string>
7739
 
-                </property>
7740
 
-                <property name="wordWrap" >
7741
 
-                 <bool>false</bool>
7742
 
-                </property>
7743
 
-                <property name="buddy" >
7744
 
-                 <cstring>codePageDirUrlRq</cstring>
7745
 
-                </property>
7746
 
-               </widget>
7747
 
-              </item>
7748
 
-              <item row="3" column="1" >
7749
 
-               <widget class="QLineEdit" name="codingSystemEdit" >
7750
 
-                <property name="font" >
7751
 
-                 <font/>
7752
 
-                </property>
7753
 
-               </widget>
7754
 
-              </item>
7755
 
-              <item row="3" column="0" >
7756
 
-               <widget class="QLabel" name="TextLabel1_2_4_2_2_2" >
7757
 
-                <property name="font" >
7758
 
-                 <font/>
7759
 
-                </property>
7760
 
-                <property name="text" >
7761
 
-                 <string>Codin&amp;g system:</string>
7762
 
-                </property>
7763
 
-                <property name="wordWrap" >
7764
 
-                 <bool>false</bool>
7765
 
-                </property>
7766
 
-                <property name="buddy" >
7767
 
-                 <cstring>codingSystemEdit</cstring>
7768
 
-                </property>
7769
 
-               </widget>
7770
 
-              </item>
7771
 
-              <item row="1" column="0" >
7772
 
-               <widget class="QLabel" name="TextLabel1_2_3_2_2" >
7773
 
-                <property name="font" >
7774
 
-                 <font/>
7775
 
-                </property>
7776
 
-                <property name="text" >
7777
 
-                 <string>Client code page:</string>
7778
 
-                </property>
7779
 
-                <property name="wordWrap" >
7780
 
-                 <bool>false</bool>
7781
 
-                </property>
7782
 
-                <property name="buddy" >
7783
 
-                 <cstring>clientCodePageEdit</cstring>
7784
 
-                </property>
7785
 
-               </widget>
7786
 
-              </item>
7787
 
-             </layout>
7788
 
-            </widget>
7789
 
-           </item>
7790
 
-           <item>
7791
 
-            <spacer>
7792
 
-             <property name="orientation" >
7793
 
-              <enum>Qt::Vertical</enum>
7794
 
-             </property>
7795
 
-             <property name="sizeType" >
7796
 
-              <enum>QSizePolicy::Expanding</enum>
7797
 
-             </property>
7798
 
-             <property name="sizeHint" >
7799
 
-              <size>
7800
 
-               <width>20</width>
7801
 
-               <height>80</height>
7802
 
-              </size>
7803
 
-             </property>
7804
 
-            </spacer>
7805
 
-           </item>
7806
 
-          </layout>
7807
 
-         </widget>
7808
 
-         <widget class="QWidget" name="tab" >
7809
 
-          <attribute name="title" >
7810
 
-           <string>Logon</string>
7811
 
-          </attribute>
7812
 
-          <layout class="QGridLayout" >
7813
 
-           <property name="leftMargin" >
7814
 
-            <number>0</number>
7815
 
-           </property>
7816
 
-           <property name="topMargin" >
7817
 
-            <number>0</number>
7818
 
-           </property>
7819
 
-           <property name="rightMargin" >
7820
 
-            <number>0</number>
7821
 
-           </property>
7822
 
-           <property name="bottomMargin" >
7823
 
-            <number>0</number>
7824
 
-           </property>
7825
 
-           <property name="horizontalSpacing" >
7826
 
-            <number>6</number>
7827
 
-           </property>
7828
 
-           <property name="verticalSpacing" >
7829
 
-            <number>6</number>
7830
 
-           </property>
7831
 
-           <item row="0" column="0" >
7832
 
-            <widget class="QGroupBox" name="groupBox60" >
7833
 
-             <property name="title" >
7834
 
-              <string>Add Scripts</string>
7835
 
-             </property>
7836
 
-             <layout class="QGridLayout" >
7837
 
-              <property name="leftMargin" >
7838
 
-               <number>11</number>
7839
 
-              </property>
7840
 
-              <property name="topMargin" >
7841
 
-               <number>11</number>
7842
 
-              </property>
7843
 
-              <property name="rightMargin" >
7844
 
-               <number>11</number>
7845
 
-              </property>
7846
 
-              <property name="bottomMargin" >
7847
 
-               <number>11</number>
7848
 
-              </property>
7849
 
-              <property name="horizontalSpacing" >
7850
 
-               <number>6</number>
7851
 
-              </property>
7852
 
-              <property name="verticalSpacing" >
7853
 
-               <number>6</number>
7854
 
-              </property>
7855
 
-              <item row="0" column="0" >
7856
 
-               <widget class="QLabel" name="TextLabel7_2" >
7857
 
-                <property name="text" >
7858
 
-                 <string>Add user script:</string>
7859
 
-                </property>
7860
 
-                <property name="wordWrap" >
7861
 
-                 <bool>false</bool>
7862
 
-                </property>
7863
 
-                <property name="buddy" >
7864
 
-                 <cstring>addUserScriptEdit</cstring>
7865
 
-                </property>
7866
 
-               </widget>
7867
 
-              </item>
7868
 
-              <item row="0" column="1" >
7869
 
-               <widget class="QLineEdit" name="addUserScriptEdit" />
7870
 
-              </item>
7871
 
-              <item row="2" column="0" >
7872
 
-               <widget class="QLabel" name="TextLabel7_2_5_2" >
7873
 
-                <property name="text" >
7874
 
-                 <string>Add user to group script:</string>
7875
 
-                </property>
7876
 
-                <property name="wordWrap" >
7877
 
-                 <bool>false</bool>
7878
 
-                </property>
7879
 
-                <property name="buddy" >
7880
 
-                 <cstring>addUserToGroupScriptEdit</cstring>
7881
 
-                </property>
7882
 
-               </widget>
7883
 
-              </item>
7884
 
-              <item row="1" column="0" >
7885
 
-               <widget class="QLabel" name="TextLabel7_2_5" >
7886
 
-                <property name="text" >
7887
 
-                 <string>Add gr&amp;oup script:</string>
7888
 
-                </property>
7889
 
-                <property name="wordWrap" >
7890
 
-                 <bool>false</bool>
7891
 
-                </property>
7892
 
-                <property name="buddy" >
7893
 
-                 <cstring>addGroupScriptEdit</cstring>
7894
 
-                </property>
7895
 
-               </widget>
7896
 
-              </item>
7897
 
-              <item row="1" column="1" >
7898
 
-               <widget class="QLineEdit" name="addGroupScriptEdit" />
7899
 
-              </item>
7900
 
-              <item row="2" column="1" >
7901
 
-               <widget class="QLineEdit" name="addUserToGroupScriptEdit" />
7902
 
-              </item>
7903
 
-              <item row="3" column="0" >
7904
 
-               <widget class="QLabel" name="TextLabel7_2_6" >
7905
 
-                <property name="text" >
7906
 
-                 <string>Add machine script:</string>
7907
 
-                </property>
7908
 
-                <property name="wordWrap" >
7909
 
-                 <bool>false</bool>
7910
 
-                </property>
7911
 
-                <property name="buddy" >
7912
 
-                 <cstring>addMachineScriptEdit</cstring>
7913
 
-                </property>
7914
 
-               </widget>
7915
 
-              </item>
7916
 
-              <item row="3" column="1" >
7917
 
-               <widget class="QLineEdit" name="addMachineScriptEdit" />
7918
 
-              </item>
7919
 
-             </layout>
7920
 
-            </widget>
7921
 
-           </item>
7922
 
-           <item row="3" column="0" >
7923
 
-            <spacer>
7924
 
-             <property name="orientation" >
7925
 
-              <enum>Qt::Vertical</enum>
7926
 
-             </property>
7927
 
-             <property name="sizeType" >
7928
 
-              <enum>QSizePolicy::Expanding</enum>
7929
 
-             </property>
7930
 
-             <property name="sizeHint" >
7931
 
-              <size>
7932
 
-               <width>20</width>
7933
 
-               <height>20</height>
7934
 
-              </size>
7935
 
-             </property>
7936
 
-            </spacer>
7937
 
-           </item>
7938
 
-           <item row="0" column="1" >
7939
 
-            <widget class="QGroupBox" name="groupBox61" >
7940
 
-             <property name="title" >
7941
 
-              <string>Delete Scripts</string>
7942
 
-             </property>
7943
 
-             <layout class="QGridLayout" >
7944
 
-              <property name="leftMargin" >
7945
 
-               <number>11</number>
7946
 
-              </property>
7947
 
-              <property name="topMargin" >
7948
 
-               <number>11</number>
7949
 
-              </property>
7950
 
-              <property name="rightMargin" >
7951
 
-               <number>11</number>
7952
 
-              </property>
7953
 
-              <property name="bottomMargin" >
7954
 
-               <number>11</number>
7955
 
-              </property>
7956
 
-              <property name="horizontalSpacing" >
7957
 
-               <number>6</number>
7958
 
-              </property>
7959
 
-              <property name="verticalSpacing" >
7960
 
-               <number>6</number>
7961
 
-              </property>
7962
 
-              <item row="0" column="1" >
7963
 
-               <widget class="QLineEdit" name="deleteUserScriptEdit" />
7964
 
-              </item>
7965
 
-              <item row="2" column="1" >
7966
 
-               <widget class="QLineEdit" name="deleteUserFromGroupScriptEdit" />
7967
 
-              </item>
7968
 
-              <item row="1" column="1" >
7969
 
-               <widget class="QLineEdit" name="deleteGroupScriptEdit" />
7970
 
-              </item>
7971
 
-              <item row="1" column="0" >
7972
 
-               <widget class="QLabel" name="TextLabel7_2_2_2" >
7973
 
-                <property name="text" >
7974
 
-                 <string>Delete group script:</string>
7975
 
-                </property>
7976
 
-                <property name="wordWrap" >
7977
 
-                 <bool>false</bool>
7978
 
-                </property>
7979
 
-                <property name="buddy" >
7980
 
-                 <cstring>deleteGroupScriptEdit</cstring>
7981
 
-                </property>
7982
 
-               </widget>
7983
 
-              </item>
7984
 
-              <item row="0" column="0" >
7985
 
-               <widget class="QLabel" name="TextLabel7_2_2" >
7986
 
-                <property name="text" >
7987
 
-                 <string>Delete user script:</string>
7988
 
-                </property>
7989
 
-                <property name="wordWrap" >
7990
 
-                 <bool>false</bool>
7991
 
-                </property>
7992
 
-                <property name="buddy" >
7993
 
-                 <cstring>deleteUserScriptEdit</cstring>
7994
 
-                </property>
7995
 
-               </widget>
7996
 
-              </item>
7997
 
-              <item row="2" column="0" >
7998
 
-               <widget class="QLabel" name="TextLabel7_2_2_2_2" >
7999
 
-                <property name="text" >
8000
 
-                 <string>Delete user from group script:</string>
8001
 
-                </property>
8002
 
-                <property name="wordWrap" >
8003
 
-                 <bool>false</bool>
8004
 
-                </property>
8005
 
-                <property name="buddy" >
8006
 
-                 <cstring>deleteUserFromGroupScriptEdit</cstring>
8007
 
-                </property>
8008
 
-               </widget>
8009
 
-              </item>
8010
 
-             </layout>
8011
 
-            </widget>
8012
 
-           </item>
8013
 
-           <item row="2" column="0" >
8014
 
-            <widget class="QGroupBox" name="groupBox64" >
8015
 
-             <property name="title" >
8016
 
-              <string>Primary Group Script</string>
8017
 
-             </property>
8018
 
-             <layout class="QHBoxLayout" >
8019
 
-              <property name="spacing" >
8020
 
-               <number>6</number>
8021
 
-              </property>
8022
 
-              <property name="leftMargin" >
8023
 
-               <number>11</number>
8024
 
-              </property>
8025
 
-              <property name="topMargin" >
8026
 
-               <number>11</number>
8027
 
-              </property>
8028
 
-              <property name="rightMargin" >
8029
 
-               <number>11</number>
8030
 
-              </property>
8031
 
-              <property name="bottomMargin" >
8032
 
-               <number>11</number>
8033
 
-              </property>
8034
 
-              <item>
8035
 
-               <widget class="QLabel" name="TextLabel7_2_5_3" >
8036
 
-                <property name="text" >
8037
 
-                 <string>Set primar&amp;y group script:</string>
8038
 
-                </property>
8039
 
-                <property name="wordWrap" >
8040
 
-                 <bool>false</bool>
8041
 
-                </property>
8042
 
-                <property name="buddy" >
8043
 
-                 <cstring>SetPrimaryGroupScriptEdit</cstring>
8044
 
-                </property>
8045
 
-               </widget>
8046
 
-              </item>
8047
 
-              <item>
8048
 
-               <widget class="QLineEdit" name="SetPrimaryGroupScriptEdit" />
8049
 
-              </item>
8050
 
-             </layout>
8051
 
-            </widget>
8052
 
-           </item>
8053
 
-           <item row="1" column="0" >
8054
 
-            <widget class="QGroupBox" name="groupBox62" >
8055
 
-             <property name="title" >
8056
 
-              <string>Shutdown</string>
8057
 
-             </property>
8058
 
-             <layout class="QGridLayout" >
8059
 
-              <property name="leftMargin" >
8060
 
-               <number>11</number>
8061
 
-              </property>
8062
 
-              <property name="topMargin" >
8063
 
-               <number>11</number>
8064
 
-              </property>
8065
 
-              <property name="rightMargin" >
8066
 
-               <number>11</number>
8067
 
-              </property>
8068
 
-              <property name="bottomMargin" >
8069
 
-               <number>11</number>
8070
 
-              </property>
8071
 
-              <property name="horizontalSpacing" >
8072
 
-               <number>6</number>
8073
 
-              </property>
8074
 
-              <property name="verticalSpacing" >
8075
 
-               <number>6</number>
8076
 
-              </property>
8077
 
-              <item row="0" column="0" >
8078
 
-               <widget class="QLabel" name="TextLabel7_2_3_2" >
8079
 
-                <property name="text" >
8080
 
-                 <string>Shutdo&amp;wn script:</string>
8081
 
-                </property>
8082
 
-                <property name="wordWrap" >
8083
 
-                 <bool>false</bool>
8084
 
-                </property>
8085
 
-                <property name="buddy" >
8086
 
-                 <cstring>shutdownScriptEdit</cstring>
8087
 
-                </property>
8088
 
-               </widget>
8089
 
-              </item>
8090
 
-              <item row="1" column="0" >
8091
 
-               <widget class="QLabel" name="TextLabel7_2_3_3" >
8092
 
-                <property name="text" >
8093
 
-                 <string>Abort shutdown script:</string>
8094
 
-                </property>
8095
 
-                <property name="wordWrap" >
8096
 
-                 <bool>false</bool>
8097
 
-                </property>
8098
 
-                <property name="buddy" >
8099
 
-                 <cstring>abortShutdownScriptEdit</cstring>
8100
 
-                </property>
8101
 
-               </widget>
8102
 
-              </item>
8103
 
-              <item row="0" column="1" >
8104
 
-               <widget class="QLineEdit" name="shutdownScriptEdit" />
8105
 
-              </item>
8106
 
-              <item row="1" column="1" >
8107
 
-               <widget class="QLineEdit" name="abortShutdownScriptEdit" />
8108
 
-              </item>
8109
 
-             </layout>
8110
 
-            </widget>
8111
 
-           </item>
8112
 
-           <item rowspan="2" row="1" column="1" >
8113
 
-            <widget class="QGroupBox" name="groupBox63" >
8114
 
-             <property name="title" >
8115
 
-              <string>Logon</string>
8116
 
-             </property>
8117
 
-             <layout class="QGridLayout" >
8118
 
-              <property name="leftMargin" >
8119
 
-               <number>11</number>
8120
 
-              </property>
8121
 
-              <property name="topMargin" >
8122
 
-               <number>11</number>
8123
 
-              </property>
8124
 
-              <property name="rightMargin" >
8125
 
-               <number>11</number>
8126
 
-              </property>
8127
 
-              <property name="bottomMargin" >
8128
 
-               <number>11</number>
8129
 
-              </property>
8130
 
-              <property name="horizontalSpacing" >
8131
 
-               <number>6</number>
8132
 
-              </property>
8133
 
-              <property name="verticalSpacing" >
8134
 
-               <number>6</number>
8135
 
-              </property>
8136
 
-              <item row="2" column="0" >
8137
 
-               <widget class="QLabel" name="TextLabel8_2_2" >
8138
 
-                <property name="text" >
8139
 
-                 <string>Logo&amp;n path:</string>
8140
 
-                </property>
8141
 
-                <property name="wordWrap" >
8142
 
-                 <bool>false</bool>
8143
 
-                </property>
8144
 
-                <property name="buddy" >
8145
 
-                 <cstring>logonPathUrlRq</cstring>
8146
 
-                </property>
8147
 
-               </widget>
8148
 
-              </item>
8149
 
-              <item row="3" column="1" >
8150
 
-               <widget class="KUrlRequester" name="logonHomeUrlRq" />
8151
 
-              </item>
8152
 
-              <item row="3" column="0" >
8153
 
-               <widget class="QLabel" name="TextLabel8_2" >
8154
 
-                <property name="text" >
8155
 
-                 <string>Logon ho&amp;me:</string>
8156
 
-                </property>
8157
 
-                <property name="wordWrap" >
8158
 
-                 <bool>false</bool>
8159
 
-                </property>
8160
 
-                <property name="buddy" >
8161
 
-                 <cstring>logonHomeUrlRq</cstring>
8162
 
-                </property>
8163
 
-               </widget>
8164
 
-              </item>
8165
 
-              <item row="1" column="1" >
8166
 
-               <widget class="QLineEdit" name="logonDriveEdit" />
8167
 
-              </item>
8168
 
-              <item row="1" column="0" >
8169
 
-               <widget class="QLabel" name="TextLabel7_2_4" >
8170
 
-                <property name="text" >
8171
 
-                 <string>&amp;Logon drive:</string>
8172
 
-                </property>
8173
 
-                <property name="wordWrap" >
8174
 
-                 <bool>false</bool>
8175
 
-                </property>
8176
 
-                <property name="buddy" >
8177
 
-                 <cstring>logonDriveEdit</cstring>
8178
 
-                </property>
8179
 
-               </widget>
8180
 
-              </item>
8181
 
-              <item row="2" column="1" >
8182
 
-               <widget class="KUrlRequester" name="logonPathUrlRq" />
8183
 
-              </item>
8184
 
-              <item row="0" column="0" >
8185
 
-               <widget class="QLabel" name="TextLabel7_2_3" >
8186
 
-                <property name="text" >
8187
 
-                 <string>Lo&amp;gon script:</string>
8188
 
-                </property>
8189
 
-                <property name="wordWrap" >
8190
 
-                 <bool>false</bool>
8191
 
-                </property>
8192
 
-                <property name="buddy" >
8193
 
-                 <cstring>logonScriptEdit</cstring>
8194
 
-                </property>
8195
 
-               </widget>
8196
 
-              </item>
8197
 
-              <item row="0" column="1" >
8198
 
-               <widget class="QLineEdit" name="logonScriptEdit" />
8199
 
-              </item>
8200
 
-             </layout>
8201
 
-            </widget>
8202
 
-           </item>
8203
 
-          </layout>
8204
 
-         </widget>
8205
 
-         <widget class="QWidget" name="tab" >
8206
 
-          <attribute name="title" >
8207
 
-           <string>Socket</string>
8208
 
-          </attribute>
8209
 
-          <layout class="QVBoxLayout" >
8210
 
-           <item>
8211
 
-            <layout class="QHBoxLayout" >
8212
 
-             <property name="spacing" >
8213
 
-              <number>6</number>
8214
 
-             </property>
8215
 
-             <property name="leftMargin" >
8216
 
-              <number>0</number>
8217
 
-             </property>
8218
 
-             <property name="topMargin" >
8219
 
-              <number>0</number>
8220
 
-             </property>
8221
 
-             <property name="rightMargin" >
8222
 
-              <number>0</number>
8223
 
-             </property>
8224
 
-             <property name="bottomMargin" >
8225
 
-              <number>0</number>
8226
 
-             </property>
8227
 
-             <item>
8228
 
-              <widget class="QLabel" name="TextLabel15" >
8229
 
-               <property name="text" >
8230
 
-                <string>Socket address:</string>
8231
 
-               </property>
8232
 
-               <property name="wordWrap" >
8233
 
-                <bool>false</bool>
8234
 
-               </property>
8235
 
-               <property name="buddy" >
8236
 
-                <cstring>socketAddressEdit</cstring>
8237
 
-               </property>
8238
 
-              </widget>
8239
 
-             </item>
8240
 
-             <item>
8241
 
-              <widget class="QLineEdit" name="socketAddressEdit" />
8242
 
-             </item>
8243
 
-            </layout>
8244
 
-           </item>
8245
 
-           <item>
8246
 
-            <widget class="QGroupBox" name="GroupBox7" >
8247
 
-             <property name="title" >
8248
 
-              <string>Socket Options</string>
8249
 
-             </property>
8250
 
-             <layout class="QGridLayout" >
8251
 
-              <item row="0" column="0" >
8252
 
-               <widget class="QCheckBox" name="TCP_NODELAYChk" >
8253
 
-                <property name="text" >
8254
 
-                 <string>TCP_NODELA&amp;Y</string>
8255
 
-                </property>
8256
 
-               </widget>
8257
 
-              </item>
8258
 
-              <item row="0" column="1" >
8259
 
-               <widget class="QCheckBox" name="SO_SNDBUFChk" >
8260
 
-                <property name="text" >
8261
 
-                 <string>SO_S&amp;NDBUF:</string>
8262
 
-                </property>
8263
 
-               </widget>
8264
 
-              </item>
8265
 
-              <item row="0" column="2" >
8266
 
-               <widget class="KIntSpinBox" name="SO_SNDBUFSpin" >
8267
 
-                <property name="enabled" >
8268
 
-                 <bool>false</bool>
8269
 
-                </property>
8270
 
-                <property name="maximum" >
8271
 
-                 <number>2147483647</number>
8272
 
-                </property>
8273
 
-               </widget>
8274
 
-              </item>
8275
 
-              <item row="0" column="3" >
8276
 
-               <spacer>
8277
 
-                <property name="orientation" >
8278
 
-                 <enum>Qt::Horizontal</enum>
8279
 
-                </property>
8280
 
-                <property name="sizeHint" >
8281
 
-                 <size>
8282
 
-                  <width>40</width>
8283
 
-                  <height>20</height>
8284
 
-                 </size>
8285
 
-                </property>
8286
 
-               </spacer>
8287
 
-              </item>
8288
 
-              <item row="1" column="0" >
8289
 
-               <widget class="QCheckBox" name="IPTOS_LOWDELAYChk" >
8290
 
-                <property name="text" >
8291
 
-                 <string>IPTOS_LOWDELAY</string>
8292
 
-                </property>
8293
 
-               </widget>
8294
 
-              </item>
8295
 
-              <item row="1" column="1" >
8296
 
-               <widget class="QCheckBox" name="SO_RCVBUFChk" >
8297
 
-                <property name="text" >
8298
 
-                 <string>SO_RCVBUF:</string>
8299
 
-                </property>
8300
 
-               </widget>
8301
 
-              </item>
8302
 
-              <item row="1" column="2" >
8303
 
-               <widget class="KIntSpinBox" name="SO_RCVBUFSpin" >
8304
 
-                <property name="enabled" >
8305
 
-                 <bool>false</bool>
8306
 
-                </property>
8307
 
-                <property name="maximum" >
8308
 
-                 <number>2147483647</number>
8309
 
-                </property>
8310
 
-               </widget>
8311
 
-              </item>
8312
 
-              <item row="2" column="0" >
8313
 
-               <widget class="QCheckBox" name="IPTOS_THROUGHPUTChk" >
8314
 
-                <property name="text" >
8315
 
-                 <string>IPTOS_THROU&amp;GHPUT</string>
8316
 
-                </property>
8317
 
-               </widget>
8318
 
-              </item>
8319
 
-              <item row="2" column="1" >
8320
 
-               <widget class="QCheckBox" name="SO_SNDLOWATChk" >
8321
 
-                <property name="text" >
8322
 
-                 <string>SO_SNDLO&amp;WAT:</string>
8323
 
-                </property>
8324
 
-               </widget>
8325
 
-              </item>
8326
 
-              <item row="2" column="2" >
8327
 
-               <widget class="KIntSpinBox" name="SO_SNDLOWATSpin" >
8328
 
-                <property name="enabled" >
8329
 
-                 <bool>false</bool>
8330
 
-                </property>
8331
 
-                <property name="maximum" >
8332
 
-                 <number>2147483647</number>
8333
 
-                </property>
8334
 
-               </widget>
8335
 
-              </item>
8336
 
-              <item row="3" column="0" >
8337
 
-               <widget class="QCheckBox" name="SO_KEEPALIVEChk" >
8338
 
-                <property name="text" >
8339
 
-                 <string>SO_&amp;KEEPALIVE</string>
8340
 
-                </property>
8341
 
-               </widget>
8342
 
-              </item>
8343
 
-              <item row="3" column="1" >
8344
 
-               <widget class="QCheckBox" name="SO_RCVLOWATChk" >
8345
 
-                <property name="text" >
8346
 
-                 <string>SO_RCV&amp;LOWAT:</string>
8347
 
-                </property>
8348
 
-               </widget>
8349
 
-              </item>
8350
 
-              <item row="3" column="2" >
8351
 
-               <widget class="KIntSpinBox" name="SO_RCVLOWATSpin" >
8352
 
-                <property name="enabled" >
8353
 
-                 <bool>false</bool>
8354
 
-                </property>
8355
 
-                <property name="maximum" >
8356
 
-                 <number>2147483647</number>
8357
 
-                </property>
8358
 
-               </widget>
8359
 
-              </item>
8360
 
-              <item row="4" column="0" >
8361
 
-               <widget class="QCheckBox" name="SO_REUSEADDRChk" >
8362
 
-                <property name="text" >
8363
 
-                 <string>S&amp;O_REUSEADDR</string>
8364
 
-                </property>
8365
 
-               </widget>
8366
 
-              </item>
8367
 
-              <item row="5" column="0" >
8368
 
-               <widget class="QCheckBox" name="SO_BROADCASTChk" >
8369
 
-                <property name="text" >
8370
 
-                 <string>SO_BROADCAST</string>
8371
 
-                </property>
8372
 
-               </widget>
8373
 
-              </item>
8374
 
-             </layout>
8375
 
-            </widget>
8376
 
-           </item>
8377
 
-           <item>
8378
 
-            <spacer>
8379
 
-             <property name="orientation" >
8380
 
-              <enum>Qt::Vertical</enum>
8381
 
-             </property>
8382
 
-             <property name="sizeType" >
8383
 
-              <enum>QSizePolicy::Expanding</enum>
8384
 
-             </property>
8385
 
-             <property name="sizeHint" >
8386
 
-              <size>
8387
 
-               <width>0</width>
8388
 
-               <height>70</height>
8389
 
-              </size>
8390
 
-             </property>
8391
 
-            </spacer>
8392
 
-           </item>
8393
 
-          </layout>
8394
 
-         </widget>
8395
 
-         <widget class="QWidget" name="tab" >
8396
 
-          <attribute name="title" >
8397
 
-           <string>SSL</string>
8398
 
-          </attribute>
8399
 
-          <layout class="QVBoxLayout" >
8400
 
-           <item>
8401
 
-            <widget class="QCheckBox" name="sslChk" >
8402
 
-             <property name="toolTip" >
8403
 
-              <string>Enables or disables the entire SSL mode</string>
8404
 
-             </property>
8405
 
-             <property name="whatsThis" >
8406
 
-              <string>This enables or disables the entire SSL mode. If it is set to no, the SSL-enabled Samba behaves exactly like the non-SSL Samba. If set to yes, it depends on the variables ssl hosts and ssl hosts resign whether an SSL connection will be required.
8407
 
-
8408
 
-This is only available if the SSL libraries have been compiled on your system and the configure option --with-ssl was given at configure time.</string>
8409
 
-             </property>
8410
 
-             <property name="text" >
8411
 
-              <string>E&amp;nable SSL</string>
8412
 
-             </property>
8413
 
-            </widget>
8414
 
-           </item>
8415
 
-           <item>
8416
 
-            <widget class="QFrame" name="SSLFrame" >
8417
 
-             <property name="enabled" >
8418
 
-              <bool>false</bool>
8419
 
-             </property>
8420
 
-             <property name="frameShape" >
8421
 
-              <enum>QFrame::NoFrame</enum>
8422
 
-             </property>
8423
 
-             <property name="frameShadow" >
8424
 
-              <enum>QFrame::Plain</enum>
8425
 
-             </property>
8426
 
-             <layout class="QVBoxLayout" >
8427
 
-              <property name="spacing" >
8428
 
-               <number>6</number>
8429
 
-              </property>
8430
 
-              <property name="leftMargin" >
8431
 
-               <number>0</number>
8432
 
-              </property>
8433
 
-              <property name="topMargin" >
8434
 
-               <number>0</number>
8435
 
-              </property>
8436
 
-              <property name="rightMargin" >
8437
 
-               <number>0</number>
8438
 
-              </property>
8439
 
-              <property name="bottomMargin" >
8440
 
-               <number>0</number>
8441
 
-              </property>
8442
 
-              <item>
8443
 
-               <layout class="QGridLayout" >
8444
 
-                <property name="leftMargin" >
8445
 
-                 <number>0</number>
8446
 
-                </property>
8447
 
-                <property name="topMargin" >
8448
 
-                 <number>0</number>
8449
 
-                </property>
8450
 
-                <property name="rightMargin" >
8451
 
-                 <number>0</number>
8452
 
-                </property>
8453
 
-                <property name="bottomMargin" >
8454
 
-                 <number>0</number>
8455
 
-                </property>
8456
 
-                <property name="horizontalSpacing" >
8457
 
-                 <number>6</number>
8458
 
-                </property>
8459
 
-                <property name="verticalSpacing" >
8460
 
-                 <number>6</number>
8461
 
-                </property>
8462
 
-                <item row="1" column="0" >
8463
 
-                 <widget class="QLabel" name="TextLabel2_4_2" >
8464
 
-                  <property name="text" >
8465
 
-                   <string>SSL h&amp;osts:</string>
8466
 
-                  </property>
8467
 
-                  <property name="wordWrap" >
8468
 
-                   <bool>false</bool>
8469
 
-                  </property>
8470
 
-                  <property name="buddy" >
8471
 
-                   <cstring>sslHostsEdit</cstring>
8472
 
-                  </property>
8473
 
-                 </widget>
8474
 
-                </item>
8475
 
-                <item row="6" column="1" >
8476
 
-                 <layout class="QHBoxLayout" >
8477
 
-                  <property name="spacing" >
8478
 
-                   <number>6</number>
8479
 
-                  </property>
8480
 
-                  <property name="leftMargin" >
8481
 
-                   <number>0</number>
8482
 
-                  </property>
8483
 
-                  <property name="topMargin" >
8484
 
-                   <number>0</number>
8485
 
-                  </property>
8486
 
-                  <property name="rightMargin" >
8487
 
-                   <number>0</number>
8488
 
-                  </property>
8489
 
-                  <property name="bottomMargin" >
8490
 
-                   <number>0</number>
8491
 
-                  </property>
8492
 
-                  <item>
8493
 
-                   <widget class="KUrlRequester" name="sslEntropyFileUrlRq" />
8494
 
-                  </item>
8495
 
-                  <item>
8496
 
-                   <widget class="QLabel" name="TextLabel12_2_2" >
8497
 
-                    <property name="text" >
8498
 
-                     <string>SSL entrop&amp;y bytes:</string>
8499
 
-                    </property>
8500
 
-                    <property name="wordWrap" >
8501
 
-                     <bool>false</bool>
8502
 
-                    </property>
8503
 
-                    <property name="buddy" >
8504
 
-                     <cstring>sslEntropyBytesSpin</cstring>
8505
 
-                    </property>
8506
 
-                   </widget>
8507
 
-                  </item>
8508
 
-                  <item>
8509
 
-                   <widget class="KIntSpinBox" name="sslEntropyBytesSpin" >
8510
 
-                    <property name="maximum" >
8511
 
-                     <number>2147483647</number>
8512
 
-                    </property>
8513
 
-                   </widget>
8514
 
-                  </item>
8515
 
-                 </layout>
8516
 
-                </item>
8517
 
-                <item row="2" column="1" >
8518
 
-                 <widget class="QLineEdit" name="sslHostsResignEdit" />
8519
 
-                </item>
8520
 
-                <item row="3" column="1" >
8521
 
-                 <widget class="KUrlRequester" name="sslCACertDirUrlRq" />
8522
 
-                </item>
8523
 
-                <item row="7" column="1" >
8524
 
-                 <widget class="QLineEdit" name="sslCiphersEdit" />
8525
 
-                </item>
8526
 
-                <item row="5" column="1" >
8527
 
-                 <widget class="QLineEdit" name="sslEgdSocketEdit" />
8528
 
-                </item>
8529
 
-                <item row="7" column="0" >
8530
 
-                 <widget class="QLabel" name="TextLabel14_2_2" >
8531
 
-                  <property name="text" >
8532
 
-                   <string>SSL ciphers:</string>
8533
 
-                  </property>
8534
 
-                  <property name="wordWrap" >
8535
 
-                   <bool>false</bool>
8536
 
-                  </property>
8537
 
-                  <property name="buddy" >
8538
 
-                   <cstring>sslCiphersEdit</cstring>
8539
 
-                  </property>
8540
 
-                 </widget>
8541
 
-                </item>
8542
 
-                <item row="2" column="0" >
8543
 
-                 <widget class="QLabel" name="TextLabel3_7" >
8544
 
-                  <property name="text" >
8545
 
-                   <string>SSL hosts resi&amp;gn:</string>
8546
 
-                  </property>
8547
 
-                  <property name="wordWrap" >
8548
 
-                   <bool>false</bool>
8549
 
-                  </property>
8550
 
-                  <property name="buddy" >
8551
 
-                   <cstring>sslHostsResignEdit</cstring>
8552
 
-                  </property>
8553
 
-                 </widget>
8554
 
-                </item>
8555
 
-                <item row="0" column="1" >
8556
 
-                 <layout class="QHBoxLayout" >
8557
 
-                  <property name="spacing" >
8558
 
-                   <number>6</number>
8559
 
-                  </property>
8560
 
-                  <property name="leftMargin" >
8561
 
-                   <number>0</number>
8562
 
-                  </property>
8563
 
-                  <property name="topMargin" >
8564
 
-                   <number>0</number>
8565
 
-                  </property>
8566
 
-                  <property name="rightMargin" >
8567
 
-                   <number>0</number>
8568
 
-                  </property>
8569
 
-                  <property name="bottomMargin" >
8570
 
-                   <number>0</number>
8571
 
-                  </property>
8572
 
-                  <item>
8573
 
-                   <widget class="QComboBox" name="sslVersionCombo" >
8574
 
-                    <item>
8575
 
-                     <property name="text" >
8576
 
-                      <string>ssl2</string>
8577
 
-                     </property>
8578
 
-                    </item>
8579
 
-                    <item>
8580
 
-                     <property name="text" >
8581
 
-                      <string>ssl3</string>
8582
 
-                     </property>
8583
 
-                    </item>
8584
 
-                    <item>
8585
 
-                     <property name="text" >
8586
 
-                      <string>ssl2or3</string>
8587
 
-                     </property>
8588
 
-                    </item>
8589
 
-                    <item>
8590
 
-                     <property name="text" >
8591
 
-                      <string>tls1</string>
8592
 
-                     </property>
8593
 
-                    </item>
8594
 
-                   </widget>
8595
 
-                  </item>
8596
 
-                  <item>
8597
 
-                   <widget class="QCheckBox" name="sslCompatibilityChk" >
8598
 
-                    <property name="text" >
8599
 
-                     <string>SSL co&amp;mpatibility</string>
8600
 
-                    </property>
8601
 
-                   </widget>
8602
 
-                  </item>
8603
 
-                  <item>
8604
 
-                   <spacer>
8605
 
-                    <property name="orientation" >
8606
 
-                     <enum>Qt::Horizontal</enum>
8607
 
-                    </property>
8608
 
-                    <property name="sizeHint" >
8609
 
-                     <size>
8610
 
-                      <width>40</width>
8611
 
-                      <height>20</height>
8612
 
-                     </size>
8613
 
-                    </property>
8614
 
-                   </spacer>
8615
 
-                  </item>
8616
 
-                 </layout>
8617
 
-                </item>
8618
 
-                <item row="3" column="0" >
8619
 
-                 <widget class="QLabel" name="TextLabel4_4" >
8620
 
-                  <property name="text" >
8621
 
-                   <string>SSL CA certDir:</string>
8622
 
-                  </property>
8623
 
-                  <property name="wordWrap" >
8624
 
-                   <bool>false</bool>
8625
 
-                  </property>
8626
 
-                  <property name="buddy" >
8627
 
-                   <cstring>sslCACertDirUrlRq</cstring>
8628
 
-                  </property>
8629
 
-                 </widget>
8630
 
-                </item>
8631
 
-                <item row="4" column="1" >
8632
 
-                 <widget class="KUrlRequester" name="sslCACertFileUrlRq" />
8633
 
-                </item>
8634
 
-                <item row="6" column="0" >
8635
 
-                 <widget class="QLabel" name="TextLabel11_2_2" >
8636
 
-                  <property name="text" >
8637
 
-                   <string>SSL entropy file:</string>
8638
 
-                  </property>
8639
 
-                  <property name="wordWrap" >
8640
 
-                   <bool>false</bool>
8641
 
-                  </property>
8642
 
-                  <property name="buddy" >
8643
 
-                   <cstring>sslEntropyFileUrlRq</cstring>
8644
 
-                  </property>
8645
 
-                 </widget>
8646
 
-                </item>
8647
 
-                <item row="5" column="0" >
8648
 
-                 <widget class="QLabel" name="TextLabel10_2_2" >
8649
 
-                  <property name="text" >
8650
 
-                   <string>SSL egd socket:</string>
8651
 
-                  </property>
8652
 
-                  <property name="wordWrap" >
8653
 
-                   <bool>false</bool>
8654
 
-                  </property>
8655
 
-                  <property name="buddy" >
8656
 
-                   <cstring>sslEgdSocketEdit</cstring>
8657
 
-                  </property>
8658
 
-                 </widget>
8659
 
-                </item>
8660
 
-                <item row="0" column="0" >
8661
 
-                 <widget class="QLabel" name="TextLabel15_2_2" >
8662
 
-                  <property name="text" >
8663
 
-                   <string>SSL version:</string>
8664
 
-                  </property>
8665
 
-                  <property name="wordWrap" >
8666
 
-                   <bool>false</bool>
8667
 
-                  </property>
8668
 
-                  <property name="buddy" >
8669
 
-                   <cstring>sslVersionCombo</cstring>
8670
 
-                  </property>
8671
 
-                 </widget>
8672
 
-                </item>
8673
 
-                <item row="1" column="1" >
8674
 
-                 <widget class="QLineEdit" name="sslHostsEdit" />
8675
 
-                </item>
8676
 
-                <item row="4" column="0" >
8677
 
-                 <widget class="QLabel" name="TextLabel5_4_3" >
8678
 
-                  <property name="text" >
8679
 
-                   <string>SSL CA certFile:</string>
8680
 
-                  </property>
8681
 
-                  <property name="wordWrap" >
8682
 
-                   <bool>false</bool>
8683
 
-                  </property>
8684
 
-                  <property name="buddy" >
8685
 
-                   <cstring>sslCACertFileUrlRq</cstring>
8686
 
-                  </property>
8687
 
-                 </widget>
8688
 
-                </item>
8689
 
-               </layout>
8690
 
-              </item>
8691
 
-              <item>
8692
 
-               <layout class="QGridLayout" >
8693
 
-                <property name="leftMargin" >
8694
 
-                 <number>0</number>
8695
 
-                </property>
8696
 
-                <property name="topMargin" >
8697
 
-                 <number>0</number>
8698
 
-                </property>
8699
 
-                <property name="rightMargin" >
8700
 
-                 <number>0</number>
8701
 
-                </property>
8702
 
-                <property name="bottomMargin" >
8703
 
-                 <number>0</number>
8704
 
-                </property>
8705
 
-                <property name="horizontalSpacing" >
8706
 
-                 <number>6</number>
8707
 
-                </property>
8708
 
-                <property name="verticalSpacing" >
8709
 
-                 <number>6</number>
8710
 
-                </property>
8711
 
-                <item row="1" column="3" >
8712
 
-                 <widget class="KUrlRequester" name="sslClientCertUrlRq" />
8713
 
-                </item>
8714
 
-                <item row="0" column="2" colspan="2" >
8715
 
-                 <widget class="QCheckBox" name="sslRequireClientcertChk" >
8716
 
-                  <property name="text" >
8717
 
-                   <string>SSL require clientcert</string>
8718
 
-                  </property>
8719
 
-                 </widget>
8720
 
-                </item>
8721
 
-                <item row="2" column="2" >
8722
 
-                 <widget class="QLabel" name="TextLabel9_2_2" >
8723
 
-                  <property name="text" >
8724
 
-                   <string>SSL client key:</string>
8725
 
-                  </property>
8726
 
-                  <property name="wordWrap" >
8727
 
-                   <bool>false</bool>
8728
 
-                  </property>
8729
 
-                  <property name="buddy" >
8730
 
-                   <cstring>sslClientKeyUrlRq</cstring>
8731
 
-                  </property>
8732
 
-                 </widget>
8733
 
-                </item>
8734
 
-                <item row="0" column="0" colspan="2" >
8735
 
-                 <widget class="QCheckBox" name="sslRequireServercertChk" >
8736
 
-                  <property name="text" >
8737
 
-                   <string>SSL re&amp;quire servercert</string>
8738
 
-                  </property>
8739
 
-                 </widget>
8740
 
-                </item>
8741
 
-                <item row="2" column="3" >
8742
 
-                 <widget class="KUrlRequester" name="sslClientKeyUrlRq" />
8743
 
-                </item>
8744
 
-                <item row="1" column="0" >
8745
 
-                 <widget class="QLabel" name="TextLabel6_6_2" >
8746
 
-                  <property name="text" >
8747
 
-                   <string>SS&amp;L server cert:</string>
8748
 
-                  </property>
8749
 
-                  <property name="wordWrap" >
8750
 
-                   <bool>false</bool>
8751
 
-                  </property>
8752
 
-                  <property name="buddy" >
8753
 
-                   <cstring>sslServerCertUrlRq</cstring>
8754
 
-                  </property>
8755
 
-                 </widget>
8756
 
-                </item>
8757
 
-                <item row="1" column="2" >
8758
 
-                 <widget class="QLabel" name="TextLabel8_4" >
8759
 
-                  <property name="text" >
8760
 
-                   <string>SSL client cert:</string>
8761
 
-                  </property>
8762
 
-                  <property name="wordWrap" >
8763
 
-                   <bool>false</bool>
8764
 
-                  </property>
8765
 
-                  <property name="buddy" >
8766
 
-                   <cstring>sslClientCertUrlRq</cstring>
8767
 
-                  </property>
8768
 
-                 </widget>
8769
 
-                </item>
8770
 
-                <item row="1" column="1" >
8771
 
-                 <widget class="KUrlRequester" name="sslServerCertUrlRq" />
8772
 
-                </item>
8773
 
-                <item row="2" column="1" >
8774
 
-                 <widget class="KUrlRequester" name="sslServerKeyUrlRq" />
8775
 
-                </item>
8776
 
-                <item row="2" column="0" >
8777
 
-                 <widget class="QLabel" name="TextLabel7_5" >
8778
 
-                  <property name="text" >
8779
 
-                   <string>SSL server &amp;key:</string>
8780
 
-                  </property>
8781
 
-                  <property name="wordWrap" >
8782
 
-                   <bool>false</bool>
8783
 
-                  </property>
8784
 
-                  <property name="buddy" >
8785
 
-                   <cstring>sslServerKeyUrlRq</cstring>
8786
 
-                  </property>
8787
 
-                 </widget>
8788
 
-                </item>
8789
 
-               </layout>
8790
 
-              </item>
8791
 
-             </layout>
8792
 
-            </widget>
8793
 
-           </item>
8794
 
-           <item>
8795
 
-            <spacer>
8796
 
-             <property name="orientation" >
8797
 
-              <enum>Qt::Vertical</enum>
8798
 
-             </property>
8799
 
-             <property name="sizeType" >
8800
 
-              <enum>QSizePolicy::Expanding</enum>
8801
 
-             </property>
8802
 
-             <property name="sizeHint" >
8803
 
-              <size>
8804
 
-               <width>0</width>
8805
 
-               <height>30</height>
8806
 
-              </size>
8807
 
-             </property>
8808
 
-            </spacer>
8809
 
-           </item>
8810
 
-          </layout>
8811
 
-         </widget>
8812
 
-         <widget class="QWidget" name="tab" >
8813
 
-          <attribute name="title" >
8814
 
-           <string>Protocol</string>
8815
 
-          </attribute>
8816
 
-          <layout class="QGridLayout" >
8817
 
-           <item row="0" column="0" >
8818
 
-            <widget class="QGroupBox" name="groupBox70" >
8819
 
-             <property name="title" >
8820
 
-              <string>S&amp;witches</string>
8821
 
-             </property>
8822
 
-             <layout class="QGridLayout" >
8823
 
-              <item row="0" column="0" colspan="2" >
8824
 
-               <widget class="QCheckBox" name="timeServerChk" >
8825
 
-                <property name="text" >
8826
 
-                 <string>Ti&amp;me server</string>
8827
 
-                </property>
8828
 
-               </widget>
8829
 
-              </item>
8830
 
-              <item row="1" column="0" colspan="2" >
8831
 
-               <widget class="QCheckBox" name="largeReadWriteChk" >
8832
 
-                <property name="text" >
8833
 
-                 <string>Lar&amp;ge readwrite</string>
8834
 
-                </property>
8835
 
-               </widget>
8836
 
-              </item>
8837
 
-              <item row="2" column="0" >
8838
 
-               <widget class="QCheckBox" name="unixExtensionsChk" >
8839
 
-                <property name="text" >
8840
 
-                 <string>UNIX extensions</string>
8841
 
-                </property>
8842
 
-                <property name="shortcut" >
8843
 
-                 <string>Alt+</string>
8844
 
-                </property>
8845
 
-               </widget>
8846
 
-              </item>
8847
 
-              <item row="2" column="1" >
8848
 
-               <spacer>
8849
 
-                <property name="orientation" >
8850
 
-                 <enum>Qt::Horizontal</enum>
8851
 
-                </property>
8852
 
-                <property name="sizeHint" >
8853
 
-                 <size>
8854
 
-                  <width>40</width>
8855
 
-                  <height>20</height>
8856
 
-                 </size>
8857
 
-                </property>
8858
 
-               </spacer>
8859
 
-              </item>
8860
 
-              <item row="3" column="0" colspan="2" >
8861
 
-               <widget class="QCheckBox" name="readBmpxChk" >
8862
 
-                <property name="font" >
8863
 
-                 <font/>
8864
 
-                </property>
8865
 
-                <property name="text" >
8866
 
-                 <string>Read bmpx</string>
8867
 
-                </property>
8868
 
-               </widget>
8869
 
-              </item>
8870
 
-             </layout>
8871
 
-            </widget>
8872
 
-           </item>
8873
 
-           <item row="0" column="1" >
8874
 
-            <widget class="QGroupBox" name="groupBox71" >
8875
 
-             <property name="title" >
8876
 
-              <string>Protocol Versions</string>
8877
 
-             </property>
8878
 
-             <layout class="QGridLayout" >
8879
 
-              <item row="0" column="0" >
8880
 
-               <widget class="QLabel" name="TextLabel3_6_2" >
8881
 
-                <property name="text" >
8882
 
-                 <string>A&amp;nnounce as:</string>
8883
 
-                </property>
8884
 
-                <property name="wordWrap" >
8885
 
-                 <bool>false</bool>
8886
 
-                </property>
8887
 
-                <property name="buddy" >
8888
 
-                 <cstring>announceAsCombo</cstring>
8889
 
-                </property>
8890
 
-               </widget>
8891
 
-              </item>
8892
 
-              <item row="0" column="1" >
8893
 
-               <widget class="QComboBox" name="announceAsCombo" >
8894
 
-                <property name="sizePolicy" >
8895
 
-                 <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
8896
 
-                  <horstretch>0</horstretch>
8897
 
-                  <verstretch>0</verstretch>
8898
 
-                 </sizepolicy>
8899
 
-                </property>
8900
 
-                <item>
8901
 
-                 <property name="text" >
8902
 
-                  <string>NT</string>
8903
 
-                 </property>
8904
 
-                </item>
8905
 
-                <item>
8906
 
-                 <property name="text" >
8907
 
-                  <string>NT Workstation</string>
8908
 
-                 </property>
8909
 
-                </item>
8910
 
-                <item>
8911
 
-                 <property name="text" >
8912
 
-                  <string>win95</string>
8913
 
-                 </property>
8914
 
-                </item>
8915
 
-                <item>
8916
 
-                 <property name="text" >
8917
 
-                  <string>WfW</string>
8918
 
-                 </property>
8919
 
-                </item>
8920
 
-               </widget>
8921
 
-              </item>
8922
 
-              <item row="0" column="2" >
8923
 
-               <spacer>
8924
 
-                <property name="orientation" >
8925
 
-                 <enum>Qt::Horizontal</enum>
8926
 
-                </property>
8927
 
-                <property name="sizeHint" >
8928
 
-                 <size>
8929
 
-                  <width>40</width>
8930
 
-                  <height>20</height>
8931
 
-                 </size>
8932
 
-                </property>
8933
 
-               </spacer>
8934
 
-              </item>
8935
 
-              <item row="1" column="0" >
8936
 
-               <widget class="QLabel" name="TextLabel2_3_2" >
8937
 
-                <property name="text" >
8938
 
-                 <string>Announce version:</string>
8939
 
-                </property>
8940
 
-                <property name="wordWrap" >
8941
 
-                 <bool>false</bool>
8942
 
-                </property>
8943
 
-                <property name="buddy" >
8944
 
-                 <cstring>announceVersionEdit</cstring>
8945
 
-                </property>
8946
 
-               </widget>
8947
 
-              </item>
8948
 
-              <item row="1" column="1" >
8949
 
-               <widget class="QLineEdit" name="announceVersionEdit" >
8950
 
-                <property name="sizePolicy" >
8951
 
-                 <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
8952
 
-                  <horstretch>0</horstretch>
8953
 
-                  <verstretch>0</verstretch>
8954
 
-                 </sizepolicy>
8955
 
-                </property>
8956
 
-                <property name="text" >
8957
 
-                 <string>4.2</string>
8958
 
-                </property>
8959
 
-               </widget>
8960
 
-              </item>
8961
 
-              <item row="2" column="0" >
8962
 
-               <widget class="QLabel" name="TextLabel1_3_4_2" >
8963
 
-                <property name="text" >
8964
 
-                 <string>Pr&amp;otocol:</string>
8965
 
-                </property>
8966
 
-                <property name="wordWrap" >
8967
 
-                 <bool>false</bool>
8968
 
-                </property>
8969
 
-                <property name="buddy" >
8970
 
-                 <cstring>protocolCombo</cstring>
8971
 
-                </property>
8972
 
-               </widget>
8973
 
-              </item>
8974
 
-              <item row="2" column="1" >
8975
 
-               <widget class="QComboBox" name="protocolCombo" >
8976
 
-                <property name="sizePolicy" >
8977
 
-                 <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
8978
 
-                  <horstretch>0</horstretch>
8979
 
-                  <verstretch>0</verstretch>
8980
 
-                 </sizepolicy>
8981
 
-                </property>
8982
 
-                <item>
8983
 
-                 <property name="text" >
8984
 
-                  <string>NT1</string>
8985
 
-                 </property>
8986
 
-                </item>
8987
 
-                <item>
8988
 
-                 <property name="text" >
8989
 
-                  <string>LANMAN2</string>
8990
 
-                 </property>
8991
 
-                </item>
8992
 
-                <item>
8993
 
-                 <property name="text" >
8994
 
-                  <string>LANMAN1</string>
8995
 
-                 </property>
8996
 
-                </item>
8997
 
-                <item>
8998
 
-                 <property name="text" >
8999
 
-                  <string>CORE</string>
9000
 
-                 </property>
9001
 
-                </item>
9002
 
-                <item>
9003
 
-                 <property name="text" >
9004
 
-                  <string>COREPLUS</string>
9005
 
-                 </property>
9006
 
-                </item>
9007
 
-               </widget>
9008
 
-              </item>
9009
 
-              <item row="3" column="0" >
9010
 
-               <widget class="QLabel" name="TextLabel1_3_2_2" >
9011
 
-                <property name="text" >
9012
 
-                 <string>Max protocol:</string>
9013
 
-                </property>
9014
 
-                <property name="wordWrap" >
9015
 
-                 <bool>false</bool>
9016
 
-                </property>
9017
 
-                <property name="buddy" >
9018
 
-                 <cstring>maxProtocolCombo</cstring>
9019
 
-                </property>
9020
 
-               </widget>
9021
 
-              </item>
9022
 
-              <item row="3" column="1" >
9023
 
-               <widget class="QComboBox" name="maxProtocolCombo" >
9024
 
-                <property name="sizePolicy" >
9025
 
-                 <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
9026
 
-                  <horstretch>0</horstretch>
9027
 
-                  <verstretch>0</verstretch>
9028
 
-                 </sizepolicy>
9029
 
-                </property>
9030
 
-                <item>
9031
 
-                 <property name="text" >
9032
 
-                  <string>NT1</string>
9033
 
-                 </property>
9034
 
-                </item>
9035
 
-                <item>
9036
 
-                 <property name="text" >
9037
 
-                  <string>LANMAN2</string>
9038
 
-                 </property>
9039
 
-                </item>
9040
 
-                <item>
9041
 
-                 <property name="text" >
9042
 
-                  <string>LANMAN1</string>
9043
 
-                 </property>
9044
 
-                </item>
9045
 
-                <item>
9046
 
-                 <property name="text" >
9047
 
-                  <string>CORE</string>
9048
 
-                 </property>
9049
 
-                </item>
9050
 
-                <item>
9051
 
-                 <property name="text" >
9052
 
-                  <string>COREPLUS</string>
9053
 
-                 </property>
9054
 
-                </item>
9055
 
-               </widget>
9056
 
-              </item>
9057
 
-              <item row="4" column="0" >
9058
 
-               <widget class="QLabel" name="TextLabel1_3_3_2" >
9059
 
-                <property name="text" >
9060
 
-                 <string>Min protocol:</string>
9061
 
-                </property>
9062
 
-                <property name="wordWrap" >
9063
 
-                 <bool>false</bool>
9064
 
-                </property>
9065
 
-                <property name="buddy" >
9066
 
-                 <cstring>minProtocolCombo</cstring>
9067
 
-                </property>
9068
 
-               </widget>
9069
 
-              </item>
9070
 
-              <item row="4" column="1" >
9071
 
-               <widget class="QComboBox" name="minProtocolCombo" >
9072
 
-                <property name="sizePolicy" >
9073
 
-                 <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
9074
 
-                  <horstretch>0</horstretch>
9075
 
-                  <verstretch>0</verstretch>
9076
 
-                 </sizepolicy>
9077
 
-                </property>
9078
 
-                <item>
9079
 
-                 <property name="text" >
9080
 
-                  <string>NT1</string>
9081
 
-                 </property>
9082
 
-                </item>
9083
 
-                <item>
9084
 
-                 <property name="text" >
9085
 
-                  <string>LANMAN2</string>
9086
 
-                 </property>
9087
 
-                </item>
9088
 
-                <item>
9089
 
-                 <property name="text" >
9090
 
-                  <string>LANMAN1</string>
9091
 
-                 </property>
9092
 
-                </item>
9093
 
-                <item>
9094
 
-                 <property name="text" >
9095
 
-                  <string>CORE</string>
9096
 
-                 </property>
9097
 
-                </item>
9098
 
-                <item>
9099
 
-                 <property name="text" >
9100
 
-                  <string>COREPLUS</string>
9101
 
-                 </property>
9102
 
-                </item>
9103
 
-               </widget>
9104
 
-              </item>
9105
 
-             </layout>
9106
 
-            </widget>
9107
 
-           </item>
9108
 
-           <item row="1" column="0" colspan="2" >
9109
 
-            <widget class="QGroupBox" name="groupBox69" >
9110
 
-             <property name="title" >
9111
 
-              <string>Limits</string>
9112
 
-             </property>
9113
 
-             <layout class="QGridLayout" >
9114
 
-              <item row="0" column="0" >
9115
 
-               <widget class="QLabel" name="TextLabel4_4_4_2_2_2" >
9116
 
-                <property name="font" >
9117
 
-                 <font/>
9118
 
-                </property>
9119
 
-                <property name="text" >
9120
 
-                 <string>Ma&amp;x mux:</string>
9121
 
-                </property>
9122
 
-                <property name="wordWrap" >
9123
 
-                 <bool>false</bool>
9124
 
-                </property>
9125
 
-                <property name="buddy" >
9126
 
-                 <cstring>maxMuxSpin</cstring>
9127
 
-                </property>
9128
 
-               </widget>
9129
 
-              </item>
9130
 
-              <item row="0" column="1" >
9131
 
-               <widget class="KIntSpinBox" name="maxMuxSpin" >
9132
 
-                <property name="minimum" >
9133
 
-                 <number>0</number>
9134
 
-                </property>
9135
 
-                <property name="maximum" >
9136
 
-                 <number>2147483647</number>
9137
 
-                </property>
9138
 
-               </widget>
9139
 
-              </item>
9140
 
-              <item row="1" column="0" >
9141
 
-               <widget class="QLabel" name="TextLabel4_4_2_3_3_2_2_2" >
9142
 
-                <property name="font" >
9143
 
-                 <font/>
9144
 
-                </property>
9145
 
-                <property name="text" >
9146
 
-                 <string>Max tt&amp;l:</string>
9147
 
-                </property>
9148
 
-                <property name="wordWrap" >
9149
 
-                 <bool>false</bool>
9150
 
-                </property>
9151
 
-                <property name="buddy" >
9152
 
-                 <cstring>maxTtlSpin</cstring>
9153
 
-                </property>
9154
 
-               </widget>
9155
 
-              </item>
9156
 
-              <item row="1" column="1" >
9157
 
-               <widget class="KIntSpinBox" name="maxTtlSpin" >
9158
 
-                <property name="minimum" >
9159
 
-                 <number>0</number>
9160
 
-                </property>
9161
 
-                <property name="maximum" >
9162
 
-                 <number>2147483647</number>
9163
 
-                </property>
9164
 
-               </widget>
9165
 
-              </item>
9166
 
-              <item row="1" column="2" >
9167
 
-               <widget class="QLabel" name="TextLabel6_5_4_2_2_2" >
9168
 
-                <property name="text" >
9169
 
-                 <string comment="seconds" >Sec</string>
9170
 
-                </property>
9171
 
-                <property name="wordWrap" >
9172
 
-                 <bool>false</bool>
9173
 
-                </property>
9174
 
-               </widget>
9175
 
-              </item>
9176
 
-              <item row="1" column="3" >
9177
 
-               <spacer>
9178
 
-                <property name="orientation" >
9179
 
-                 <enum>Qt::Horizontal</enum>
9180
 
-                </property>
9181
 
-                <property name="sizeHint" >
9182
 
-                 <size>
9183
 
-                  <width>40</width>
9184
 
-                  <height>20</height>
9185
 
-                 </size>
9186
 
-                </property>
9187
 
-               </spacer>
9188
 
-              </item>
9189
 
-             </layout>
9190
 
-            </widget>
9191
 
-           </item>
9192
 
-           <item row="2" column="0" colspan="2" >
9193
 
-            <widget class="QGroupBox" name="groupBox72" >
9194
 
-             <property name="title" >
9195
 
-              <string>Listening SMB Ports</string>
9196
 
-             </property>
9197
 
-             <layout class="QHBoxLayout" >
9198
 
-              <property name="spacing" >
9199
 
-               <number>6</number>
9200
 
-              </property>
9201
 
-              <property name="leftMargin" >
9202
 
-               <number>11</number>
9203
 
-              </property>
9204
 
-              <property name="topMargin" >
9205
 
-               <number>11</number>
9206
 
-              </property>
9207
 
-              <property name="rightMargin" >
9208
 
-               <number>11</number>
9209
 
-              </property>
9210
 
-              <property name="bottomMargin" >
9211
 
-               <number>11</number>
9212
 
-              </property>
9213
 
-              <item>
9214
 
-               <widget class="QLabel" name="TextLabel5_4_2_2" >
9215
 
-                <property name="text" >
9216
 
-                 <string>SMB ports:</string>
9217
 
-                </property>
9218
 
-                <property name="wordWrap" >
9219
 
-                 <bool>false</bool>
9220
 
-                </property>
9221
 
-                <property name="buddy" >
9222
 
-                 <cstring>smbPortsEdit</cstring>
9223
 
-                </property>
9224
 
-               </widget>
9225
 
-              </item>
9226
 
-              <item>
9227
 
-               <widget class="QLineEdit" name="smbPortsEdit" >
9228
 
-                <property name="sizePolicy" >
9229
 
-                 <sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
9230
 
-                  <horstretch>0</horstretch>
9231
 
-                  <verstretch>0</verstretch>
9232
 
-                 </sizepolicy>
9233
 
-                </property>
9234
 
-                <property name="minimumSize" >
9235
 
-                 <size>
9236
 
-                  <width>150</width>
9237
 
-                  <height>0</height>
9238
 
-                 </size>
9239
 
-                </property>
9240
 
-                <property name="text" >
9241
 
-                 <string/>
9242
 
-                </property>
9243
 
-               </widget>
9244
 
-              </item>
9245
 
-             </layout>
9246
 
-            </widget>
9247
 
-           </item>
9248
 
-           <item row="3" column="1" >
9249
 
-            <spacer>
9250
 
-             <property name="orientation" >
9251
 
-              <enum>Qt::Vertical</enum>
9252
 
-             </property>
9253
 
-             <property name="sizeType" >
9254
 
-              <enum>QSizePolicy::Expanding</enum>
9255
 
-             </property>
9256
 
-             <property name="sizeHint" >
9257
 
-              <size>
9258
 
-               <width>20</width>
9259
 
-               <height>50</height>
9260
 
-              </size>
9261
 
-             </property>
9262
 
-            </spacer>
9263
 
-           </item>
9264
 
-          </layout>
9265
 
-         </widget>
9266
 
-         <widget class="QWidget" name="tab" >
9267
 
-          <attribute name="title" >
9268
 
-           <string>Browsing</string>
9269
 
-          </attribute>
9270
 
-          <layout class="QGridLayout" >
9271
 
-           <property name="leftMargin" >
9272
 
-            <number>0</number>
9273
 
-           </property>
9274
 
-           <property name="topMargin" >
9275
 
-            <number>0</number>
9276
 
-           </property>
9277
 
-           <property name="rightMargin" >
9278
 
-            <number>0</number>
9279
 
-           </property>
9280
 
-           <property name="bottomMargin" >
9281
 
-            <number>0</number>
9282
 
-           </property>
9283
 
-           <property name="horizontalSpacing" >
9284
 
-            <number>6</number>
9285
 
-           </property>
9286
 
-           <property name="verticalSpacing" >
9287
 
-            <number>6</number>
9288
 
-           </property>
9289
 
-           <item row="3" column="0" >
9290
 
-            <widget class="QLabel" name="TextLabel2" >
9291
 
-             <property name="text" >
9292
 
-              <string>LM i&amp;nterval:</string>
9293
 
-             </property>
9294
 
-             <property name="wordWrap" >
9295
 
-              <bool>false</bool>
9296
 
-             </property>
9297
 
-             <property name="buddy" >
9298
 
-              <cstring>lmIntervalSpin</cstring>
9299
 
-             </property>
9300
 
-            </widget>
9301
 
-           </item>
9302
 
-           <item row="2" column="0" >
9303
 
-            <widget class="QLabel" name="TextLabel3_5" >
9304
 
-             <property name="text" >
9305
 
-              <string>L&amp;M announce:</string>
9306
 
-             </property>
9307
 
-             <property name="wordWrap" >
9308
 
-              <bool>false</bool>
9309
 
-             </property>
9310
 
-             <property name="buddy" >
9311
 
-              <cstring>lmAnnounceCombo</cstring>
9312
 
-             </property>
9313
 
-            </widget>
9314
 
-           </item>
9315
 
-           <item row="4" column="1" colspan="3" >
9316
 
-            <widget class="QLineEdit" name="remoteBrowseSyncEdit" />
9317
 
-           </item>
9318
 
-           <item row="3" column="2" >
9319
 
-            <widget class="QLabel" name="TextLabel27_2" >
9320
 
-             <property name="text" >
9321
 
-              <string>Sec</string>
9322
 
-             </property>
9323
 
-             <property name="wordWrap" >
9324
 
-              <bool>false</bool>
9325
 
-             </property>
9326
 
-            </widget>
9327
 
-           </item>
9328
 
-           <item row="3" column="1" >
9329
 
-            <widget class="KIntSpinBox" name="lmIntervalSpin" >
9330
 
-             <property name="maximum" >
9331
 
-              <number>2147483647</number>
9332
 
-             </property>
9333
 
-            </widget>
9334
 
-           </item>
9335
 
-           <item row="4" column="0" >
9336
 
-            <widget class="QLabel" name="TextLabel14" >
9337
 
-             <property name="text" >
9338
 
-              <string>Remote browse s&amp;ync:</string>
9339
 
-             </property>
9340
 
-             <property name="wordWrap" >
9341
 
-              <bool>false</bool>
9342
 
-             </property>
9343
 
-             <property name="buddy" >
9344
 
-              <cstring>remoteBrowseSyncEdit</cstring>
9345
 
-             </property>
9346
 
-            </widget>
9347
 
-           </item>
9348
 
-           <item row="2" column="1" >
9349
 
-            <widget class="QComboBox" name="lmAnnounceCombo" >
9350
 
-             <item>
9351
 
-              <property name="text" >
9352
 
-               <string>Yes</string>
9353
 
-              </property>
9354
 
-             </item>
9355
 
-             <item>
9356
 
-              <property name="text" >
9357
 
-               <string>No</string>
9358
 
-              </property>
9359
 
-             </item>
9360
 
-             <item>
9361
 
-              <property name="text" >
9362
 
-               <string>Auto</string>
9363
 
-              </property>
9364
 
-             </item>
9365
 
-            </widget>
9366
 
-           </item>
9367
 
-           <item row="1" column="0" >
9368
 
-            <widget class="QCheckBox" name="browseListChk" >
9369
 
-             <property name="text" >
9370
 
-              <string>Bro&amp;wse list</string>
9371
 
-             </property>
9372
 
-            </widget>
9373
 
-           </item>
9374
 
-           <item row="0" column="0" colspan="4" >
9375
 
-            <widget class="QCheckBox" name="enhancedBrowsingChk" >
9376
 
-             <property name="text" >
9377
 
-              <string>Enhanced browsin&amp;g</string>
9378
 
-             </property>
9379
 
-            </widget>
9380
 
-           </item>
9381
 
-           <item row="6" column="0" >
9382
 
-            <spacer>
9383
 
-             <property name="orientation" >
9384
 
-              <enum>Qt::Vertical</enum>
9385
 
-             </property>
9386
 
-             <property name="sizeType" >
9387
 
-              <enum>QSizePolicy::Expanding</enum>
9388
 
-             </property>
9389
 
-             <property name="sizeHint" >
9390
 
-              <size>
9391
 
-               <width>20</width>
9392
 
-               <height>300</height>
9393
 
-              </size>
9394
 
-             </property>
9395
 
-            </spacer>
9396
 
-           </item>
9397
 
-           <item row="5" column="0" >
9398
 
-            <widget class="QLabel" name="TextLabel4_2" >
9399
 
-             <property name="text" >
9400
 
-              <string>Pre&amp;load:</string>
9401
 
-             </property>
9402
 
-             <property name="wordWrap" >
9403
 
-              <bool>false</bool>
9404
 
-             </property>
9405
 
-             <property name="buddy" >
9406
 
-              <cstring>preloadEdit</cstring>
9407
 
-             </property>
9408
 
-            </widget>
9409
 
-           </item>
9410
 
-           <item row="5" column="1" colspan="3" >
9411
 
-            <widget class="QLineEdit" name="preloadEdit" />
9412
 
-           </item>
9413
 
-           <item row="3" column="3" >
9414
 
-            <spacer>
9415
 
-             <property name="orientation" >
9416
 
-              <enum>Qt::Horizontal</enum>
9417
 
-             </property>
9418
 
-             <property name="sizeHint" >
9419
 
-              <size>
9420
 
-               <width>40</width>
9421
 
-               <height>20</height>
9422
 
-              </size>
9423
 
-             </property>
9424
 
-            </spacer>
9425
 
-           </item>
9426
 
-          </layout>
9427
 
-         </widget>
9428
 
-         <widget class="QWidget" name="tab" >
9429
 
-          <attribute name="title" >
9430
 
-           <string>Winbind</string>
9431
 
-          </attribute>
9432
 
-          <layout class="QGridLayout" >
9433
 
-           <property name="leftMargin" >
9434
 
-            <number>0</number>
9435
 
-           </property>
9436
 
-           <property name="topMargin" >
9437
 
-            <number>0</number>
9438
 
-           </property>
9439
 
-           <property name="rightMargin" >
9440
 
-            <number>0</number>
9441
 
-           </property>
9442
 
-           <property name="bottomMargin" >
9443
 
-            <number>0</number>
9444
 
-           </property>
9445
 
-           <item row="0" column="0" >
9446
 
-            <widget class="QLabel" name="TextLabel21" >
9447
 
-             <property name="text" >
9448
 
-              <string>&amp;Winbind/Idmap UID:</string>
9449
 
-             </property>
9450
 
-             <property name="wordWrap" >
9451
 
-              <bool>false</bool>
9452
 
-             </property>
9453
 
-             <property name="buddy" >
9454
 
-              <cstring>winbindUidEdit</cstring>
9455
 
-             </property>
9456
 
-            </widget>
9457
 
-           </item>
9458
 
-           <item row="0" column="2" colspan="3" >
9459
 
-            <widget class="QLineEdit" name="winbindUidEdit" />
9460
 
-           </item>
9461
 
-           <item row="1" column="2" colspan="3" >
9462
 
-            <widget class="QLineEdit" name="winbindGidEdit" />
9463
 
-           </item>
9464
 
-           <item row="1" column="0" >
9465
 
-            <widget class="QLabel" name="TextLabel21_2" >
9466
 
-             <property name="text" >
9467
 
-              <string>Winbind/Idmap &amp;GID:</string>
9468
 
-             </property>
9469
 
-             <property name="wordWrap" >
9470
 
-              <bool>false</bool>
9471
 
-             </property>
9472
 
-             <property name="buddy" >
9473
 
-              <cstring>winbindGidEdit</cstring>
9474
 
-             </property>
9475
 
-            </widget>
9476
 
-           </item>
9477
 
-           <item row="2" column="0" colspan="2" >
9478
 
-            <widget class="QLabel" name="TextLabel22" >
9479
 
-             <property name="text" >
9480
 
-              <string>Template h&amp;omedir:</string>
9481
 
-             </property>
9482
 
-             <property name="wordWrap" >
9483
 
-              <bool>false</bool>
9484
 
-             </property>
9485
 
-             <property name="buddy" >
9486
 
-              <cstring>templateHomedirEdit</cstring>
9487
 
-             </property>
9488
 
-            </widget>
9489
 
-           </item>
9490
 
-           <item row="2" column="2" colspan="3" >
9491
 
-            <widget class="QLineEdit" name="templateHomedirEdit" />
9492
 
-           </item>
9493
 
-           <item row="3" column="0" colspan="2" >
9494
 
-            <widget class="QLabel" name="TextLabel23" >
9495
 
-             <property name="text" >
9496
 
-              <string>Temp&amp;late shell:</string>
9497
 
-             </property>
9498
 
-             <property name="wordWrap" >
9499
 
-              <bool>false</bool>
9500
 
-             </property>
9501
 
-             <property name="buddy" >
9502
 
-              <cstring>templateShellEdit</cstring>
9503
 
-             </property>
9504
 
-            </widget>
9505
 
-           </item>
9506
 
-           <item row="3" column="2" colspan="3" >
9507
 
-            <widget class="QLineEdit" name="templateShellEdit" />
9508
 
-           </item>
9509
 
-           <item row="4" column="0" colspan="2" >
9510
 
-            <widget class="QLabel" name="TextLabel24" >
9511
 
-             <property name="text" >
9512
 
-              <string>Winbind separator:</string>
9513
 
-             </property>
9514
 
-             <property name="wordWrap" >
9515
 
-              <bool>false</bool>
9516
 
-             </property>
9517
 
-             <property name="buddy" >
9518
 
-              <cstring>winbindSeparatorEdit</cstring>
9519
 
-             </property>
9520
 
-            </widget>
9521
 
-           </item>
9522
 
-           <item row="4" column="2" colspan="3" >
9523
 
-            <widget class="QLineEdit" name="winbindSeparatorEdit" />
9524
 
-           </item>
9525
 
-           <item row="5" column="0" colspan="2" >
9526
 
-            <widget class="QLabel" name="TextLabel24_2" >
9527
 
-             <property name="text" >
9528
 
-              <string>Template primary group:</string>
9529
 
-             </property>
9530
 
-             <property name="wordWrap" >
9531
 
-              <bool>false</bool>
9532
 
-             </property>
9533
 
-             <property name="buddy" >
9534
 
-              <cstring>templatePrimaryGroupEdit</cstring>
9535
 
-             </property>
9536
 
-            </widget>
9537
 
-           </item>
9538
 
-           <item row="5" column="2" colspan="3" >
9539
 
-            <widget class="QLineEdit" name="templatePrimaryGroupEdit" />
9540
 
-           </item>
9541
 
-           <item row="6" column="3" >
9542
 
-            <widget class="QLabel" name="TextLabel27" >
9543
 
-             <property name="text" >
9544
 
-              <string>Sec</string>
9545
 
-             </property>
9546
 
-             <property name="wordWrap" >
9547
 
-              <bool>false</bool>
9548
 
-             </property>
9549
 
-            </widget>
9550
 
-           </item>
9551
 
-           <item row="6" column="0" colspan="2" >
9552
 
-            <widget class="QLabel" name="TextLabel25" >
9553
 
-             <property name="text" >
9554
 
-              <string>Winbind cache ti&amp;me:</string>
9555
 
-             </property>
9556
 
-             <property name="wordWrap" >
9557
 
-              <bool>false</bool>
9558
 
-             </property>
9559
 
-             <property name="buddy" >
9560
 
-              <cstring>winbindCacheTimeSpin</cstring>
9561
 
-             </property>
9562
 
-            </widget>
9563
 
-           </item>
9564
 
-           <item row="6" column="2" >
9565
 
-            <widget class="KIntSpinBox" name="winbindCacheTimeSpin" >
9566
 
-             <property name="minimum" >
9567
 
-              <number>0</number>
9568
 
-             </property>
9569
 
-             <property name="maximum" >
9570
 
-              <number>2147483647</number>
9571
 
-             </property>
9572
 
-            </widget>
9573
 
-           </item>
9574
 
-           <item row="7" column="2" colspan="2" >
9575
 
-            <widget class="QComboBox" name="aclCompatibilityCombo" >
9576
 
-             <item>
9577
 
-              <property name="text" >
9578
 
-               <string>Windows NT 4</string>
9579
 
-              </property>
9580
 
-             </item>
9581
 
-             <item>
9582
 
-              <property name="text" >
9583
 
-               <string>Windows 2000</string>
9584
 
-              </property>
9585
 
-             </item>
9586
 
-             <item>
9587
 
-              <property name="text" >
9588
 
-               <string>Auto</string>
9589
 
-              </property>
9590
 
-             </item>
9591
 
-            </widget>
9592
 
-           </item>
9593
 
-           <item row="7" column="0" colspan="2" >
9594
 
-            <widget class="QLabel" name="textLabel3_2_2" >
9595
 
-             <property name="text" >
9596
 
-              <string>Acl compatibilit&amp;y:</string>
9597
 
-             </property>
9598
 
-             <property name="wordWrap" >
9599
 
-              <bool>false</bool>
9600
 
-             </property>
9601
 
-             <property name="buddy" >
9602
 
-              <cstring>aclCompatibilityCombo</cstring>
9603
 
-             </property>
9604
 
-            </widget>
9605
 
-           </item>
9606
 
-           <item row="8" column="0" colspan="2" >
9607
 
-            <widget class="QCheckBox" name="winbindEnumUsersChk" >
9608
 
-             <property name="text" >
9609
 
-              <string>Wi&amp;nbind enum users</string>
9610
 
-             </property>
9611
 
-            </widget>
9612
 
-           </item>
9613
 
-           <item row="9" column="0" colspan="2" >
9614
 
-            <widget class="QCheckBox" name="winbindEnumGroupsChk" >
9615
 
-             <property name="text" >
9616
 
-              <string>Winbind enum groups</string>
9617
 
-             </property>
9618
 
-            </widget>
9619
 
-           </item>
9620
 
-           <item row="10" column="0" colspan="5" >
9621
 
-            <widget class="QCheckBox" name="winbindUseDefaultDomainChk" >
9622
 
-             <property name="text" >
9623
 
-              <string>Winbind use default domain</string>
9624
 
-             </property>
9625
 
-            </widget>
9626
 
-           </item>
9627
 
-           <item row="11" column="0" colspan="5" >
9628
 
-            <widget class="QCheckBox" name="winbindEnableLocalAccountsChk" >
9629
 
-             <property name="text" >
9630
 
-              <string>Winbind enable local accounts</string>
9631
 
-             </property>
9632
 
-            </widget>
9633
 
-           </item>
9634
 
-           <item row="12" column="0" colspan="5" >
9635
 
-            <widget class="QCheckBox" name="winbindTrustedDomainsOnlyChk" >
9636
 
-             <property name="text" >
9637
 
-              <string>Winbind trusted domains only</string>
9638
 
-             </property>
9639
 
-            </widget>
9640
 
-           </item>
9641
 
-           <item row="13" column="0" colspan="5" >
9642
 
-            <widget class="QCheckBox" name="winbindNestedGroupsChk" >
9643
 
-             <property name="text" >
9644
 
-              <string>Winbind nested groups</string>
9645
 
-             </property>
9646
 
-            </widget>
9647
 
-           </item>
9648
 
-           <item row="14" column="1" >
9649
 
-            <spacer>
9650
 
-             <property name="orientation" >
9651
 
-              <enum>Qt::Vertical</enum>
9652
 
-             </property>
9653
 
-             <property name="sizeType" >
9654
 
-              <enum>QSizePolicy::Expanding</enum>
9655
 
-             </property>
9656
 
-             <property name="sizeHint" >
9657
 
-              <size>
9658
 
-               <width>20</width>
9659
 
-               <height>100</height>
9660
 
-              </size>
9661
 
-             </property>
9662
 
-            </spacer>
9663
 
-           </item>
9664
 
-           <item row="6" column="4" >
9665
 
-            <spacer>
9666
 
-             <property name="orientation" >
9667
 
-              <enum>Qt::Horizontal</enum>
9668
 
-             </property>
9669
 
-             <property name="sizeHint" >
9670
 
-              <size>
9671
 
-               <width>40</width>
9672
 
-               <height>20</height>
9673
 
-              </size>
9674
 
-             </property>
9675
 
-            </spacer>
9676
 
-           </item>
9677
 
-          </layout>
9678
 
-         </widget>
9679
 
-         <widget class="QWidget" name="tab" >
9680
 
-          <attribute name="title" >
9681
 
-           <string>NetBIOS</string>
9682
 
-          </attribute>
9683
 
-          <layout class="QGridLayout" >
9684
 
-           <property name="leftMargin" >
9685
 
-            <number>0</number>
9686
 
-           </property>
9687
 
-           <property name="topMargin" >
9688
 
-            <number>0</number>
9689
 
-           </property>
9690
 
-           <property name="rightMargin" >
9691
 
-            <number>0</number>
9692
 
-           </property>
9693
 
-           <property name="bottomMargin" >
9694
 
-            <number>0</number>
9695
 
-           </property>
9696
 
-           <property name="horizontalSpacing" >
9697
 
-            <number>6</number>
9698
 
-           </property>
9699
 
-           <property name="verticalSpacing" >
9700
 
-            <number>6</number>
9701
 
-           </property>
9702
 
-           <item row="4" column="0" >
9703
 
-            <spacer>
9704
 
-             <property name="orientation" >
9705
 
-              <enum>Qt::Vertical</enum>
9706
 
-             </property>
9707
 
-             <property name="sizeType" >
9708
 
-              <enum>QSizePolicy::Expanding</enum>
9709
 
-             </property>
9710
 
-             <property name="sizeHint" >
9711
 
-              <size>
9712
 
-               <width>20</width>
9713
 
-               <height>280</height>
9714
 
-              </size>
9715
 
-             </property>
9716
 
-            </spacer>
9717
 
-           </item>
9718
 
-           <item row="2" column="0" >
9719
 
-            <widget class="QLabel" name="TextLabel3_4" >
9720
 
-             <property name="font" >
9721
 
-              <font/>
9722
 
-             </property>
9723
 
-             <property name="text" >
9724
 
-              <string>NetBIOS sc&amp;ope:</string>
9725
 
-             </property>
9726
 
-             <property name="wordWrap" >
9727
 
-              <bool>false</bool>
9728
 
-             </property>
9729
 
-             <property name="buddy" >
9730
 
-              <cstring>netbiosScopeEdit</cstring>
9731
 
-             </property>
9732
 
-            </widget>
9733
 
-           </item>
9734
 
-           <item row="1" column="0" >
9735
 
-            <widget class="QLabel" name="TextLabel3_2" >
9736
 
-             <property name="font" >
9737
 
-              <font/>
9738
 
-             </property>
9739
 
-             <property name="text" >
9740
 
-              <string>&amp;NetBIOS aliases:</string>
9741
 
-             </property>
9742
 
-             <property name="wordWrap" >
9743
 
-              <bool>false</bool>
9744
 
-             </property>
9745
 
-             <property name="buddy" >
9746
 
-              <cstring>netbiosAliasesEdit</cstring>
9747
 
-             </property>
9748
 
-            </widget>
9749
 
-           </item>
9750
 
-           <item row="0" column="0" colspan="2" >
9751
 
-            <widget class="QCheckBox" name="disableNetbiosChk" >
9752
 
-             <property name="text" >
9753
 
-              <string>Disab&amp;le netbios</string>
9754
 
-             </property>
9755
 
-            </widget>
9756
 
-           </item>
9757
 
-           <item row="3" column="0" >
9758
 
-            <widget class="QLabel" name="TextLabel5_4_2" >
9759
 
-             <property name="text" >
9760
 
-              <string>Na&amp;me resolve order:</string>
9761
 
-             </property>
9762
 
-             <property name="wordWrap" >
9763
 
-              <bool>false</bool>
9764
 
-             </property>
9765
 
-             <property name="buddy" >
9766
 
-              <cstring>nameResolveOrderEdit</cstring>
9767
 
-             </property>
9768
 
-            </widget>
9769
 
-           </item>
9770
 
-           <item row="2" column="1" >
9771
 
-            <widget class="KLineEdit" name="netbiosScopeEdit" >
9772
 
-             <property name="font" >
9773
 
-              <font/>
9774
 
-             </property>
9775
 
-            </widget>
9776
 
-           </item>
9777
 
-           <item row="1" column="1" >
9778
 
-            <widget class="KLineEdit" name="netbiosAliasesEdit" >
9779
 
-             <property name="font" >
9780
 
-              <font/>
9781
 
-             </property>
9782
 
-            </widget>
9783
 
-           </item>
9784
 
-           <item row="3" column="1" >
9785
 
-            <widget class="QLineEdit" name="nameResolveOrderEdit" >
9786
 
-             <property name="sizePolicy" >
9787
 
-              <sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
9788
 
-               <horstretch>0</horstretch>
9789
 
-               <verstretch>0</verstretch>
9790
 
-              </sizepolicy>
9791
 
-             </property>
9792
 
-             <property name="minimumSize" >
9793
 
-              <size>
9794
 
-               <width>150</width>
9795
 
-               <height>0</height>
9796
 
-              </size>
9797
 
-             </property>
9798
 
-             <property name="text" >
9799
 
-              <string>lmhosts host wins bcast</string>
9800
 
-             </property>
9801
 
-            </widget>
9802
 
-           </item>
9803
 
-          </layout>
9804
 
-         </widget>
9805
 
-         <widget class="QWidget" name="tab" >
9806
 
-          <attribute name="title" >
9807
 
-           <string>VFS</string>
9808
 
-          </attribute>
9809
 
-          <layout class="QVBoxLayout" >
9810
 
-           <property name="spacing" >
9811
 
-            <number>6</number>
9812
 
-           </property>
9813
 
-           <property name="leftMargin" >
9814
 
-            <number>0</number>
9815
 
-           </property>
9816
 
-           <property name="topMargin" >
9817
 
-            <number>0</number>
9818
 
-           </property>
9819
 
-           <property name="rightMargin" >
9820
 
-            <number>0</number>
9821
 
-           </property>
9822
 
-           <property name="bottomMargin" >
9823
 
-            <number>0</number>
9824
 
-           </property>
9825
 
-           <item>
9826
 
-            <widget class="QCheckBox" name="hostMsdfsChk" >
9827
 
-             <property name="text" >
9828
 
-              <string>H&amp;ost msdfs</string>
9829
 
-             </property>
9830
 
-            </widget>
9831
 
-           </item>
9832
 
-           <item>
9833
 
-            <spacer>
9834
 
-             <property name="orientation" >
9835
 
-              <enum>Qt::Vertical</enum>
9836
 
-             </property>
9837
 
-             <property name="sizeType" >
9838
 
-              <enum>QSizePolicy::Expanding</enum>
9839
 
-             </property>
9840
 
-             <property name="sizeHint" >
9841
 
-              <size>
9842
 
-               <width>0</width>
9843
 
-               <height>30</height>
9844
 
-              </size>
9845
 
-             </property>
9846
 
-            </spacer>
9847
 
-           </item>
9848
 
-          </layout>
9849
 
-         </widget>
9850
 
-         <widget class="QWidget" name="TabPage" >
9851
 
-          <attribute name="title" >
9852
 
-           <string>LDAP</string>
9853
 
-          </attribute>
9854
 
-          <layout class="QGridLayout" >
9855
 
-           <item row="0" column="0" >
9856
 
-            <widget class="QLabel" name="TextLabel3_2_2" >
9857
 
-             <property name="font" >
9858
 
-              <font/>
9859
 
-             </property>
9860
 
-             <property name="text" >
9861
 
-              <string>LDAP suffi&amp;x:</string>
9862
 
-             </property>
9863
 
-             <property name="wordWrap" >
9864
 
-              <bool>false</bool>
9865
 
-             </property>
9866
 
-             <property name="buddy" >
9867
 
-              <cstring>ldapSuffixEdit</cstring>
9868
 
-             </property>
9869
 
-            </widget>
9870
 
-           </item>
9871
 
-           <item row="0" column="1" colspan="3" >
9872
 
-            <widget class="KLineEdit" name="ldapSuffixEdit" >
9873
 
-             <property name="font" >
9874
 
-              <font/>
9875
 
-             </property>
9876
 
-            </widget>
9877
 
-           </item>
9878
 
-           <item row="1" column="0" >
9879
 
-            <widget class="QLabel" name="TextLabel3_2_2_2" >
9880
 
-             <property name="font" >
9881
 
-              <font/>
9882
 
-             </property>
9883
 
-             <property name="text" >
9884
 
-              <string>LDAP machine suffix:</string>
9885
 
-             </property>
9886
 
-             <property name="wordWrap" >
9887
 
-              <bool>false</bool>
9888
 
-             </property>
9889
 
-             <property name="buddy" >
9890
 
-              <cstring>ldapMachineSuffixEdit</cstring>
9891
 
-             </property>
9892
 
-            </widget>
9893
 
-           </item>
9894
 
-           <item row="1" column="1" colspan="3" >
9895
 
-            <widget class="KLineEdit" name="ldapMachineSuffixEdit" >
9896
 
-             <property name="font" >
9897
 
-              <font/>
9898
 
-             </property>
9899
 
-            </widget>
9900
 
-           </item>
9901
 
-           <item row="2" column="0" >
9902
 
-            <widget class="QLabel" name="TextLabel3_2_2_2_2" >
9903
 
-             <property name="font" >
9904
 
-              <font/>
9905
 
-             </property>
9906
 
-             <property name="text" >
9907
 
-              <string>LDAP user suffix:</string>
9908
 
-             </property>
9909
 
-             <property name="wordWrap" >
9910
 
-              <bool>false</bool>
9911
 
-             </property>
9912
 
-             <property name="buddy" >
9913
 
-              <cstring>ldapUserSuffixEdit</cstring>
9914
 
-             </property>
9915
 
-            </widget>
9916
 
-           </item>
9917
 
-           <item row="2" column="1" colspan="3" >
9918
 
-            <widget class="KLineEdit" name="ldapUserSuffixEdit" >
9919
 
-             <property name="font" >
9920
 
-              <font/>
9921
 
-             </property>
9922
 
-            </widget>
9923
 
-           </item>
9924
 
-           <item row="3" column="0" >
9925
 
-            <widget class="QLabel" name="TextLabel3_2_2_2_3" >
9926
 
-             <property name="font" >
9927
 
-              <font/>
9928
 
-             </property>
9929
 
-             <property name="text" >
9930
 
-              <string>LDAP &amp;group suffix:</string>
9931
 
-             </property>
9932
 
-             <property name="wordWrap" >
9933
 
-              <bool>false</bool>
9934
 
-             </property>
9935
 
-             <property name="buddy" >
9936
 
-              <cstring>ldapGroupSuffixEdit</cstring>
9937
 
-             </property>
9938
 
-            </widget>
9939
 
-           </item>
9940
 
-           <item row="3" column="1" colspan="3" >
9941
 
-            <widget class="KLineEdit" name="ldapGroupSuffixEdit" >
9942
 
-             <property name="font" >
9943
 
-              <font/>
9944
 
-             </property>
9945
 
-            </widget>
9946
 
-           </item>
9947
 
-           <item row="4" column="0" >
9948
 
-            <widget class="QLabel" name="TextLabel3_2_2_2_4" >
9949
 
-             <property name="font" >
9950
 
-              <font/>
9951
 
-             </property>
9952
 
-             <property name="text" >
9953
 
-              <string>LDAP idmap suffix:</string>
9954
 
-             </property>
9955
 
-             <property name="wordWrap" >
9956
 
-              <bool>false</bool>
9957
 
-             </property>
9958
 
-             <property name="buddy" >
9959
 
-              <cstring>ldapIdmapSuffixEdit</cstring>
9960
 
-             </property>
9961
 
-            </widget>
9962
 
-           </item>
9963
 
-           <item row="4" column="1" colspan="3" >
9964
 
-            <widget class="KLineEdit" name="ldapIdmapSuffixEdit" >
9965
 
-             <property name="font" >
9966
 
-              <font/>
9967
 
-             </property>
9968
 
-            </widget>
9969
 
-           </item>
9970
 
-           <item row="5" column="0" >
9971
 
-            <widget class="QLabel" name="TextLabel3_2_2_2_5" >
9972
 
-             <property name="font" >
9973
 
-              <font/>
9974
 
-             </property>
9975
 
-             <property name="text" >
9976
 
-              <string>LDAP filter:</string>
9977
 
-             </property>
9978
 
-             <property name="wordWrap" >
9979
 
-              <bool>false</bool>
9980
 
-             </property>
9981
 
-             <property name="buddy" >
9982
 
-              <cstring>ldapFilterEdit</cstring>
9983
 
-             </property>
9984
 
-            </widget>
9985
 
-           </item>
9986
 
-           <item row="5" column="1" colspan="3" >
9987
 
-            <widget class="KLineEdit" name="ldapFilterEdit" >
9988
 
-             <property name="font" >
9989
 
-              <font/>
9990
 
-             </property>
9991
 
-            </widget>
9992
 
-           </item>
9993
 
-           <item row="6" column="0" >
9994
 
-            <widget class="QLabel" name="TextLabel3_2_2_2_6" >
9995
 
-             <property name="font" >
9996
 
-              <font/>
9997
 
-             </property>
9998
 
-             <property name="text" >
9999
 
-              <string>LDAP ad&amp;min dn:</string>
10000
 
-             </property>
10001
 
-             <property name="wordWrap" >
10002
 
-              <bool>false</bool>
10003
 
-             </property>
10004
 
-             <property name="buddy" >
10005
 
-              <cstring>ldapAdminDnEdit</cstring>
10006
 
-             </property>
10007
 
-            </widget>
10008
 
-           </item>
10009
 
-           <item row="6" column="1" colspan="3" >
10010
 
-            <widget class="KLineEdit" name="ldapAdminDnEdit" >
10011
 
-             <property name="font" >
10012
 
-              <font/>
10013
 
-             </property>
10014
 
-            </widget>
10015
 
-           </item>
10016
 
-           <item row="7" column="0" >
10017
 
-            <widget class="QLabel" name="TextLabel3_4_2" >
10018
 
-             <property name="font" >
10019
 
-              <font/>
10020
 
-             </property>
10021
 
-             <property name="text" >
10022
 
-              <string>Idmap bac&amp;kend:</string>
10023
 
-             </property>
10024
 
-             <property name="wordWrap" >
10025
 
-              <bool>false</bool>
10026
 
-             </property>
10027
 
-             <property name="buddy" >
10028
 
-              <cstring>idmapBackendEdit</cstring>
10029
 
-             </property>
10030
 
-            </widget>
10031
 
-           </item>
10032
 
-           <item row="7" column="1" colspan="3" >
10033
 
-            <widget class="KLineEdit" name="idmapBackendEdit" >
10034
 
-             <property name="font" >
10035
 
-              <font/>
10036
 
-             </property>
10037
 
-            </widget>
10038
 
-           </item>
10039
 
-           <item row="8" column="0" >
10040
 
-            <widget class="QLabel" name="TextLabel3_4_2_2" >
10041
 
-             <property name="font" >
10042
 
-              <font/>
10043
 
-             </property>
10044
 
-             <property name="text" >
10045
 
-              <string>LDAP replication sleep:</string>
10046
 
-             </property>
10047
 
-             <property name="wordWrap" >
10048
 
-              <bool>false</bool>
10049
 
-             </property>
10050
 
-             <property name="buddy" >
10051
 
-              <cstring>idmapBackendEdit</cstring>
10052
 
-             </property>
10053
 
-            </widget>
10054
 
-           </item>
10055
 
-           <item row="8" column="1" >
10056
 
-            <widget class="KIntSpinBox" name="ldapReplicationSleepSpin" >
10057
 
-             <property name="maximum" >
10058
 
-              <number>2147483647</number>
10059
 
-             </property>
10060
 
-            </widget>
10061
 
-           </item>
10062
 
-           <item row="8" column="2" >
10063
 
-            <widget class="QLabel" name="textLabel3_3" >
10064
 
-             <property name="text" >
10065
 
-              <string>milliseconds</string>
10066
 
-             </property>
10067
 
-             <property name="wordWrap" >
10068
 
-              <bool>false</bool>
10069
 
-             </property>
10070
 
-            </widget>
10071
 
-           </item>
10072
 
-           <item row="8" column="3" >
10073
 
-            <spacer>
10074
 
-             <property name="orientation" >
10075
 
-              <enum>Qt::Horizontal</enum>
10076
 
-             </property>
10077
 
-             <property name="sizeHint" >
10078
 
-              <size>
10079
 
-               <width>40</width>
10080
 
-               <height>20</height>
10081
 
-              </size>
10082
 
-             </property>
10083
 
-            </spacer>
10084
 
-           </item>
10085
 
-           <item row="9" column="0" >
10086
 
-            <widget class="QLabel" name="TextLabel3_5_4" >
10087
 
-             <property name="text" >
10088
 
-              <string>&amp;LDAP ssl:</string>
10089
 
-             </property>
10090
 
-             <property name="wordWrap" >
10091
 
-              <bool>false</bool>
10092
 
-             </property>
10093
 
-             <property name="buddy" >
10094
 
-              <cstring>ldapSslCombo</cstring>
10095
 
-             </property>
10096
 
-            </widget>
10097
 
-           </item>
10098
 
-           <item row="9" column="1" >
10099
 
-            <widget class="QComboBox" name="ldapSslCombo" >
10100
 
-             <item>
10101
 
-              <property name="text" >
10102
 
-               <string>Off</string>
10103
 
-              </property>
10104
 
-             </item>
10105
 
-             <item>
10106
 
-              <property name="text" >
10107
 
-               <string>Start_tls</string>
10108
 
-              </property>
10109
 
-             </item>
10110
 
-             <item>
10111
 
-              <property name="text" >
10112
 
-               <string>On</string>
10113
 
-              </property>
10114
 
-             </item>
10115
 
-            </widget>
10116
 
-           </item>
10117
 
-           <item row="10" column="0" >
10118
 
-            <widget class="QLabel" name="TextLabel3_5_4_2" >
10119
 
-             <property name="text" >
10120
 
-              <string>LDAP s&amp;ync:</string>
10121
 
-             </property>
10122
 
-             <property name="wordWrap" >
10123
 
-              <bool>false</bool>
10124
 
-             </property>
10125
 
-             <property name="buddy" >
10126
 
-              <cstring>ldapSyncCombo</cstring>
10127
 
-             </property>
10128
 
-            </widget>
10129
 
-           </item>
10130
 
-           <item row="10" column="1" >
10131
 
-            <widget class="QComboBox" name="ldapSyncCombo" >
10132
 
-             <item>
10133
 
-              <property name="text" >
10134
 
-               <string>Yes</string>
10135
 
-              </property>
10136
 
-             </item>
10137
 
-             <item>
10138
 
-              <property name="text" >
10139
 
-               <string>No</string>
10140
 
-              </property>
10141
 
-             </item>
10142
 
-             <item>
10143
 
-              <property name="text" >
10144
 
-               <string>Only</string>
10145
 
-              </property>
10146
 
-             </item>
10147
 
-            </widget>
10148
 
-           </item>
10149
 
-           <item row="11" column="0" >
10150
 
-            <widget class="QCheckBox" name="ldapDeleteDnChk" >
10151
 
-             <property name="text" >
10152
 
-              <string>LDAP delete d&amp;n</string>
10153
 
-             </property>
10154
 
-            </widget>
10155
 
-           </item>
10156
 
-           <item row="12" column="0" >
10157
 
-            <spacer>
10158
 
-             <property name="orientation" >
10159
 
-              <enum>Qt::Vertical</enum>
10160
 
-             </property>
10161
 
-             <property name="sizeType" >
10162
 
-              <enum>QSizePolicy::Expanding</enum>
10163
 
-             </property>
10164
 
-             <property name="sizeHint" >
10165
 
-              <size>
10166
 
-               <width>20</width>
10167
 
-               <height>130</height>
10168
 
-              </size>
10169
 
-             </property>
10170
 
-            </spacer>
10171
 
-           </item>
10172
 
-          </layout>
10173
 
-         </widget>
10174
 
-         <widget class="QWidget" name="TabPage" >
10175
 
-          <attribute name="title" >
10176
 
-           <string>Commands</string>
10177
 
-          </attribute>
10178
 
-          <layout class="QGridLayout" >
10179
 
-           <property name="leftMargin" >
10180
 
-            <number>0</number>
10181
 
-           </property>
10182
 
-           <property name="topMargin" >
10183
 
-            <number>0</number>
10184
 
-           </property>
10185
 
-           <property name="rightMargin" >
10186
 
-            <number>0</number>
10187
 
-           </property>
10188
 
-           <property name="bottomMargin" >
10189
 
-            <number>0</number>
10190
 
-           </property>
10191
 
-           <property name="horizontalSpacing" >
10192
 
-            <number>6</number>
10193
 
-           </property>
10194
 
-           <property name="verticalSpacing" >
10195
 
-            <number>6</number>
10196
 
-           </property>
10197
 
-           <item row="0" column="0" >
10198
 
-            <widget class="QLabel" name="TextLabel1_5" >
10199
 
-             <property name="text" >
10200
 
-              <string>Add share c&amp;ommand:</string>
10201
 
-             </property>
10202
 
-             <property name="wordWrap" >
10203
 
-              <bool>false</bool>
10204
 
-             </property>
10205
 
-             <property name="buddy" >
10206
 
-              <cstring>addShareCommandEdit</cstring>
10207
 
-             </property>
10208
 
-            </widget>
10209
 
-           </item>
10210
 
-           <item row="1" column="0" >
10211
 
-            <widget class="QLabel" name="TextLabel2_2" >
10212
 
-             <property name="text" >
10213
 
-              <string>Change share command:</string>
10214
 
-             </property>
10215
 
-             <property name="wordWrap" >
10216
 
-              <bool>false</bool>
10217
 
-             </property>
10218
 
-             <property name="buddy" >
10219
 
-              <cstring>changeShareCommandEdit</cstring>
10220
 
-             </property>
10221
 
-            </widget>
10222
 
-           </item>
10223
 
-           <item row="2" column="0" >
10224
 
-            <widget class="QLabel" name="TextLabel3_3" >
10225
 
-             <property name="text" >
10226
 
-              <string>De&amp;lete share command:</string>
10227
 
-             </property>
10228
 
-             <property name="wordWrap" >
10229
 
-              <bool>false</bool>
10230
 
-             </property>
10231
 
-             <property name="buddy" >
10232
 
-              <cstring>deleteShareCommandEdit</cstring>
10233
 
-             </property>
10234
 
-            </widget>
10235
 
-           </item>
10236
 
-           <item row="3" column="0" >
10237
 
-            <widget class="QLabel" name="TextLabel10" >
10238
 
-             <property name="text" >
10239
 
-              <string>Messa&amp;ge command:</string>
10240
 
-             </property>
10241
 
-             <property name="wordWrap" >
10242
 
-              <bool>false</bool>
10243
 
-             </property>
10244
 
-             <property name="buddy" >
10245
 
-              <cstring>messageCommandEdit</cstring>
10246
 
-             </property>
10247
 
-            </widget>
10248
 
-           </item>
10249
 
-           <item row="4" column="0" >
10250
 
-            <widget class="QLabel" name="TextLabel11" >
10251
 
-             <property name="text" >
10252
 
-              <string>Dfree co&amp;mmand:</string>
10253
 
-             </property>
10254
 
-             <property name="wordWrap" >
10255
 
-              <bool>false</bool>
10256
 
-             </property>
10257
 
-             <property name="buddy" >
10258
 
-              <cstring>dfreeCommandEdit</cstring>
10259
 
-             </property>
10260
 
-            </widget>
10261
 
-           </item>
10262
 
-           <item row="5" column="0" >
10263
 
-            <widget class="QLabel" name="TextLabel1_5_2" >
10264
 
-             <property name="text" >
10265
 
-              <string>Set &amp;quota command:</string>
10266
 
-             </property>
10267
 
-             <property name="wordWrap" >
10268
 
-              <bool>false</bool>
10269
 
-             </property>
10270
 
-             <property name="buddy" >
10271
 
-              <cstring>setQuotaCommandEdit</cstring>
10272
 
-             </property>
10273
 
-            </widget>
10274
 
-           </item>
10275
 
-           <item row="6" column="0" >
10276
 
-            <widget class="QLabel" name="TextLabel2_2_3" >
10277
 
-             <property name="text" >
10278
 
-              <string>Get quota command:</string>
10279
 
-             </property>
10280
 
-             <property name="wordWrap" >
10281
 
-              <bool>false</bool>
10282
 
-             </property>
10283
 
-             <property name="buddy" >
10284
 
-              <cstring>getQuotaCommandEdit</cstring>
10285
 
-             </property>
10286
 
-            </widget>
10287
 
-           </item>
10288
 
-           <item row="8" column="0" >
10289
 
-            <spacer>
10290
 
-             <property name="orientation" >
10291
 
-              <enum>Qt::Vertical</enum>
10292
 
-             </property>
10293
 
-             <property name="sizeType" >
10294
 
-              <enum>QSizePolicy::Expanding</enum>
10295
 
-             </property>
10296
 
-             <property name="sizeHint" >
10297
 
-              <size>
10298
 
-               <width>20</width>
10299
 
-               <height>230</height>
10300
 
-              </size>
10301
 
-             </property>
10302
 
-            </spacer>
10303
 
-           </item>
10304
 
-           <item row="7" column="0" >
10305
 
-            <widget class="QLabel" name="TextLabel20" >
10306
 
-             <property name="text" >
10307
 
-              <string>Pa&amp;nic action:</string>
10308
 
-             </property>
10309
 
-             <property name="wordWrap" >
10310
 
-              <bool>false</bool>
10311
 
-             </property>
10312
 
-             <property name="buddy" >
10313
 
-              <cstring>panicActionEdit</cstring>
10314
 
-             </property>
10315
 
-            </widget>
10316
 
-           </item>
10317
 
-           <item row="3" column="1" >
10318
 
-            <widget class="QLineEdit" name="messageCommandEdit" />
10319
 
-           </item>
10320
 
-           <item row="4" column="1" >
10321
 
-            <widget class="QLineEdit" name="dfreeCommandEdit" />
10322
 
-           </item>
10323
 
-           <item row="5" column="1" >
10324
 
-            <widget class="QLineEdit" name="setQuotaCommandEdit" />
10325
 
-           </item>
10326
 
-           <item row="6" column="1" >
10327
 
-            <widget class="QLineEdit" name="getQuotaCommandEdit" />
10328
 
-           </item>
10329
 
-           <item row="7" column="1" >
10330
 
-            <widget class="QLineEdit" name="panicActionEdit" />
10331
 
-           </item>
10332
 
-           <item row="2" column="1" >
10333
 
-            <widget class="QLineEdit" name="deleteShareCommandEdit" />
10334
 
-           </item>
10335
 
-           <item row="1" column="1" >
10336
 
-            <widget class="QLineEdit" name="changeShareCommandEdit" />
10337
 
-           </item>
10338
 
-           <item row="0" column="1" >
10339
 
-            <widget class="QLineEdit" name="addShareCommandEdit" />
10340
 
-           </item>
10341
 
-          </layout>
10342
 
-         </widget>
10343
 
-         <widget class="QWidget" name="tab" >
10344
 
-          <attribute name="title" >
10345
 
-           <string>Misc</string>
10346
 
-          </attribute>
10347
 
-          <layout class="QVBoxLayout" >
10348
 
-           <item>
10349
 
-            <widget class="QGroupBox" name="groupBox12" >
10350
 
-             <property name="title" >
10351
 
-              <string>Miscellaneous</string>
10352
 
-             </property>
10353
 
-             <layout class="QGridLayout" >
10354
 
-              <item row="0" column="0" >
10355
 
-               <widget class="QCheckBox" name="CheckBox68" >
10356
 
-                <property name="text" >
10357
 
-                 <string>Hide &amp;local users</string>
10358
 
-                </property>
10359
 
-               </widget>
10360
 
-              </item>
10361
 
-              <item row="1" column="0" >
10362
 
-               <widget class="QLabel" name="TextLabel9" >
10363
 
-                <property name="text" >
10364
 
-                 <string>Default service:</string>
10365
 
-                </property>
10366
 
-                <property name="wordWrap" >
10367
 
-                 <bool>false</bool>
10368
 
-                </property>
10369
 
-                <property name="buddy" >
10370
 
-                 <cstring>defaultServiceEdit</cstring>
10371
 
-                </property>
10372
 
-               </widget>
10373
 
-              </item>
10374
 
-              <item row="1" column="1" colspan="3" >
10375
 
-               <widget class="QLineEdit" name="defaultServiceEdit" />
10376
 
-              </item>
10377
 
-              <item row="2" column="0" >
10378
 
-               <widget class="QLabel" name="TextLabel17" >
10379
 
-                <property name="text" >
10380
 
-                 <string>Time &amp;offset:</string>
10381
 
-                </property>
10382
 
-                <property name="wordWrap" >
10383
 
-                 <bool>false</bool>
10384
 
-                </property>
10385
 
-                <property name="buddy" >
10386
 
-                 <cstring>timeOffsetSpin</cstring>
10387
 
-                </property>
10388
 
-               </widget>
10389
 
-              </item>
10390
 
-              <item row="2" column="1" >
10391
 
-               <widget class="KIntSpinBox" name="timeOffsetSpin" >
10392
 
-                <property name="minimum" >
10393
 
-                 <number>0</number>
10394
 
-                </property>
10395
 
-                <property name="maximum" >
10396
 
-                 <number>1440</number>
10397
 
-                </property>
10398
 
-               </widget>
10399
 
-              </item>
10400
 
-              <item row="2" column="2" >
10401
 
-               <widget class="QLabel" name="TextLabel18" >
10402
 
-                <property name="text" >
10403
 
-                 <string comment="minurtes" >Min</string>
10404
 
-                </property>
10405
 
-                <property name="wordWrap" >
10406
 
-                 <bool>false</bool>
10407
 
-                </property>
10408
 
-               </widget>
10409
 
-              </item>
10410
 
-              <item row="2" column="3" >
10411
 
-               <spacer>
10412
 
-                <property name="orientation" >
10413
 
-                 <enum>Qt::Horizontal</enum>
10414
 
-                </property>
10415
 
-                <property name="sizeHint" >
10416
 
-                 <size>
10417
 
-                  <width>40</width>
10418
 
-                  <height>20</height>
10419
 
-                 </size>
10420
 
-                </property>
10421
 
-               </spacer>
10422
 
-              </item>
10423
 
-              <item row="3" column="0" >
10424
 
-               <widget class="QLabel" name="TextLabel13" >
10425
 
-                <property name="text" >
10426
 
-                 <string>Remote a&amp;nnounce:</string>
10427
 
-                </property>
10428
 
-                <property name="wordWrap" >
10429
 
-                 <bool>false</bool>
10430
 
-                </property>
10431
 
-                <property name="buddy" >
10432
 
-                 <cstring>remoteAnnounceEdit</cstring>
10433
 
-                </property>
10434
 
-               </widget>
10435
 
-              </item>
10436
 
-              <item row="3" column="1" colspan="3" >
10437
 
-               <widget class="QLineEdit" name="remoteAnnounceEdit" />
10438
 
-              </item>
10439
 
-              <item row="4" column="0" >
10440
 
-               <widget class="QLabel" name="TextLabel19" >
10441
 
-                <property name="text" >
10442
 
-                 <string>Source environment:</string>
10443
 
-                </property>
10444
 
-                <property name="wordWrap" >
10445
 
-                 <bool>false</bool>
10446
 
-                </property>
10447
 
-                <property name="buddy" >
10448
 
-                 <cstring>sourceEnvironmentEdit</cstring>
10449
 
-                </property>
10450
 
-               </widget>
10451
 
-              </item>
10452
 
-              <item row="4" column="1" colspan="3" >
10453
 
-               <widget class="QLineEdit" name="sourceEnvironmentEdit" />
10454
 
-              </item>
10455
 
-             </layout>
10456
 
-            </widget>
10457
 
-           </item>
10458
 
-           <item>
10459
 
-            <widget class="QGroupBox" name="groupBox11" >
10460
 
-             <property name="title" >
10461
 
-              <string>NIS</string>
10462
 
-             </property>
10463
 
-             <layout class="QGridLayout" >
10464
 
-              <property name="leftMargin" >
10465
 
-               <number>11</number>
10466
 
-              </property>
10467
 
-              <property name="topMargin" >
10468
 
-               <number>11</number>
10469
 
-              </property>
10470
 
-              <property name="rightMargin" >
10471
 
-               <number>11</number>
10472
 
-              </property>
10473
 
-              <property name="bottomMargin" >
10474
 
-               <number>11</number>
10475
 
-              </property>
10476
 
-              <property name="horizontalSpacing" >
10477
 
-               <number>6</number>
10478
 
-              </property>
10479
 
-              <property name="verticalSpacing" >
10480
 
-               <number>6</number>
10481
 
-              </property>
10482
 
-              <item row="0" column="0" >
10483
 
-               <widget class="QCheckBox" name="nisHomedirChk" >
10484
 
-                <property name="text" >
10485
 
-                 <string>NIS homedir</string>
10486
 
-                </property>
10487
 
-               </widget>
10488
 
-              </item>
10489
 
-              <item row="1" column="0" >
10490
 
-               <widget class="QLabel" name="TextLabel16" >
10491
 
-                <property name="text" >
10492
 
-                 <string>Homedir map:</string>
10493
 
-                </property>
10494
 
-                <property name="wordWrap" >
10495
 
-                 <bool>false</bool>
10496
 
-                </property>
10497
 
-                <property name="buddy" >
10498
 
-                 <cstring>homedirMapEdit</cstring>
10499
 
-                </property>
10500
 
-               </widget>
10501
 
-              </item>
10502
 
-              <item row="1" column="1" >
10503
 
-               <widget class="QLineEdit" name="homedirMapEdit" />
10504
 
-              </item>
10505
 
-             </layout>
10506
 
-            </widget>
10507
 
-           </item>
10508
 
-           <item>
10509
 
-            <widget class="QGroupBox" name="groupBox9" >
10510
 
-             <property name="title" >
10511
 
-              <string>UTMP</string>
10512
 
-             </property>
10513
 
-             <layout class="QGridLayout" >
10514
 
-              <property name="leftMargin" >
10515
 
-               <number>11</number>
10516
 
-              </property>
10517
 
-              <property name="topMargin" >
10518
 
-               <number>11</number>
10519
 
-              </property>
10520
 
-              <property name="rightMargin" >
10521
 
-               <number>11</number>
10522
 
-              </property>
10523
 
-              <property name="bottomMargin" >
10524
 
-               <number>11</number>
10525
 
-              </property>
10526
 
-              <property name="horizontalSpacing" >
10527
 
-               <number>6</number>
10528
 
-              </property>
10529
 
-              <property name="verticalSpacing" >
10530
 
-               <number>6</number>
10531
 
-              </property>
10532
 
-              <item row="1" column="0" >
10533
 
-               <widget class="QLabel" name="TextLabel7_3" >
10534
 
-                <property name="text" >
10535
 
-                 <string>Utmp director&amp;y:</string>
10536
 
-                </property>
10537
 
-                <property name="wordWrap" >
10538
 
-                 <bool>false</bool>
10539
 
-                </property>
10540
 
-                <property name="buddy" >
10541
 
-                 <cstring>utmpDirectoryUrlRq</cstring>
10542
 
-                </property>
10543
 
-               </widget>
10544
 
-              </item>
10545
 
-              <item row="2" column="1" >
10546
 
-               <widget class="KUrlRequester" name="wtmpDirectoryUrlRq" />
10547
 
-              </item>
10548
 
-              <item row="2" column="0" >
10549
 
-               <widget class="QLabel" name="TextLabel8_3" >
10550
 
-                <property name="text" >
10551
 
-                 <string>&amp;Wtmp directory:</string>
10552
 
-                </property>
10553
 
-                <property name="wordWrap" >
10554
 
-                 <bool>false</bool>
10555
 
-                </property>
10556
 
-                <property name="buddy" >
10557
 
-                 <cstring>wtmpDirectoryUrlRq</cstring>
10558
 
-                </property>
10559
 
-               </widget>
10560
 
-              </item>
10561
 
-              <item row="1" column="1" >
10562
 
-               <widget class="KUrlRequester" name="utmpDirectoryUrlRq" />
10563
 
-              </item>
10564
 
-              <item row="0" column="0" >
10565
 
-               <widget class="QCheckBox" name="CheckBox51" >
10566
 
-                <property name="text" >
10567
 
-                 <string>Ut&amp;mp</string>
10568
 
-                </property>
10569
 
-               </widget>
10570
 
-              </item>
10571
 
-             </layout>
10572
 
-            </widget>
10573
 
-           </item>
10574
 
-           <item>
10575
 
-            <spacer>
10576
 
-             <property name="orientation" >
10577
 
-              <enum>Qt::Vertical</enum>
10578
 
-             </property>
10579
 
-             <property name="sizeType" >
10580
 
-              <enum>QSizePolicy::Expanding</enum>
10581
 
-             </property>
10582
 
-             <property name="sizeHint" >
10583
 
-              <size>
10584
 
-               <width>20</width>
10585
 
-               <height>40</height>
10586
 
-              </size>
10587
 
-             </property>
10588
 
-            </spacer>
10589
 
-           </item>
10590
 
-          </layout>
10591
 
-         </widget>
10592
 
-         <widget class="QWidget" name="tab" >
10593
 
-          <attribute name="title" >
10594
 
-           <string>Debug</string>
10595
 
-          </attribute>
10596
 
-          <layout class="QVBoxLayout" >
10597
 
-           <property name="spacing" >
10598
 
-            <number>6</number>
10599
 
-           </property>
10600
 
-           <property name="leftMargin" >
10601
 
-            <number>0</number>
10602
 
-           </property>
10603
 
-           <property name="topMargin" >
10604
 
-            <number>0</number>
10605
 
-           </property>
10606
 
-           <property name="rightMargin" >
10607
 
-            <number>0</number>
10608
 
-           </property>
10609
 
-           <property name="bottomMargin" >
10610
 
-            <number>0</number>
10611
 
-           </property>
10612
 
-           <item>
10613
 
-            <widget class="QCheckBox" name="ntStatusSupportChk" >
10614
 
-             <property name="text" >
10615
 
-              <string>&amp;NT status support</string>
10616
 
-             </property>
10617
 
-            </widget>
10618
 
-           </item>
10619
 
-           <item>
10620
 
-            <widget class="QCheckBox" name="ntSmbSupportChk" >
10621
 
-             <property name="font" >
10622
 
-              <font/>
10623
 
-             </property>
10624
 
-             <property name="text" >
10625
 
-              <string>NT S&amp;MB support</string>
10626
 
-             </property>
10627
 
-             <property name="checked" >
10628
 
-              <bool>true</bool>
10629
 
-             </property>
10630
 
-            </widget>
10631
 
-           </item>
10632
 
-           <item>
10633
 
-            <widget class="QCheckBox" name="ntPipeSupportChk" >
10634
 
-             <property name="font" >
10635
 
-              <font/>
10636
 
-             </property>
10637
 
-             <property name="text" >
10638
 
-              <string>NT pipe supp&amp;ort</string>
10639
 
-             </property>
10640
 
-             <property name="checked" >
10641
 
-              <bool>true</bool>
10642
 
-             </property>
10643
 
-            </widget>
10644
 
-           </item>
10645
 
-           <item>
10646
 
-            <spacer>
10647
 
-             <property name="orientation" >
10648
 
-              <enum>Qt::Vertical</enum>
10649
 
-             </property>
10650
 
-             <property name="sizeType" >
10651
 
-              <enum>QSizePolicy::Expanding</enum>
10652
 
-             </property>
10653
 
-             <property name="sizeHint" >
10654
 
-              <size>
10655
 
-               <width>20</width>
10656
 
-               <height>320</height>
10657
 
-              </size>
10658
 
-             </property>
10659
 
-            </spacer>
10660
 
-           </item>
10661
 
-          </layout>
10662
 
-         </widget>
10663
 
-        </widget>
10664
 
-       </item>
10665
 
-      </layout>
10666
 
-     </widget>
10667
 
-    </widget>
10668
 
-   </item>
10669
 
-  </layout>
10670
 
- </widget>
10671
 
-  <customwidgets>
10672
 
-  <customwidget>
10673
 
-   <class>Q3ButtonGroup</class>
10674
 
-   <extends>Q3GroupBox</extends>
10675
 
-   <header>Qt3Support/Q3ButtonGroup</header>
10676
 
-   <container>1</container>
10677
 
-  </customwidget>
10678
 
-  <customwidget>
10679
 
-   <class>K3ListView</class>
10680
 
-   <extends>Q3ListView</extends>
10681
 
-   <header>k3listview.h</header>
10682
 
-  </customwidget>
10683
 
-  <customwidget>
10684
 
-   <class>KIntSpinBox</class>
10685
 
-   <extends>QSpinBox</extends>
10686
 
-   <header>knuminput.h</header>
10687
 
-  </customwidget>
10688
 
-  <customwidget>
10689
 
-   <class>KLineEdit</class>
10690
 
-   <extends>QLineEdit</extends>
10691
 
-   <header>klineedit.h</header>
10692
 
-  </customwidget>
10693
 
-  <customwidget>
10694
 
-   <class>KUrlLabel</class>
10695
 
-   <extends>QLabel</extends>
10696
 
-   <header>kurllabel.h</header>
10697
 
-  </customwidget>
10698
 
-  <customwidget>
10699
 
-   <class>KUrlRequester</class>
10700
 
-   <extends>QFrame</extends>
10701
 
-   <header>kurlrequester.h</header>
10702
 
-  </customwidget>
10703
 
- </customwidgets>
10704
 
- <tabstops>
10705
 
-  <tabstop>ntStatusSupportChk</tabstop>
10706
 
-  <tabstop>ntSmbSupportChk</tabstop>
10707
 
-  <tabstop>ntPipeSupportChk</tabstop>
10708
 
-  <tabstop>CheckBox68</tabstop>
10709
 
-  <tabstop>defaultServiceEdit</tabstop>
10710
 
-  <tabstop>timeOffsetSpin</tabstop>
10711
 
-  <tabstop>remoteAnnounceEdit</tabstop>
10712
 
-  <tabstop>sourceEnvironmentEdit</tabstop>
10713
 
-  <tabstop>nisHomedirChk</tabstop>
10714
 
-  <tabstop>homedirMapEdit</tabstop>
10715
 
-  <tabstop>CheckBox51</tabstop>
10716
 
-  <tabstop>utmpDirectoryUrlRq</tabstop>
10717
 
-  <tabstop>wtmpDirectoryUrlRq</tabstop>
10718
 
-  <tabstop>advancedTab</tabstop>
10719
 
-  <tabstop>addShareCommandEdit</tabstop>
10720
 
-  <tabstop>changeShareCommandEdit</tabstop>
10721
 
-  <tabstop>deleteShareCommandEdit</tabstop>
10722
 
-  <tabstop>messageCommandEdit</tabstop>
10723
 
-  <tabstop>dfreeCommandEdit</tabstop>
10724
 
-  <tabstop>setQuotaCommandEdit</tabstop>
10725
 
-  <tabstop>getQuotaCommandEdit</tabstop>
10726
 
-  <tabstop>panicActionEdit</tabstop>
10727
 
-  <tabstop>ldapSuffixEdit</tabstop>
10728
 
-  <tabstop>ldapMachineSuffixEdit</tabstop>
10729
 
-  <tabstop>ldapUserSuffixEdit</tabstop>
10730
 
-  <tabstop>ldapGroupSuffixEdit</tabstop>
10731
 
-  <tabstop>ldapIdmapSuffixEdit</tabstop>
10732
 
-  <tabstop>ldapFilterEdit</tabstop>
10733
 
-  <tabstop>ldapAdminDnEdit</tabstop>
10734
 
-  <tabstop>idmapBackendEdit</tabstop>
10735
 
-  <tabstop>ldapSslCombo</tabstop>
10736
 
-  <tabstop>ldapSyncCombo</tabstop>
10737
 
-  <tabstop>ldapDeleteDnChk</tabstop>
10738
 
-  <tabstop>hostMsdfsChk</tabstop>
10739
 
-  <tabstop>disableNetbiosChk</tabstop>
10740
 
-  <tabstop>netbiosAliasesEdit</tabstop>
10741
 
-  <tabstop>netbiosScopeEdit</tabstop>
10742
 
-  <tabstop>nameResolveOrderEdit</tabstop>
10743
 
-  <tabstop>winbindUidEdit</tabstop>
10744
 
-  <tabstop>winbindGidEdit</tabstop>
10745
 
-  <tabstop>templateHomedirEdit</tabstop>
10746
 
-  <tabstop>templateShellEdit</tabstop>
10747
 
-  <tabstop>winbindSeparatorEdit</tabstop>
10748
 
-  <tabstop>templatePrimaryGroupEdit</tabstop>
10749
 
-  <tabstop>winbindCacheTimeSpin</tabstop>
10750
 
-  <tabstop>aclCompatibilityCombo</tabstop>
10751
 
-  <tabstop>winbindEnumUsersChk</tabstop>
10752
 
-  <tabstop>winbindEnumGroupsChk</tabstop>
10753
 
-  <tabstop>winbindUseDefaultDomainChk</tabstop>
10754
 
-  <tabstop>winbindEnableLocalAccountsChk</tabstop>
10755
 
-  <tabstop>winbindTrustedDomainsOnlyChk</tabstop>
10756
 
-  <tabstop>enhancedBrowsingChk</tabstop>
10757
 
-  <tabstop>browseListChk</tabstop>
10758
 
-  <tabstop>lmAnnounceCombo</tabstop>
10759
 
-  <tabstop>lmIntervalSpin</tabstop>
10760
 
-  <tabstop>remoteBrowseSyncEdit</tabstop>
10761
 
-  <tabstop>preloadEdit</tabstop>
10762
 
-  <tabstop>timeServerChk</tabstop>
10763
 
-  <tabstop>largeReadWriteChk</tabstop>
10764
 
-  <tabstop>unixExtensionsChk</tabstop>
10765
 
-  <tabstop>readBmpxChk</tabstop>
10766
 
-  <tabstop>announceAsCombo</tabstop>
10767
 
-  <tabstop>announceVersionEdit</tabstop>
10768
 
-  <tabstop>protocolCombo</tabstop>
10769
 
-  <tabstop>maxProtocolCombo</tabstop>
10770
 
-  <tabstop>minProtocolCombo</tabstop>
10771
 
-  <tabstop>maxMuxSpin</tabstop>
10772
 
-  <tabstop>maxTtlSpin</tabstop>
10773
 
-  <tabstop>smbPortsEdit</tabstop>
10774
 
-  <tabstop>sslChk</tabstop>
10775
 
-  <tabstop>sslVersionCombo</tabstop>
10776
 
-  <tabstop>sslCompatibilityChk</tabstop>
10777
 
-  <tabstop>sslHostsEdit</tabstop>
10778
 
-  <tabstop>sslHostsResignEdit</tabstop>
10779
 
-  <tabstop>sslCACertDirUrlRq</tabstop>
10780
 
-  <tabstop>sslCACertFileUrlRq</tabstop>
10781
 
-  <tabstop>sslEgdSocketEdit</tabstop>
10782
 
-  <tabstop>sslEntropyFileUrlRq</tabstop>
10783
 
-  <tabstop>sslEntropyBytesSpin</tabstop>
10784
 
-  <tabstop>sslCiphersEdit</tabstop>
10785
 
-  <tabstop>sslRequireServercertChk</tabstop>
10786
 
-  <tabstop>sslServerCertUrlRq</tabstop>
10787
 
-  <tabstop>sslServerKeyUrlRq</tabstop>
10788
 
-  <tabstop>sslRequireClientcertChk</tabstop>
10789
 
-  <tabstop>sslClientCertUrlRq</tabstop>
10790
 
-  <tabstop>sslClientKeyUrlRq</tabstop>
10791
 
-  <tabstop>socketAddressEdit</tabstop>
10792
 
-  <tabstop>TCP_NODELAYChk</tabstop>
10793
 
-  <tabstop>IPTOS_LOWDELAYChk</tabstop>
10794
 
-  <tabstop>IPTOS_THROUGHPUTChk</tabstop>
10795
 
-  <tabstop>SO_KEEPALIVEChk</tabstop>
10796
 
-  <tabstop>SO_REUSEADDRChk</tabstop>
10797
 
-  <tabstop>SO_BROADCASTChk</tabstop>
10798
 
-  <tabstop>SO_SNDBUFChk</tabstop>
10799
 
-  <tabstop>SO_SNDBUFSpin</tabstop>
10800
 
-  <tabstop>SO_RCVBUFChk</tabstop>
10801
 
-  <tabstop>SO_RCVBUFSpin</tabstop>
10802
 
-  <tabstop>SO_SNDLOWATChk</tabstop>
10803
 
-  <tabstop>SO_SNDLOWATSpin</tabstop>
10804
 
-  <tabstop>SO_RCVLOWATChk</tabstop>
10805
 
-  <tabstop>SO_RCVLOWATSpin</tabstop>
10806
 
-  <tabstop>addUserScriptEdit</tabstop>
10807
 
-  <tabstop>addGroupScriptEdit</tabstop>
10808
 
-  <tabstop>addUserToGroupScriptEdit</tabstop>
10809
 
-  <tabstop>addMachineScriptEdit</tabstop>
10810
 
-  <tabstop>shutdownScriptEdit</tabstop>
10811
 
-  <tabstop>abortShutdownScriptEdit</tabstop>
10812
 
-  <tabstop>SetPrimaryGroupScriptEdit</tabstop>
10813
 
-  <tabstop>deleteUserScriptEdit</tabstop>
10814
 
-  <tabstop>deleteGroupScriptEdit</tabstop>
10815
 
-  <tabstop>deleteUserFromGroupScriptEdit</tabstop>
10816
 
-  <tabstop>logonScriptEdit</tabstop>
10817
 
-  <tabstop>logonDriveEdit</tabstop>
10818
 
-  <tabstop>logonPathUrlRq</tabstop>
10819
 
-  <tabstop>logonHomeUrlRq</tabstop>
10820
 
-  <tabstop>unicodeChk</tabstop>
10821
 
-  <tabstop>displayCharsetEdit</tabstop>
10822
 
-  <tabstop>unixCharsetEdit</tabstop>
10823
 
-  <tabstop>dosCharsetEdit</tabstop>
10824
 
-  <tabstop>characterSetEdit</tabstop>
10825
 
-  <tabstop>clientCodePageEdit</tabstop>
10826
 
-  <tabstop>codePageDirUrlRq</tabstop>
10827
 
-  <tabstop>codingSystemEdit</tabstop>
10828
 
-  <tabstop>validCharsEdit</tabstop>
10829
 
-  <tabstop>mainTab</tabstop>
10830
 
-  <tabstop>configUrlRq</tabstop>
10831
 
-  <tabstop>loadBtn</tabstop>
10832
 
-  <tabstop>workgroupEdit</tabstop>
10833
 
-  <tabstop>netbiosNameEdit</tabstop>
10834
 
-  <tabstop>serverStringEdit</tabstop>
10835
 
-  <tabstop>shareRadio</tabstop>
10836
 
-  <tabstop>userRadio</tabstop>
10837
 
-  <tabstop>serverRadio</tabstop>
10838
 
-  <tabstop>domainRadio</tabstop>
10839
 
-  <tabstop>adsRadio</tabstop>
10840
 
-  <tabstop>passwordServerEdit</tabstop>
10841
 
-  <tabstop>realmEdit</tabstop>
10842
 
-  <tabstop>guestAccountCombo</tabstop>
10843
 
-  <tabstop>allowGuestLoginsChk</tabstop>
10844
 
-  <tabstop>shareListView</tabstop>
10845
 
-  <tabstop>editDefaultShareBtn</tabstop>
10846
 
-  <tabstop>addShareBtn</tabstop>
10847
 
-  <tabstop>editShareBtn</tabstop>
10848
 
-  <tabstop>removeShareBtn</tabstop>
10849
 
-  <tabstop>printerListView</tabstop>
10850
 
-  <tabstop>editDefaultPrinterBtn</tabstop>
10851
 
-  <tabstop>addPrinterBtn</tabstop>
10852
 
-  <tabstop>editPrinterBtn</tabstop>
10853
 
-  <tabstop>removePrinterBtn</tabstop>
10854
 
-  <tabstop>sambaUsersListView</tabstop>
10855
 
-  <tabstop>addSambaUserBtn</tabstop>
10856
 
-  <tabstop>removeSambaUserBtn</tabstop>
10857
 
-  <tabstop>unixUsersListView</tabstop>
10858
 
-  <tabstop>sambaUserPasswordBtn</tabstop>
10859
 
-  <tabstop>joinADomainBtn</tabstop>
10860
 
-  <tabstop>tabWidget4</tabstop>
10861
 
-  <tabstop>mapToGuestCombo</tabstop>
10862
 
-  <tabstop>interfacesEdit</tabstop>
10863
 
-  <tabstop>bindInterfacesOnlyChk</tabstop>
10864
 
-  <tabstop>rootDirectoryEdit</tabstop>
10865
 
-  <tabstop>authMethodsEdit</tabstop>
10866
 
-  <tabstop>hostsEquivUrlRq</tabstop>
10867
 
-  <tabstop>privateDirUrlRq</tabstop>
10868
 
-  <tabstop>algorithmicRidBaseSpin</tabstop>
10869
 
-  <tabstop>obeyPamRestrictionsChk</tabstop>
10870
 
-  <tabstop>pamPasswordChangeChk</tabstop>
10871
 
-  <tabstop>allowTrustedDomainsChk</tabstop>
10872
 
-  <tabstop>paranoidServerSecurityChk</tabstop>
10873
 
-  <tabstop>encryptPasswordsChk</tabstop>
10874
 
-  <tabstop>smbPasswdFileUrlRq</tabstop>
10875
 
-  <tabstop>passdbBackendEdit</tabstop>
10876
 
-  <tabstop>passwdChatEdit</tabstop>
10877
 
-  <tabstop>passwdChatDebugChk</tabstop>
10878
 
-  <tabstop>passwdProgramUrlRq</tabstop>
10879
 
-  <tabstop>unixPasswordSyncChk</tabstop>
10880
 
-  <tabstop>nullPasswordsChk</tabstop>
10881
 
-  <tabstop>passwordLevelSpin</tabstop>
10882
 
-  <tabstop>minPasswdLengthSpin</tabstop>
10883
 
-  <tabstop>machinePasswordTimeoutSpin</tabstop>
10884
 
-  <tabstop>updateEncryptedChk</tabstop>
10885
 
-  <tabstop>usernameLevelSpin</tabstop>
10886
 
-  <tabstop>usernameMapUrlRq</tabstop>
10887
 
-  <tabstop>hideLocalUsersChk</tabstop>
10888
 
-  <tabstop>restrictAnonymousChk</tabstop>
10889
 
-  <tabstop>useRhostsChk</tabstop>
10890
 
-  <tabstop>lanmanAuthChk</tabstop>
10891
 
-  <tabstop>ntlmAuthChk</tabstop>
10892
 
-  <tabstop>useSpnegoChk</tabstop>
10893
 
-  <tabstop>serverSchannelCombo</tabstop>
10894
 
-  <tabstop>serverSigningCombo</tabstop>
10895
 
-  <tabstop>clientLanmanAuthChk</tabstop>
10896
 
-  <tabstop>clientPlaintextAuthChk</tabstop>
10897
 
-  <tabstop>clientNTLMv2AuthChk</tabstop>
10898
 
-  <tabstop>clientUseSpnegoChk</tabstop>
10899
 
-  <tabstop>clientSchannelCombo</tabstop>
10900
 
-  <tabstop>clientSigningCombo</tabstop>
10901
 
-  <tabstop>logFileUrlRq</tabstop>
10902
 
-  <tabstop>logLevelEdit</tabstop>
10903
 
-  <tabstop>maxLogSizeSpin</tabstop>
10904
 
-  <tabstop>syslogSpin</tabstop>
10905
 
-  <tabstop>syslogOnlyChk</tabstop>
10906
 
-  <tabstop>statusChk</tabstop>
10907
 
-  <tabstop>timestampChk</tabstop>
10908
 
-  <tabstop>microsecondsChk</tabstop>
10909
 
-  <tabstop>debugPidChk</tabstop>
10910
 
-  <tabstop>debugUidChk</tabstop>
10911
 
-  <tabstop>preloadModulesEdit</tabstop>
10912
 
-  <tabstop>getwdCacheChk</tabstop>
10913
 
-  <tabstop>useMmapChk</tabstop>
10914
 
-  <tabstop>kernelChangeNotifyChk</tabstop>
10915
 
-  <tabstop>hostnameLookupsChk</tabstop>
10916
 
-  <tabstop>readRawChk</tabstop>
10917
 
-  <tabstop>writeRawChk</tabstop>
10918
 
-  <tabstop>changeNotifyTimeoutSpin</tabstop>
10919
 
-  <tabstop>deadtimeSpin</tabstop>
10920
 
-  <tabstop>keepaliveSpin</tabstop>
10921
 
-  <tabstop>lpqCacheTimeSpin</tabstop>
10922
 
-  <tabstop>nameCacheTimeoutSpin</tabstop>
10923
 
-  <tabstop>maxDiskSizeSpin</tabstop>
10924
 
-  <tabstop>readSizeSpin</tabstop>
10925
 
-  <tabstop>statCacheSizeSpin</tabstop>
10926
 
-  <tabstop>maxXmitSpin</tabstop>
10927
 
-  <tabstop>maxSmbdProcessesSpin</tabstop>
10928
 
-  <tabstop>maxOpenFilesSpin</tabstop>
10929
 
-  <tabstop>totalPrintJobsSpin</tabstop>
10930
 
-  <tabstop>printcapNameUrlRq</tabstop>
10931
 
-  <tabstop>os2DriverMapUrlRq</tabstop>
10932
 
-  <tabstop>printerDriverFileUrlRq</tabstop>
10933
 
-  <tabstop>addprinterCommandEdit</tabstop>
10934
 
-  <tabstop>deleteprinterCommandEdit</tabstop>
10935
 
-  <tabstop>enumportsCommandEdit</tabstop>
10936
 
-  <tabstop>loadPrintersChk</tabstop>
10937
 
-  <tabstop>disableSpoolssChk</tabstop>
10938
 
-  <tabstop>showAddPrinterWizardChk</tabstop>
10939
 
-  <tabstop>preferredMasterChk</tabstop>
10940
 
-  <tabstop>localMasterChk</tabstop>
10941
 
-  <tabstop>domainMasterChk</tabstop>
10942
 
-  <tabstop>domainLogonsChk</tabstop>
10943
 
-  <tabstop>osLevelSpin</tabstop>
10944
 
-  <tabstop>domainAdminGroupEdit</tabstop>
10945
 
-  <tabstop>domainGuestGroupEdit</tabstop>
10946
 
-  <tabstop>noWinsSupportRadio</tabstop>
10947
 
-  <tabstop>dnsProxyChk</tabstop>
10948
 
-  <tabstop>winsHookEdit</tabstop>
10949
 
-  <tabstop>maxWinsTtlSpin</tabstop>
10950
 
-  <tabstop>minWinsTtlSpin</tabstop>
10951
 
-  <tabstop>winsServerEdit</tabstop>
10952
 
-  <tabstop>winsProxyChk</tabstop>
10953
 
-  <tabstop>winsPartnersEdit</tabstop>
10954
 
-  <tabstop>stripDotChk</tabstop>
10955
 
-  <tabstop>mangledStackSpin</tabstop>
10956
 
-  <tabstop>manglePrefixSpin</tabstop>
10957
 
-  <tabstop>statCacheChk</tabstop>
10958
 
-  <tabstop>kernelOplocksChk</tabstop>
10959
 
-  <tabstop>lockDirectoryUrlRq</tabstop>
10960
 
-  <tabstop>pidDirectoryUrlRq</tabstop>
10961
 
-  <tabstop>lockSpinCountSpin</tabstop>
10962
 
-  <tabstop>lockSpinTimeSpin</tabstop>
10963
 
-  <tabstop>oplockBreakWaitTimeSpin</tabstop>
10964
 
- </tabstops>
10965
 
- <includes>
10966
 
-  <include location="global" >q3ptrlist.h</include>
10967
 
-  <include location="global" >ui_share.h</include>
10968
 
-  <include location="global" >knuminput.h</include>
10969
 
-  <include location="local" >knuminput.h</include>
10970
 
- </includes>
10971
 
- <resources/>
10972
 
- <connections>
10973
 
-  <connection>
10974
 
-   <sender>shareListView</sender>
10975
 
-   <signal>doubleClicked(Q3ListViewItem*)</signal>
10976
 
-   <receiver>editShareBtn</receiver>
10977
 
-   <slot>animateClick()</slot>
10978
 
-   <hints>
10979
 
-    <hint type="sourcelabel" >
10980
 
-     <x>20</x>
10981
 
-     <y>20</y>
10982
 
-    </hint>
10983
 
-    <hint type="destinationlabel" >
10984
 
-     <x>20</x>
10985
 
-     <y>20</y>
10986
 
-    </hint>
10987
 
-   </hints>
10988
 
-  </connection>
10989
 
-  <connection>
10990
 
-   <sender>printerListView</sender>
10991
 
-   <signal>doubleClicked(Q3ListViewItem*)</signal>
10992
 
-   <receiver>editPrinterBtn</receiver>
10993
 
-   <slot>animateClick()</slot>
10994
 
-   <hints>
10995
 
-    <hint type="sourcelabel" >
10996
 
-     <x>20</x>
10997
 
-     <y>20</y>
10998
 
-    </hint>
10999
 
-    <hint type="destinationlabel" >
11000
 
-     <x>20</x>
11001
 
-     <y>20</y>
11002
 
-    </hint>
11003
 
-   </hints>
11004
 
-  </connection>
11005
 
-  <connection>
11006
 
-   <sender>KUrlLabel1</sender>
11007
 
-   <signal>leftClickedUrl()</signal>
11008
 
-   <receiver>KcmInterface</receiver>
11009
 
-   <slot>KUrlLabel1_leftClickedURL()</slot>
11010
 
-   <hints>
11011
 
-    <hint type="sourcelabel" >
11012
 
-     <x>20</x>
11013
 
-     <y>20</y>
11014
 
-    </hint>
11015
 
-    <hint type="destinationlabel" >
11016
 
-     <x>20</x>
11017
 
-     <y>20</y>
11018
 
-    </hint>
11019
 
-   </hints>
11020
 
-  </connection>
11021
 
-  <connection>
11022
 
-   <sender>serverRadio</sender>
11023
 
-   <signal>toggled(bool)</signal>
11024
 
-   <receiver>passwordServerEdit</receiver>
11025
 
-   <slot>setEnabled(bool)</slot>
11026
 
-   <hints>
11027
 
-    <hint type="sourcelabel" >
11028
 
-     <x>20</x>
11029
 
-     <y>20</y>
11030
 
-    </hint>
11031
 
-    <hint type="destinationlabel" >
11032
 
-     <x>20</x>
11033
 
-     <y>20</y>
11034
 
-    </hint>
11035
 
-   </hints>
11036
 
-  </connection>
11037
 
-  <connection>
11038
 
-   <sender>domainRadio</sender>
11039
 
-   <signal>toggled(bool)</signal>
11040
 
-   <receiver>passwordServerEdit</receiver>
11041
 
-   <slot>setEnabled(bool)</slot>
11042
 
-   <hints>
11043
 
-    <hint type="sourcelabel" >
11044
 
-     <x>20</x>
11045
 
-     <y>20</y>
11046
 
-    </hint>
11047
 
-    <hint type="destinationlabel" >
11048
 
-     <x>20</x>
11049
 
-     <y>20</y>
11050
 
-    </hint>
11051
 
-   </hints>
11052
 
-  </connection>
11053
 
-  <connection>
11054
 
-   <sender>lmAnnounceCombo</sender>
11055
 
-   <signal>activated(int)</signal>
11056
 
-   <receiver>KcmInterface</receiver>
11057
 
-   <slot>lmAnnounceCombo_activated(int)</slot>
11058
 
-   <hints>
11059
 
-    <hint type="sourcelabel" >
11060
 
-     <x>20</x>
11061
 
-     <y>20</y>
11062
 
-    </hint>
11063
 
-    <hint type="destinationlabel" >
11064
 
-     <x>20</x>
11065
 
-     <y>20</y>
11066
 
-    </hint>
11067
 
-   </hints>
11068
 
-  </connection>
11069
 
-  <connection>
11070
 
-   <sender>allowGuestLoginsChk</sender>
11071
 
-   <signal>toggled(bool)</signal>
11072
 
-   <receiver>KcmInterface</receiver>
11073
 
-   <slot>allowGuestLoginsChk_toggled(bool)</slot>
11074
 
-   <hints>
11075
 
-    <hint type="sourcelabel" >
11076
 
-     <x>20</x>
11077
 
-     <y>20</y>
11078
 
-    </hint>
11079
 
-    <hint type="destinationlabel" >
11080
 
-     <x>20</x>
11081
 
-     <y>20</y>
11082
 
-    </hint>
11083
 
-   </hints>
11084
 
-  </connection>
11085
 
-  <connection>
11086
 
-   <sender>allowGuestLoginsChk</sender>
11087
 
-   <signal>pressed()</signal>
11088
 
-   <receiver>KcmInterface</receiver>
11089
 
-   <slot>changedSlot()</slot>
11090
 
-   <hints>
11091
 
-    <hint type="sourcelabel" >
11092
 
-     <x>20</x>
11093
 
-     <y>20</y>
11094
 
-    </hint>
11095
 
-    <hint type="destinationlabel" >
11096
 
-     <x>20</x>
11097
 
-     <y>20</y>
11098
 
-    </hint>
11099
 
-   </hints>
11100
 
-  </connection>
11101
 
-  <connection>
11102
 
-   <sender>SO_SNDBUFChk</sender>
11103
 
-   <signal>toggled(bool)</signal>
11104
 
-   <receiver>SO_SNDBUFSpin</receiver>
11105
 
-   <slot>setEnabled(bool)</slot>
11106
 
-   <hints>
11107
 
-    <hint type="sourcelabel" >
11108
 
-     <x>20</x>
11109
 
-     <y>20</y>
11110
 
-    </hint>
11111
 
-    <hint type="destinationlabel" >
11112
 
-     <x>20</x>
11113
 
-     <y>20</y>
11114
 
-    </hint>
11115
 
-   </hints>
11116
 
-  </connection>
11117
 
-  <connection>
11118
 
-   <sender>SO_RCVBUFChk</sender>
11119
 
-   <signal>toggled(bool)</signal>
11120
 
-   <receiver>SO_RCVBUFSpin</receiver>
11121
 
-   <slot>setEnabled(bool)</slot>
11122
 
-   <hints>
11123
 
-    <hint type="sourcelabel" >
11124
 
-     <x>20</x>
11125
 
-     <y>20</y>
11126
 
-    </hint>
11127
 
-    <hint type="destinationlabel" >
11128
 
-     <x>20</x>
11129
 
-     <y>20</y>
11130
 
-    </hint>
11131
 
-   </hints>
11132
 
-  </connection>
11133
 
-  <connection>
11134
 
-   <sender>SO_SNDLOWATChk</sender>
11135
 
-   <signal>toggled(bool)</signal>
11136
 
-   <receiver>SO_SNDLOWATSpin</receiver>
11137
 
-   <slot>setEnabled(bool)</slot>
11138
 
-   <hints>
11139
 
-    <hint type="sourcelabel" >
11140
 
-     <x>20</x>
11141
 
-     <y>20</y>
11142
 
-    </hint>
11143
 
-    <hint type="destinationlabel" >
11144
 
-     <x>20</x>
11145
 
-     <y>20</y>
11146
 
-    </hint>
11147
 
-   </hints>
11148
 
-  </connection>
11149
 
-  <connection>
11150
 
-   <sender>SO_RCVLOWATChk</sender>
11151
 
-   <signal>toggled(bool)</signal>
11152
 
-   <receiver>SO_RCVLOWATSpin</receiver>
11153
 
-   <slot>setEnabled(bool)</slot>
11154
 
-   <hints>
11155
 
-    <hint type="sourcelabel" >
11156
 
-     <x>20</x>
11157
 
-     <y>20</y>
11158
 
-    </hint>
11159
 
-    <hint type="destinationlabel" >
11160
 
-     <x>20</x>
11161
 
-     <y>20</y>
11162
 
-    </hint>
11163
 
-   </hints>
11164
 
-  </connection>
11165
 
-  <connection>
11166
 
-   <sender>shareRadio</sender>
11167
 
-   <signal>toggled(bool)</signal>
11168
 
-   <receiver>allowGuestLoginsChk</receiver>
11169
 
-   <slot>setDisabled(bool)</slot>
11170
 
-   <hints>
11171
 
-    <hint type="sourcelabel" >
11172
 
-     <x>20</x>
11173
 
-     <y>20</y>
11174
 
-    </hint>
11175
 
-    <hint type="destinationlabel" >
11176
 
-     <x>20</x>
11177
 
-     <y>20</y>
11178
 
-    </hint>
11179
 
-   </hints>
11180
 
-  </connection>
11181
 
-  <connection>
11182
 
-   <sender>userRadio</sender>
11183
 
-   <signal>toggled(bool)</signal>
11184
 
-   <receiver>allowGuestLoginsChk</receiver>
11185
 
-   <slot>setEnabled(bool)</slot>
11186
 
-   <hints>
11187
 
-    <hint type="sourcelabel" >
11188
 
-     <x>20</x>
11189
 
-     <y>20</y>
11190
 
-    </hint>
11191
 
-    <hint type="destinationlabel" >
11192
 
-     <x>20</x>
11193
 
-     <y>20</y>
11194
 
-    </hint>
11195
 
-   </hints>
11196
 
-  </connection>
11197
 
-  <connection>
11198
 
-   <sender>serverRadio</sender>
11199
 
-   <signal>toggled(bool)</signal>
11200
 
-   <receiver>allowGuestLoginsChk</receiver>
11201
 
-   <slot>setEnabled(bool)</slot>
11202
 
-   <hints>
11203
 
-    <hint type="sourcelabel" >
11204
 
-     <x>20</x>
11205
 
-     <y>20</y>
11206
 
-    </hint>
11207
 
-    <hint type="destinationlabel" >
11208
 
-     <x>20</x>
11209
 
-     <y>20</y>
11210
 
-    </hint>
11211
 
-   </hints>
11212
 
-  </connection>
11213
 
-  <connection>
11214
 
-   <sender>domainRadio</sender>
11215
 
-   <signal>toggled(bool)</signal>
11216
 
-   <receiver>allowGuestLoginsChk</receiver>
11217
 
-   <slot>setEnabled(bool)</slot>
11218
 
-   <hints>
11219
 
-    <hint type="sourcelabel" >
11220
 
-     <x>20</x>
11221
 
-     <y>20</y>
11222
 
-    </hint>
11223
 
-    <hint type="destinationlabel" >
11224
 
-     <x>20</x>
11225
 
-     <y>20</y>
11226
 
-    </hint>
11227
 
-   </hints>
11228
 
-  </connection>
11229
 
-  <connection>
11230
 
-   <sender>shareRadio</sender>
11231
 
-   <signal>clicked()</signal>
11232
 
-   <receiver>KcmInterface</receiver>
11233
 
-   <slot>changedSlot()</slot>
11234
 
-   <hints>
11235
 
-    <hint type="sourcelabel" >
11236
 
-     <x>20</x>
11237
 
-     <y>20</y>
11238
 
-    </hint>
11239
 
-    <hint type="destinationlabel" >
11240
 
-     <x>20</x>
11241
 
-     <y>20</y>
11242
 
-    </hint>
11243
 
-   </hints>
11244
 
-  </connection>
11245
 
-  <connection>
11246
 
-   <sender>shareRadio</sender>
11247
 
-   <signal>clicked()</signal>
11248
 
-   <receiver>KcmInterface</receiver>
11249
 
-   <slot>shareRadio_clicked()</slot>
11250
 
-   <hints>
11251
 
-    <hint type="sourcelabel" >
11252
 
-     <x>20</x>
11253
 
-     <y>20</y>
11254
 
-    </hint>
11255
 
-    <hint type="destinationlabel" >
11256
 
-     <x>20</x>
11257
 
-     <y>20</y>
11258
 
-    </hint>
11259
 
-   </hints>
11260
 
-  </connection>
11261
 
-  <connection>
11262
 
-   <sender>userRadio</sender>
11263
 
-   <signal>clicked()</signal>
11264
 
-   <receiver>KcmInterface</receiver>
11265
 
-   <slot>changedSlot()</slot>
11266
 
-   <hints>
11267
 
-    <hint type="sourcelabel" >
11268
 
-     <x>20</x>
11269
 
-     <y>20</y>
11270
 
-    </hint>
11271
 
-    <hint type="destinationlabel" >
11272
 
-     <x>20</x>
11273
 
-     <y>20</y>
11274
 
-    </hint>
11275
 
-   </hints>
11276
 
-  </connection>
11277
 
-  <connection>
11278
 
-   <sender>userRadio</sender>
11279
 
-   <signal>clicked()</signal>
11280
 
-   <receiver>KcmInterface</receiver>
11281
 
-   <slot>userRadio_clicked()</slot>
11282
 
-   <hints>
11283
 
-    <hint type="sourcelabel" >
11284
 
-     <x>20</x>
11285
 
-     <y>20</y>
11286
 
-    </hint>
11287
 
-    <hint type="destinationlabel" >
11288
 
-     <x>20</x>
11289
 
-     <y>20</y>
11290
 
-    </hint>
11291
 
-   </hints>
11292
 
-  </connection>
11293
 
-  <connection>
11294
 
-   <sender>serverRadio</sender>
11295
 
-   <signal>clicked()</signal>
11296
 
-   <receiver>KcmInterface</receiver>
11297
 
-   <slot>serverRadio_clicked()</slot>
11298
 
-   <hints>
11299
 
-    <hint type="sourcelabel" >
11300
 
-     <x>20</x>
11301
 
-     <y>20</y>
11302
 
-    </hint>
11303
 
-    <hint type="destinationlabel" >
11304
 
-     <x>20</x>
11305
 
-     <y>20</y>
11306
 
-    </hint>
11307
 
-   </hints>
11308
 
-  </connection>
11309
 
-  <connection>
11310
 
-   <sender>serverRadio</sender>
11311
 
-   <signal>clicked()</signal>
11312
 
-   <receiver>KcmInterface</receiver>
11313
 
-   <slot>changedSlot()</slot>
11314
 
-   <hints>
11315
 
-    <hint type="sourcelabel" >
11316
 
-     <x>20</x>
11317
 
-     <y>20</y>
11318
 
-    </hint>
11319
 
-    <hint type="destinationlabel" >
11320
 
-     <x>20</x>
11321
 
-     <y>20</y>
11322
 
-    </hint>
11323
 
-   </hints>
11324
 
-  </connection>
11325
 
-  <connection>
11326
 
-   <sender>domainRadio</sender>
11327
 
-   <signal>clicked()</signal>
11328
 
-   <receiver>KcmInterface</receiver>
11329
 
-   <slot>changedSlot()</slot>
11330
 
-   <hints>
11331
 
-    <hint type="sourcelabel" >
11332
 
-     <x>20</x>
11333
 
-     <y>20</y>
11334
 
-    </hint>
11335
 
-    <hint type="destinationlabel" >
11336
 
-     <x>20</x>
11337
 
-     <y>20</y>
11338
 
-    </hint>
11339
 
-   </hints>
11340
 
-  </connection>
11341
 
-  <connection>
11342
 
-   <sender>domainRadio</sender>
11343
 
-   <signal>clicked()</signal>
11344
 
-   <receiver>KcmInterface</receiver>
11345
 
-   <slot>domainRadio_clicked()</slot>
11346
 
-   <hints>
11347
 
-    <hint type="sourcelabel" >
11348
 
-     <x>20</x>
11349
 
-     <y>20</y>
11350
 
-    </hint>
11351
 
-    <hint type="destinationlabel" >
11352
 
-     <x>20</x>
11353
 
-     <y>20</y>
11354
 
-    </hint>
11355
 
-   </hints>
11356
 
-  </connection>
11357
 
-  <connection>
11358
 
-   <sender>passwordServerEdit</sender>
11359
 
-   <signal>textChanged(QString)</signal>
11360
 
-   <receiver>KcmInterface</receiver>
11361
 
-   <slot>changedSlot()</slot>
11362
 
-   <hints>
11363
 
-    <hint type="sourcelabel" >
11364
 
-     <x>20</x>
11365
 
-     <y>20</y>
11366
 
-    </hint>
11367
 
-    <hint type="destinationlabel" >
11368
 
-     <x>20</x>
11369
 
-     <y>20</y>
11370
 
-    </hint>
11371
 
-   </hints>
11372
 
-  </connection>
11373
 
-  <connection>
11374
 
-   <sender>sslChk</sender>
11375
 
-   <signal>toggled(bool)</signal>
11376
 
-   <receiver>SSLFrame</receiver>
11377
 
-   <slot>setEnabled(bool)</slot>
11378
 
-   <hints>
11379
 
-    <hint type="sourcelabel" >
11380
 
-     <x>20</x>
11381
 
-     <y>20</y>
11382
 
-    </hint>
11383
 
-    <hint type="destinationlabel" >
11384
 
-     <x>20</x>
11385
 
-     <y>20</y>
11386
 
-    </hint>
11387
 
-   </hints>
11388
 
-  </connection>
11389
 
-  <connection>
11390
 
-   <sender>timestampChk</sender>
11391
 
-   <signal>toggled(bool)</signal>
11392
 
-   <receiver>microsecondsChk</receiver>
11393
 
-   <slot>setEnabled(bool)</slot>
11394
 
-   <hints>
11395
 
-    <hint type="sourcelabel" >
11396
 
-     <x>20</x>
11397
 
-     <y>20</y>
11398
 
-    </hint>
11399
 
-    <hint type="destinationlabel" >
11400
 
-     <x>20</x>
11401
 
-     <y>20</y>
11402
 
-    </hint>
11403
 
-   </hints>
11404
 
-  </connection>
11405
 
-  <connection>
11406
 
-   <sender>adsRadio</sender>
11407
 
-   <signal>toggled(bool)</signal>
11408
 
-   <receiver>passwordServerEdit</receiver>
11409
 
-   <slot>setEnabled(bool)</slot>
11410
 
-   <hints>
11411
 
-    <hint type="sourcelabel" >
11412
 
-     <x>20</x>
11413
 
-     <y>20</y>
11414
 
-    </hint>
11415
 
-    <hint type="destinationlabel" >
11416
 
-     <x>20</x>
11417
 
-     <y>20</y>
11418
 
-    </hint>
11419
 
-   </hints>
11420
 
-  </connection>
11421
 
-  <connection>
11422
 
-   <sender>adsRadio</sender>
11423
 
-   <signal>toggled(bool)</signal>
11424
 
-   <receiver>passwordServerLabel</receiver>
11425
 
-   <slot>setEnabled(bool)</slot>
11426
 
-   <hints>
11427
 
-    <hint type="sourcelabel" >
11428
 
-     <x>20</x>
11429
 
-     <y>20</y>
11430
 
-    </hint>
11431
 
-    <hint type="destinationlabel" >
11432
 
-     <x>20</x>
11433
 
-     <y>20</y>
11434
 
-    </hint>
11435
 
-   </hints>
11436
 
-  </connection>
11437
 
-  <connection>
11438
 
-   <sender>adsRadio</sender>
11439
 
-   <signal>toggled(bool)</signal>
11440
 
-   <receiver>realmLabel</receiver>
11441
 
-   <slot>setEnabled(bool)</slot>
11442
 
-   <hints>
11443
 
-    <hint type="sourcelabel" >
11444
 
-     <x>20</x>
11445
 
-     <y>20</y>
11446
 
-    </hint>
11447
 
-    <hint type="destinationlabel" >
11448
 
-     <x>20</x>
11449
 
-     <y>20</y>
11450
 
-    </hint>
11451
 
-   </hints>
11452
 
-  </connection>
11453
 
-  <connection>
11454
 
-   <sender>adsRadio</sender>
11455
 
-   <signal>toggled(bool)</signal>
11456
 
-   <receiver>realmEdit</receiver>
11457
 
-   <slot>setEnabled(bool)</slot>
11458
 
-   <hints>
11459
 
-    <hint type="sourcelabel" >
11460
 
-     <x>20</x>
11461
 
-     <y>20</y>
11462
 
-    </hint>
11463
 
-    <hint type="destinationlabel" >
11464
 
-     <x>20</x>
11465
 
-     <y>20</y>
11466
 
-    </hint>
11467
 
-   </hints>
11468
 
-  </connection>
11469
 
-  <connection>
11470
 
-   <sender>allowGuestLoginsChk</sender>
11471
 
-   <signal>toggled(bool)</signal>
11472
 
-   <receiver>TextLabel6_5</receiver>
11473
 
-   <slot>setEnabled(bool)</slot>
11474
 
-   <hints>
11475
 
-    <hint type="sourcelabel" >
11476
 
-     <x>20</x>
11477
 
-     <y>20</y>
11478
 
-    </hint>
11479
 
-    <hint type="destinationlabel" >
11480
 
-     <x>20</x>
11481
 
-     <y>20</y>
11482
 
-    </hint>
11483
 
-   </hints>
11484
 
-  </connection>
11485
 
-  <connection>
11486
 
-   <sender>allowGuestLoginsChk</sender>
11487
 
-   <signal>toggled(bool)</signal>
11488
 
-   <receiver>guestAccountCombo</receiver>
11489
 
-   <slot>setEnabled(bool)</slot>
11490
 
-   <hints>
11491
 
-    <hint type="sourcelabel" >
11492
 
-     <x>20</x>
11493
 
-     <y>20</y>
11494
 
-    </hint>
11495
 
-    <hint type="destinationlabel" >
11496
 
-     <x>20</x>
11497
 
-     <y>20</y>
11498
 
-    </hint>
11499
 
-   </hints>
11500
 
-  </connection>
11501
 
-  <connection>
11502
 
-   <sender>domainRadio</sender>
11503
 
-   <signal>toggled(bool)</signal>
11504
 
-   <receiver>passwordServerLabel</receiver>
11505
 
-   <slot>setEnabled(bool)</slot>
11506
 
-   <hints>
11507
 
-    <hint type="sourcelabel" >
11508
 
-     <x>20</x>
11509
 
-     <y>20</y>
11510
 
-    </hint>
11511
 
-    <hint type="destinationlabel" >
11512
 
-     <x>20</x>
11513
 
-     <y>20</y>
11514
 
-    </hint>
11515
 
-   </hints>
11516
 
-  </connection>
11517
 
-  <connection>
11518
 
-   <sender>domainRadio</sender>
11519
 
-   <signal>toggled(bool)</signal>
11520
 
-   <receiver>passwordServerEdit</receiver>
11521
 
-   <slot>setEnabled(bool)</slot>
11522
 
-   <hints>
11523
 
-    <hint type="sourcelabel" >
11524
 
-     <x>20</x>
11525
 
-     <y>20</y>
11526
 
-    </hint>
11527
 
-    <hint type="destinationlabel" >
11528
 
-     <x>20</x>
11529
 
-     <y>20</y>
11530
 
-    </hint>
11531
 
-   </hints>
11532
 
-  </connection>
11533
 
-  <connection>
11534
 
-   <sender>serverRadio</sender>
11535
 
-   <signal>toggled(bool)</signal>
11536
 
-   <receiver>passwordServerLabel</receiver>
11537
 
-   <slot>setEnabled(bool)</slot>
11538
 
-   <hints>
11539
 
-    <hint type="sourcelabel" >
11540
 
-     <x>20</x>
11541
 
-     <y>20</y>
11542
 
-    </hint>
11543
 
-    <hint type="destinationlabel" >
11544
 
-     <x>20</x>
11545
 
-     <y>20</y>
11546
 
-    </hint>
11547
 
-   </hints>
11548
 
-  </connection>
11549
 
-  <connection>
11550
 
-   <sender>serverRadio</sender>
11551
 
-   <signal>toggled(bool)</signal>
11552
 
-   <receiver>passwordServerEdit</receiver>
11553
 
-   <slot>setEnabled(bool)</slot>
11554
 
-   <hints>
11555
 
-    <hint type="sourcelabel" >
11556
 
-     <x>20</x>
11557
 
-     <y>20</y>
11558
 
-    </hint>
11559
 
-    <hint type="destinationlabel" >
11560
 
-     <x>20</x>
11561
 
-     <y>20</y>
11562
 
-    </hint>
11563
 
-   </hints>
11564
 
-  </connection>
11565
 
-  <connection>
11566
 
-   <sender>adsRadio</sender>
11567
 
-   <signal>toggled(bool)</signal>
11568
 
-   <receiver>allowGuestLoginsChk</receiver>
11569
 
-   <slot>setEnabled(bool)</slot>
11570
 
-   <hints>
11571
 
-    <hint type="sourcelabel" >
11572
 
-     <x>20</x>
11573
 
-     <y>20</y>
11574
 
-    </hint>
11575
 
-    <hint type="destinationlabel" >
11576
 
-     <x>20</x>
11577
 
-     <y>20</y>
11578
 
-    </hint>
11579
 
-   </hints>
11580
 
-  </connection>
11581
 
-  <connection>
11582
 
-   <sender>shareRadio</sender>
11583
 
-   <signal>toggled(bool)</signal>
11584
 
-   <receiver>TextLabel6_5</receiver>
11585
 
-   <slot>setDisabled(bool)</slot>
11586
 
-   <hints>
11587
 
-    <hint type="sourcelabel" >
11588
 
-     <x>20</x>
11589
 
-     <y>20</y>
11590
 
-    </hint>
11591
 
-    <hint type="destinationlabel" >
11592
 
-     <x>20</x>
11593
 
-     <y>20</y>
11594
 
-    </hint>
11595
 
-   </hints>
11596
 
-  </connection>
11597
 
-  <connection>
11598
 
-   <sender>shareRadio</sender>
11599
 
-   <signal>toggled(bool)</signal>
11600
 
-   <receiver>guestAccountCombo</receiver>
11601
 
-   <slot>setDisabled(bool)</slot>
11602
 
-   <hints>
11603
 
-    <hint type="sourcelabel" >
11604
 
-     <x>20</x>
11605
 
-     <y>20</y>
11606
 
-    </hint>
11607
 
-    <hint type="destinationlabel" >
11608
 
-     <x>20</x>
11609
 
-     <y>20</y>
11610
 
-    </hint>
11611
 
-   </hints>
11612
 
-  </connection>
11613
 
-  <connection>
11614
 
-   <sender>winsSupportRadio</sender>
11615
 
-   <signal>toggled(bool)</signal>
11616
 
-   <receiver>groupBox35</receiver>
11617
 
-   <slot>setEnabled(bool)</slot>
11618
 
-   <hints>
11619
 
-    <hint type="sourcelabel" >
11620
 
-     <x>20</x>
11621
 
-     <y>20</y>
11622
 
-    </hint>
11623
 
-    <hint type="destinationlabel" >
11624
 
-     <x>20</x>
11625
 
-     <y>20</y>
11626
 
-    </hint>
11627
 
-   </hints>
11628
 
-  </connection>
11629
 
-  <connection>
11630
 
-   <sender>otherWinsRadio</sender>
11631
 
-   <signal>toggled(bool)</signal>
11632
 
-   <receiver>groupBox36</receiver>
11633
 
-   <slot>setEnabled(bool)</slot>
11634
 
-   <hints>
11635
 
-    <hint type="sourcelabel" >
11636
 
-     <x>20</x>
11637
 
-     <y>20</y>
11638
 
-    </hint>
11639
 
-    <hint type="destinationlabel" >
11640
 
-     <x>20</x>
11641
 
-     <y>20</y>
11642
 
-    </hint>
11643
 
-   </hints>
11644
 
-  </connection>
11645
 
-  <connection>
11646
 
-   <sender>winsSupportRadio</sender>
11647
 
-   <signal>toggled(bool)</signal>
11648
 
-   <receiver>dnsProxyChk</receiver>
11649
 
-   <slot>setEnabled(bool)</slot>
11650
 
-   <hints>
11651
 
-    <hint type="sourcelabel" >
11652
 
-     <x>20</x>
11653
 
-     <y>20</y>
11654
 
-    </hint>
11655
 
-    <hint type="destinationlabel" >
11656
 
-     <x>20</x>
11657
 
-     <y>20</y>
11658
 
-    </hint>
11659
 
-   </hints>
11660
 
-  </connection>
11661
 
-  <connection>
11662
 
-   <sender>winsSupportRadio</sender>
11663
 
-   <signal>toggled(bool)</signal>
11664
 
-   <receiver>winsHookEdit</receiver>
11665
 
-   <slot>setEnabled(bool)</slot>
11666
 
-   <hints>
11667
 
-    <hint type="sourcelabel" >
11668
 
-     <x>20</x>
11669
 
-     <y>20</y>
11670
 
-    </hint>
11671
 
-    <hint type="destinationlabel" >
11672
 
-     <x>20</x>
11673
 
-     <y>20</y>
11674
 
-    </hint>
11675
 
-   </hints>
11676
 
-  </connection>
11677
 
-  <connection>
11678
 
-   <sender>winsSupportRadio</sender>
11679
 
-   <signal>toggled(bool)</signal>
11680
 
-   <receiver>winsHookEdit</receiver>
11681
 
-   <slot>setEnabled(bool)</slot>
11682
 
-   <hints>
11683
 
-    <hint type="sourcelabel" >
11684
 
-     <x>20</x>
11685
 
-     <y>20</y>
11686
 
-    </hint>
11687
 
-    <hint type="destinationlabel" >
11688
 
-     <x>20</x>
11689
 
-     <y>20</y>
11690
 
-    </hint>
11691
 
-   </hints>
11692
 
-  </connection>
11693
 
-  <connection>
11694
 
-   <sender>winsSupportRadio</sender>
11695
 
-   <signal>toggled(bool)</signal>
11696
 
-   <receiver>maxWinsTtlSpin</receiver>
11697
 
-   <slot>setEnabled(bool)</slot>
11698
 
-   <hints>
11699
 
-    <hint type="sourcelabel" >
11700
 
-     <x>20</x>
11701
 
-     <y>20</y>
11702
 
-    </hint>
11703
 
-    <hint type="destinationlabel" >
11704
 
-     <x>20</x>
11705
 
-     <y>20</y>
11706
 
-    </hint>
11707
 
-   </hints>
11708
 
-  </connection>
11709
 
-  <connection>
11710
 
-   <sender>winsSupportRadio</sender>
11711
 
-   <signal>toggled(bool)</signal>
11712
 
-   <receiver>minWinsTtlSpin</receiver>
11713
 
-   <slot>setEnabled(bool)</slot>
11714
 
-   <hints>
11715
 
-    <hint type="sourcelabel" >
11716
 
-     <x>20</x>
11717
 
-     <y>20</y>
11718
 
-    </hint>
11719
 
-    <hint type="destinationlabel" >
11720
 
-     <x>20</x>
11721
 
-     <y>20</y>
11722
 
-    </hint>
11723
 
-   </hints>
11724
 
-  </connection>
11725
 
-  <connection>
11726
 
-   <sender>otherWinsRadio</sender>
11727
 
-   <signal>toggled(bool)</signal>
11728
 
-   <receiver>winsServerEdit</receiver>
11729
 
-   <slot>setEnabled(bool)</slot>
11730
 
-   <hints>
11731
 
-    <hint type="sourcelabel" >
11732
 
-     <x>20</x>
11733
 
-     <y>20</y>
11734
 
-    </hint>
11735
 
-    <hint type="destinationlabel" >
11736
 
-     <x>20</x>
11737
 
-     <y>20</y>
11738
 
-    </hint>
11739
 
-   </hints>
11740
 
-  </connection>
11741
 
-  <connection>
11742
 
-   <sender>winsSupportRadio</sender>
11743
 
-   <signal>toggled(bool)</signal>
11744
 
-   <receiver>winsHookLbl</receiver>
11745
 
-   <slot>setEnabled(bool)</slot>
11746
 
-   <hints>
11747
 
-    <hint type="sourcelabel" >
11748
 
-     <x>20</x>
11749
 
-     <y>20</y>
11750
 
-    </hint>
11751
 
-    <hint type="destinationlabel" >
11752
 
-     <x>20</x>
11753
 
-     <y>20</y>
11754
 
-    </hint>
11755
 
-   </hints>
11756
 
-  </connection>
11757
 
-  <connection>
11758
 
-   <sender>adsRadio</sender>
11759
 
-   <signal>clicked()</signal>
11760
 
-   <receiver>KcmInterface</receiver>
11761
 
-   <slot>adsRadioClicked()</slot>
11762
 
-   <hints>
11763
 
-    <hint type="sourcelabel" >
11764
 
-     <x>20</x>
11765
 
-     <y>20</y>
11766
 
-    </hint>
11767
 
-    <hint type="destinationlabel" >
11768
 
-     <x>20</x>
11769
 
-     <y>20</y>
11770
 
-    </hint>
11771
 
-   </hints>
11772
 
-  </connection>
11773
 
- </connections>
11774
 
-</ui>
11775
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/kcminterface.ui.h
11776
 
===================================================================
11777
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/kcminterface.ui.h  2011-01-19 17:21:04.000000000 -0500
11778
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
11779
 
@@ -1,132 +0,0 @@
11780
 
-/****************************************************************************
11781
 
-** ui.h extension file, included from the uic-generated form implementation.
11782
 
-**
11783
 
-** If you wish to add, delete or rename slots use Qt Designer which will
11784
 
-** update this file, preserving your code. Create an init() slot in place of
11785
 
-** a constructor, and a destroy() slot in place of a destructor.
11786
 
-*****************************************************************************/
11787
 
-
11788
 
-/******************************************************************************
11789
 
- *                                                                            *
11790
 
- *  This file is part of KSambaPlugin.                                        *
11791
 
- *                                                                            *
11792
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify      *
11793
 
- *  it under the terms of the GNU General Public License as published by      *
11794
 
- *  the Free Software Foundation; either version 2 of the License, or         *
11795
 
- *  (at your option) any later version.                                       *
11796
 
- *                                                                            *
11797
 
- *  KSambaPlugin is distributed in the hope that it will be useful,           *
11798
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
11799
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
11800
 
- *  GNU General Public License for more details.                              *
11801
 
- *                                                                            *
11802
 
- *  You should have received a copy of the GNU General Public License         *
11803
 
- *  along with KSambaPlugin; if not, write to the Free Software Foundation,   *
11804
 
- *  Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA         *
11805
 
- *                                                                            *
11806
 
- ******************************************************************************/
11807
 
-
11808
 
-#ifndef KCM_SAMBACONF_KCMINTERFACE_UI_H
11809
 
-#define KCM_SAMBACONF_KCMINTERFACE_UI_H
11810
 
-
11811
 
-void KcmInterface::init()
11812
 
-{
11813
 
-    addShareBtn->setIconSet(SmallIconSet("document-new"));
11814
 
-    editShareBtn->setIconSet(SmallIconSet("document-properties"));
11815
 
-    removeShareBtn->setIconSet(SmallIconSet("edit-delete"));
11816
 
-    editDefaultShareBtn->setIconSet(SmallIconSet("queue"));
11817
 
-    
11818
 
-    addPrinterBtn->setIconSet(SmallIconSet("document-new"));
11819
 
-    editPrinterBtn->setIconSet(SmallIconSet("document-properties"));
11820
 
-    removePrinterBtn->setIconSet(SmallIconSet("edit-delete"));
11821
 
-    editDefaultPrinterBtn->setIconSet(SmallIconSet("printer-multiple"));
11822
 
-
11823
 
-    advancedWarningPixLbl->setPixmap(SmallIcon("dialog-warning"));
11824
 
-}
11825
 
-
11826
 
-
11827
 
-void KcmInterface::changedSlot()
11828
 
-{
11829
 
-    emit changed();
11830
 
-}
11831
 
-
11832
 
-
11833
 
-void KcmInterface::securityLevelCombo_activated( int i )
11834
 
-{
11835
 
-   passwordServerEdit->setDisabled(i<2);
11836
 
-   allowGuestLoginsChk->setDisabled(i==0);
11837
 
-}
11838
 
-
11839
 
-
11840
 
-void KcmInterface::shareRadio_clicked()
11841
 
-{
11842
 
-  securityLevelHelpLbl->setText(i18n("Use the <i>share</i> security level if you have a home network "
11843
 
-                                    "or a small office network.<br /> It allows everyone to read the list "
11844
 
-                                    "of all your shared directories and printers before a login is required."));
11845
 
-}
11846
 
-
11847
 
-
11848
 
-void KcmInterface::userRadio_clicked()
11849
 
-{
11850
 
-  securityLevelHelpLbl->setText(i18n("Use the <i>user</i> security level if you have a bigger network "
11851
 
-                                    "and you do not want to allow everyone to read your list of shared "
11852
 
-                                    "directories and printers without a login.<br /><br />"
11853
 
-                                    "If you want to run your Samba server as a <b>Primary Domain controller</b> (PDC) "
11854
 
-                                    "you also have to set this option."));
11855
 
-}
11856
 
-
11857
 
-void KcmInterface::serverRadio_clicked()
11858
 
-{
11859
 
-  securityLevelHelpLbl->setText(i18n("Use the <i>server</i> security level if you have a big network "
11860
 
-                                    "and the samba server should validate the username/password "
11861
 
-                                    "by passing it to another SMB server, such as an NT box."));
11862
 
-}
11863
 
-
11864
 
-
11865
 
-void KcmInterface::domainRadio_clicked()
11866
 
-{
11867
 
-  securityLevelHelpLbl->setText(i18n("Use the <i>domain</i> security level if you have a big network "
11868
 
-                                    "and the samba server should validate the username/password "
11869
 
-                                    "by passing it to a Windows NT Primary or Backup Domain Controller."));
11870
 
-}
11871
 
-
11872
 
-
11873
 
-void KcmInterface::adsRadioClicked()
11874
 
-{
11875
 
-  securityLevelHelpLbl->setText(i18n("Use the <i>ADS</i> security level if you have a big network "
11876
 
-                                    "and the samba server should act as a domain member in an ADS realm."));
11877
 
-}
11878
 
-
11879
 
-
11880
 
-void KcmInterface::KUrlLabel1_leftClickedURL()
11881
 
-{
11882
 
-    K3Process* p = new K3Process();
11883
 
-
11884
 
-    *p << "konqueror";
11885
 
-    *p << "man:smb.conf";
11886
 
-    p->start();
11887
 
-}
11888
 
-
11889
 
-
11890
 
-void KcmInterface::lmAnnounceCombo_activated( int i)
11891
 
-{
11892
 
-    lmIntervalSpin->setEnabled(i==0);
11893
 
-}
11894
 
-
11895
 
-
11896
 
-void KcmInterface::allowGuestLoginsChk_toggled( bool b)
11897
 
-{
11898
 
-    int i = 0;
11899
 
-    if (b)
11900
 
-       i = 1;
11901
 
-
11902
 
-    mapToGuestCombo->setCurrentItem(i);
11903
 
-}
11904
 
-
11905
 
-
11906
 
-void KcmInterface::mapToGuestCombo_activated( int i)
11907
 
-{
11908
 
-    allowGuestLoginsChk->setChecked(i>0);
11909
 
-}
11910
 
-
11911
 
-#endif // KCM_SAMBACONF_KCMINTERFACE_UI_H
11912
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/kcmsambaconf.cpp
11913
 
===================================================================
11914
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/kcmsambaconf.cpp   2011-01-19 17:21:04.000000000 -0500
11915
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
11916
 
@@ -1,1504 +0,0 @@
11917
 
-/***************************************************************************
11918
 
-                          kcmsambaconf.cpp  -  description
11919
 
-                            -------------------
11920
 
-    begin                : Mon Apr  8 13:35:56 CEST 2002
11921
 
-    copyright            : (C) 2002 by Christian Nitschkowski,
11922
 
-    email                : segfault_ii@web.de
11923
 
-
11924
 
-    copyright            : (C) 2002-2004 by Jan Schaefer
11925
 
-    email                : janschaefer@users.sourceforge.net
11926
 
-***************************************************************************/
11927
 
-
11928
 
-/******************************************************************************
11929
 
-*                                                                            *
11930
 
-*  This file is part of KSambaPlugin.                                        *
11931
 
-*                                                                            *
11932
 
-*  KSambaPlugin is free software; you can redistribute it and/or modify      *
11933
 
-*  it under the terms of the GNU General Public License as published by      *
11934
 
-*  the Free Software Foundation; either version 2 of the License, or         *
11935
 
-*  (at your option) any later version.                                       *
11936
 
-*                                                                            *
11937
 
-*  KSambaPlugin is distributed in the hope that it will be useful,           *
11938
 
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
11939
 
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
11940
 
-*  GNU General Public License for more details.                              *
11941
 
-*                                                                            *
11942
 
-*  You should have received a copy of the GNU General Public License         *
11943
 
-*  along with KSambaPlugin; if not, write to the Free Software                     *
11944
 
-*  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
11945
 
-*                                                                            *
11946
 
-******************************************************************************/
11947
 
-
11948
 
-#include <assert.h>
11949
 
-#include <unistd.h>
11950
 
-
11951
 
-#include <qlayout.h>
11952
 
-#include <q3groupbox.h>
11953
 
-#include <qpainter.h>
11954
 
-#include <qcheckbox.h>
11955
 
-#include <q3listbox.h>
11956
 
-#include <qradiobutton.h>
11957
 
-#include <q3buttongroup.h>
11958
 
-#include <qtabwidget.h>
11959
 
-#include <qtabbar.h>
11960
 
-#include <q3vbox.h>
11961
 
-#include <qlabel.h>
11962
 
-//Added by qt3to4:
11963
 
-#include <QPixmap>
11964
 
-#include <Q3PtrList>
11965
 
-#include <QHBoxLayout>
11966
 
-#include <QBoxLayout>
11967
 
-#include <QVBoxLayout>
11968
 
-
11969
 
-#include <klocale.h>
11970
 
-#include <kglobal.h>
11971
 
-#include <klineedit.h>
11972
 
-#include <kurlrequester.h>
11973
 
-#include <kcombobox.h>
11974
 
-#include <kdebug.h>
11975
 
-#include <kiconloader.h>
11976
 
-#include <knuminput.h>
11977
 
-#include <krestrictedline.h>
11978
 
-#include <kmessagebox.h>
11979
 
-#include <KPageWidget>
11980
 
-#include <k3listview.h>
11981
 
-#include <kconfig.h>
11982
 
-#include <kcomponentdata.h>
11983
 
-#include <k3passworddialog.h>
11984
 
-
11985
 
-#include "sambashare.h"
11986
 
-#include "sambafile.h"
11987
 
-#include "sharedlgimpl.h"
11988
 
-#include "dictmanager.h"
11989
 
-#include "kcmsambaconf.h"
11990
 
-#include "smbpasswdfile.h"
11991
 
-#include "passwd.h"
11992
 
-#include "qmultichecklistitem.h"
11993
 
-#include "joindomaindlg.h"
11994
 
-#include "smbconfconfigwidget.h"
11995
 
-
11996
 
-#define DEBUG 5009
11997
 
-
11998
 
-#define COL_DISABLED 2
11999
 
-#define COL_NOPASSWORD 3
12000
 
-
12001
 
-
12002
 
-ShareListViewItem::ShareListViewItem(Q3ListView * parent, SambaShare* share)
12003
 
-  : Q3ListViewItem(parent)
12004
 
-{
12005
 
-  setShare(share);
12006
 
-}
12007
 
-
12008
 
-SambaShare* ShareListViewItem::getShare() const
12009
 
-{
12010
 
-  return _share;
12011
 
-}
12012
 
-
12013
 
-void ShareListViewItem::setShare(SambaShare* share)
12014
 
-{
12015
 
-  assert(share);
12016
 
-  _share = share;
12017
 
-  updateShare();
12018
 
-}
12019
 
-
12020
 
-void ShareListViewItem::updateShare()
12021
 
-{
12022
 
-  assert(_share);
12023
 
-
12024
 
-  setText(0,_share->getName());
12025
 
-  setText(2,_share->getValue("comment"));
12026
 
-
12027
 
-  if (_share->isPrinter())
12028
 
-  {
12029
 
-    if ( _share->getName() == "printers" )
12030
 
-      setPixmap(0,SmallIcon("printer-multiple"));
12031
 
-    else
12032
 
-      setPixmap(0,SmallIcon("printer"));
12033
 
-    setText(1,_share->getValue("printer name"));
12034
 
-  }
12035
 
-  else
12036
 
-  {
12037
 
-    if ( _share->getName() == "homes" )
12038
 
-      setPixmap(0,SmallIcon("user-home"));
12039
 
-    else
12040
 
-      setPixmap(0,SmallIcon("folder"));
12041
 
-    setText(1,_share->getValue("path"));
12042
 
-  }
12043
 
-
12044
 
-  setPixmap(3,createPropertyPixmap());
12045
 
-}
12046
 
-
12047
 
-QPixmap ShareListViewItem::createPropertyPixmap()
12048
 
-{
12049
 
-  // Create a big pixmap which holds the
12050
 
-  // icons which are needed
12051
 
-
12052
 
-  int numberOfPix = 4; // the max number of pixmaps to join
12053
 
-
12054
 
-  int w = 16; // Standard size of one pixmap
12055
 
-  int margin = 4; // Margin between pixmaps
12056
 
-  int h = 16;
12057
 
-
12058
 
-  int totalWidth = (w+margin)*numberOfPix;
12059
 
-
12060
 
-  QPixmap pix(totalWidth,h);
12061
 
-
12062
 
-  pix.fill(Qt::transparent);
12063
 
-
12064
 
-  QPainter p(&pix);
12065
 
-
12066
 
-  int x = 0;
12067
 
-
12068
 
-  if (_share->getBoolValue("public"))
12069
 
-  {
12070
 
-    p.drawPixmap(x,0,SmallIcon("network-wired"));
12071
 
-    x = x+w+margin;
12072
 
-  }
12073
 
-
12074
 
-  if (!_share->getBoolValue("read only"))
12075
 
-  {
12076
 
-    p.drawPixmap(x,0,SmallIcon("document-properties"));
12077
 
-    x = x+w+margin;
12078
 
-  }
12079
 
-
12080
 
-  if (_share->getBoolValue("printable"))
12081
 
-  {
12082
 
-    p.drawPixmap(x,0,SmallIcon("document-print"));
12083
 
-    x = x+w+margin;
12084
 
-  }
12085
 
-
12086
 
-  if (_share->getBoolValue("browseable"))
12087
 
-  {
12088
 
-    p.drawPixmap(x,0,SmallIcon("system-run"));
12089
 
-    x = x+w+margin;
12090
 
-  }
12091
 
-
12092
 
-  if (!_share->getBoolValue("available"))
12093
 
-    p.drawPixmap(x,0,SmallIcon("dialog-error"));
12094
 
-
12095
 
-
12096
 
-  p.end();
12097
 
-
12098
 
-  return QPixmap(pix);
12099
 
-}
12100
 
-
12101
 
-KcmSambaConf::KcmSambaConf(const KComponentData &inst,QWidget *parent, const char *name)
12102
 
-  : KCModule(inst,parent)
12103
 
-{
12104
 
-  _dictMngr = 0L;
12105
 
-  _sambaFile = 0L;
12106
 
-  m_smbConfConfigWidget = 0L;
12107
 
-
12108
 
-
12109
 
-  QBoxLayout * l = new QHBoxLayout( this );
12110
 
-  l->setAutoAdd( true );
12111
 
-
12112
 
-  QString smbFile = SambaFile::findSambaConf();
12113
 
-  if (smbFile.isNull()) {
12114
 
-     createSmbConfigWidget();
12115
 
-     return;
12116
 
-  }
12117
 
-
12118
 
-  slotSpecifySmbConf(smbFile);
12119
 
-
12120
 
-}
12121
 
-
12122
 
-
12123
 
-KcmSambaConf::~KcmSambaConf() {
12124
 
-  delete _dictMngr;
12125
 
-}
12126
 
-
12127
 
-void KcmSambaConf::createSmbConfigWidget() {
12128
 
-  m_smbConfConfigWidget = new SmbConfConfigWidget(this);
12129
 
-  connect( m_smbConfConfigWidget, SIGNAL(smbConfChoosed(const QString &)),
12130
 
-           this, SLOT(slotSpecifySmbConf(const QString &)));
12131
 
-}
12132
 
-
12133
 
-void KcmSambaConf::slotSpecifySmbConf(const QString & smbConf) {
12134
 
-  if (m_smbConfConfigWidget) {
12135
 
-     m_smbConfConfigWidget->hide();
12136
 
-  }
12137
 
-
12138
 
-  init();
12139
 
-  initAdvancedTab();
12140
 
-  load(smbConf);
12141
 
-
12142
 
-
12143
 
-  if (getuid() != 0) {
12144
 
-    for (int i=0;i<_interface->mainTab->count();i++) {
12145
 
-      QWidget* w = _interface->mainTab->widget(i);
12146
 
-      w->setEnabled(false);
12147
 
-    }
12148
 
-  }
12149
 
-
12150
 
-  _interface->show();
12151
 
-}
12152
 
-
12153
 
-void KcmSambaConf::init() {
12154
 
-
12155
 
-
12156
 
-  kDebug(DEBUG) << "creating KcmInterface ..." << endl;
12157
 
-
12158
 
-  _interface = new KcmInterface(this);
12159
 
-
12160
 
-
12161
 
-  connect ( _interface->sambaUserPasswordBtn, SIGNAL(clicked()), this, SLOT(sambaUserPasswordBtnClicked()));
12162
 
-
12163
 
-  connect ( _interface->editShareBtn, SIGNAL(clicked()), this, SLOT(editShare()));
12164
 
-  connect ( _interface->addShareBtn, SIGNAL(clicked()), this, SLOT(addShare()));
12165
 
-  connect ( _interface->removeShareBtn, SIGNAL(clicked()), this, SLOT(removeShare()));
12166
 
-
12167
 
-#if 0
12168
 
-  connect ( _interface->editPrinterBtn, SIGNAL(clicked()), this, SLOT(editPrinter()));
12169
 
-  connect ( _interface->addPrinterBtn, SIGNAL(clicked()), this, SLOT(addPrinter()));
12170
 
-  connect ( _interface->removePrinterBtn, SIGNAL(clicked()), this, SLOT(removePrinter()));
12171
 
-
12172
 
-  connect ( _interface->editDefaultPrinterBtn, SIGNAL(clicked()), this, SLOT(editPrinterDefaults()));
12173
 
-#endif
12174
 
-  connect ( _interface->editDefaultShareBtn, SIGNAL(clicked()), this, SLOT(editShareDefaults()));
12175
 
-
12176
 
-  connect( _interface->domainRadio, SIGNAL(toggled(bool)),
12177
 
-          _interface->joinADomainBtn, SLOT( setEnabled(bool) ));
12178
 
-
12179
 
-  connect(_interface->nullPasswordsChk,SIGNAL(toggled(bool)),
12180
 
-          this, SLOT(nullPasswordsEnabled(bool)));
12181
 
-
12182
 
-  connect( _interface->addSambaUserBtn, SIGNAL(clicked()),
12183
 
-          this, SLOT( addSambaUserBtnClicked() ));
12184
 
-
12185
 
-  connect( _interface->removeSambaUserBtn, SIGNAL(clicked()),
12186
 
-          this, SLOT( removeSambaUserBtnClicked() ));
12187
 
-
12188
 
-  _interface->removeSambaUserBtn->setIcon(KIcon("go-next"));
12189
 
-  _interface->addSambaUserBtn->setIcon(KIcon("go-previous"));
12190
 
-
12191
 
-
12192
 
-  connect( _interface->sambaUsersListView, SIGNAL(mouseButtonPressed(int,Q3ListViewItem*,const QPoint &,int)),
12193
 
-          this, SLOT(slotMouseButtonPressed(int,Q3ListViewItem*,const QPoint &,int)));
12194
 
-
12195
 
-  connect( _interface->joinADomainBtn, SIGNAL(clicked()),
12196
 
-          this, SLOT( joinADomainBtnClicked() ));
12197
 
-
12198
 
-  connect( _interface->loadBtn, SIGNAL(clicked()),
12199
 
-          this, SLOT( loadBtnClicked() ));
12200
 
-
12201
 
-  connect( _interface, SIGNAL(changed()), this, SLOT(configChanged()));
12202
 
-}
12203
 
-
12204
 
-
12205
 
-void KcmSambaConf::initAdvancedTab()
12206
 
-{
12207
 
-  kDebug(DEBUG) << "..." << endl;
12208
 
-
12209
 
-  QVBoxLayout *l = new QVBoxLayout(_interface->advancedFrame);
12210
 
-  l->setAutoAdd(true);
12211
 
-  l->setMargin(0);
12212
 
-  _janus = new KPageWidget(_interface->advancedFrame);
12213
 
-  _janus->setFaceType(KPageView::Tree);
12214
 
-//   _janus->setRootIsDecorated(false);
12215
 
-//   _janus->setShowIconsInTreeList(true);
12216
 
-
12217
 
-  QString label;
12218
 
-  QPixmap icon;
12219
 
-
12220
 
-  QList<QWidget*> widgets;
12221
 
-  QList<QString> labels;
12222
 
-
12223
 
-  for (int i=0;i<_interface->advancedTab->count();i++) {
12224
 
-    kDebug(DEBUG) <<  _interface->advancedTab->tabText(i) << endl;
12225
 
-    widgets.append(_interface->advancedTab->widget(i));
12226
 
-    labels.append(_interface->advancedTab->tabText(i));
12227
 
-  }
12228
 
-
12229
 
-  KIconLoader* il = KIconLoader::global();
12230
 
-
12231
 
-  for (int i=0; i<widgets.size(); i++)
12232
 
-  {
12233
 
-    QWidget* w = widgets.at(i);
12234
 
-    QString label = labels.at(i);
12235
 
-
12236
 
-    if (label == i18n("Security"))
12237
 
-      icon = il->loadIcon("dialog-password",KIconLoader::Small);
12238
 
-    else
12239
 
-    if (label == i18n("Logging"))
12240
 
-      icon = il->loadIcon("view-history",KIconLoader::Small);
12241
 
-    else
12242
 
-    if (label == i18n("Tuning"))
12243
 
-      icon = il->loadIcon("preferences-system-performance",KIconLoader::Small);
12244
 
-    else
12245
 
-    if (label == i18n("Filenames"))
12246
 
-      icon = il->loadIcon("text-plain",KIconLoader::Small);
12247
 
-    else
12248
 
-    if (label == i18n("Locking"))
12249
 
-      icon = il->loadIcon("object-locked",KIconLoader::Small);
12250
 
-    else
12251
 
-    if (label == i18n("Printing"))
12252
 
-      icon = il->loadIcon("printer",KIconLoader::Small);
12253
 
-    else
12254
 
-    if (label == i18n("Logon"))
12255
 
-      icon = il->loadIcon("preferences-system-login",KIconLoader::Small);
12256
 
-    else
12257
 
-    if (label == i18n("Charset"))
12258
 
-      icon = il->loadIcon("character-set",KIconLoader::Small);
12259
 
-    else
12260
 
-    if (label == i18n("Socket"))
12261
 
-      icon = il->loadIcon("socket",KIconLoader::Small);
12262
 
-    else
12263
 
-    if (label == i18n("SSL"))
12264
 
-      icon = il->loadIcon("security-high",KIconLoader::Small);
12265
 
-    else
12266
 
-    if (label == i18n("Browsing"))
12267
 
-      icon = il->loadIcon("fileview-icon",KIconLoader::Small);
12268
 
-    else
12269
 
-    if (label == i18n("Misc"))
12270
 
-      icon = il->loadIcon("preferences-other",KIconLoader::Small);
12271
 
-    else
12272
 
-    if (label == i18n("Commands"))
12273
 
-      icon = il->loadIcon("utilities-terminal",KIconLoader::Small);
12274
 
-    else
12275
 
-    if (label == i18n("VFS"))
12276
 
-      icon = il->loadIcon("folder",KIconLoader::Small);
12277
 
-    else
12278
 
-    if (label == i18n("Debug"))
12279
 
-      icon = il->loadIcon("tools-report-bug",KIconLoader::Small);
12280
 
-    else
12281
 
-    if (label == i18n("LDAP"))
12282
 
-      icon = il->loadIcon("network-server-database",KIconLoader::Small);
12283
 
-    else {
12284
 
-      icon = QPixmap(16,16);
12285
 
-      icon.fill(Qt::transparent);
12286
 
-    }
12287
 
-      //SmallIcon("empty2");
12288
 
-
12289
 
-    QWidget* frame = new QWidget();
12290
 
-    QVBoxLayout* l = new QVBoxLayout(frame);
12291
 
-    KPageWidgetItem *page = new KPageWidgetItem( frame, label );
12292
 
-    l->setMargin(0);
12293
 
-    l->addWidget(w);
12294
 
-    kDebug(DEBUG) << "adding page ..." << endl;
12295
 
-    _janus->addPage(page);
12296
 
-    w->show();
12297
 
-    page->setIcon(KIcon(icon));
12298
 
-
12299
 
-  }
12300
 
-
12301
 
-  QWidget* w = _interface->mainTab->page(5);
12302
 
-  _interface->mainTab->removeTab(5);
12303
 
-  delete w;
12304
 
-  _interface->advancedWarningPixLbl->setPixmap(DesktopIcon("dialog-warning"));
12305
 
-
12306
 
-  kDebug(DEBUG) << "finished" << endl;
12307
 
-
12308
 
-}
12309
 
-
12310
 
-void KcmSambaConf::editShare()
12311
 
-{
12312
 
-  ShareListViewItem* item = static_cast<ShareListViewItem*>(_interface->shareListView->selectedItem());
12313
 
-
12314
 
-  if (!item)
12315
 
-    return;
12316
 
-
12317
 
-  ShareDlgImpl* dlg = new ShareDlgImpl(_interface,item->getShare());
12318
 
-  connect(dlg, SIGNAL(changed()), this, SLOT(configChanged()));
12319
 
-  dlg->exec();
12320
 
-  item->updateShare();
12321
 
-
12322
 
-  disconnect(dlg, SIGNAL(changed()), this, SLOT(configChanged()));
12323
 
-
12324
 
-  delete dlg;
12325
 
-
12326
 
-}
12327
 
-
12328
 
-void KcmSambaConf::addShare()
12329
 
-{
12330
 
-  SambaShare* share = _sambaFile->newShare(_sambaFile->getUnusedName(),"");
12331
 
-  ShareListViewItem* item = new ShareListViewItem( _interface->shareListView, share );
12332
 
-  _interface->shareListView->setSelected(item,true);
12333
 
-
12334
 
-  ShareDlgImpl* dlg = new ShareDlgImpl(_interface,share);
12335
 
-  dlg->exec();
12336
 
-
12337
 
-  if (dlg->result() == QDialog::Rejected )
12338
 
-    removeShare();
12339
 
-  else  {
12340
 
-    item->updateShare();
12341
 
-    emit changed(true);
12342
 
-  }
12343
 
-
12344
 
-  delete dlg;
12345
 
-}
12346
 
-
12347
 
-void KcmSambaConf::removeShare()
12348
 
-{
12349
 
-  ShareListViewItem* item = static_cast<ShareListViewItem*>(_interface->shareListView->selectedItem());
12350
 
-
12351
 
-  if (!item)
12352
 
-    return;
12353
 
-
12354
 
-  SambaShare *share = item->getShare();
12355
 
-  delete item;
12356
 
-  _sambaFile->removeShare(share);
12357
 
-
12358
 
-  emit changed(true);
12359
 
-}
12360
 
-
12361
 
-
12362
 
-#if 0
12363
 
-void KcmSambaConf::editPrinter()
12364
 
-{
12365
 
-  ShareListViewItem* item = static_cast<ShareListViewItem*>(_interface->printerListView->selectedItem());
12366
 
-
12367
 
-  if (!item)
12368
 
-    return;
12369
 
-
12370
 
-  PrinterDlgImpl* dlg = new PrinterDlgImpl(_interface,item->getShare());
12371
 
-  dlg->exec();
12372
 
-  item->updateShare();
12373
 
-
12374
 
-  delete dlg;
12375
 
-
12376
 
-  emit changed(true);
12377
 
-}
12378
 
-
12379
 
-void KcmSambaConf::addPrinter()
12380
 
-{
12381
 
-  SambaShare* share = _sambaFile->newPrinter(_sambaFile->getUnusedName(),"");
12382
 
-  ShareListViewItem* item = new ShareListViewItem( _interface->shareListView, share );
12383
 
-  _interface->printerListView->setSelected(item,true);
12384
 
-
12385
 
-  PrinterDlgImpl* dlg = new PrinterDlgImpl(_interface,share);
12386
 
-  dlg->exec();
12387
 
-
12388
 
-  if (dlg->result() == QDialog::Rejected )
12389
 
-    removePrinter();
12390
 
-  else
12391
 
-  {
12392
 
-    item->updateShare();
12393
 
-    emit changed(true);
12394
 
-  }
12395
 
-
12396
 
-  delete dlg;
12397
 
-}
12398
 
-
12399
 
-void KcmSambaConf::removePrinter()
12400
 
-{
12401
 
-  ShareListViewItem* item = static_cast<ShareListViewItem*>(_interface->printerListView->selectedItem());
12402
 
-
12403
 
-  if (!item)
12404
 
-    return;
12405
 
-
12406
 
-  SambaShare *share = item->getShare();
12407
 
-  delete item;
12408
 
-  _sambaFile->removeShare(share);
12409
 
-
12410
 
-  emit changed(true);
12411
 
-}
12412
 
-#endif
12413
 
-
12414
 
-void KcmSambaConf::editShareDefaults()
12415
 
-{
12416
 
-  SambaShare* share = _sambaFile->getShare("global");
12417
 
-
12418
 
-  ShareDlgImpl* dlg = new ShareDlgImpl(_interface,share);
12419
 
-  dlg->directoryGrp->setEnabled(false);
12420
 
-  dlg->identifierGrp->setEnabled(false);
12421
 
-  dlg->exec();
12422
 
-  delete dlg;
12423
 
-
12424
 
-  emit changed(true);
12425
 
-}
12426
 
-
12427
 
-#if 0
12428
 
-void KcmSambaConf::editPrinterDefaults()
12429
 
-{
12430
 
-  SambaShare* share = _sambaFile->getShare("global");
12431
 
-
12432
 
-  PrinterDlgImpl* dlg = new PrinterDlgImpl(_interface,share);
12433
 
-  dlg->printerGrp->setEnabled(false);
12434
 
-  dlg->identifierGrp->setEnabled(false);
12435
 
-  dlg->exec();
12436
 
-
12437
 
-  delete dlg;
12438
 
-
12439
 
-  emit changed(true);
12440
 
-}
12441
 
-#endif
12442
 
-
12443
 
-
12444
 
-
12445
 
-void KcmSambaConf::loadBtnClicked() {
12446
 
-  load( _interface->configUrlRq->url().url());
12447
 
-}
12448
 
-
12449
 
-void KcmSambaConf::load(const QString & smbFile)
12450
 
-{
12451
 
-  kDebug(5009) << "loading " << smbFile;
12452
 
-  _smbconf = smbFile;
12453
 
-
12454
 
-  delete _sambaFile;
12455
 
-
12456
 
-  _sambaFile = new SambaFile(_smbconf,false);
12457
 
-
12458
 
-  connect( _sambaFile, SIGNAL(completed()), this, SLOT(fillFields()));
12459
 
-  connect( _sambaFile, SIGNAL(canceled(const QString &)), this, SLOT(loadCanceled(const QString &)));
12460
 
-
12461
 
-  _sambaFile->load();
12462
 
-
12463
 
-  kDebug(DEBUG) << "finished" << endl;
12464
 
-
12465
 
-}
12466
 
-
12467
 
-void KcmSambaConf::loadCanceled(const QString & msg) {
12468
 
-  KMessageBox::sorry(0L,msg,i18n("Error while opening file"));
12469
 
-}
12470
 
-
12471
 
-void KcmSambaConf::fillFields()
12472
 
-{
12473
 
-  kDebug(DEBUG) << "..." << endl;
12474
 
-
12475
 
-  kDebug(DEBUG) << "filling share list views ..." << endl;
12476
 
-  // Fill the ListViews
12477
 
-  SambaShareList* list = _sambaFile->getSharedDirs();
12478
 
-
12479
 
-  SambaShare *share = 0L;
12480
 
-  _interface->shareListView->clear();
12481
 
-  for ( share = list->first(); share; share = list->next() )
12482
 
-  {
12483
 
-    new ShareListViewItem(_interface->shareListView, share);
12484
 
-  }
12485
 
-
12486
 
-  share = 0L;
12487
 
-  _interface->printerListView->clear();
12488
 
-  list = _sambaFile->getSharedPrinters();
12489
 
-  for ( share = list->first(); share; share = list->next() )
12490
 
-  {
12491
 
-    new ShareListViewItem(_interface->printerListView, share);
12492
 
-  }
12493
 
-
12494
 
-  share = _sambaFile->getShare("global");
12495
 
-
12496
 
-  if ( !share)
12497
 
-    share = _sambaFile->newShare("global");
12498
 
-
12499
 
-  Q_ASSERT( share);
12500
 
-  delete _dictMngr;
12501
 
-
12502
 
-  _dictMngr = new DictManager(share);
12503
 
-
12504
 
-
12505
 
-  _interface->configUrlRq->setUrl( _smbconf );
12506
 
-  _interface->configUrlRq->setMode( KFile::File | KFile::ExistingOnly);
12507
 
-
12508
 
-
12509
 
-  loadBaseSettings( share );
12510
 
-  loadSecurity( share );
12511
 
-  loadTuning( share );
12512
 
-  loadLogging( share );
12513
 
-  loadDomain( share );
12514
 
-  loadWins( share );
12515
 
-  loadPrinting( share );
12516
 
-  loadFilenames( share );
12517
 
-  loadLocking( share );
12518
 
-  loadProtocol( share );
12519
 
-  loadSocket( share );
12520
 
-  loadSSL( share );
12521
 
-  loadLogon( share );
12522
 
-  loadCharset( share );
12523
 
-  loadWinbind( share );
12524
 
-  loadNetbios( share );
12525
 
-  loadVFS( share );
12526
 
-  loadLDAP( share );
12527
 
-  loadBrowsing( share );
12528
 
-  loadCommands( share );
12529
 
-  loadMisc( share );
12530
 
-  loadDebug( share );
12531
 
-
12532
 
-  _dictMngr->load( share, false,true );
12533
 
-
12534
 
-  loadUserTab();
12535
 
-
12536
 
-  connect(_dictMngr, SIGNAL(changed()), this, SLOT(configChanged()));
12537
 
-
12538
 
-}
12539
 
-
12540
 
-
12541
 
-void KcmSambaConf::loadBaseSettings(SambaShare* share)
12542
 
-{
12543
 
-  kDebug(DEBUG) << "..." << endl;
12544
 
-
12545
 
-  _dictMngr->add("workgroup", _interface->workgroupEdit);
12546
 
-  _dictMngr->add("server string", _interface->serverStringEdit);
12547
 
-  _dictMngr->add("netbios name", _interface->netbiosNameEdit);
12548
 
-  _dictMngr->add("interfaces", _interface->interfacesEdit);
12549
 
-
12550
 
-  kDebug(DEBUG) << "filling guestAccountCombo ..." << endl;
12551
 
-  _interface->guestAccountCombo->addItems( getUnixUsers() );
12552
 
-  setComboIndexToValue(_interface->guestAccountCombo,"guest account",share);
12553
 
-
12554
 
-  QString value = share->getValue("map to guest",false,true);
12555
 
-
12556
 
-  _interface->allowGuestLoginsChk->setChecked( value.toLower()!="never" );
12557
 
-
12558
 
-  _dictMngr->add("guest ok",_interface->allowGuestLoginsChk);
12559
 
-
12560
 
-  _dictMngr->add("bind interfaces only",_interface->bindInterfacesOnlyChk);
12561
 
-
12562
 
-  QString s = share->getValue("security",false,true).toLower();
12563
 
-  int i = 0;
12564
 
-
12565
 
-  if ( s == "share" ) i = 0; else
12566
 
-  if ( s == "user" ) i = 1; else
12567
 
-  if ( s == "server" ) i = 2; else
12568
 
-  if ( s == "domain" ) i = 3; else
12569
 
-  if ( s == "ads" ) i = 4;
12570
 
-
12571
 
-  _interface->securityLevelBtnGrp->setButton(i);
12572
 
-  _interface->updateSecurityLevelHelpLbl();
12573
 
-
12574
 
-}
12575
 
-
12576
 
-
12577
 
-void KcmSambaConf::loadSecurity(SambaShare*)
12578
 
-{
12579
 
-  kDebug(DEBUG) << "..." << endl;
12580
 
-
12581
 
-  _dictMngr->add("map to guest",_interface->mapToGuestCombo,
12582
 
-                 new QStringList(QStringList() << "Never" << "Bad User" << "Bad Password" ));
12583
 
-
12584
 
-
12585
 
-  _dictMngr->add("password server", _interface->passwordServerEdit);
12586
 
-  _dictMngr->add("passwd chat", _interface->passwdChatEdit);
12587
 
-  _dictMngr->add("root directory", _interface->rootDirectoryEdit);
12588
 
-  _dictMngr->add("passdb backend", _interface->passdbBackendEdit);
12589
 
-  _dictMngr->add("auth methods", _interface->authMethodsEdit);
12590
 
-  _dictMngr->add("realm", _interface->realmEdit);
12591
 
-
12592
 
-  _dictMngr->add("password level", _interface->passwordLevelSpin);
12593
 
-  _dictMngr->add("min passwd length", _interface->minPasswdLengthSpin);
12594
 
-  _dictMngr->add("username level", _interface->usernameLevelSpin);
12595
 
-  _dictMngr->add("algorithmic rid base", _interface->algorithmicRidBaseSpin);
12596
 
-  _dictMngr->add("passwd chat timeout", _interface->passwdChatTimeoutSpin);
12597
 
-
12598
 
-  _dictMngr->add("encrypt passwords",_interface->encryptPasswordsChk);
12599
 
-  _dictMngr->add("update encrypted",_interface->updateEncryptedChk);
12600
 
-  _dictMngr->add("passwd chat debug",_interface->passwdChatDebugChk);
12601
 
-  _dictMngr->add("unix password sync",_interface->unixPasswordSyncChk);
12602
 
-  _dictMngr->add("use rhosts",_interface->useRhostsChk);
12603
 
-  _dictMngr->add("hide local users",_interface->hideLocalUsersChk);
12604
 
-
12605
 
-
12606
 
-  _dictMngr->add("allow trusted domains",_interface->allowTrustedDomainsChk);
12607
 
-  _dictMngr->add("obey pam restrictions",_interface->obeyPamRestrictionsChk);
12608
 
-  _dictMngr->add("pam password change",_interface->pamPasswordChangeChk);
12609
 
-  _dictMngr->add("restrict anonymous",_interface->restrictAnonymousChk);
12610
 
-  _dictMngr->add("null passwords",_interface->nullPasswordsChk);
12611
 
-  _dictMngr->add("paranoid server security",_interface->paranoidServerSecurityChk);
12612
 
-
12613
 
-  _dictMngr->add("smb passwd file",_interface->smbPasswdFileUrlRq);
12614
 
-  _dictMngr->add("passwd program",_interface->passwdProgramUrlRq);
12615
 
-  _dictMngr->add("username map",_interface->usernameMapUrlRq);
12616
 
-  _dictMngr->add("hosts equiv",_interface->hostsEquivUrlRq);
12617
 
-  _dictMngr->add("private dir",_interface->privateDirUrlRq);
12618
 
-
12619
 
-  // Authentication
12620
 
-
12621
 
-  _dictMngr->add("lanman auth",_interface->lanmanAuthChk);
12622
 
-  _dictMngr->add("ntlm auth",_interface->ntlmAuthChk);
12623
 
-  _dictMngr->add("use spnego",_interface->useSpnegoChk);
12624
 
-  _dictMngr->add("server schannel",_interface->serverSchannelCombo,
12625
 
-                 new QStringList(QStringList() << "Yes" << "No" << "Auto" ));
12626
 
-  _dictMngr->add("server signing",_interface->serverSigningCombo,
12627
 
-                 new QStringList(QStringList() << "Auto" << "Mandatory" << "No" ));
12628
 
-
12629
 
-  _dictMngr->add("client lanman auth",_interface->clientLanmanAuthChk);
12630
 
-  _dictMngr->add("client plaintext auth",_interface->clientPlaintextAuthChk);
12631
 
-  _dictMngr->add("client ntlmv2 auth",_interface->clientNTLMv2AuthChk);
12632
 
-  _dictMngr->add("client use spnego",_interface->clientUseSpnegoChk);
12633
 
-  _dictMngr->add("client schannel",_interface->clientSchannelCombo,
12634
 
-                 new QStringList(QStringList() << "Yes" << "No" << "Auto" ));
12635
 
-  _dictMngr->add("client signing",_interface->clientSigningCombo,
12636
 
-                 new QStringList(QStringList() << "Auto" << "Mandatory" << "No" ));
12637
 
-
12638
 
-
12639
 
-
12640
 
-
12641
 
-
12642
 
-}
12643
 
-
12644
 
-void KcmSambaConf::loadLogging(SambaShare* )
12645
 
-{
12646
 
-  kDebug(DEBUG) << "..." << endl;
12647
 
-  _dictMngr->add("log file",_interface->logFileUrlRq);
12648
 
-
12649
 
-  _dictMngr->add("max log size", _interface->maxLogSizeSpin);
12650
 
-  _dictMngr->add("syslog", _interface->syslogSpin);
12651
 
-  _dictMngr->add("log level", _interface->logLevelEdit);
12652
 
-
12653
 
-  _dictMngr->add("status",_interface->statusChk);
12654
 
-  _dictMngr->add("debug uid",_interface->debugUidChk);
12655
 
-  _dictMngr->add("debug pid",_interface->debugPidChk);
12656
 
-  _dictMngr->add("debug hires timestamp",_interface->microsecondsChk);
12657
 
-  _dictMngr->add("syslog only",_interface->syslogOnlyChk);
12658
 
-  _dictMngr->add("debug timestamp",_interface->timestampChk);
12659
 
-
12660
 
-
12661
 
-}
12662
 
-
12663
 
-void KcmSambaConf::loadTuning(SambaShare* )
12664
 
-{
12665
 
-  kDebug(DEBUG) << "..." << endl;
12666
 
-  _dictMngr->add("change notify timeout", _interface->changeNotifyTimeoutSpin);
12667
 
-  _dictMngr->add("deadtime", _interface->deadtimeSpin);
12668
 
-  _dictMngr->add("keepalive", _interface->keepaliveSpin);
12669
 
-  _dictMngr->add("lpq cache time", _interface->lpqCacheTimeSpin);
12670
 
-  _dictMngr->add("max open files", _interface->maxOpenFilesSpin);
12671
 
-  _dictMngr->add("read size", _interface->readSizeSpin);
12672
 
-  _dictMngr->add("max disk size", _interface->maxDiskSizeSpin);
12673
 
-  _dictMngr->add("stat cache size", _interface->statCacheSizeSpin);
12674
 
-  _dictMngr->add("max smbd processes", _interface->maxSmbdProcessesSpin);
12675
 
-  _dictMngr->add("name cache timeout", _interface->nameCacheTimeoutSpin);
12676
 
-
12677
 
-  _dictMngr->add("getwd cache",_interface->getwdCacheChk);
12678
 
-  _dictMngr->add("use mmap",_interface->useMmapChk);
12679
 
-  _dictMngr->add("hostname lookups",_interface->hostnameLookupsChk);
12680
 
-  _dictMngr->add("kernel change notify",_interface->kernelChangeNotifyChk);
12681
 
-
12682
 
-}
12683
 
-
12684
 
-void KcmSambaConf::loadLocking(SambaShare* )
12685
 
-{
12686
 
-  kDebug(DEBUG) << "..." << endl;
12687
 
-  _dictMngr->add("kernel oplocks",_interface->kernelOplocksChk);
12688
 
-  _dictMngr->add("lock directory",_interface->lockDirectoryUrlRq);
12689
 
-  _dictMngr->add("pid directory",_interface->pidDirectoryUrlRq);
12690
 
-  _dictMngr->add("oplock break wait time",_interface->oplockBreakWaitTimeSpin);
12691
 
-  _dictMngr->add("lock spin time",_interface->lockSpinTimeSpin);
12692
 
-  _dictMngr->add("lock spin count",_interface->lockSpinCountSpin);
12693
 
-
12694
 
-
12695
 
-}
12696
 
-
12697
 
-void KcmSambaConf::loadDomain(SambaShare*)
12698
 
-{
12699
 
-  kDebug(DEBUG) << "..." << endl;
12700
 
-  _dictMngr->add("preferred master",_interface->preferredMasterChk);
12701
 
-  _dictMngr->add("local master",_interface->localMasterChk);
12702
 
-  _dictMngr->add("domain master",_interface->domainMasterChk);
12703
 
-  _dictMngr->add("domain logons",_interface->domainLogonsChk);
12704
 
-  _dictMngr->add("machine password timeout", _interface->machinePasswordTimeoutSpin);
12705
 
-  _dictMngr->add("os level", _interface->osLevelSpin);
12706
 
-  _dictMngr->add("domain admin group", _interface->domainAdminGroupEdit);
12707
 
-  _dictMngr->add("domain guest group", _interface->domainGuestGroupEdit);
12708
 
-
12709
 
-}
12710
 
-
12711
 
-void KcmSambaConf::loadWins(SambaShare* share)
12712
 
-{
12713
 
-  kDebug(DEBUG) << "..." << endl;
12714
 
-  _dictMngr->add("wins proxy",_interface->winsProxyChk);
12715
 
-  _dictMngr->add("dns proxy",_interface->dnsProxyChk);
12716
 
-  _dictMngr->add("wins server", _interface->winsServerEdit);
12717
 
-  _dictMngr->add("wins hook", _interface->winsHookEdit);
12718
 
-  _interface->winsSupportRadio->setChecked( share->getBoolValue("wins support",false,true));
12719
 
-  _interface->otherWinsRadio->setChecked( !share->getValue("wins server",false,true).isEmpty() );
12720
 
-}
12721
 
-
12722
 
-
12723
 
-void KcmSambaConf::loadPrinting(SambaShare* )
12724
 
-{
12725
 
-  kDebug(DEBUG) << "..." << endl;
12726
 
-  _dictMngr->add("load printers",_interface->loadPrintersChk);
12727
 
-  _dictMngr->add("disable spoolss",_interface->disableSpoolssChk);
12728
 
-  _dictMngr->add("show add printer wizard",_interface->showAddPrinterWizardChk);
12729
 
-
12730
 
-  _dictMngr->add("addprinter command", _interface->addprinterCommandEdit);
12731
 
-  _dictMngr->add("deleteprinter command", _interface->deleteprinterCommandEdit);
12732
 
-  _dictMngr->add("enumports command", _interface->enumportsCommandEdit);
12733
 
-
12734
 
-  _dictMngr->add("printcap name",_interface->printcapNameUrlRq);
12735
 
-  _dictMngr->add("os2 driver map",_interface->os2DriverMapUrlRq);
12736
 
-  _dictMngr->add("printer driver file",_interface->printerDriverFileUrlRq);
12737
 
-
12738
 
-  _dictMngr->add("total print jobs", _interface->totalPrintJobsSpin);
12739
 
-}
12740
 
-
12741
 
-void KcmSambaConf::loadFilenames(SambaShare* )
12742
 
-{
12743
 
-  kDebug(DEBUG) << "..." << endl;
12744
 
-  _dictMngr->add("strip dot",_interface->stripDotChk);
12745
 
-  _dictMngr->add("stat cache",_interface->statCacheChk);
12746
 
-
12747
 
-
12748
 
-  _dictMngr->add("mangled stack", _interface->mangledStackSpin);
12749
 
-  _dictMngr->add("mangle prefix", _interface->manglePrefixSpin);
12750
 
-
12751
 
-}
12752
 
-
12753
 
-void KcmSambaConf::loadProtocol(SambaShare*)
12754
 
-{
12755
 
-  kDebug(DEBUG) << "..." << endl;
12756
 
-  // Protocol
12757
 
-
12758
 
-  _dictMngr->add("write raw",_interface->writeRawChk);
12759
 
-  _dictMngr->add("read raw",_interface->readRawChk);
12760
 
-  _dictMngr->add("read bmpx",_interface->readBmpxChk);
12761
 
-  _dictMngr->add("large readwrite",_interface->largeReadWriteChk);
12762
 
-  _dictMngr->add("nt smb support",_interface->ntSmbSupportChk);
12763
 
-  _dictMngr->add("nt pipe support",_interface->ntPipeSupportChk);
12764
 
-  _dictMngr->add("time server",_interface->timeServerChk);
12765
 
-  _dictMngr->add("unix extensions",_interface->unixExtensionsChk);
12766
 
-
12767
 
-  _dictMngr->add("max mux", _interface->maxMuxSpin);
12768
 
-  _dictMngr->add("max xmit", _interface->maxXmitSpin);
12769
 
-  _dictMngr->add("max ttl", _interface->maxTtlSpin);
12770
 
-  _dictMngr->add("max wins ttl", _interface->maxWinsTtlSpin);
12771
 
-  _dictMngr->add("min wins ttl", _interface->minWinsTtlSpin);
12772
 
-
12773
 
-  _dictMngr->add("announce version", _interface->announceVersionEdit);
12774
 
-  _dictMngr->add("name resolve order", _interface->nameResolveOrderEdit);
12775
 
-  _dictMngr->add("smb ports", _interface->smbPortsEdit);
12776
 
-
12777
 
-  _dictMngr->add("announce as", _interface->announceAsCombo,
12778
 
-                 new QStringList(QStringList() << "NT" << "NT workstation" << "win95" << "WfW"));
12779
 
-
12780
 
-  _dictMngr->add("protocol", _interface->protocolCombo,
12781
 
-                 new QStringList(QStringList() << "NT1" << "lanman2" << "lanman1" << "core" << "coreplus" ));
12782
 
-
12783
 
-  _dictMngr->add("max protocol", _interface->maxProtocolCombo,
12784
 
-                 new QStringList(QStringList() << "NT1" << "lanman2" << "lanman1" << "core" << "coreplus"));
12785
 
-
12786
 
-  _dictMngr->add("min protocol", _interface->minProtocolCombo,
12787
 
-                 new QStringList(QStringList() << "NT1" << "lanman2" << "lanman1" << "core" << "coreplus"));
12788
 
-
12789
 
-}
12790
 
-
12791
 
-void KcmSambaConf::loadSocket(SambaShare* share)
12792
 
-{
12793
 
-  kDebug(DEBUG) << "..." << endl;
12794
 
-  // SOCKET options
12795
 
-
12796
 
-  _dictMngr->add("socket address", _interface->socketAddressEdit);
12797
 
-
12798
 
-  QString s = share->getValue("socket options");
12799
 
-  s = s.simplified();
12800
 
-
12801
 
-  // The string s has now the form :
12802
 
-  // "OPTION1=1 OPTION2=0 OPTION3=2234 OPTION4"
12803
 
-
12804
 
-  _interface->SO_KEEPALIVEChk->setChecked(getSocketBoolValue( s, "SO_KEEPALIVE") );
12805
 
-  _interface->SO_REUSEADDRChk->setChecked( getSocketBoolValue( s, "SO_REUSEADDR") );
12806
 
-  _interface->SO_BROADCASTChk->setChecked( getSocketBoolValue( s, "SO_BROADCAST") );
12807
 
-  _interface->TCP_NODELAYChk->setChecked( getSocketBoolValue( s, "TCP_NODELAY") );
12808
 
-  _interface->IPTOS_LOWDELAYChk->setChecked( getSocketBoolValue( s, "IPTOS_LOWDELAY") );
12809
 
-  _interface->IPTOS_THROUGHPUTChk->setChecked( getSocketBoolValue( s, "IPTOS_THROUGHPUT") );
12810
 
-
12811
 
-  _interface->SO_SNDBUFChk->setChecked( getSocketBoolValue( s, "SO_SNDBUF") );
12812
 
-  _interface->SO_RCVBUFChk->setChecked( getSocketBoolValue( s, "SO_RCVBUF") );
12813
 
-  _interface->SO_SNDLOWATChk->setChecked( getSocketBoolValue( s, "SO_SNDLOWAT") );
12814
 
-  _interface->SO_RCVLOWATChk->setChecked( getSocketBoolValue( s, "SO_RCVLOWAT") );
12815
 
-
12816
 
-  _interface->SO_SNDBUFSpin->setValue( getSocketIntValue( s, "SO_SNDBUF") );
12817
 
-  _interface->SO_RCVBUFSpin->setValue( getSocketIntValue( s, "SO_RCVBUF") );
12818
 
-  _interface->SO_SNDLOWATSpin->setValue( getSocketIntValue( s, "SO_SNDLOWAT") );
12819
 
-  _interface->SO_RCVLOWATSpin->setValue( getSocketIntValue( s, "SO_RCVLOWAT") );
12820
 
-
12821
 
-}
12822
 
-
12823
 
-void KcmSambaConf::loadSSL(SambaShare*)
12824
 
-{
12825
 
-  kDebug(DEBUG) << "..." << endl;
12826
 
-  // SSL
12827
 
-
12828
 
-  _dictMngr->add("ssl version",_interface->sslVersionCombo,
12829
 
-                 new QStringList(QStringList() << "ssl2" << "ssl3" << "ssl2or3" << "tls1" ));
12830
 
-
12831
 
-  _dictMngr->add("ssl",_interface->sslChk);
12832
 
-  _dictMngr->add("ssl require server cert",_interface->sslRequireServercertChk);
12833
 
-  _dictMngr->add("ssl compatibility",_interface->sslCompatibilityChk);
12834
 
-  _dictMngr->add("ssl require clientcert",_interface->sslRequireClientcertChk);
12835
 
-
12836
 
-  _dictMngr->add("ssl hosts edit", _interface->sslHostsEdit);
12837
 
-  _dictMngr->add("ssl hosts resign", _interface->sslHostsResignEdit);
12838
 
-  _dictMngr->add("ssl egd socket", _interface->sslEgdSocketEdit);
12839
 
-  _dictMngr->add("ssl ciphers edit", _interface->sslCiphersEdit);
12840
 
-
12841
 
-  _dictMngr->add("ssl CA cert dir",_interface->sslCACertDirUrlRq);
12842
 
-  _dictMngr->add("ssl CA cert file",_interface->sslCACertFileUrlRq);
12843
 
-  _dictMngr->add("ssl entropy file",_interface->sslEntropyFileUrlRq);
12844
 
-  _dictMngr->add("ssl client cert",_interface->sslClientCertUrlRq);
12845
 
-  _dictMngr->add("ssl client key",_interface->sslClientKeyUrlRq);
12846
 
-  _dictMngr->add("ssl server cert",_interface->sslServerCertUrlRq);
12847
 
-  _dictMngr->add("ssl server key",_interface->sslServerKeyUrlRq);
12848
 
-
12849
 
-  _dictMngr->add("ssl entropy bytes", _interface->sslEntropyBytesSpin);
12850
 
-
12851
 
-}
12852
 
-
12853
 
-void KcmSambaConf::loadLogon(SambaShare* )
12854
 
-{
12855
 
-  kDebug(DEBUG) << "..." << endl;
12856
 
-  // Logon
12857
 
-
12858
 
-  _dictMngr->add("add user script", _interface->addUserScriptEdit);
12859
 
-  _dictMngr->add("add group script", _interface->addGroupScriptEdit);
12860
 
-  _dictMngr->add("add machine script", _interface->addMachineScriptEdit);
12861
 
-  _dictMngr->add("add user to group script", _interface->addUserToGroupScriptEdit);
12862
 
-  _dictMngr->add("delete user script", _interface->deleteUserScriptEdit);
12863
 
-  _dictMngr->add("delete group script", _interface->deleteGroupScriptEdit);
12864
 
-  _dictMngr->add("delete user from group script", _interface->deleteUserFromGroupScriptEdit);
12865
 
-  _dictMngr->add("set primary group script", _interface->addGroupScriptEdit);
12866
 
-  _dictMngr->add("shutdown script", _interface->shutdownScriptEdit);
12867
 
-  _dictMngr->add("abort shutdown script", _interface->abortShutdownScriptEdit);
12868
 
-  _dictMngr->add("logon script", _interface->logonScriptEdit);
12869
 
-  _dictMngr->add("logon drive", _interface->logonDriveEdit);
12870
 
-  _dictMngr->add("logon path",_interface->logonPathUrlRq);
12871
 
-  _dictMngr->add("logon home",_interface->logonHomeUrlRq);
12872
 
-
12873
 
-}
12874
 
-
12875
 
-
12876
 
-void KcmSambaConf::loadCharset(SambaShare* )
12877
 
-{
12878
 
-  kDebug(DEBUG) << "..." << endl;
12879
 
-  _dictMngr->add("coding system", _interface->codingSystemEdit);
12880
 
-  _dictMngr->add("client code page", _interface->clientCodePageEdit);
12881
 
-  _dictMngr->add("code page directory",_interface->codePageDirUrlRq);
12882
 
-  _dictMngr->add("display charset", _interface->displayCharsetEdit);
12883
 
-  _dictMngr->add("unix charset", _interface->unixCharsetEdit);
12884
 
-  _dictMngr->add("dos charset", _interface->dosCharsetEdit);
12885
 
-  _dictMngr->add("character set", _interface->characterSetEdit);
12886
 
-  _dictMngr->add("valid chars", _interface->validCharsEdit);
12887
 
-
12888
 
-  _dictMngr->add("unicode",_interface->unicodeChk);
12889
 
-}
12890
 
-
12891
 
-void KcmSambaConf::loadWinbind(SambaShare* )
12892
 
-{
12893
 
-  kDebug(DEBUG) << "..." << endl;
12894
 
-  _dictMngr->add("winbind uid", _interface->winbindUidEdit);
12895
 
-  _dictMngr->add("winbind gid", _interface->winbindGidEdit);
12896
 
-  _dictMngr->add("template homedir", _interface->templateHomedirEdit);
12897
 
-  _dictMngr->add("template shell", _interface->templateShellEdit);
12898
 
-  _dictMngr->add("winbind separator", _interface->winbindSeparatorEdit);
12899
 
-  _dictMngr->add("template primary group", _interface->templatePrimaryGroupEdit);
12900
 
-
12901
 
-  _dictMngr->add("winbind cache time", _interface->winbindCacheTimeSpin);
12902
 
-  _dictMngr->add("acl compatibility",_interface->aclCompatibilityCombo,
12903
 
-                 new QStringList(QStringList() << "winnt" << "win2k" << "auto"));
12904
 
-
12905
 
-  _dictMngr->add("winbind enum users",_interface->winbindEnumUsersChk);
12906
 
-  _dictMngr->add("winbind enum groups",_interface->winbindEnumGroupsChk);
12907
 
-  _dictMngr->add("winbind use default domain",_interface->winbindUseDefaultDomainChk);
12908
 
-  _dictMngr->add("winbind trusted domains only",_interface->winbindTrustedDomainsOnlyChk);
12909
 
-  _dictMngr->add("winbind enable local accounts",_interface->winbindEnableLocalAccountsChk);
12910
 
-  _dictMngr->add("winbind nested groups",_interface->winbindNestedGroupsChk);
12911
 
-
12912
 
-
12913
 
-}
12914
 
-
12915
 
-void KcmSambaConf::loadNetbios(SambaShare* )
12916
 
-{
12917
 
-  kDebug(DEBUG) << "..." << endl;
12918
 
-  _dictMngr->add("disable netbios",_interface->disableNetbiosChk);
12919
 
-
12920
 
-  _dictMngr->add("netbios aliases", _interface->netbiosAliasesEdit);
12921
 
-  _dictMngr->add("netbios scope", _interface->netbiosScopeEdit);
12922
 
-
12923
 
-  /*
12924
 
-  _dictMngr->add("netbios aliases", _interface->netbiosAliasesEdit);
12925
 
-  _dictMngr->add("netbios scope", _interface->netbiosScopeEdit);
12926
 
-  */
12927
 
-
12928
 
-}
12929
 
-
12930
 
-void KcmSambaConf::loadVFS(SambaShare*)
12931
 
-{
12932
 
-  kDebug(DEBUG) << "..." << endl;
12933
 
-  _dictMngr->add("host msdfs",_interface->hostMsdfsChk);
12934
 
-
12935
 
-}
12936
 
-
12937
 
-void KcmSambaConf::loadLDAP(SambaShare*)
12938
 
-{
12939
 
-  kDebug(DEBUG) << "..." << endl;
12940
 
-  _dictMngr->add("ldap suffix", _interface->ldapSuffixEdit);
12941
 
-  _dictMngr->add("ldap machine suffix", _interface->ldapMachineSuffixEdit);
12942
 
-  _dictMngr->add("ldap user suffix", _interface->ldapUserSuffixEdit);
12943
 
-  _dictMngr->add("ldap group suffix", _interface->ldapGroupSuffixEdit);
12944
 
-  _dictMngr->add("ldap idmap suffix", _interface->ldapIdmapSuffixEdit);
12945
 
-  _dictMngr->add("ldap filter", _interface->ldapFilterEdit);
12946
 
-  _dictMngr->add("ldap admin dn", _interface->ldapAdminDnEdit);
12947
 
-  _dictMngr->add("idmap backend", _interface->idmapBackendEdit);
12948
 
-
12949
 
-  _dictMngr->add("ldap replication sleep",_interface->ldapReplicationSleepSpin);
12950
 
-
12951
 
-  _dictMngr->add("ldap delete dn",_interface->ldapDeleteDnChk);
12952
 
-
12953
 
-  _dictMngr->add("ldap ssl", _interface->ldapSslCombo,
12954
 
-                 new QStringList(QStringList() << "No" << "Start_tls" << "Yes"));
12955
 
-
12956
 
-  _dictMngr->add("ldap sync", _interface->ldapSyncCombo,
12957
 
-                 new QStringList(QStringList() << "Yes" << "No" << "Only"));
12958
 
-
12959
 
-
12960
 
-}
12961
 
-
12962
 
-void KcmSambaConf::loadBrowsing(SambaShare*)
12963
 
-{
12964
 
-  kDebug(DEBUG) << "..." << endl;
12965
 
-  _dictMngr->add("enhanced browsing",_interface->enhancedBrowsingChk);
12966
 
-  _dictMngr->add("browse list",_interface->browseListChk);
12967
 
-  _dictMngr->add("lm interval", _interface->lmIntervalSpin);
12968
 
-  _dictMngr->add("remote browse sync", _interface->remoteBrowseSyncEdit);
12969
 
-  _dictMngr->add("preload", _interface->preloadEdit);
12970
 
-
12971
 
-  _dictMngr->add("lm announce", _interface->lmAnnounceCombo,
12972
 
-                 new QStringList(QStringList() << "Yes" << "No" << "Auto"));
12973
 
-}
12974
 
-
12975
 
-void KcmSambaConf::loadCommands(SambaShare*)
12976
 
-{
12977
 
-  kDebug(DEBUG) << "..." << endl;
12978
 
-  _dictMngr->add("add share command", _interface->addShareCommandEdit);
12979
 
-  _dictMngr->add("change share command", _interface->changeShareCommandEdit);
12980
 
-  _dictMngr->add("delete share command", _interface->deleteShareCommandEdit);
12981
 
-  _dictMngr->add("message command", _interface->messageCommandEdit);
12982
 
-  _dictMngr->add("dfree command", _interface->dfreeCommandEdit);
12983
 
-  _dictMngr->add("set quota command", _interface->setQuotaCommandEdit);
12984
 
-  _dictMngr->add("get quota command", _interface->getQuotaCommandEdit);
12985
 
-  _dictMngr->add("panic action", _interface->panicActionEdit);
12986
 
-
12987
 
-}
12988
 
-
12989
 
-void KcmSambaConf::setComboIndexToValue(QComboBox* box, const QString & value, SambaShare* share)
12990
 
-{
12991
 
-  kDebug(DEBUG) << "..." << endl;
12992
 
-  QString text = share->getValue(value,false,true);
12993
 
-  int i = box->findText(text,Qt::MatchExactly);
12994
 
-  box->setCurrentItem(i);
12995
 
-}
12996
 
-
12997
 
-
12998
 
-void KcmSambaConf::loadMisc(SambaShare*)
12999
 
-{
13000
 
-  kDebug(DEBUG) << "..." << endl;
13001
 
-  _dictMngr->add("preload modules", _interface->preloadModulesEdit);
13002
 
-  _dictMngr->add("default service", _interface->defaultServiceEdit);
13003
 
-  _dictMngr->add("remote announce", _interface->remoteAnnounceEdit);
13004
 
-  _dictMngr->add("homedir map", _interface->homedirMapEdit);
13005
 
-  _dictMngr->add("source environment", _interface->sourceEnvironmentEdit);
13006
 
-
13007
 
-  _dictMngr->add("utmp directory",_interface->utmpDirectoryUrlRq);
13008
 
-  _dictMngr->add("wtmp directory",_interface->wtmpDirectoryUrlRq);
13009
 
-
13010
 
-  _dictMngr->add("NIS homedir", _interface->nisHomedirChk);
13011
 
-  _dictMngr->add("time offset", _interface->timeOffsetSpin);
13012
 
-}
13013
 
-
13014
 
-void KcmSambaConf::loadDebug(SambaShare*) {
13015
 
-  kDebug(DEBUG) << "..." << endl;
13016
 
-  _dictMngr->add("nt status support", _interface->ntStatusSupportChk);
13017
 
-}
13018
 
-
13019
 
-
13020
 
-
13021
 
-void KcmSambaConf::loadUserTab()
13022
 
-{
13023
 
-  kDebug(DEBUG) << "..." << endl;
13024
 
-  // Remote editing of users isn't supported yet
13025
 
-  if ( _sambaFile->isRemoteFile()) {
13026
 
-    _interface->mainTab->widget(3)->setEnabled(false);
13027
 
-    return;
13028
 
-  } else
13029
 
-    _interface->mainTab->widget(3)->setEnabled(true);
13030
 
-
13031
 
-
13032
 
-  SambaShare* share = _sambaFile->getShare("global");
13033
 
-
13034
 
-  QStringList added;
13035
 
-
13036
 
-  SmbPasswdFile passwd( KUrl(share->getValue("smb passwd file",true,true)) );
13037
 
-  SambaUserList sambaList = passwd.getSambaUserList();
13038
 
-  _interface->sambaUsersListView->clear();
13039
 
-  SambaUser *user;
13040
 
-  for ( user = sambaList.first(); user; user = sambaList.next() )
13041
 
-  {
13042
 
-    QMultiCheckListItem* item = new QMultiCheckListItem(_interface->sambaUsersListView);
13043
 
-    item->setText(0,user->name);
13044
 
-    item->setText(1,QString::number(user->uid));
13045
 
-    item->setOn(COL_DISABLED,user->isDisabled);
13046
 
-    item->setOn(COL_NOPASSWORD,user->hasNoPassword);
13047
 
-
13048
 
-    if ( ! _interface->nullPasswordsChk->isOn())
13049
 
-      item->setDisabled(COL_NOPASSWORD, true);
13050
 
-
13051
 
-    added.append(user->name);
13052
 
-
13053
 
-
13054
 
-  }
13055
 
-
13056
 
-  _interface->unixUsersListView->clear();
13057
 
-
13058
 
-  UnixUserList unixList = getUnixUserList();
13059
 
-  UnixUser *unixUser;
13060
 
-  for ( unixUser = unixList.first(); unixUser; unixUser = unixList.next() )
13061
 
-  {
13062
 
-    QStringList::Iterator it;
13063
 
-
13064
 
-    it=added.find(unixUser->name);
13065
 
-    if (it == added.end())
13066
 
-        new K3ListViewItem(_interface->unixUsersListView, unixUser->name, QString::number(unixUser->uid));
13067
 
-  }
13068
 
-
13069
 
-  _interface->unixUsersListView->setSelectionMode(Q3ListView::Extended);
13070
 
-  _interface->sambaUsersListView->setSelectionMode(Q3ListView::Extended);
13071
 
-
13072
 
-}
13073
 
-
13074
 
-void KcmSambaConf::joinADomainBtnClicked() {
13075
 
-  JoinDomainDlg *dlg = new JoinDomainDlg();
13076
 
-  dlg->domainEdit->setText(_interface->workgroupEdit->text());
13077
 
-  dlg->domainControllerEdit->setText(_interface->passwordServerEdit->text());
13078
 
-
13079
 
-  int result = dlg->exec();
13080
 
-
13081
 
-  if (result == QDialog::Accepted) {
13082
 
-    SmbPasswdFile passwd;
13083
 
-    if (!passwd.joinADomain(dlg->domainEdit->text(),
13084
 
-                            dlg->domainControllerEdit->text(),
13085
 
-                            dlg->usernameEdit->text(),
13086
 
-                            dlg->passwordEdit->text()))
13087
 
-    {
13088
 
-      KMessageBox::sorry(0,i18n("Joining the domain %1 failed.", dlg->domainEdit->text()));
13089
 
-    }
13090
 
-  }
13091
 
-  delete dlg;
13092
 
-}
13093
 
-
13094
 
-
13095
 
-void KcmSambaConf::slotMouseButtonPressed(int,Q3ListViewItem* item,const QPoint &,int col) {
13096
 
-  if (col < 2)
13097
 
-    return;
13098
 
-
13099
 
-  SambaShare* share = _sambaFile->getShare("global");
13100
 
-  SmbPasswdFile passwd( KUrl(share->getValue("smb passwd file",true,true)) );
13101
 
-  QMultiCheckListItem* i = static_cast<QMultiCheckListItem*>(item);
13102
 
-  SambaUser user( item->text(0), item->text(1).toInt() );
13103
 
-  user.isDisabled = i->isOn(COL_DISABLED);
13104
 
-  user.hasNoPassword = i->isOn(COL_NOPASSWORD);
13105
 
-
13106
 
-  if (!i->isDisabled(col))
13107
 
-  {
13108
 
-
13109
 
-    switch(col) {
13110
 
-      case COL_DISABLED :
13111
 
-        if (i->isOn(col))
13112
 
-          passwd.enableUser(user);
13113
 
-        else
13114
 
-          passwd.disableUser(user);
13115
 
-        break;
13116
 
-      case COL_NOPASSWORD :
13117
 
-        if (i->isOn(col)) {
13118
 
-          sambaUserPasswordBtnClicked();
13119
 
-          return; // the item is already set off by the btnClicked method
13120
 
-        }
13121
 
-        else
13122
 
-          passwd.setNoPassword(user);
13123
 
-        break;
13124
 
-    }
13125
 
-
13126
 
-    i->toggle(col);
13127
 
-  }
13128
 
-}
13129
 
-
13130
 
-void KcmSambaConf::nullPasswordsEnabled(bool b)
13131
 
-{
13132
 
-  Q3ListViewItemIterator it( _interface->sambaUsersListView );
13133
 
-  for ( ; it.current(); ++it ) {
13134
 
-    QMultiCheckListItem* sambaItem = static_cast<QMultiCheckListItem*>(it.current());
13135
 
-    sambaItem->setDisabled(COL_NOPASSWORD,!b);
13136
 
-
13137
 
-  }
13138
 
-}
13139
 
-
13140
 
-void KcmSambaConf::saveUserTab()
13141
 
-{
13142
 
-}
13143
 
-
13144
 
-void KcmSambaConf::addSambaUserBtnClicked()
13145
 
-{
13146
 
-  QList<Q3ListViewItem*> list = _interface->unixUsersListView->selectedItems();
13147
 
-
13148
 
-  SambaShare* share = _sambaFile->getShare("global");
13149
 
-  SmbPasswdFile passwd( KUrl(share->getValue("smb passwd file",true,true)) );
13150
 
-
13151
 
-  foreach ( Q3ListViewItem* item, list ) {
13152
 
-    SambaUser user( item->text(0), item->text(1).toInt() );
13153
 
-
13154
 
-    QByteArray password;
13155
 
-    int passResult = K3PasswordDialog::getNewPassword(this,password,
13156
 
-                        i18n("<qt>Please enter a password for the user <b>%1</b></qt>", user.name));
13157
 
-    if (passResult != K3PasswordDialog::Accepted) {
13158
 
-       list.removeAll(item);
13159
 
-       continue;
13160
 
-    }
13161
 
-
13162
 
-    if (!passwd.addUser(user,password))
13163
 
-    {
13164
 
-      KMessageBox::sorry(0,i18n("<qt>Adding the user <b>%1</b> to the Samba user database failed.</qt>", user.name));
13165
 
-      break;
13166
 
-    }
13167
 
-
13168
 
-    QMultiCheckListItem* sambaItem = new QMultiCheckListItem(_interface->sambaUsersListView);
13169
 
-    sambaItem->setText(0,user.name);
13170
 
-    sambaItem->setText(1,QString::number(user.uid));
13171
 
-    sambaItem->setOn(COL_DISABLED,false);
13172
 
-    sambaItem->setOn(COL_NOPASSWORD,false);
13173
 
-    if ( ! _interface->nullPasswordsChk->isOn())
13174
 
-      sambaItem->setDisabled(COL_NOPASSWORD, true);
13175
 
-
13176
 
-
13177
 
-    list.removeAll(item);
13178
 
-    delete item;
13179
 
-  }
13180
 
-}
13181
 
-
13182
 
-void KcmSambaConf::removeSambaUserBtnClicked()
13183
 
-{
13184
 
-  QList<Q3ListViewItem*> list = _interface->sambaUsersListView->selectedItems();
13185
 
-
13186
 
-  SambaShare* share = _sambaFile->getShare("global");
13187
 
-  SmbPasswdFile passwd( KUrl(share->getValue("smb passwd file",true,true)) );
13188
 
-
13189
 
-  foreach ( Q3ListViewItem* item, list ) {
13190
 
-    SambaUser user( item->text(0), item->text(1).toInt() );
13191
 
-    if (!passwd.removeUser(user))
13192
 
-    {
13193
 
-      KMessageBox::sorry(0,i18n("Removing the user %1 from the Samba user database failed.", user.name));
13194
 
-      continue;
13195
 
-    }
13196
 
-
13197
 
-    new K3ListViewItem(_interface->unixUsersListView, item->text(0), item->text(1));
13198
 
-    list.removeAll(item);
13199
 
-    delete item;
13200
 
-  }
13201
 
-}
13202
 
-
13203
 
-void KcmSambaConf::sambaUserPasswordBtnClicked()
13204
 
-{
13205
 
-  QList<Q3ListViewItem*> list = _interface->sambaUsersListView->selectedItems();
13206
 
-
13207
 
-  SambaShare* share = _sambaFile->getShare("global");
13208
 
-  SmbPasswdFile passwd( KUrl(share->getValue("smb passwd file",true,true)) );
13209
 
-
13210
 
-  foreach ( Q3ListViewItem* item, list ) {
13211
 
-    SambaUser user( item->text(0), item->text(1).toInt() );
13212
 
-
13213
 
-    QByteArray password;
13214
 
-    int passResult = K3PasswordDialog::getNewPassword(this,password,
13215
 
-                        i18n("Please enter a password for the user %1", user.name));
13216
 
-    if (passResult != K3PasswordDialog::Accepted)
13217
 
-       return;
13218
 
-
13219
 
-    if (!passwd.changePassword(user,password))
13220
 
-    {
13221
 
-      KMessageBox::sorry(0,i18n("Changing the password of the user %1 failed.", user.name));
13222
 
-    } else {
13223
 
-      static_cast<QMultiCheckListItem*>(item)->setOn(COL_NOPASSWORD,false);
13224
 
-    }
13225
 
-
13226
 
-  }
13227
 
-
13228
 
-}
13229
 
-
13230
 
-
13231
 
-void KcmSambaConf::defaults() {
13232
 
-  // insert your default settings code here...
13233
 
-  emit changed(true);
13234
 
-}
13235
 
-
13236
 
-#define FILESHARECONF "/etc/security/fileshare.conf"
13237
 
-
13238
 
-void KcmSambaConf::save() {
13239
 
-  SambaShare *share = _sambaFile->getShare("global");
13240
 
-  assert(share);
13241
 
-
13242
 
-  kDebug(5009) << "saving ... ";
13243
 
-
13244
 
-  // Base settings
13245
 
-
13246
 
-  _smbconf = _interface->configUrlRq->url().path();
13247
 
-  KConfig config(QString::fromLatin1(FILESHARECONF), KConfig::SimpleConfig);
13248
 
-  config.group("").writeEntry("SMBCONF",_smbconf);
13249
 
-  config.sync();
13250
 
-
13251
 
-  // Security
13252
 
-
13253
 
-  QString s;
13254
 
-
13255
 
-  switch (_interface->securityLevelBtnGrp->id(_interface->securityLevelBtnGrp->selected())) {
13256
 
-    case 0 : s = "share";break;
13257
 
-    case 1 : s = "user";break;
13258
 
-    case 2 : s = "server";break;
13259
 
-    case 3 : s = "domain";break;
13260
 
-    case 4 : s = "ads";break;
13261
 
-  }
13262
 
-
13263
 
-  share->setValue("security",s);
13264
 
-
13265
 
-
13266
 
-//  share->setValue("security",_interface->securityLevelCombo->currentText());
13267
 
-  share->setValue("map to guest",_interface->mapToGuestCombo->currentText());
13268
 
-
13269
 
-  share->setValue("guest account",_interface->guestAccountCombo->currentText());
13270
 
-
13271
 
-  if (_interface->otherWinsRadio->isChecked())
13272
 
-    share->setValue("wins server",_interface->winsServerEdit->text(), false,true);
13273
 
-  else
13274
 
-    share->setValue("wins server",QString(""), false,true);
13275
 
-
13276
 
-  // socket options
13277
 
-
13278
 
-  s = socketOptions();
13279
 
-  share->setValue("socket options",s,false,true);
13280
 
-
13281
 
-
13282
 
-  _dictMngr->save( share,false,true );
13283
 
-
13284
 
-  _sambaFile->slotApply();
13285
 
-
13286
 
-}
13287
 
-
13288
 
-bool KcmSambaConf::getSocketBoolValue( const QString & str, const QString & name )
13289
 
-{
13290
 
-  QString s = str;
13291
 
-  int i = s.indexOf(name, Qt::CaseInsensitive );
13292
 
-
13293
 
-  if (i > -1)
13294
 
-  {
13295
 
-    s = s.remove(0,i+1+QString(name).length());
13296
 
-
13297
 
-    if ( s.startsWith("=") )
13298
 
-    {
13299
 
-      s = s.remove(0,1);
13300
 
-      if ( s.startsWith("0"))
13301
 
-        return false;
13302
 
-      else
13303
 
-        return true;
13304
 
-    }
13305
 
-    else
13306
 
-      return true;
13307
 
-  }
13308
 
-
13309
 
-  return false;
13310
 
-}
13311
 
-
13312
 
-int KcmSambaConf::getSocketIntValue( const QString & str, const QString & name )
13313
 
-{
13314
 
-    QString s = str;
13315
 
-    int i = s.indexOf(name,Qt::CaseInsensitive );
13316
 
-
13317
 
-    if (i > -1)
13318
 
-    {
13319
 
-      s = s.remove(0,i+name.length());
13320
 
-      if ( s.startsWith("=") )
13321
 
-      {
13322
 
-        s = s.remove(0,1);
13323
 
-
13324
 
-        i = s.indexOf(' ');
13325
 
-        if (i < 0)
13326
 
-          i = s.length();
13327
 
-        else
13328
 
-          i++;
13329
 
-
13330
 
-        s = s.left( i );
13331
 
-
13332
 
-        return s.toInt();
13333
 
-      }
13334
 
-      else
13335
 
-        return 0;
13336
 
-    }
13337
 
-
13338
 
-    return 0;
13339
 
-}
13340
 
-
13341
 
-QString KcmSambaConf::socketOptions()
13342
 
-{
13343
 
-  QString s = "";
13344
 
-
13345
 
-  if ( _interface->SO_KEEPALIVEChk->isChecked() )
13346
 
-    s+="SO_KEEPALIVE ";
13347
 
-
13348
 
-  if ( _interface->SO_REUSEADDRChk->isChecked() )
13349
 
-    s+= "SO_REUSEADDR ";
13350
 
-
13351
 
-  if ( _interface->SO_BROADCASTChk->isChecked() )
13352
 
-    s+= "SO_BROADCAST ";
13353
 
-
13354
 
-  if ( _interface->TCP_NODELAYChk->isChecked() )
13355
 
-    s+= "TCP_NODELAY ";
13356
 
-
13357
 
-  if ( _interface->IPTOS_LOWDELAYChk->isChecked() )
13358
 
-    s+= "IPTOS_LOWDELAY ";
13359
 
-
13360
 
-  if ( _interface->IPTOS_THROUGHPUTChk->isChecked() )
13361
 
-    s+= "IPTOS_THROUGHPUT ";
13362
 
-
13363
 
-  if ( _interface->SO_SNDBUFChk->isChecked() ) {
13364
 
-    s+= "SO_SNDBUF=";
13365
 
-    s+= QString::number( _interface->SO_SNDBUFSpin->value() );
13366
 
-    s+= ' ';
13367
 
-  }
13368
 
-
13369
 
-  if ( _interface->SO_RCVBUFChk->isChecked() ) {
13370
 
-    s+= "SO_RCVBUF=";
13371
 
-    s+= QString::number( _interface->SO_RCVBUFSpin->value() );
13372
 
-    s+= ' ';
13373
 
-  }
13374
 
-
13375
 
-  if ( _interface->SO_SNDLOWATChk->isChecked() ) {
13376
 
-    s+= "SO_SNDLOWAT=";
13377
 
-    s+= QString::number( _interface->SO_SNDLOWATSpin->value() );
13378
 
-    s+= ' ';
13379
 
-  }
13380
 
-
13381
 
-  if ( _interface->SO_RCVLOWATChk->isChecked() ) {
13382
 
-    s+= "SO_RCVLOWAT=";
13383
 
-    s+= QString::number( _interface->SO_RCVLOWATSpin->value() );
13384
 
-    s+= ' ';
13385
 
-
13386
 
-  }
13387
 
-
13388
 
-  return s;
13389
 
-
13390
 
-}
13391
 
-
13392
 
-
13393
 
-int KcmSambaConf::buttons () {
13394
 
-  // KCModule::Default|KCModule::Apply|KCModule::Help;
13395
 
-  return KCModule::Apply;
13396
 
-}
13397
 
-
13398
 
-void KcmSambaConf::configChanged() {
13399
 
-  // insert your saving code here...
13400
 
-  emit changed(true);
13401
 
-}
13402
 
-
13403
 
-QString KcmSambaConf::quickHelp() const
13404
 
-{
13405
 
-  return i18n("<h1>Samba Configuration</h1> here you can configure your SAMBA server.");
13406
 
-}
13407
 
-
13408
 
-// ------------------------------------------------------------------------
13409
 
-
13410
 
-extern "C"
13411
 
-{
13412
 
-  KDE_EXPORT KCModule *create_KcmSambaConf(QWidget *parent, const char *name)
13413
 
-  {
13414
 
-    KGlobal::locale()->insertCatalog("kfileshare");
13415
 
-    KComponentData inst("kfileshare");
13416
 
-    return new KcmSambaConf(inst,parent, name);
13417
 
-  }
13418
 
-}
13419
 
-
13420
 
-#include "kcmsambaconf.moc"
13421
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/kcmsambaconf.desktop
13422
 
===================================================================
13423
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/kcmsambaconf.desktop       2011-02-25 16:47:35.000000000 -0500
13424
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
13425
 
@@ -1,179 +0,0 @@
13426
 
-[Desktop Entry]
13427
 
-Exec=kcmshell4 kcmsambaconf
13428
 
-Icon=preferences-system-network-share-windows
13429
 
-Type=Service
13430
 
-X-KDE-ServiceTypes=KCModule
13431
 
-
13432
 
-
13433
 
-Terminal=false
13434
 
-X-KDE-FactoryName=KcmSambaConf
13435
 
-X-KDE-Library=kcm_kcmsambaconf
13436
 
-X-KDE-ModuleType=Library
13437
 
-X-KDE-SubstituteUID=false
13438
 
-X-KDE-HasReadOnlyMode=true
13439
 
-X-KDE-RootOnly=true
13440
 
-X-KDE-ParentApp=kcontrol
13441
 
-X-KDE-System-Settings-Parent-Category=sharing
13442
 
-Categories=Qt;KDE;X-KDE-settings-network;Settings;
13443
 
-OnlyShowIn=KDE;
13444
 
-
13445
 
-Comment=A module to configure shares for Microsoft Windows
13446
 
-Comment[ar]=وحدة لإعداد مشاركة ميكروسوفت ويندوز
13447
 
-Comment[ast]=Un módulu pa configurar recursos compartíos de Microsoft Windows
13448
 
-Comment[be]=Модуль настаўлення агульных рэсурсаў для Microsoft Windows
13449
 
-Comment[bg]=Настройване споделянето на ресурси с Майкрософт Уиндоус
13450
 
-Comment[bn]=মাইক্রোসফ্ট উইন্ডোজের জন্য ভাগাভাগি কনফিগার করতে একটি মডিউল
13451
 
-Comment[ca]=Un mòdul per configurar els recursos compartits de Microsoft Windows
13452
 
-Comment[ca@valencia]=Un mòdul per configurar els recursos compartits de Microsoft Windows
13453
 
-Comment[cs]=Modul pro konfiguraci sdílených prostředků MS Windows
13454
 
-Comment[da]=Et modul til at indstille delte ressourcer til Microsoft Windows
13455
 
-Comment[de]=Modul zum Einrichten von Windows-Freigaben
13456
 
-Comment[el]=Ένα άρθρωμα για τη ρύθμιση κοινοχρήστων για τα Microsoft Windows
13457
 
-Comment[en_GB]=A module to configure shares for Microsoft Windows
13458
 
-Comment[eo]=Modulo por agordi la komunajn dosierojn por Vindozo
13459
 
-Comment[es]=Un módulo para configurar recursos compartidos de Microsoft Windows
13460
 
-Comment[et]=Microsoft Windowsi jagatud ressursside seadistusmoodul
13461
 
-Comment[eu]=Microsoft Windows-entzako partekatzea konfiguratzeko modulu bat
13462
 
-Comment[fa]=یک پیمانه جهت پیکربندی مشترکات برای میکروسافت ویندوز
13463
 
-Comment[fi]=Moduuli Microsoft Windows -jakojen asettamiseen
13464
 
-Comment[fr]=Un module permettant de configurer les partages Microsoft Windows
13465
 
-Comment[ga]=Modúl lenar féidir comhranna Windows a chumrú
13466
 
-Comment[gl]=Un módulo para configurar os compartimentos con Microsoft Windows
13467
 
-Comment[he]=מודול להגדרת שיתופים עם חלונות של מיקרוסופט
13468
 
-Comment[hi]=एक मॉड्यूल जो आपको माइक्रोसॉफ़्ट विंडोज के लिए साझा को कॉन्फ़िगर करने देता है.
13469
 
-Comment[hne]=एक माड्यूल जऊन आप मन ल माइक्रोसाफ्ट विंडोज बर साझा ल कान्फिगर करन देथे .
13470
 
-Comment[hr]=Modul za podešavanje dijeljenja za Microsoft Windows
13471
 
-Comment[hu]=Beállítómodul Microsoft Windows-os megosztásokhoz
13472
 
-Comment[ia]=Un modulo pro configurar areas compartite per Microsoft Windows
13473
 
-Comment[is]=Eining til að stilla sameignir fyrir Microsoft Windows
13474
 
-Comment[it]=Un modulo per configurare le condivisioni per Microsoft Windows
13475
 
-Comment[ja]=Microsoft Windows との共有設定
13476
 
-Comment[kk]=Microsoft Windows-пен ортақ ресурстарды баптау модулі
13477
 
-Comment[km]=ម៉ូឌុល​ដើម្បី​កំណត់​រចនា​សម្ព័ន្ធ​ការ​ចែក​រំលែក​សម្រាប់​ម៉ៃក្រូសូហ្វ​វីនដូ
13478
 
-Comment[ko]=마이크로소프트 윈도 공유 설정 모듈
13479
 
-Comment[lt]=Modulis MS Windows dalinamų diskų konfigūravimui
13480
 
-Comment[lv]=Microsoft Windows kopīgojumu konfigurācijas modulis
13481
 
-Comment[ml]=മൈക്രോസോഫ്റ്റ് വിന്‍ഡോസുമായി പങ്കിടുന്നതു് ക്രമീകരിയ്ക്കാനുള്ള ഒരു ഘടകം
13482
 
-Comment[nb]=En modul som setter opp delte ressurser for Microsoft Windows
13483
 
-Comment[nds]=Moduul för't Instellen vun Microsoft-Windows-Freegaven
13484
 
-Comment[ne]=माइक्रोसफ्ट विन्डोजका लागि साझेदारी कन्फिगर गर्न मोड्युल
13485
 
-Comment[nl]=Een module voor het instellen van shares voor Microsoft Windows
13486
 
-Comment[nn]=Ein modul for oppsett av delte Microsoft Windows-ressursar
13487
 
-Comment[pa]=ਮਾਈਕਰੋਸਾਫਟ ਵਿੰਡੋਜ਼ ਲਈ ਸ਼ੇਅਰ ਸੰਰਚਨਾ ਲਈ ਇੱਕ ਮੋਡੀਊਲ
13488
 
-Comment[pl]=Moduł do konfigurowania udziałów Microsoft Windows
13489
 
-Comment[pt]=Um módulo para configurar partilhas para o Microsoft Windows
13490
 
-Comment[pt_BR]=Um módulo para configurar compartilhamentos com o Microsoft Windows
13491
 
-Comment[ro]=Modul de configurare a partajărilor pentru Microsoft Windows
13492
 
-Comment[ru]=Модуль настройки общих ресурсов для Microsoft Windows
13493
 
-Comment[sk]=Modul na konfiguráciu zdieľaní pre Microsoft Windows
13494
 
-Comment[sl]=Modul za nastavitev souporabe map za Microsoft Windows
13495
 
-Comment[sr]=Модул за подешавање дељења за Мајкрософтов Виндоуз
13496
 
-Comment[sr@ijekavian]=Модул за подешавање дијељења за Мајкрософтов Виндоуз
13497
 
-Comment[sr@ijekavianlatin]=Modul za podešavanje dijeljenja za Microsoftov Windows
13498
 
-Comment[sr@latin]=Modul za podešavanje deljenja za Microsoftov Windows
13499
 
-Comment[sv]=En modul för att ställa in kataloger delade med Microsoft Windows
13500
 
-Comment[tr]=Microsoft Windows paylaşımlarını yapılandırmak için bir modül
13501
 
-Comment[uk]=Модуль налаштування спільних ресурсів для Microsoft Windows
13502
 
-Comment[vi]=Một môđun để cấu hình chia sẻ với Microsoft Windows
13503
 
-Comment[x-test]=xxA module to configure shares for Microsoft Windowsxx
13504
 
-Comment[zh_CN]=配置 Microsoft Windows 共享的模块
13505
 
-Comment[zh_HK]=設定 Microsoft Windows 分享資源的模組
13506
 
-Comment[zh_TW]=設定 Microsoft Windows 分享的模組
13507
 
-X-KDE-Keywords=KcmSambaConf,kcmsambaconf,samba,windows,share
13508
 
-X-KDE-Keywords[bg]=Keywords=Самба, Уиндоус, мрежа, споделяне, KcmSambaConf, kcmsambaconf, samba, windows, share
13509
 
-X-KDE-Keywords[ca]=KcmSambaConf,kcmsambaconf,samba,windows,share,recurs compartit
13510
 
-X-KDE-Keywords[cs]=Samba,nastavení,windows,sdílení
13511
 
-X-KDE-Keywords[de]=KcmSambaConf,kcmsambaconf,samba,windows,freigabe,share
13512
 
-X-KDE-Keywords[et]=KcmSambaConf,kcmsambaconf,samba,windows,jagatud ressursid
13513
 
-X-KDE-Keywords[eu]=KcmSambaConf,kcmsambaconf,samba,windows,partekatze
13514
 
-X-KDE-Keywords[fa]=KcmSambaConf، kcmsambaconf، samba، ویندوز، مشترک
13515
 
-X-KDE-Keywords[fi]=KcmSambaConf,kcmsambaconf,samba,windows,jako
13516
 
-X-KDE-Keywords[fr]=KcmSambaConf,kcmsambaconf,samba,windows,partage
13517
 
-X-KDE-Keywords[gl]=KcmSambaConf,kcmsambaconf,samba,widows,compartir
13518
 
-X-KDE-Keywords[he]=KcmSambaConf,kcmsambaconf,samba,windows,share, סמבה, חלונות, שיתוף, שיתופי חלונות
13519
 
-X-KDE-Keywords[hu]=KcmSambaConf,kcmsambaconf,samba,windows,megosztás
13520
 
-X-KDE-Keywords[is]=KcmSambaConf,kcmsambaconf,samba,windows,sameign
13521
 
-X-KDE-Keywords[it]=KcmSambaConf,kcmsambaconf,samba,windows,condivisione
13522
 
-X-KDE-Keywords[ja]=KcmSambaConf,kcmsambaconf,samba,windows,共有
13523
 
-X-KDE-Keywords[km]=KcmSambaConf,kcmsambaconf,samba,បង្អួច,ចែក​រំលែក
13524
 
-X-KDE-Keywords[ko]=KcmSambaConf,kcmsambaconf,samba,윈도,windows,공유
13525
 
-X-KDE-Keywords[lt]=KcmSambaConf,kcmsambaconf,samba,windows,share,dalinimasis,dalintis,pasidalinti
13526
 
-X-KDE-Keywords[nb]=KcmSambaConf,kcmsambaconf,samba,windows,delt,ressurs
13527
 
-X-KDE-Keywords[nds]=KcmSambaConf,kcmsambaconf,samba,windows,share,freegaav,freegaven
13528
 
-X-KDE-Keywords[ne]=KcmSambaConf,kcmsambaconf,साम्बा,विन्डोज,साझेदारी
13529
 
-X-KDE-Keywords[nl]=KcmSambaConf,kcmsambaconf,samba,windows netwerk,share,gedeelde mappen,gedeelde printers
13530
 
-X-KDE-Keywords[nn]=KcmSambaConf,kcmsambaconf,samba,Windows,delt ressurs
13531
 
-X-KDE-Keywords[pl]=KcmSambaConf,kcmsambaconf,samba,Samba,serwer,SMB,smb,windows,udział,dysk sieciowy
13532
 
-X-KDE-Keywords[pt]=KcmSambaConf,kcmsambaconf,Samba,Windows,partilha
13533
 
-X-KDE-Keywords[sl]=KcmSambaConf,kcmsambaconf,Samba,samba,souporaba,deljeno
13534
 
-X-KDE-Keywords[sv]=IM SAMBA-inställning,IM samba-inställning,Windows,dela
13535
 
-X-KDE-Keywords[uk]=KcmSambaConf,kcmsambaconf,samba,windows,share,спільні ресурси
13536
 
-X-KDE-Keywords[vi]=KcmSambaConf,kcmsambaconf,samba,windows,share, chia sẻ
13537
 
-X-KDE-Keywords[x-test]=xxKcmSambaConf,kcmsambaconf,samba,windows,sharexx
13538
 
-X-KDE-Keywords[zh_CN]=KcmSambaConf,kcmsambaconf,samba,windows,share,共享
13539
 
-Name=Samba
13540
 
-Name[ar]=سامبا
13541
 
-Name[ast]=Samba
13542
 
-Name[bg]=Самба
13543
 
-Name[bn]=সাম্বা
13544
 
-Name[br]=Samba
13545
 
-Name[ca]=Samba
13546
 
-Name[ca@valencia]=Samba
13547
 
-Name[cs]=Samba
13548
 
-Name[da]=Samba
13549
 
-Name[de]=Samba
13550
 
-Name[el]=Samba
13551
 
-Name[en_GB]=Samba
13552
 
-Name[eo]=Samba
13553
 
-Name[es]=Samba
13554
 
-Name[et]=Samba
13555
 
-Name[eu]=Samba
13556
 
-Name[fi]=Samba
13557
 
-Name[fr]=Samba
13558
 
-Name[ga]=Samba
13559
 
-Name[gl]=Samba
13560
 
-Name[he]=סמבה
13561
 
-Name[hi]=साम्बा
13562
 
-Name[hne]=साम्बा
13563
 
-Name[hr]=Samba
13564
 
-Name[hu]=Samba
13565
 
-Name[ia]=Samba
13566
 
-Name[is]=Samba
13567
 
-Name[it]=Samba
13568
 
-Name[ja]=Samba
13569
 
-Name[kk]=Samba
13570
 
-Name[km]=Samba
13571
 
-Name[ko]=Samba
13572
 
-Name[lt]=Samba
13573
 
-Name[lv]=Samba
13574
 
-Name[mai]=साम्बा
13575
 
-Name[ml]=സാംബ
13576
 
-Name[nb]=Samba
13577
 
-Name[nds]=Samba
13578
 
-Name[ne]=साम्बा
13579
 
-Name[nl]=Samba
13580
 
-Name[nn]=Samba
13581
 
-Name[oc]=Samba
13582
 
-Name[pa]=ਸਾਂਬਾ
13583
 
-Name[pl]=Samba
13584
 
-Name[pt]=Samba
13585
 
-Name[pt_BR]=Samba
13586
 
-Name[ro]=Samba
13587
 
-Name[ru]=Samba
13588
 
-Name[sk]=Samba
13589
 
-Name[sl]=Samba
13590
 
-Name[sr]=Самба
13591
 
-Name[sr@ijekavian]=Самба
13592
 
-Name[sr@ijekavianlatin]=Samba
13593
 
-Name[sr@latin]=Samba
13594
 
-Name[sv]=Samba
13595
 
-Name[tr]=Samba
13596
 
-Name[uk]=Samba
13597
 
-Name[uz]=Samba
13598
 
-Name[uz@cyrillic]=Samba
13599
 
-Name[vi]=Samba
13600
 
-Name[wa]=Samba
13601
 
-Name[x-test]=xxSambaxx
13602
 
-Name[zh_CN]=Samba
13603
 
-Name[zh_HK]=Samba
13604
 
-Name[zh_TW]=Samba
13605
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/kcmsambaconf.h
13606
 
===================================================================
13607
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/kcmsambaconf.h     2011-01-19 17:21:04.000000000 -0500
13608
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
13609
 
@@ -1,162 +0,0 @@
13610
 
-/***************************************************************************
13611
 
-                          kcmsambaconf.h  -  description
13612
 
-                            -------------------
13613
 
-    begin                : Mon Apr  8 13:35:56 CEST 2002
13614
 
-    copyright            : (C) 2002 by Christian Nitschkowski
13615
 
-    email                : segfault_ii@web.de
13616
 
-    copyright            : (C) 2002-2003 by Jan Schäfer
13617
 
-    email                : janschaefer@users.sourceforge.net
13618
 
-***************************************************************************/
13619
 
-
13620
 
-/******************************************************************************
13621
 
-*                                                                            *
13622
 
-*  This file is part of KSambaPlugin.                                        *
13623
 
-*                                                                            *
13624
 
-*  KSambaPlugin is free software; you can redistribute it and/or modify      *
13625
 
-*  it under the terms of the GNU General Public License as published by      *
13626
 
-*  the Free Software Foundation; either version 2 of the License, or         *
13627
 
-*  (at your option) any later version.                                       *
13628
 
-*                                                                            *
13629
 
-*  KSambaPlugin is distributed in the hope that it will be useful,           *
13630
 
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
13631
 
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
13632
 
-*  GNU General Public License for more details.                              *
13633
 
-*                                                                            *
13634
 
-*  You should have received a copy of the GNU General Public License         *
13635
 
-*  along with KSambaPlugin; if not, write to the Free Software                     *
13636
 
-*  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
13637
 
-*                                                                            *
13638
 
-******************************************************************************/
13639
 
-
13640
 
-#ifndef KCMSAMBACONF_H_
13641
 
-#define KCMSAMBACONF_H_
13642
 
-
13643
 
-#include <kcmodule.h>
13644
 
-#include "kcminterface.h"
13645
 
-#include "ui_share.h"
13646
 
-#include <q3ptrlist.h>
13647
 
-#include <q3listview.h>
13648
 
-//Added by qt3to4:
13649
 
-#include <QPixmap>
13650
 
-
13651
 
-
13652
 
-class SambaShare;
13653
 
-class SambaFile;
13654
 
-class QPixmap;
13655
 
-/**
13656
 
-* A QListViewItem which holds a SambaShare object
13657
 
-**/
13658
 
-class ShareListViewItem : public Q3ListViewItem
13659
 
-{
13660
 
-public:
13661
 
-  ShareListViewItem(Q3ListView * parent, SambaShare* share);
13662
 
-
13663
 
-  SambaShare* getShare() const;
13664
 
-  void setShare(SambaShare* share);
13665
 
-  void updateShare();
13666
 
-
13667
 
-protected:
13668
 
-  SambaShare* _share;
13669
 
-  QPixmap createPropertyPixmap();
13670
 
-};
13671
 
-
13672
 
-
13673
 
-class KPageWidget;
13674
 
-class DictManager;
13675
 
-class SmbConfConfigWidget;
13676
 
-
13677
 
-class KcmSambaConf: public KCModule
13678
 
-{
13679
 
-  Q_OBJECT
13680
 
-  public:
13681
 
-    KcmSambaConf(const KComponentData &inst ,QWidget *parent = 0L, const char *name = 0L);
13682
 
-    virtual ~KcmSambaConf();
13683
 
-
13684
 
-    void load(const QString &);
13685
 
-    void save();
13686
 
-    void defaults();
13687
 
-    int buttons();
13688
 
-    QString quickHelp() const;
13689
 
-
13690
 
-  public slots:
13691
 
-    void configChanged();
13692
 
-
13693
 
-    void editShare();
13694
 
-    void addShare();
13695
 
-    void removeShare();
13696
 
-
13697
 
-#if 0
13698
 
-    void editPrinter();
13699
 
-    void addPrinter();
13700
 
-    void removePrinter();
13701
 
-#endif
13702
 
-
13703
 
-    void editShareDefaults();
13704
 
-#if 0
13705
 
-    void editPrinterDefaults();
13706
 
-#endif
13707
 
-
13708
 
-
13709
 
-  protected:
13710
 
-    /**
13711
 
-    * The path of the smb.conf file
13712
 
-    **/
13713
 
-    QString _smbconf;
13714
 
-    SambaFile* _sambaFile;
13715
 
-
13716
 
-    DictManager* _dictMngr;
13717
 
-
13718
 
-    void init();
13719
 
-    void loadUserTab();
13720
 
-    void saveUserTab();
13721
 
-    bool getSocketBoolValue( const QString & str, const QString & name );
13722
 
-    int getSocketIntValue( const QString & str, const QString & name );
13723
 
-    QString socketOptions();
13724
 
-    void setComboIndexToValue(QComboBox* box, const QString & value, SambaShare* share);
13725
 
-
13726
 
-    void loadBaseSettings(SambaShare*s=0L);
13727
 
-    void loadSecurity(SambaShare* );
13728
 
-    void loadLogging(SambaShare* );
13729
 
-    void loadTuning(SambaShare* );
13730
 
-    void loadDomain(SambaShare* );
13731
 
-    void loadWins(SambaShare* );
13732
 
-    void loadPrinting(SambaShare* );
13733
 
-    void loadFilenames(SambaShare* );
13734
 
-    void loadLocking(SambaShare* );
13735
 
-    void loadCharset(SambaShare*);
13736
 
-    void loadLogon(SambaShare* );
13737
 
-    void loadSocket(SambaShare* );
13738
 
-    void loadSSL(SambaShare* );
13739
 
-    void loadProtocol(SambaShare* );
13740
 
-    void loadWinbind(SambaShare* );
13741
 
-    void loadNetbios(SambaShare* );
13742
 
-    void loadVFS(SambaShare* );
13743
 
-    void loadBrowsing(SambaShare* );
13744
 
-    void loadCommands(SambaShare*);
13745
 
-    void loadMisc(SambaShare* );
13746
 
-    void loadDebug(SambaShare* );
13747
 
-    void loadLDAP(SambaShare*);
13748
 
-
13749
 
-    void initAdvancedTab();
13750
 
-
13751
 
-    void createSmbConfigWidget();
13752
 
-    
13753
 
-  protected slots:
13754
 
-    void addSambaUserBtnClicked();
13755
 
-    void removeSambaUserBtnClicked();
13756
 
-    void sambaUserPasswordBtnClicked();
13757
 
-    void slotMouseButtonPressed(int,Q3ListViewItem*,const QPoint &,int);
13758
 
-    void joinADomainBtnClicked();
13759
 
-    void nullPasswordsEnabled(bool);
13760
 
-    void loadBtnClicked();
13761
 
-    void loadCanceled(const QString & msg);
13762
 
-    void fillFields(); 
13763
 
-    void slotSpecifySmbConf(const QString &);
13764
 
-    
13765
 
-  private:
13766
 
-    KcmInterface* _interface;
13767
 
-    KPageWidget* _janus;
13768
 
-    SmbConfConfigWidget* m_smbConfConfigWidget;
13769
 
-};
13770
 
-
13771
 
-#endif
13772
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/linuxpermissionchecker.cpp
13773
 
===================================================================
13774
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/linuxpermissionchecker.cpp 2011-01-19 17:21:04.000000000 -0500
13775
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
13776
 
@@ -1,203 +0,0 @@
13777
 
-/***************************************************************************
13778
 
-    begin                : Tue May 17 2003
13779
 
-    copyright            : (C) 2003 by Jan Sch�er
13780
 
-    email                : janschaefer@users.sourceforge.net
13781
 
- ***************************************************************************/
13782
 
-
13783
 
-/******************************************************************************
13784
 
- *                                                                            *
13785
 
- *  This file is part of KSambaPlugin.                                        *
13786
 
- *                                                                            *
13787
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify      *
13788
 
- *  it under the terms of the GNU General Public License as published by      *
13789
 
- *  the Free Software Foundation; either version 2 of the License, or         *
13790
 
- *  (at your option) any later version.                                       *
13791
 
- *                                                                            *
13792
 
- *  KSambaPlugin is distributed in the hope that it will be useful,           *
13793
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
13794
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
13795
 
- *  GNU General Public License for more details.                              *
13796
 
- *                                                                            *
13797
 
- *  You should have received a copy of the GNU General Public License         *
13798
 
- *  along with KSambaPlugin; if not, write to the Free Software               *
13799
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
13800
 
- *                                                                            *
13801
 
- ******************************************************************************/
13802
 
-#include <qregexp.h> 
13803
 
-#include <qstringlist.h> 
13804
 
-
13805
 
-#include <kmessagebox.h>
13806
 
-#include <klocale.h>
13807
 
-#include <kdebug.h>
13808
 
-
13809
 
-#include "passwd.h"
13810
 
-#include "sambashare.h"  
13811
 
-#include "linuxpermissionchecker.h"
13812
 
-
13813
 
-LinuxPermissionChecker::LinuxPermissionChecker(SambaShare* share,QWidget* parent = 0L)
13814
 
-{
13815
 
-  m_sambaShare = share;
13816
 
-  m_parent = parent;
13817
 
-
13818
 
-  if (!share) {
13819
 
-    kWarning() << "WARNING: LinuxPermissionChecker: share is null !";
13820
 
-    return;        
13821
 
-  }
13822
 
-  
13823
 
-  m_fi = QFileInfo(share->getValue("path"));
13824
 
-  
13825
 
-  if ( ! m_fi.exists()) {
13826
 
-    kDebug(5009) << "LinuxPermissionChecker: path does not exists !";
13827
 
-  }
13828
 
-
13829
 
-}
13830
 
-
13831
 
-
13832
 
-LinuxPermissionChecker::~LinuxPermissionChecker()
13833
 
-{
13834
 
-}
13835
 
-
13836
 
-bool LinuxPermissionChecker::checkAllPermissions() {
13837
 
-  if (! m_sambaShare )
13838
 
-     return true;
13839
 
-     
13840
 
-  if ( ! m_fi.exists())
13841
 
-     return true;   
13842
 
-
13843
 
-  if (! checkPublicPermissions())
13844
 
-     return false;     
13845
 
-     
13846
 
-  if (! checkAllUserPermissions())
13847
 
-     return false;
13848
 
-     
13849
 
-  return true;          
13850
 
-}
13851
 
-    
13852
 
-bool LinuxPermissionChecker::checkAllUserPermissions() {
13853
 
-  if (! m_sambaShare )
13854
 
-     return true;
13855
 
-
13856
 
-  if ( ! m_fi.exists())
13857
 
-     return true;   
13858
 
-       
13859
 
-  QStringList readList = QStringList::split(QRegExp("[,\\s]+"),m_sambaShare->getValue("read list"));
13860
 
-  
13861
 
-  for ( QStringList::Iterator it = readList.begin(); it != readList.end(); ++it )
13862
 
-  {
13863
 
-    if (!checkUserReadPermissions(*it))
13864
 
-       return false;
13865
 
-  }    
13866
 
-  
13867
 
-  QStringList writeList = QStringList::split(QRegExp("[,\\s]+"),m_sambaShare->getValue("write list"));
13868
 
-  
13869
 
-  for ( QStringList::Iterator it = writeList.begin(); it != writeList.end(); ++it )
13870
 
-  {
13871
 
-    if (!checkUserWritePermissions(*it))
13872
 
-       return false;
13873
 
-  }    
13874
 
-  
13875
 
-  return true;     
13876
 
-}
13877
 
-
13878
 
-bool LinuxPermissionChecker::checkPublicPermissions() {
13879
 
-  if (! m_sambaShare )
13880
 
-     return true;
13881
 
-
13882
 
-  bool isPublic = m_sambaShare->getBoolValue("public");
13883
 
-  if (!isPublic)
13884
 
-     return true;
13885
 
-  
13886
 
-  QString guestAccount = m_sambaShare->getValue("guest account");
13887
 
-  
13888
 
-  if ( ! checkUserReadPermissions(guestAccount,false))
13889
 
-  {
13890
 
-     if (KMessageBox::Cancel == KMessageBox::warningContinueCancel(
13891
 
-         0L,i18n(
13892
 
-           "<qt>You have specified <b>public read access</b> for this directory, but "
13893
 
-           "the guest account <b>%1</b> does not have the necessary read permissions;<br />"
13894
 
-           "do you want to continue anyway?</qt>", guestAccount)
13895
 
-           ,i18n("Warning")
13896
 
-           ,KStandardGuiItem::cont()
13897
 
-           ,KStandardGuiItem::cancel()
13898
 
-           ,"KSambaPlugin_guestAccountHasNoReadPermissionsWarning"))
13899
 
-         return false;
13900
 
-  }
13901
 
-  
13902
 
-  
13903
 
-  if ( ! checkUserWritePermissions(guestAccount,false))
13904
 
-  {
13905
 
-     if (KMessageBox::Cancel == KMessageBox::warningContinueCancel(
13906
 
-         0L,i18n(
13907
 
-           "<qt>You have specified <b>public write access</b> for this directory, but "
13908
 
-           "the guest account <b>%1</b> does not have the necessary write permissions;<br />"
13909
 
-           "do you want to continue anyway?</qt>", guestAccount)
13910
 
-           ,i18n("Warning")
13911
 
-           ,KStandardGuiItem::cont()
13912
 
-           ,KStandardGuiItem::cancel()
13913
 
-           ,"KSambaPlugin_guestAccountHasNoWritePermissionsWarning"))
13914
 
-         return false;
13915
 
-  }
13916
 
-  
13917
 
-  return true;
13918
 
-}
13919
 
-    
13920
 
-bool LinuxPermissionChecker::checkUserPermissions(const QString & user) {
13921
 
-  if ( ! checkUserReadPermissions(user))
13922
 
-     return false;  
13923
 
-  
13924
 
-  if ( ! checkUserWritePermissions(user))
13925
 
-     return false;    
13926
 
-       
13927
 
-  return true;     
13928
 
-}
13929
 
-
13930
 
-bool LinuxPermissionChecker::checkUserWritePermissions(const QString & user, bool showMessageBox) {
13931
 
-  // If no write permissions are given, we don't need to check them.
13932
 
-  if (m_sambaShare->getBoolValue("read only"))
13933
 
-     return true;
13934
 
-  
13935
 
-  if (! ((m_fi.permission(QFileInfo::WriteOther)) ||
13936
 
-          (m_fi.permission(QFileInfo::WriteUser) && user == m_fi.owner()) ||
13937
 
-          (m_fi.permission(QFileInfo::WriteGroup) && isUserInGroup(user, m_fi.group())))
13938
 
-      )
13939
 
-  {
13940
 
-    if (!showMessageBox)
13941
 
-      return false;
13942
 
-    
13943
 
-    if (KMessageBox::Cancel == KMessageBox::warningContinueCancel(
13944
 
-        0L,i18n(
13945
 
-          "<qt>You have specified <b>write access</b> to the user <b>%1</b> for this directory, but "
13946
 
-          "the user does not have the necessary write permissions;<br />"
13947
 
-          "do you want to continue anyway?</qt>", user)
13948
 
-          ,i18n("Warning")
13949
 
-          ,KStandardGuiItem::cont()
13950
 
-          ,KStandardGuiItem::cancel()
13951
 
-          ,"KSambaPlugin_userHasNoWritePermissionsWarning"))
13952
 
-        return false;
13953
 
-  }
13954
 
-  return true;
13955
 
-}
13956
 
-    
13957
 
-bool LinuxPermissionChecker::checkUserReadPermissions(const QString & user, bool showMessageBox) {
13958
 
-  if (! ((m_fi.permission(QFileInfo::ReadOther)) ||
13959
 
-         (m_fi.permission(QFileInfo::ReadUser) && user == m_fi.owner()) ||
13960
 
-         (m_fi.permission(QFileInfo::ReadGroup) && isUserInGroup(user, m_fi.group())))
13961
 
-     )
13962
 
-  {     
13963
 
-     if (!showMessageBox)
13964
 
-        return false;
13965
 
-        
13966
 
-     if (KMessageBox::Cancel == KMessageBox::warningContinueCancel(
13967
 
-         0L,i18n(
13968
 
-           "<qt>You have specified <b>read access</b> to the user <b>%1</b> for this directory, but "
13969
 
-           "the user does not have the necessary read permissions;<br />"
13970
 
-           "do you want to continue anyway?</qt>", user)
13971
 
-           ,i18n("Warning")
13972
 
-           ,KStandardGuiItem::cont()
13973
 
-           ,KStandardGuiItem::cancel()
13974
 
-           ,"KSambaPlugin_userHasNoReadPermissionsWarning"))
13975
 
-         return false;
13976
 
-  }
13977
 
-
13978
 
-  return true;
13979
 
-}
13980
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/linuxpermissionchecker.h
13981
 
===================================================================
13982
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/linuxpermissionchecker.h   2011-01-19 17:21:04.000000000 -0500
13983
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
13984
 
@@ -1,103 +0,0 @@
13985
 
-/***************************************************************************
13986
 
-    begin                : Tue May 17 2003
13987
 
-    copyright            : (C) 2003 by Jan Schäfer
13988
 
-    email                : janschaefer@users.sourceforge.net
13989
 
- ***************************************************************************/
13990
 
-
13991
 
-/******************************************************************************
13992
 
- *                                                                            *
13993
 
- *  This file is part of KSambaPlugin.                                        *
13994
 
- *                                                                            *
13995
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify      *
13996
 
- *  it under the terms of the GNU General Public License as published by      *
13997
 
- *  the Free Software Foundation; either version 2 of the License, or         *
13998
 
- *  (at your option) any later version.                                       *
13999
 
- *                                                                            *
14000
 
- *  KSambaPlugin is distributed in the hope that it will be useful,           *
14001
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
14002
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
14003
 
- *  GNU General Public License for more details.                              *
14004
 
- *                                                                            *
14005
 
- *  You should have received a copy of the GNU General Public License         *
14006
 
- *  along with KSambaPlugin; if not, write to the Free Software               *
14007
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
14008
 
- *                                                                            *
14009
 
- ******************************************************************************/
14010
 
-#ifndef LINUXPERMISSIONCHECKER_H
14011
 
-#define LINUXPERMISSIONCHECKER_H
14012
 
-
14013
 
-#include <qfileinfo.h>
14014
 
-
14015
 
-class SambaShare;
14016
 
-class QWidget;
14017
 
-
14018
 
-/**
14019
 
- * A class to check if the Samba permissions specified in the SambaShare fit 
14020
 
- * to the un?x permissions of the directory. E.g. a user specifies a SambaShare as writeable
14021
 
- * for the public, but the guest account has no write permissions for the directory of the
14022
 
- * SambaShare. This will cause a dialog (which can be turned of)  to popup and inform the
14023
 
- * user about the missing rights and ask him to continue nevertheless or to cancel.
14024
 
- * This class works for all un?x systems not only for Linux, but I couldn't call the
14025
 
- * class Un?xPermissionChecker ;-)
14026
 
- * @author Jan Schaefer
14027
 
- */
14028
 
-class LinuxPermissionChecker{
14029
 
-public:
14030
 
-    LinuxPermissionChecker(SambaShare*,QWidget* parent );
14031
 
-    ~LinuxPermissionChecker();
14032
 
-
14033
 
-    /**
14034
 
-     * Checks all possible errors that the user could made
14035
 
-     * @returns <ul>
14036
 
-     * <li><code>false</code> if the un?x permissions of the directory doesn't fit
14037
 
-     * to the specified permissions in the Samba share and the user has pushed
14038
 
-     * the cancel button of one of the dialogs, that informed her.
14039
 
-     * <li><code>true</code> if either there haven't been any problems with the un?x
14040
 
-     * permissions, or there have been problems, but the user pressed always the continue button.
14041
 
-     */
14042
 
-    bool checkAllPermissions();
14043
 
-
14044
 
-    /** 
14045
 
-     * Checks only the public permissions of the directory. First checks
14046
 
-     * if the Samba share is specified public and then checks if the guest account
14047
 
-     * has the appropriate rights.
14048
 
-     * @return @see #check
14049
 
-     */
14050
 
-    bool checkPublicPermissions();
14051
 
-    
14052
 
-    /**
14053
 
-     * Checks all permissions of all users specified in 
14054
 
-     * the Samba share
14055
 
-     * @return @see #check
14056
 
-     */
14057
 
-    bool checkAllUserPermissions();
14058
 
-        
14059
 
-protected:
14060
 
-    
14061
 
-    
14062
 
-    /**
14063
 
-     * Checks all permissions of the given un?x user
14064
 
-     * @return @see #check
14065
 
-     */
14066
 
-    bool checkUserPermissions(const QString & user);
14067
 
-
14068
 
-    /** 
14069
 
-     * Checks the write permissions of the given un?x user
14070
 
-     * Does not show a dialog if showMessageBox is false
14071
 
-     * @return  @see #check
14072
 
-     */
14073
 
-    bool checkUserWritePermissions(const QString & user,bool showMessageBox = true);
14074
 
-    
14075
 
-    /**
14076
 
-     * Checks the read permissions of the given un?x user
14077
 
-     * Does not show a dialog if showMessageBox is false
14078
 
-     * @return  @see #check
14079
 
-     */
14080
 
-    bool checkUserReadPermissions(const QString & user,bool showMessageBox = true);
14081
 
-        
14082
 
-    QWidget* m_parent;
14083
 
-    SambaShare* m_sambaShare;
14084
 
-    QFileInfo m_fi;    
14085
 
-};
14086
 
-
14087
 
-#endif
14088
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/passwd.cpp
14089
 
===================================================================
14090
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/passwd.cpp 2011-01-19 17:21:04.000000000 -0500
14091
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
14092
 
@@ -1,164 +0,0 @@
14093
 
-/***************************************************************************
14094
 
-                          passwd.cpp  -  description
14095
 
-                             -------------------
14096
 
-    begin                : Tue June 6 2002
14097
 
-    copyright            : (C) 2002 by Jan Schaefer
14098
 
-    email                : janschaefer@users.sourceforge.net
14099
 
- ***************************************************************************/
14100
 
-
14101
 
-/******************************************************************************
14102
 
- *                                                                            *
14103
 
- *  This file is part of KSambaPlugin.                                        *
14104
 
- *                                                                            *
14105
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify      *
14106
 
- *  it under the terms of the GNU General Public License as published by      *
14107
 
- *  the Free Software Foundation; either version 2 of the License, or         *
14108
 
- *  (at your option) any later version.                                       *
14109
 
- *                                                                            *
14110
 
- *  KSambaPlugin is distributed in the hope that it will be useful,           *
14111
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
14112
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
14113
 
- *  GNU General Public License for more details.                              *
14114
 
- *                                                                            *
14115
 
- *  You should have received a copy of the GNU General Public License         *
14116
 
- *  along with KSambaPlugin; if not, write to the Free Software               *
14117
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
14118
 
- *                                                                            *
14119
 
- ******************************************************************************/
14120
 
-
14121
 
-
14122
 
-#include <sys/types.h>
14123
 
-#include <pwd.h>
14124
 
-#include <grp.h>
14125
 
-#include <iostream>
14126
 
-
14127
 
-#include "passwd.h"
14128
 
-
14129
 
-UnixUserList getUnixUserList()
14130
 
-{
14131
 
-  UnixUserList list;
14132
 
-
14133
 
-  struct passwd* p;
14134
 
-
14135
 
-  while ((p = getpwent()))
14136
 
-  {
14137
 
-    if (!p) continue;
14138
 
-
14139
 
-    UnixUser *u = new UnixUser();
14140
 
-    u->name = p->pw_name;
14141
 
-    u->uid = p->pw_uid;
14142
 
-    list.append(u);
14143
 
-  }
14144
 
-
14145
 
-  endpwent();
14146
 
-
14147
 
-  list.sort();
14148
 
-
14149
 
-  return list;
14150
 
-}
14151
 
-
14152
 
-QStringList getUnixUsers()
14153
 
-{
14154
 
-  QStringList list;
14155
 
-
14156
 
-  struct passwd* p;
14157
 
-
14158
 
-  while ((p = getpwent()))
14159
 
-  {
14160
 
-    if (p)
14161
 
-       list.append(QString(p->pw_name));
14162
 
-  }
14163
 
-
14164
 
-  endpwent();
14165
 
-
14166
 
-  list.sort();
14167
 
-
14168
 
-  return list;
14169
 
-}
14170
 
-
14171
 
-QStringList getUnixGroups()
14172
 
-{
14173
 
-  QStringList list;
14174
 
-
14175
 
-  struct group* g;
14176
 
-
14177
 
-  while ((g = getgrent()))
14178
 
-  {
14179
 
-    if (g)
14180
 
-       list.append(QString(g->gr_name));
14181
 
-  }
14182
 
-
14183
 
-  endgrent();
14184
 
-
14185
 
-  list.sort();
14186
 
-
14187
 
-  return list;
14188
 
-}
14189
 
-
14190
 
-int getUserUID(const QString & name)
14191
 
-{
14192
 
-  if (name.isNull()) return -1;
14193
 
-
14194
 
-  struct passwd* p;
14195
 
-
14196
 
-  p = getpwnam(name.toLocal8Bit());
14197
 
-
14198
 
-  if (p)
14199
 
-     return p->pw_uid;
14200
 
-
14201
 
-  return -1;
14202
 
-}
14203
 
-
14204
 
-int getUserGID(const QString & name)
14205
 
-{
14206
 
-  if (name.isNull()) return -1;
14207
 
-
14208
 
-  struct passwd* p;
14209
 
-
14210
 
-  p = getpwnam(name.toLocal8Bit());
14211
 
-
14212
 
-  if (p)
14213
 
-    return p->pw_gid;
14214
 
-
14215
 
-  return -1;
14216
 
-}
14217
 
-
14218
 
-int getGroupGID(const QString & name)
14219
 
-{
14220
 
-  if (name.isNull()) return -1;
14221
 
-
14222
 
-  struct group* g;
14223
 
-
14224
 
-  g = getgrnam(name.toLocal8Bit());
14225
 
-
14226
 
-  if (g)
14227
 
-    return g->gr_gid;
14228
 
-
14229
 
-  return -1;
14230
 
-}
14231
 
-
14232
 
-bool isUserInGroup(const QString & user, const QString & group) {
14233
 
-  struct group* g;
14234
 
-
14235
 
-  while ((g = getgrent()))
14236
 
-  {
14237
 
-    if (g && QString(g->gr_name) == group) {
14238
 
-       char** names = g->gr_mem;
14239
 
-
14240
 
-       int i = 0;
14241
 
-       char* name = names[0];
14242
 
-       while (name != 0L) {
14243
 
-          i++;
14244
 
-          if (QString(name) == user) {
14245
 
-            endgrent();
14246
 
-            return true;
14247
 
-          }
14248
 
-          name = names[i];
14249
 
-       }
14250
 
-       break;
14251
 
-    }
14252
 
-  }
14253
 
-
14254
 
-  endgrent();
14255
 
-  return false;
14256
 
-}
14257
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/passwd.h
14258
 
===================================================================
14259
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/passwd.h   2011-01-19 17:21:04.000000000 -0500
14260
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
14261
 
@@ -1,56 +0,0 @@
14262
 
-/***************************************************************************
14263
 
-                          passwd.h  -  description
14264
 
-                             -------------------
14265
 
-    begin                : Tue June 6 2002
14266
 
-    copyright            : (C) 2002 by Jan Schäfer
14267
 
-    email                : janschaefer@users.sourceforge.net
14268
 
- ***************************************************************************/
14269
 
-
14270
 
-/******************************************************************************
14271
 
- *                                                                            *
14272
 
- *  This file is part of KSambaPlugin.                                          *
14273
 
- *                                                                            *
14274
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify            *
14275
 
- *  it under the terms of the GNU General Public License as published by      *
14276
 
- *  the Free Software Foundation; either version 2 of the License, or         *
14277
 
- *  (at your option) any later version.                                       *
14278
 
- *                                                                            *
14279
 
- *  KSambaPlugin is distributed in the hope that it will be useful,                 *
14280
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
14281
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
14282
 
- *  GNU General Public License for more details.                              *
14283
 
- *                                                                            *
14284
 
- *  You should have received a copy of the GNU General Public License         *
14285
 
- *  along with KSambaPlugin; if not, write to the Free Software                     *
14286
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
14287
 
- *                                                                            *
14288
 
- ******************************************************************************/
14289
 
-
14290
 
-#ifndef PASSWD_H
14291
 
-#define PASSWD_H
14292
 
-
14293
 
-#include <qstringlist.h>
14294
 
-#include <qstring.h>
14295
 
-#include <q3ptrlist.h>
14296
 
-
14297
 
-
14298
 
-
14299
 
-class UnixUser
14300
 
-{
14301
 
-public:
14302
 
-  QString name;
14303
 
-  int uid;
14304
 
-};
14305
 
-
14306
 
-typedef Q3PtrList<UnixUser> UnixUserList;
14307
 
-
14308
 
-UnixUserList getUnixUserList();
14309
 
-QStringList getUnixUsers();
14310
 
-QStringList getUnixGroups();
14311
 
-int getUserUID(const QString &);
14312
 
-int getUserGID(const QString &);
14313
 
-int getGroupGID(const QString &);
14314
 
-bool isUserInGroup(const QString &, const QString &);
14315
 
-
14316
 
-
14317
 
-#endif
14318
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/printerdlgimpl.cpp
14319
 
===================================================================
14320
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/printerdlgimpl.cpp 2011-01-19 17:21:04.000000000 -0500
14321
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
14322
 
@@ -1,245 +0,0 @@
14323
 
-/***************************************************************************
14324
 
-                          printerdlgimpl.cpp  -  description
14325
 
-                             -------------------
14326
 
-    begin                : Tue June 6 2002
14327
 
-    copyright            : (C) 2002 by Jan Schäfer
14328
 
-    email                : janschaefer@users.sourceforge.net
14329
 
- ***************************************************************************/
14330
 
-
14331
 
-/******************************************************************************
14332
 
- *                                                                            *
14333
 
- *  This file is part of KSambaPlugin.                                        *
14334
 
- *                                                                            *
14335
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify      *
14336
 
- *  it under the terms of the GNU General Public License as published by      *
14337
 
- *  the Free Software Foundation; either version 2 of the License, or         *
14338
 
- *  (at your option) any later version.                                       *
14339
 
- *                                                                            *
14340
 
- *  KSambaPlugin is distributed in the hope that it will be useful,           *
14341
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
14342
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
14343
 
- *  GNU General Public License for more details.                              *
14344
 
- *                                                                            *
14345
 
- *  You should have received a copy of the GNU General Public License         *
14346
 
- *  along with KSambaPlugin; if not, write to the Free Software                     *
14347
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
14348
 
- *                                                                            *
14349
 
- ******************************************************************************/
14350
 
-
14351
 
-
14352
 
-/**
14353
 
- * @author Jan Schäfer
14354
 
- **/
14355
 
-#include <qcheckbox.h>
14356
 
-#include <qlineedit.h>
14357
 
-#include <qcombobox.h>
14358
 
-#include <qlabel.h>
14359
 
-#include <q3listbox.h>
14360
 
-#include <qpainter.h>
14361
 
-#include <q3groupbox.h>
14362
 
-#include <qpixmap.h>
14363
 
-#include <qbitmap.h>
14364
 
-#include <qlayout.h>
14365
 
-#include <qtabwidget.h>
14366
 
-//Added by qt3to4:
14367
 
-#include <Q3PtrList>
14368
 
-
14369
 
-#include <klineedit.h>
14370
 
-#include <kurlrequester.h>
14371
 
-#include <knuminput.h>
14372
 
-#include <kdebug.h>
14373
 
-#include <kdeprint/kmmanager.h>
14374
 
-#include <kdeprint/kmprinter.h>
14375
 
-#include <kcombobox.h>
14376
 
-#include <kiconloader.h>
14377
 
-#include <klocale.h>
14378
 
-
14379
 
-#include <assert.h>
14380
 
-
14381
 
-#include "sambafile.h"
14382
 
-#include "printerdlgimpl.h"
14383
 
-#include "usertabimpl.h"
14384
 
-#include "passwd.h"
14385
 
-#include "dictmanager.h"
14386
 
-
14387
 
-
14388
 
-PrinterDlgImpl::PrinterDlgImpl(QWidget* parent, SambaShare* share)
14389
 
-       : KcmPrinterDlg(parent,"sharedlgimpl")
14390
 
-{
14391
 
-  if (!share) {
14392
 
-    kWarning() << "PrinterDlgImpl::Constructor : share parameter is null!";
14393
 
-    return;    
14394
 
-  }
14395
 
-
14396
 
-  _share = share;
14397
 
-  _dictMngr = new DictManager(share);
14398
 
-  
14399
 
-  initDialog();
14400
 
-}
14401
 
-
14402
 
-void PrinterDlgImpl::initDialog()
14403
 
-{
14404
 
-       // Base settings
14405
 
-  if (!_share)
14406
 
-     return;
14407
 
-
14408
 
-       QList<KMPrinter*> printerList = KMManager::self()->printerListComplete();
14409
 
-
14410
 
-       QListIterator<KMPrinter*>       it(printerList);
14411
 
-       while (it.hasNext())
14412
 
-       {
14413
 
-               KMPrinter *item = it.next();
14414
 
-    if (!item->isSpecial()){
14415
 
-      queueCombo->insertItem(item->printerName());
14416
 
-    }
14417
 
-  }
14418
 
-
14419
 
-  setComboToString(queueCombo,_share->getValue("printer name"));
14420
 
-
14421
 
14422
 
-  _dictMngr->add("path",pathUrlRq);
14423
 
-  printersChk->setChecked( _share->getName() == "printers" );
14424
 
-
14425
 
-  shareNameEdit->setText( _share->getName() );
14426
 
-  _dictMngr->add("comment",commentEdit);
14427
 
-
14428
 
-  _dictMngr->add("available",availableBaseChk);
14429
 
-  _dictMngr->add("browseable",browseableBaseChk);
14430
 
-  _dictMngr->add("public",publicBaseChk);
14431
 
-  
14432
 
-  // Users
14433
 
-
14434
 
-  _userTab = new UserTabImpl(this,_share);
14435
 
-  _tabs->insertTab(_userTab,i18n("&Users"),1);
14436
 
-  _userTab->load();
14437
 
-  connect(_userTab, SIGNAL(changed()), this, SLOT(changedSlot()));
14438
 
-  
14439
 
-
14440
 
-  // Printing
14441
 
-
14442
 
-  _dictMngr->add("postscript",postscriptChk);
14443
 
-  _dictMngr->add("use client driver",useClientDriverChk);
14444
 
-  _dictMngr->add("default devmode",defaultDevmodeChk);
14445
 
-
14446
 
-  _dictMngr->add("max print jobs",maxPrintJobsSpin);
14447
 
-  _dictMngr->add("max reported print jobs",maxReportedPrintJobsSpin);
14448
 
-  _dictMngr->add("printing",printingCombo,
14449
 
-                  new QStringList(QStringList() 
14450
 
-                  << "sysv" << "aix" << "hpux" << "bsd" << "qnx"
14451
 
-                  << "plp" << "lprng" << "softq" << "cups" << "nt" << "os2"));
14452
 
-                  
14453
 
-  _dictMngr->add("printer driver",printerDriverEdit);
14454
 
-  _dictMngr->add("printer driver location",printerDriverLocationEdit);
14455
 
-
14456
 
-  // Commands
14457
 
-
14458
 
-  _dictMngr->add("print command",printCommandEdit);
14459
 
-  _dictMngr->add("lpq command",lpqCommandEdit);
14460
 
-  _dictMngr->add("lprm command",lprmCommandEdit);
14461
 
-  _dictMngr->add("lppause",lppauseEdit);
14462
 
-  _dictMngr->add("lpresume",lpresumeEdit);
14463
 
-  _dictMngr->add("queuepause",queuepauseEdit);
14464
 
-  _dictMngr->add("queueresume",queueresumeEdit);
14465
 
-  
14466
 
-  // Security
14467
 
-
14468
 
-  _dictMngr->add("printer admin",printerAdminEdit);
14469
 
-  _dictMngr->add("hosts allow",hostsAllowEdit);
14470
 
-  _dictMngr->add("hosts deny",hostsDenyEdit);
14471
 
-  
14472
 
-  guestAccountCombo->addItems( getUnixUsers() );
14473
 
-  setComboToString(guestAccountCombo,_share->getValue("guest account"));
14474
 
-
14475
 
-  // Advanced
14476
 
-
14477
 
-  _dictMngr->add("min print space",minPrintSpaceSpin);
14478
 
-  _dictMngr->add("status",statusChk);
14479
 
-  _dictMngr->add("preexec",preExecEdit);
14480
 
-  _dictMngr->add("postexec",postExecEdit);
14481
 
-  _dictMngr->add("root preexec",rootPreExecEdit);
14482
 
-  _dictMngr->add("root postexec",rootPostExecEdit);
14483
 
-
14484
 
-  _dictMngr->load( _share );
14485
 
-  connect(_dictMngr, SIGNAL(changed()), this, SLOT(changedSlot()));
14486
 
-    
14487
 
-}
14488
 
-
14489
 
-void PrinterDlgImpl::accept()
14490
 
-{
14491
 
-  if (!_share)
14492
 
-     return;
14493
 
-
14494
 
-  // Security
14495
 
-  
14496
 
-  _share->setValue("guest account",guestAccountCombo->currentText( ) );
14497
 
-  _share->setValue("printer name",queueCombo->currentText());
14498
 
-
14499
 
-  if (printersChk->isChecked())
14500
 
-  {
14501
 
-        _share->setName("printers");
14502
 
-  }
14503
 
-       else
14504
 
-               _share->setName(shareNameEdit->text());
14505
 
-
14506
 
-
14507
 
-  _userTab->save();
14508
 
-  _dictMngr->save( _share );      
14509
 
-      
14510
 
-
14511
 
-       KcmPrinterDlg::accept();
14512
 
-}
14513
 
-
14514
 
-PrinterDlgImpl::~PrinterDlgImpl()
14515
 
-{
14516
 
-}
14517
 
-
14518
 
-void PrinterDlgImpl::printersChkToggled(bool b)
14519
 
-{
14520
 
-       if (b)
14521
 
-  {
14522
 
-               shareNameEdit->setText("printers");
14523
 
-    shareNameEdit->setEnabled(false);
14524
 
-    
14525
 
-    int dist = 10;
14526
 
-               int w = 64 + dist;
14527
 
-    int h = 64 + 2*dist;
14528
 
-
14529
 
-    QPixmap pix(w,h);
14530
 
-    pix.fill(Qt::transparent);
14531
 
-
14532
 
-               QPixmap pix2 = DesktopIcon("printer1");
14533
 
-
14534
 
-    // Draw the printericon three times
14535
 
-    QPainter p(&pix);
14536
 
-    p.drawPixmap(dist+dist/2,0,pix2);
14537
 
-    p.drawPixmap(dist/2,dist,pix2);
14538
 
-    p.drawPixmap(dist+dist/2,2*dist,pix2);
14539
 
-               p.end();
14540
 
-
14541
 
-       QBitmap mask(w,h);
14542
 
-
14543
 
-    mask.fill(Qt::black); // everything is transparent
14544
 
-
14545
 
-    p.begin(&mask);
14546
 
-    
14547
 
-    //p.setRasterOp(Qt::OrROP);
14548
 
-    p.drawPixmap(dist+dist/2,0,pix2.mask());
14549
 
-    p.drawPixmap(dist/2,dist,pix2.mask());
14550
 
-    p.drawPixmap(dist+dist/2,2*dist,pix2.mask());
14551
 
-               p.end();
14552
 
-
14553
 
-               pix.setMask(mask);
14554
 
-
14555
 
-    printerPixLbl->setPixmap(pix);
14556
 
-               pixFrame->layout()->setMargin( 2 );
14557
 
-  }
14558
 
-       else
14559
 
-  {
14560
 
-       shareNameEdit->setEnabled(true);
14561
 
-               shareNameEdit->setText( _share->getName() );
14562
 
-               printerPixLbl->setPixmap(DesktopIcon("printer1"));
14563
 
-               pixFrame->layout()->setMargin( 11 );
14564
 
-  }
14565
 
-}
14566
 
-
14567
 
-#include "printerdlgimpl.moc"
14568
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/printerdlgimpl.h
14569
 
===================================================================
14570
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/printerdlgimpl.h   2011-01-19 17:21:04.000000000 -0500
14571
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
14572
 
@@ -1,78 +0,0 @@
14573
 
-/***************************************************************************
14574
 
-                         printerdlgimpl.h  -  description
14575
 
-                             -------------------
14576
 
-    begin                : Tue June 6 2002
14577
 
-    copyright            : (C) 2002 by Jan Schäfer
14578
 
-    email                : janschaefer@users.sourceforge.net
14579
 
- ***************************************************************************/
14580
 
-
14581
 
-/******************************************************************************
14582
 
- *                                                                            *
14583
 
- *  This file is part of KSambaPlugin.                                        *
14584
 
- *                                                                            *
14585
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify      *
14586
 
- *  it under the terms of the GNU General Public License as published by      *
14587
 
- *  the Free Software Foundation; either version 2 of the License, or         *
14588
 
- *  (at your option) any later version.                                       *
14589
 
- *                                                                            *
14590
 
- *  KSambaPlugin is distributed in the hope that it will be useful,           *
14591
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
14592
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
14593
 
- *  GNU General Public License for more details.                              *
14594
 
- *                                                                            *
14595
 
- *  You should have received a copy of the GNU General Public License         *
14596
 
- *  along with KSambaPlugin; if not, write to the Free Software                     *
14597
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
14598
 
- *                                                                            *
14599
 
- ******************************************************************************/
14600
 
-
14601
 
-#ifndef PRINTERDLGIMPL_H
14602
 
-#define PRINTERDLGIMPL_H
14603
 
-
14604
 
-
14605
 
-/**
14606
 
- * @author Jan Schäfer
14607
 
- **/
14608
 
-
14609
 
-#include "kcmprinterdlg.h"
14610
 
-
14611
 
-class SambaShare;
14612
 
-class QWidget;
14613
 
-class UserTabImpl;
14614
 
-class DictManager;
14615
 
-
14616
 
-/**
14617
 
- * This class implements the tcmprinterdlg.ui interface
14618
 
- **/
14619
 
-class PrinterDlgImpl : public KcmPrinterDlg
14620
 
-{
14621
 
-Q_OBJECT
14622
 
-
14623
 
-public :
14624
 
-
14625
 
-  PrinterDlgImpl(QWidget* parent, SambaShare* share);
14626
 
-  ~PrinterDlgImpl();
14627
 
-
14628
 
-protected :
14629
 
-
14630
 
-       /**
14631
 
-   * Fills all dialog fields with the values
14632
 
-   * of the SambaShare object
14633
 
-   **/
14634
 
-  void initDialog();
14635
 
-
14636
 
-  /**
14637
 
-   * The share object to change with this dialog
14638
 
-   **/
14639
 
-       SambaShare* _share;
14640
 
-
14641
 
-  UserTabImpl* _userTab;
14642
 
-  DictManager* _dictMngr;
14643
 
-
14644
 
-protected slots:
14645
 
-       void accept();
14646
 
-  virtual void printersChkToggled(bool);
14647
 
-};
14648
 
-
14649
 
-
14650
 
-#endif
14651
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/programmingconventions.txt
14652
 
===================================================================
14653
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/programmingconventions.txt 2011-01-19 17:21:04.000000000 -0500
14654
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
14655
 
@@ -1,10 +0,0 @@
14656
 
-Programming conventions :
14657
 
-
14658
 
-Class member variable : starting with _  e.g. _name
14659
 
-
14660
 
-QCheckBox variable : ending to Chk e.g. nameChk
14661
 
-QLineEdit variable : ending to Edit e.g. nameEdit
14662
 
-KUrlRequerster variable : ending to UrlRq e.g. pathUrlRq
14663
 
-QPushButton : ending to Btn e.g. addBtn
14664
 
-
14665
 
-QListView: ending to ListView e.g. sharesListView
14666
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/qmultichecklistitem.cpp
14667
 
===================================================================
14668
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/qmultichecklistitem.cpp    2011-01-19 17:21:04.000000000 -0500
14669
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
14670
 
@@ -1,163 +0,0 @@
14671
 
-/***************************************************************************
14672
 
-                          qmultichecklistitem.cpp  -  description
14673
 
-                             -------------------
14674
 
-    begin                : Sun Jan 26 2003
14675
 
-    copyright            : (C) 2003 by Jan Schäfer
14676
 
-    email                : janschaefer@users.sourceforge.net
14677
 
- ***************************************************************************/
14678
 
-
14679
 
-/******************************************************************************
14680
 
- *                                                                             *
14681
 
- *  This file is part of KSambaPlugin.                                        *
14682
 
- *                                                                            *
14683
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify      *
14684
 
- *  it under the terms of the GNU General Public License as published by      *
14685
 
- *  the Free Software Foundation; either version 2 of the License, or         *
14686
 
- *  (at your option) any later version.                                       *
14687
 
- *                                                                            *
14688
 
- *  KSambaPlugin is distributed in the hope that it will be useful,           *
14689
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
14690
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
14691
 
- *  GNU General Public License for more details.                              *
14692
 
- *                                                                            *
14693
 
- *  You should have received a copy of the GNU General Public License         *
14694
 
- *  along with KSambaPlugin; if not, write to the Free Software               *
14695
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
14696
 
- *                                                                            *
14697
 
- ******************************************************************************/
14698
 
-
14699
 
-#include <qpen.h>
14700
 
-#include <qpainter.h>
14701
 
-#include <q3header.h>
14702
 
-//Added by qt3to4:
14703
 
-#include <QPolygon>
14704
 
-
14705
 
-#include <kdebug.h>
14706
 
-#include <kmessagebox.h>
14707
 
-
14708
 
-#include "qmultichecklistitem.moc"
14709
 
-#include "qmultichecklistitem.h"
14710
 
-
14711
 
-static const int BoxSize = 16;
14712
 
-
14713
 
-
14714
 
-QMultiCheckListItem::QMultiCheckListItem( Q3ListView *parent) :
14715
 
-  Q3ListViewItem(parent) 
14716
 
-{
14717
 
-}
14718
 
-
14719
 
-void QMultiCheckListItem::resize(int column) {
14720
 
-  if (column >= (int) checkBoxColumns.size()) {
14721
 
-    checkBoxColumns.resize(column*2);
14722
 
-    checkStates.resize(column*2);
14723
 
-    disableStates.resize(column*2);
14724
 
-  }
14725
 
-
14726
 
-}
14727
 
-
14728
 
-void QMultiCheckListItem::setOn(int column, bool b) {
14729
 
-  resize(column);
14730
 
-  checkStates.setBit(column,b);
14731
 
-  checkBoxColumns.setBit(column);
14732
 
-  kDebug(5009) << "setOn : " << column;
14733
 
-  repaint();
14734
 
-}
14735
 
-
14736
 
-bool QMultiCheckListItem::isOn(int column) {
14737
 
-  resize(column);
14738
 
-  return checkStates.testBit(column);
14739
 
-}
14740
 
-
14741
 
-bool QMultiCheckListItem::isDisabled(int column) {
14742
 
-  resize(column);
14743
 
-  return disableStates.testBit(column);
14744
 
-}
14745
 
-
14746
 
-void QMultiCheckListItem::toggle(int column) {
14747
 
-  resize(column);
14748
 
-  checkBoxColumns.setBit(column);
14749
 
-  checkStates.toggleBit(column);
14750
 
-  emit stateChanged(column,checkStates.testBit(column));
14751
 
-
14752
 
-  repaint();
14753
 
-}
14754
 
-
14755
 
-void QMultiCheckListItem::setDisabled(int column, bool b) {
14756
 
-  resize(column);
14757
 
-
14758
 
-  disableStates.setBit(column,b);
14759
 
-//  KMessageBox::information(0L,QString("setDisabled"),QString("disable %1 ").arg(column));
14760
 
-  repaint();
14761
 
-}
14762
 
-
14763
 
-void QMultiCheckListItem::paintCell(QPainter *p,const QColorGroup & cg, int col, int width, int align)
14764
 
-{
14765
 
-  resize(col);
14766
 
-
14767
 
-  if ( !p )
14768
 
-    return;
14769
 
-
14770
 
-  Q3ListView *lv = listView();
14771
 
-  if ( !lv )
14772
 
-    return;
14773
 
-
14774
 
-  Q3ListViewItem::paintCell(p,cg,col,width,align );
14775
 
-
14776
 
-  int marg = lv->itemMargin();
14777
 
-//  int width = BoxSize + marg*2;
14778
 
-  // use a provate color group and set the text/highlighted text colors
14779
 
-  QColorGroup mcg = cg;
14780
 
-
14781
 
-  if (checkBoxColumns.testBit(col)) {
14782
 
-    // Bold/Italic/use default checkboxes
14783
 
-    // code almost identical to QCheckListItem
14784
 
-    Q_ASSERT( lv ); //###
14785
 
-    // I use the text color of defaultStyles[0], normalcol in parent listview
14786
 
-//    mcg.setColor( QPalette::Text, ((StyleListView*)lv)->normalcol );
14787
 
-    int x = 0;
14788
 
-    if ( align == Qt::AlignCenter ) {
14789
 
-      QFontMetrics fm( lv->font() );
14790
 
-      x = (width - BoxSize - fm.width(text(0)))/2;
14791
 
-    }
14792
 
-    int y = (height() - BoxSize) / 2;
14793
 
-
14794
 
-    if ( !isEnabled() || disableStates.testBit(col))
14795
 
-      p->setPen( QPen( lv->palette().color( QPalette::Disabled, QPalette::Text ), 2 ) );
14796
 
-    else
14797
 
-      p->setPen( QPen( mcg.text(), 2 ) );
14798
 
-
14799
 
-    if ( isSelected() && lv->header()->mapToSection( 0 ) != 0 ) {
14800
 
-      p->fillRect( 0, 0, x + marg + BoxSize + 4, height(),
14801
 
-             mcg.brush( QPalette::Highlight ) );
14802
 
-      if ( isEnabled() )
14803
 
-          p->setPen( QPen( mcg.color( QPalette::HighlightedText), 2 ) ); // FIXME! - use defaultstyles[0].selecol. luckily not used :)
14804
 
-    }
14805
 
-    p->drawRect( x+marg, y+2, BoxSize-4, BoxSize-4 );
14806
 
-    x++;
14807
 
-    y++;
14808
 
-    if ( checkStates.testBit(col) ) {
14809
 
-      QPolygon a( 7*2 );
14810
 
-      int i, xx, yy;
14811
 
-      xx = x+1+marg;
14812
 
-      yy = y+5;
14813
 
-      for ( i=0; i<3; i++ ) {
14814
 
-        a.setPoint( 2*i,   xx, yy );
14815
 
-        a.setPoint( 2*i+1, xx, yy+2 );
14816
 
-        xx++; yy++;
14817
 
-      }
14818
 
-      yy -= 2;
14819
 
-      for ( i=3; i<7; i++ ) {
14820
 
-        a.setPoint( 2*i,   xx, yy );
14821
 
-        a.setPoint( 2*i+1, xx, yy+2 );
14822
 
-        xx++; yy--;
14823
 
-      }
14824
 
-      p->drawLineSegments( a );
14825
 
-    }
14826
 
-
14827
 
-  }
14828
 
-
14829
 
-
14830
 
-}
14831
 
-
14832
 
-
14833
 
-
14834
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/qmultichecklistitem.h
14835
 
===================================================================
14836
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/qmultichecklistitem.h      2011-01-19 17:21:04.000000000 -0500
14837
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
14838
 
@@ -1,65 +0,0 @@
14839
 
-/***************************************************************************
14840
 
-                          qextendedchecklistitem.h  -  description
14841
 
-                             -------------------
14842
 
-    begin                : Sun Jan 26 2003
14843
 
-    copyright            : (C) 2003 by Jan Schäfer
14844
 
-    email                : janschaefer@users.sourceforge.net
14845
 
- ***************************************************************************/
14846
 
-
14847
 
-/******************************************************************************
14848
 
- *                                                                            *
14849
 
- *  This file is part of KSambaPlugin.                                        *
14850
 
- *                                                                            *
14851
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify      *
14852
 
- *  it under the terms of the GNU General Public License as published by      *
14853
 
- *  the Free Software Foundation; either version 2 of the License, or         *
14854
 
- *  (at your option) any later version.                                       *
14855
 
- *                                                                            *
14856
 
- *  KSambaPlugin is distributed in the hope that it will be useful,           *
14857
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
14858
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
14859
 
- *  GNU General Public License for more details.                              *
14860
 
- *                                                                            *
14861
 
- *  You should have received a copy of the GNU General Public License         *
14862
 
- *  along with KSambaPlugin; if not, write to the Free Software               *
14863
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
14864
 
- *                                                                            *
14865
 
- ******************************************************************************/
14866
 
-  
14867
 
-#ifndef _QMULTICHECKLISTITEM_H_
14868
 
-#define _QMULTICHECKLISTITEM_H_
14869
 
-
14870
 
-#include <q3listview.h>
14871
 
-
14872
 
-#include <qbitarray.h>
14873
 
-
14874
 
-class QMultiCheckListItem : public QObject, public Q3ListViewItem {
14875
 
-Q_OBJECT
14876
 
-
14877
 
-  public:
14878
 
-    QMultiCheckListItem( Q3ListView *parent=0);
14879
 
-    ~QMultiCheckListItem() {}
14880
 
-    
14881
 
-    virtual bool isOn(int column);
14882
 
-    virtual bool isDisabled(int column);
14883
 
-      
14884
 
-    
14885
 
-  protected:
14886
 
-    /* reimp */
14887
 
-    virtual void paintCell(QPainter *, const QColorGroup &, int, int, int);
14888
 
-    
14889
 
-  public slots:
14890
 
-    virtual void setOn(int, bool);
14891
 
-    virtual void toggle(int);  
14892
 
-    virtual void setDisabled(int, bool);
14893
 
-    
14894
 
-  signals:
14895
 
-    void stateChanged(int, bool);    
14896
 
-  private:
14897
 
-    QBitArray checkStates;
14898
 
-    QBitArray checkBoxColumns;
14899
 
-    QBitArray disableStates;
14900
 
-    void resize(int column);
14901
 
-};
14902
 
-
14903
 
-#endif
14904
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/sambafile.cpp
14905
 
===================================================================
14906
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/sambafile.cpp      2011-01-19 17:21:04.000000000 -0500
14907
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
14908
 
@@ -1,707 +0,0 @@
14909
 
-/*
14910
 
-  Copyright (c) 2002-2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
14911
 
-
14912
 
-  This program is free software; you can redistribute it and/or modify
14913
 
-  it under the terms of the GNU General Public License as published by
14914
 
-  the Free Software Foundation; either version 2 of the License, or
14915
 
-  (at your option) any later version.
14916
 
-
14917
 
-  This program is distributed in the hope that it will be useful,
14918
 
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
14919
 
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14920
 
-  GNU General Public License for more details.
14921
 
-
14922
 
-  You should have received a copy of the GNU General Public License
14923
 
-  along with this program; if not, write to the Free Software
14924
 
-  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
14925
 
-
14926
 
-*/
14927
 
-
14928
 
-#include <qfile.h>
14929
 
-#include <q3process.h>
14930
 
-#include <qfileinfo.h>
14931
 
-//Added by qt3to4:
14932
 
-#include <QTextStream>
14933
 
-
14934
 
-#include <kconfig.h>
14935
 
-#include <kconfiggroup.h>
14936
 
-#include <kdebug.h>
14937
 
-#include <kio/job.h>
14938
 
-#include <k3process.h>
14939
 
-#include <kprocess.h>
14940
 
-#include <kshell.h>
14941
 
-#include <kmessagebox.h>
14942
 
-#include <klocale.h>
14943
 
-#include <ktemporaryfile.h>
14944
 
-#include <ksambashare.h>
14945
 
-#include <KStandardDirs>
14946
 
-#include <pwd.h>
14947
 
-#include <time.h>
14948
 
-#include <unistd.h>
14949
 
-
14950
 
-#include "sambafile.h"
14951
 
-
14952
 
-#define FILESHARE_DEBUG 5009
14953
 
-
14954
 
-SambaConfigFile::SambaConfigFile(SambaFile* sambaFile)
14955
 
-{
14956
 
-  Q3Dict<QString>(10,false);
14957
 
-  setAutoDelete(true);
14958
 
-  _sambaFile = sambaFile;
14959
 
-}
14960
 
-
14961
 
-QString SambaConfigFile::getDefaultValue(const QString & name)
14962
 
-{
14963
 
-  SambaShare* defaults = _sambaFile->getTestParmValues();
14964
 
-  QString s = defaults->getValue(name,false,false);
14965
 
-
14966
 
-  return s;
14967
 
-}
14968
 
-
14969
 
-SambaShare* SambaConfigFile::addShare(const QString & name)
14970
 
-{
14971
 
-  kDebug(FILESHARE_DEBUG) << "adding " << name << endl;
14972
 
-  SambaShare* newShare = new SambaShare(name,this);
14973
 
-  addShare(name,newShare);
14974
 
-  return newShare;
14975
 
-}
14976
 
-
14977
 
-
14978
 
-void SambaConfigFile::addShare(const QString & name, SambaShare* share)
14979
 
-{
14980
 
-  insert(name,share),
14981
 
-  _shareList.append(name);
14982
 
-}
14983
 
-
14984
 
-void SambaConfigFile::removeShare(const QString & name)
14985
 
-{
14986
 
-  remove(name);
14987
 
-  _shareList.removeAll(name);
14988
 
-}
14989
 
-
14990
 
-
14991
 
-QStringList SambaConfigFile::getShareList()
14992
 
-{
14993
 
-  return _shareList;
14994
 
-}
14995
 
-
14996
 
-SambaFile::SambaFile(const QString & _path, bool _readonly)
14997
 
-  : readonly(_readonly),
14998
 
-    changed(false),
14999
 
-    path(_path),
15000
 
-    localPath(_path),
15001
 
-    _sambaConfig(0),
15002
 
-    _testParmValues(0),
15003
 
-    _sambaVersion(-1),
15004
 
-    _tempFile(0)
15005
 
-{
15006
 
-}
15007
 
-
15008
 
-SambaFile::~SambaFile()
15009
 
-{
15010
 
-  delete _sambaConfig;
15011
 
-  delete _testParmValues;
15012
 
-  delete _tempFile;
15013
 
-
15014
 
-}
15015
 
-
15016
 
-bool SambaFile::isRemoteFile() {
15017
 
-  return ! KUrl(path).isLocalFile();
15018
 
-}
15019
 
-
15020
 
-/** No descriptions */
15021
 
-QString SambaFile::findShareByPath(const QString & path) const
15022
 
-{
15023
 
-  Q3DictIterator<SambaShare> it(*_sambaConfig);
15024
 
-  KUrl url(path);
15025
 
-  url.adjustPath(KUrl::RemoveTrailingSlash);
15026
 
-
15027
 
-  for (  ; it.current(); ++it )
15028
 
-  {
15029
 
-    SambaShare* share = it.current();
15030
 
-
15031
 
-    QString *s = share->find("path");
15032
 
-    if (s) {
15033
 
-        KUrl curUrl(*s);
15034
 
-        curUrl.adjustPath(KUrl::RemoveTrailingSlash);
15035
 
-
15036
 
-        kDebug(5009) << url.path() << " =? " << curUrl.path();
15037
 
-
15038
 
-        if (url.path() == curUrl.path())
15039
 
-            return it.currentKey();
15040
 
-    }
15041
 
-  }
15042
 
-
15043
 
-  return QString();
15044
 
-}
15045
 
-
15046
 
-bool SambaFile::save() {
15047
 
-  return slotApply();
15048
 
-}
15049
 
-
15050
 
-
15051
 
-bool SambaFile::slotApply()
15052
 
-{
15053
 
-  if (readonly) {
15054
 
-      kDebug(FILESHARE_DEBUG) << "SambaFile::slotApply: readonly=true";
15055
 
-      return false;
15056
 
-  }
15057
 
-
15058
 
-  // If we have write access to the smb.conf
15059
 
-  // we simply save the values to it
15060
 
-  // if not we have to save the results in
15061
 
-  // a temporary file and copy it afterwards
15062
 
-  // over the smb.conf file with kdesu.
15063
 
-  if (QFileInfo(path).isWritable())
15064
 
-  {
15065
 
-    saveTo(path);
15066
 
-    changed = false;
15067
 
-    return true;
15068
 
-  }
15069
 
-
15070
 
-  // Create a temporary smb.conf file
15071
 
-   delete _tempFile;
15072
 
-  _tempFile = new KTemporaryFile();
15073
 
-
15074
 
-  if (!_tempFile->open() || !saveTo(_tempFile->fileName())) {
15075
 
-    kDebug(5009) << "SambaFile::slotApply: Could not save to temporary file";
15076
 
-    delete _tempFile;
15077
 
-    _tempFile = 0;
15078
 
-    return false;
15079
 
-  }
15080
 
-
15081
 
-  QFileInfo fi(path);
15082
 
-  KUrl url(path);
15083
 
-
15084
 
-  if (KUrl(path).isLocalFile()) {
15085
 
-    KProcess proc;
15086
 
-    kDebug(5009) << "SambaFile::slotApply: is local file!";
15087
 
-
15088
 
-    QString suCommand=QString("cp %1 %2; rm %3")
15089
 
-              .arg(KShell::quoteArg(_tempFile->fileName()),
15090
 
-                   KShell::quoteArg(path),
15091
 
-                   KShell::quoteArg(_tempFile->fileName()));
15092
 
-    proc << KStandardDirs::findExe("kdesu") << "-d" << suCommand;
15093
 
-
15094
 
-    if (proc.execute()) {
15095
 
-        kDebug(5009) << "SambaFile::slotApply: saving to " << path << " failed!";
15096
 
-        //KMessageBox::sorry(0,i18n("Saving the results to %1 failed.",path));
15097
 
-        delete _tempFile;
15098
 
-        _tempFile = 0;
15099
 
-        return false;
15100
 
-    }
15101
 
-    else {
15102
 
-        changed = false;
15103
 
-        delete _tempFile;
15104
 
-        _tempFile = 0;
15105
 
-        kDebug(5009) << "SambaFile::slotApply: changes successfully saved!";
15106
 
-        return true;
15107
 
-    }
15108
 
-  } else {
15109
 
-    kDebug(5009) << "SambaFile::slotApply: is remote file!";
15110
 
-    KUrl srcURL;
15111
 
-    srcURL.setPath( _tempFile->fileName() );
15112
 
-
15113
 
-    KIO::FileCopyJob * job =  KIO::file_copy( srcURL, url, -1, KIO::Overwrite  );
15114
 
-    connect( job, SIGNAL( result( KJob * ) ),
15115
 
-             this, SLOT( slotSaveJobFinished ( KJob * ) ) );
15116
 
-    return (job->error()==0);
15117
 
-  }
15118
 
-
15119
 
-  return true;
15120
 
-}
15121
 
-
15122
 
-  /**
15123
 
-  * Returns a name which isn't already used for a share
15124
 
-  **/
15125
 
-QString SambaFile::getUnusedName(const QString alreadyUsedName) const
15126
 
-{
15127
 
-
15128
 
-  QString init = i18n("Unnamed");
15129
 
-  if (alreadyUsedName != QString())
15130
 
-    init = alreadyUsedName;
15131
 
-
15132
 
-  QString s = init;
15133
 
-
15134
 
-  int i = 2;
15135
 
-
15136
 
-  while (_sambaConfig->find(s))
15137
 
-  {
15138
 
-    s = init+QString::number(i);
15139
 
-    i++;
15140
 
-  }
15141
 
-
15142
 
-  return s;
15143
 
-}
15144
 
-
15145
 
-
15146
 
-
15147
 
-SambaShare* SambaFile::newShare(const QString & name)
15148
 
-{
15149
 
-  if (_sambaConfig->find(name))
15150
 
-    return 0L;
15151
 
-
15152
 
-  SambaShare* share = new SambaShare(name,_sambaConfig);
15153
 
-  _sambaConfig->addShare(name,share);
15154
 
-
15155
 
-  changed = true;
15156
 
-
15157
 
-  return share;
15158
 
-
15159
 
-}
15160
 
-
15161
 
-SambaShare* SambaFile::newShare(const QString & name, const QString & path)
15162
 
-{
15163
 
-  SambaShare* share = newShare(name);
15164
 
-  if (share)
15165
 
-  {
15166
 
-    share->setValue("path",path);
15167
 
-  }
15168
 
-
15169
 
-  return share;
15170
 
-}
15171
 
-
15172
 
-SambaShare* SambaFile::newPrinter(const QString & name, const QString & printer)
15173
 
-{
15174
 
-  SambaShare* share = newShare(name);
15175
 
-
15176
 
-  if (share)
15177
 
-  {
15178
 
-    share->setValue("printable",true);
15179
 
-    share->setValue("printer name",printer);
15180
 
-  }
15181
 
-
15182
 
-  return share;
15183
 
-}
15184
 
-
15185
 
-
15186
 
-/** No descriptions */
15187
 
-void SambaFile::removeShare(const QString & share)
15188
 
-{
15189
 
-  changed = true;
15190
 
-
15191
 
-  _sambaConfig->removeShare(share);
15192
 
-}
15193
 
-
15194
 
-void SambaFile::removeShare(SambaShare* share)
15195
 
-{
15196
 
-  removeShare(share->getName());
15197
 
-}
15198
 
-
15199
 
-void SambaFile::removeShareByPath(const QString & path) {
15200
 
-  QString share = findShareByPath(path);
15201
 
-  removeShare(share);
15202
 
-}
15203
 
-
15204
 
-/** No descriptions */
15205
 
-SambaShare* SambaFile::getShare(const QString & share) const
15206
 
-{
15207
 
-  SambaShare *s = _sambaConfig->find(share);
15208
 
-
15209
 
-  return s;
15210
 
-}
15211
 
-
15212
 
-/**
15213
 
-* Returns a list of all shared directories
15214
 
-**/
15215
 
-SambaShareList* SambaFile::getSharedDirs() const
15216
 
-{
15217
 
-  SambaShareList* list = new SambaShareList();
15218
 
-
15219
 
-  Q3DictIterator<SambaShare> it(*_sambaConfig);
15220
 
-
15221
 
-  for( ; it.current(); ++it )
15222
 
-  {
15223
 
-    if (!it.current()->isPrinter() &&
15224
 
-        it.current()->getName() != "global")
15225
 
-    {
15226
 
-      list->append(it.current());
15227
 
-    }
15228
 
-  }
15229
 
-
15230
 
-  return list;
15231
 
-}
15232
 
-
15233
 
-/**
15234
 
-* Returns a list of all shared printers
15235
 
-**/
15236
 
-SambaShareList* SambaFile::getSharedPrinters() const
15237
 
-{
15238
 
-  SambaShareList* list = new SambaShareList();
15239
 
-
15240
 
-  Q3DictIterator<SambaShare> it(*_sambaConfig);
15241
 
-
15242
 
-  for( ; it.current(); ++it )
15243
 
-  {
15244
 
-    if (it.current()->isPrinter())
15245
 
-      list->append(it.current());
15246
 
-  }
15247
 
-
15248
 
-  return list;
15249
 
-}
15250
 
-
15251
 
-int SambaFile::getSambaVersion() {
15252
 
-  if (_sambaVersion > -1)
15253
 
-    return _sambaVersion;
15254
 
-
15255
 
-  K3Process testParam;
15256
 
-  testParam << "testparm";
15257
 
-  testParam << "-V";
15258
 
-  _parmOutput.clear();
15259
 
-  _sambaVersion = 2;
15260
 
-
15261
 
-  connect( &testParam, SIGNAL(receivedStdout(K3Process*,char*,int)),
15262
 
-          this, SLOT(testParmStdOutReceived(K3Process*,char*,int)));
15263
 
-
15264
 
-
15265
 
-
15266
 
-  if (testParam.start(K3Process::Block,K3Process::Stdout)) {
15267
 
-    if (_parmOutput.contains('3') )
15268
 
-      _sambaVersion = 3;
15269
 
-  }
15270
 
-
15271
 
-  kDebug(5009) << "Samba version = " << _sambaVersion;
15272
 
-
15273
 
-  return _sambaVersion;
15274
 
-}
15275
 
-
15276
 
-
15277
 
-SambaShare* SambaFile::getTestParmValues(bool reload)
15278
 
-{
15279
 
-  if (_testParmValues && !reload)
15280
 
-    return _testParmValues;
15281
 
-
15282
 
-
15283
 
-  K3Process testParam;
15284
 
-  testParam << "testparm";
15285
 
-  testParam << "-s";
15286
 
-
15287
 
-  if (getSambaVersion() == 3)
15288
 
-     testParam << "-v";
15289
 
-
15290
 
-
15291
 
-  testParam << "/dev/null";
15292
 
-  _parmOutput.clear();
15293
 
-
15294
 
-  connect( &testParam, SIGNAL(receivedStdout(K3Process*,char*,int)),
15295
 
-          this, SLOT(testParmStdOutReceived(K3Process*,char*,int)));
15296
 
-
15297
 
-  if (testParam.start(K3Process::Block,K3Process::Stdout))
15298
 
-  {
15299
 
-    parseParmStdOutput();
15300
 
-  } else
15301
 
-    _testParmValues = new SambaShare(_sambaConfig);
15302
 
-
15303
 
-  return _testParmValues;
15304
 
-}
15305
 
-
15306
 
-void SambaFile::testParmStdOutReceived(K3Process *, char *buffer, int buflen)
15307
 
-{
15308
 
-  _parmOutput+=QString::fromLatin1(buffer,buflen);
15309
 
-}
15310
 
-
15311
 
-void SambaFile::parseParmStdOutput()
15312
 
-{
15313
 
-
15314
 
-  QTextIStream s(&_parmOutput);
15315
 
-
15316
 
-  delete _testParmValues;
15317
 
-  _testParmValues = new SambaShare(_sambaConfig);
15318
 
-
15319
 
-  QString section="";
15320
 
-
15321
 
-  while (!s.atEnd())
15322
 
-  {
15323
 
-    QString line = s.readLine().trimmed();
15324
 
-
15325
 
-    // empty lines
15326
 
-    if (line.isEmpty())
15327
 
-      continue;
15328
 
-
15329
 
-    // comments
15330
 
-    if ('#' == line[0])
15331
 
-      continue;
15332
 
-
15333
 
-    // sections
15334
 
-    if ('[' == line[0])
15335
 
-    {
15336
 
-      // get the name of the section
15337
 
-      section = line.mid(1,line.length()-2).toLower();
15338
 
-      continue;
15339
 
-    }
15340
 
-
15341
 
-    // we are only interested in the global section
15342
 
-    if (section != KGlobal::staticQString("global"))
15343
 
-      continue;
15344
 
-
15345
 
-    // parameter
15346
 
-    // parameter
15347
 
-    int i = line.indexOf('=');
15348
 
-
15349
 
-    if (i>-1) {
15350
 
-      QString name = line.left(i).trimmed();
15351
 
-      QString value = line.mid(i+1).trimmed();
15352
 
-      _testParmValues->setValue(name,value,false,false);
15353
 
-    }
15354
 
-
15355
 
-  }
15356
 
-
15357
 
-
15358
 
-
15359
 
-}
15360
 
-
15361
 
-/**
15362
 
-* Try to find the samba config file position
15363
 
-* First tries the config file, then checks
15364
 
-* several common positions
15365
 
-* If nothing is found returns QString()
15366
 
-**/
15367
 
-QString SambaFile::findSambaConf()
15368
 
-{
15369
 
-    return KSambaShare::instance()->smbConfPath();
15370
 
-}
15371
 
-
15372
 
-void SambaFile::slotSaveJobFinished( KJob * job ) {
15373
 
-  delete _tempFile;
15374
 
-  _tempFile = 0;
15375
 
-}
15376
 
-
15377
 
-void SambaFile::slotJobFinished( KJob * job )
15378
 
-{
15379
 
-  if (job->error())
15380
 
-    emit canceled( job->errorString() );
15381
 
-  else
15382
 
-  {
15383
 
-    openFile();
15384
 
-    emit completed();
15385
 
-  }
15386
 
-}
15387
 
-
15388
 
-bool SambaFile::load()
15389
 
-{
15390
 
-  if (path.isNull() || path.isEmpty())
15391
 
-      return false;
15392
 
-
15393
 
-  kDebug(FILESHARE_DEBUG) << "path=" << path;
15394
 
-  KUrl url(path);
15395
 
-
15396
 
-  if (!url.isLocalFile()) {
15397
 
-    KTemporaryFile tempFile;
15398
 
-    tempFile.open();
15399
 
-    localPath = tempFile.fileName();
15400
 
-    KUrl destURL;
15401
 
-    destURL.setPath( localPath );
15402
 
-    KIO::FileCopyJob * job =  KIO::file_copy( url, destURL, 0600, KIO::Overwrite );
15403
 
-//    emit started( d->m_job );
15404
 
-    connect( job, SIGNAL( result( KJob * ) ), this, SLOT( slotJobFinished ( KJob * ) ) );
15405
 
-    return true;
15406
 
-  } else {
15407
 
-    localPath = path;
15408
 
-    bool ret = openFile();
15409
 
-    if (ret)
15410
 
-        emit completed();
15411
 
-    return ret;
15412
 
-  }
15413
 
-}
15414
 
-
15415
 
-bool SambaFile::openFile() {
15416
 
-  kDebug(FILESHARE_DEBUG) << "..." << endl;
15417
 
-  QFile f(localPath);
15418
 
-
15419
 
-  if (!f.open(QIODevice::ReadOnly)) {
15420
 
-    //throw SambaFileLoadException(QString("<qt>Could not open file <em>%1</em> for reading.</qt>").arg(path));
15421
 
-    return false;
15422
 
-  }
15423
 
-
15424
 
-  QTextStream s(&f);
15425
 
-
15426
 
-  delete _sambaConfig;
15427
 
-
15428
 
-  kDebug(FILESHARE_DEBUG) << "creating SambaConfigFile ..." << endl;
15429
 
-  _sambaConfig = new SambaConfigFile(this);
15430
 
-
15431
 
-    kDebug(FILESHARE_DEBUG) << "start parsing ..." << endl;
15432
 
-
15433
 
-  SambaShare *currentShare = 0L;
15434
 
-  bool continuedLine = false; // is true if the line before ended with a backslash
15435
 
-  QString completeLine;
15436
 
-  QStringList comments;
15437
 
-  while (!s.atEnd())
15438
 
-  {
15439
 
-    QString currentLine = s.readLine().trimmed();
15440
 
-    if (continuedLine)
15441
 
-    {
15442
 
-      completeLine += currentLine;
15443
 
-      continuedLine = false;
15444
 
-    } else
15445
 
-      completeLine = currentLine;
15446
 
-    // is the line continued in the next line ?
15447
 
-    if ( !completeLine.isEmpty() && completeLine[completeLine.length()-1] == '\\' )
15448
 
-    {
15449
 
-      continuedLine = true;
15450
 
-      // remove the ending backslash
15451
 
-      completeLine.truncate( completeLine.length()-1 );
15452
 
-      continue;
15453
 
-    }
15454
 
-
15455
 
-    // comments or empty lines
15456
 
-    if (completeLine.isEmpty() ||
15457
 
-        '#' == completeLine[0] ||
15458
 
-        ';' == completeLine[0])
15459
 
-    {
15460
 
-      comments.append(completeLine);
15461
 
-      continue;
15462
 
-    }
15463
 
-
15464
 
-
15465
 
-    // sections
15466
 
-    if (!completeLine.isEmpty() && '[' == completeLine[0])
15467
 
-    {
15468
 
-      // get the name of the section
15469
 
-      QString section = completeLine.mid(1,completeLine.length()-2);
15470
 
-      currentShare = _sambaConfig->addShare(section);
15471
 
-      currentShare->setComments(comments);
15472
 
-      comments.clear();
15473
 
-
15474
 
-      continue;
15475
 
-    }
15476
 
-
15477
 
-    // parameter
15478
 
-    int i = completeLine.indexOf('=');
15479
 
-
15480
 
-    //completeLine is not empty
15481
 
-    if (i>-1)
15482
 
-    {
15483
 
-      QString name = completeLine.left(i).trimmed();
15484
 
-      QString value = completeLine.mid(i+1).trimmed();
15485
 
-
15486
 
-      if (currentShare)
15487
 
-      {
15488
 
-        currentShare->setComments(name,comments);
15489
 
-        currentShare->setValue(name,value,true,true);
15490
 
-
15491
 
-        comments.clear();
15492
 
-      }
15493
 
-    }
15494
 
-  }
15495
 
-
15496
 
-  f.close();
15497
 
-
15498
 
-  // Make sure there is a global share
15499
 
-  if (!getShare("global")) {
15500
 
-     _sambaConfig->addShare("global");
15501
 
-  }
15502
 
-
15503
 
-  kDebug(FILESHARE_DEBUG) << "finished" << endl;
15504
 
-
15505
 
-  return true;
15506
 
-}
15507
 
-
15508
 
-bool SambaFile::saveTo(const QString & path)
15509
 
-{
15510
 
-  QFile f(path);
15511
 
-
15512
 
-  if (!f.open(QIODevice::WriteOnly))
15513
 
-    return false;
15514
 
-
15515
 
-  QTextStream s(&f);
15516
 
-
15517
 
-  QStringList shareList = _sambaConfig->getShareList();
15518
 
-
15519
 
-  for ( QStringList::Iterator it = shareList.begin(); it != shareList.end(); ++it )
15520
 
-  {
15521
 
-    SambaShare* share = _sambaConfig->find(*it);
15522
 
-
15523
 
-    // First add all comments of the share to the file
15524
 
-    QStringList comments = share->getComments();
15525
 
-    for ( QStringList::Iterator cmtIt = comments.begin(); cmtIt != comments.end(); ++cmtIt )
15526
 
-    {
15527
 
-      s << *cmtIt << endl;
15528
 
-
15529
 
-      kDebug(5009) << *cmtIt;
15530
 
-    }
15531
 
-
15532
 
-    // If there are no lines before the section add
15533
 
-    // a blank line
15534
 
-    if (comments.isEmpty())
15535
 
-      s << endl;
15536
 
-
15537
 
-    // Add the name of the share / section
15538
 
-    s << "[" << share->getName() << "]" << endl;
15539
 
-
15540
 
-    // Add all options of the share
15541
 
-    QStringList optionList = share->getOptionList();
15542
 
-
15543
 
-    for ( QStringList::Iterator optionIt = optionList.begin(); optionIt != optionList.end(); ++optionIt )
15544
 
-    {
15545
 
-
15546
 
-      // Add the comments of the option
15547
 
-      comments = share->getComments(*optionIt);
15548
 
-      for ( QStringList::Iterator cmtIt = comments.begin(); cmtIt != comments.end(); ++cmtIt )
15549
 
-      {
15550
 
-        s << *cmtIt << endl;
15551
 
-      }
15552
 
-
15553
 
-      // Add the option
15554
 
-      s << *optionIt << " = " << *share->find(*optionIt) << endl;
15555
 
-    }
15556
 
-
15557
 
-
15558
 
-  }
15559
 
-
15560
 
-  f.close();
15561
 
-
15562
 
-  return true;
15563
 
-}
15564
 
-
15565
 
-
15566
 
-SambaConfigFile* SambaFile::getSambaConfigFile(KConfig* config)
15567
 
-{
15568
 
-  QStringList groups = config->groupList();
15569
 
-
15570
 
-  SambaConfigFile* samba = new SambaConfigFile(this);
15571
 
-
15572
 
-  for ( QStringList::Iterator it = groups.begin(); it != groups.end(); ++it )
15573
 
-  {
15574
 
-    QMap<QString,QString> entries = config->entryMap(*it);
15575
 
-
15576
 
-    SambaShare *share = new SambaShare(*it,samba);
15577
 
-    samba->insert(*it,share);
15578
 
-
15579
 
-    for (QMap<QString,QString>::Iterator it2 = entries.begin(); it2 != entries.end(); ++it2 )
15580
 
-    {
15581
 
-      if (!it2.value().isEmpty())
15582
 
-          share->setValue(it2.key(),QString(it2.value()),false,false);
15583
 
-    }
15584
 
-
15585
 
-  }
15586
 
-
15587
 
-  return samba;
15588
 
-
15589
 
-}
15590
 
-
15591
 
-KConfig* SambaFile::getSimpleConfig(SambaConfigFile* sambaConfig, const QString & path)
15592
 
-{
15593
 
-  KConfig *config = new KConfig(path, KConfig::SimpleConfig);
15594
 
-
15595
 
-  Q3DictIterator<SambaShare> it(*sambaConfig);
15596
 
-
15597
 
-  for ( ; it.current(); ++it )
15598
 
-  {
15599
 
-    SambaShare* share = it.current();
15600
 
-
15601
 
-    KConfigGroup cg(config, it.currentKey());
15602
 
-
15603
 
-    Q3DictIterator<QString> it2(*share);
15604
 
-
15605
 
-    for (; it2.current(); ++it2 )
15606
 
-    {
15607
 
-      cg.writeEntry(it2.currentKey(), *it2.current());
15608
 
-    }
15609
 
-
15610
 
-  }
15611
 
-
15612
 
-  return config;
15613
 
-}
15614
 
-
15615
 
-#include "sambafile.moc"
15616
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/sambafile.h
15617
 
===================================================================
15618
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/sambafile.h        2011-01-19 17:21:04.000000000 -0500
15619
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
15620
 
@@ -1,178 +0,0 @@
15621
 
-/*
15622
 
-  Copyright (c) 2002-2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
15623
 
-
15624
 
-  This program is free software; you can redistribute it and/or modify
15625
 
-  it under the terms of the GNU General Public License as published by
15626
 
-  the Free Software Foundation; either version 2 of the License, or
15627
 
-  (at your option) any later version.
15628
 
-
15629
 
-  This program is distributed in the hope that it will be useful,
15630
 
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
15631
 
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15632
 
-  GNU General Public License for more details.
15633
 
-
15634
 
-  You should have received a copy of the GNU General Public License
15635
 
-  along with this program; if not, write to the Free Software
15636
 
-  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
15637
 
-
15638
 
-*/
15639
 
-
15640
 
-#ifndef SAMBAFILE_H
15641
 
-#define SAMBAFILE_H
15642
 
-
15643
 
-
15644
 
-#include <q3dict.h>
15645
 
-#include <qstring.h>
15646
 
-#include <qobject.h>
15647
 
-#include <kio/job.h>
15648
 
-
15649
 
-#include "sambashare.h"
15650
 
-
15651
 
-
15652
 
-class KConfig;
15653
 
-class K3Process;
15654
 
-class KConfig;
15655
 
-class KTemporaryFile;
15656
 
-
15657
 
-class SambaFile;
15658
 
-
15659
 
-class SambaFileLoadException
15660
 
-{
15661
 
-  public:
15662
 
-    SambaFileLoadException(const QString & msg) { message = msg; }
15663
 
-    
15664
 
-    QString getMessage() { return message; }
15665
 
-  protected:
15666
 
-    QString message;
15667
 
-};
15668
 
-
15669
 
-class SambaConfigFile : public Q3Dict<SambaShare>
15670
 
-{
15671
 
-public:
15672
 
-  SambaConfigFile(SambaFile*);
15673
 
-  QString getDefaultValue(const QString & name);
15674
 
-  QStringList getShareList();
15675
 
-  void addShare(const QString & name, SambaShare* share);
15676
 
-  SambaShare* addShare(const QString & name);
15677
 
-  void removeShare(const QString & name);
15678
 
-protected:
15679
 
-  SambaFile* _sambaFile;
15680
 
-  QStringList _shareList;
15681
 
-};
15682
 
-
15683
 
-class SambaFile : public QObject
15684
 
-{
15685
 
-Q_OBJECT
15686
 
-public: 
15687
 
-       SambaFile(const QString & _path, bool _readonly=true);
15688
 
-       ~SambaFile();
15689
 
-
15690
 
-  /** No descriptions */
15691
 
-  QString findShareByPath(const QString & path) const;
15692
 
-  void removeShareByPath(const QString & path);
15693
 
-  
15694
 
-  
15695
 
-  SambaShare* newShare(const QString & name);
15696
 
-  SambaShare* newShare(const QString & name, const QString & path);
15697
 
-  SambaShare* newPrinter(const QString & name, const QString & printer);
15698
 
-
15699
 
-  void removeShare(const QString & share);
15700
 
-  void removeShare(SambaShare* share);
15701
 
-
15702
 
-       void renameShare(const QString & oldName, const QString & newName);
15703
 
-
15704
 
-  SambaShare* getShare(const QString & share) const;
15705
 
-  
15706
 
-  /**
15707
 
-   * Returns a list of all shared directories
15708
 
-   **/
15709
 
-  SambaShareList* getSharedDirs() const;
15710
 
-
15711
 
-  /**
15712
 
-   * Returns a list of all shared printers
15713
 
-   **/
15714
 
-  SambaShareList* getSharedPrinters() const;
15715
 
-
15716
 
-  /**
15717
 
-   * Returns a name which isn't already used for a share
15718
 
-   * if the alreadyUsedName parameter is given, then
15719
 
-   * a name based on this name is returned.
15720
 
-   * E.g.: if public is already used, the method could return 
15721
 
-   * public2
15722
 
-   **/
15723
 
-       QString getUnusedName(const QString alreadyUsedName=QString()) const;
15724
 
-
15725
 
-  /**
15726
 
-   * Returns all values of the global section
15727
 
-   * which are returned by the testparam program
15728
 
-   * if the values were already loaded then these
15729
 
-   * values are returned except the reload parameter
15730
 
-   * is true
15731
 
-   **/
15732
 
-  SambaShare* getTestParmValues(bool reload=false);
15733
 
-
15734
 
-  static QString findSambaConf();
15735
 
-
15736
 
-
15737
 
-  int getSambaVersion();
15738
 
-
15739
 
-  /**
15740
 
-   * Load all data from the smb.conf file
15741
 
-   * Can load a remote file
15742
 
-   **/
15743
 
-  bool load();
15744
 
-
15745
 
-  bool save();
15746
 
-  
15747
 
-  /**
15748
 
-   * Reads the local smb.conf
15749
 
-   */
15750
 
-  bool openFile();
15751
 
-  
15752
 
-  bool isRemoteFile();
15753
 
-
15754
 
-  /**
15755
 
-   * Save all data to the specified file
15756
 
-   * if successful returns true otherwise false
15757
 
-   **/
15758
 
-  bool saveTo(const QString & path);
15759
 
-
15760
 
-protected:
15761
 
-  bool readonly;
15762
 
-  bool changed;
15763
 
-  QString path;
15764
 
-  QString localPath;
15765
 
-  SambaConfigFile *_sambaConfig;
15766
 
-  SambaShare* _testParmValues;
15767
 
-  QString _parmOutput;
15768
 
-  int _sambaVersion;
15769
 
-
15770
 
-  void parseParmStdOutput();
15771
 
-  SambaConfigFile* getSambaConfigFile(KConfig* config);
15772
 
-  KConfig* getSimpleConfig(SambaConfigFile* sambaConfig, const QString & filename);
15773
 
-
15774
 
-
15775
 
-
15776
 
-private:
15777
 
-  void copyConfigs(KConfig* first, KConfig* second);
15778
 
-  KTemporaryFile * _tempFile;
15779
 
-public slots:
15780
 
-
15781
 
-  /**
15782
 
-   * Saves all changes to the smb.conf file
15783
 
-   * if the user is not allowed she'll be asked
15784
 
-   * for a root password
15785
 
-   **/
15786
 
-  bool slotApply();
15787
 
-protected slots:
15788
 
-  void testParmStdOutReceived(K3Process *proc, char *buffer, int buflen);
15789
 
-  void slotJobFinished( KJob *);
15790
 
-  void slotSaveJobFinished( KJob *);
15791
 
-
15792
 
-signals:
15793
 
-  void canceled(const QString &);
15794
 
-  void completed();  
15795
 
-  
15796
 
-};
15797
 
-
15798
 
-#endif
15799
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/sambashare.cpp
15800
 
===================================================================
15801
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/sambashare.cpp     2011-01-19 17:21:04.000000000 -0500
15802
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
15803
 
@@ -1,337 +0,0 @@
15804
 
-/***************************************************************************
15805
 
-                          sambashare.cpp  -  description
15806
 
-                            -------------------
15807
 
-    begin                : Mon Jun 12 2002
15808
 
-    copyright            : (C) 2002 by Jan Schäfer
15809
 
-    email                : janschaefer@users.sourceforge.net
15810
 
-***************************************************************************/
15811
 
-
15812
 
-/******************************************************************************
15813
 
-*                                                                            *
15814
 
-*  This file is part of KSambaPlugin.                                        *
15815
 
-*                                                                            *
15816
 
-*  KSambaPlugin is free software; you can redistribute it and/or modify      *
15817
 
-*  it under the terms of the GNU General Public License as published by      *
15818
 
-*  the Free Software Foundation; either version 2 of the License, or         *
15819
 
-*  (at your option) any later version.                                       *
15820
 
-*                                                                            *
15821
 
-*  KSambaPlugin is distributed in the hope that it will be useful,           *
15822
 
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
15823
 
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
15824
 
-*  GNU General Public License for more details.                              *
15825
 
-*                                                                            *
15826
 
-*  You should have received a copy of the GNU General Public License         *
15827
 
-*  along with KSambaPlugin; if not, write to the Free Software                     *
15828
 
-*  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
15829
 
-*                                                                            *
15830
 
-******************************************************************************/
15831
 
-
15832
 
-#include <kdebug.h>
15833
 
-#include <qstringlist.h>
15834
 
-
15835
 
-#include "sambafile.h"
15836
 
-#include "sambashare.h"
15837
 
-#include "common.h"
15838
 
-
15839
 
-SambaShare::SambaShare(SambaConfigFile* sambaFile)
15840
 
-  : Q3Dict<QString>(10,false)
15841
 
-{
15842
 
-  _sambaFile = sambaFile;
15843
 
-  setName("defaults");
15844
 
-  setAutoDelete(true);
15845
 
-}
15846
 
-
15847
 
-SambaShare::SambaShare(const QString & name, SambaConfigFile* sambaFile)
15848
 
-  : Q3Dict<QString>(10,false)
15849
 
-{
15850
 
-  _sambaFile = sambaFile;
15851
 
-  setName(name);
15852
 
-  setAutoDelete(true);
15853
 
-}
15854
 
-
15855
 
-const QString& SambaShare::getName() const
15856
 
-{
15857
 
-  return _name;
15858
 
-}
15859
 
-
15860
 
-bool SambaShare::setName(const QString & name, bool testWetherExists)
15861
 
-{
15862
 
-
15863
 
-  if ( testWetherExists &&
15864
 
-      _sambaFile->find(name) &&
15865
 
-      _sambaFile->find(name) != this)
15866
 
-    return false;
15867
 
-
15868
 
-  _name = name;
15869
 
-return true;
15870
 
-}
15871
 
-
15872
 
-bool SambaShare::optionSupported(const QString & name)
15873
 
-{
15874
 
-  QString defaultValue = _sambaFile->getDefaultValue(name);
15875
 
-//  kDebug(5009) << name << " = " << defaultValue << " null : " << defaultValue.isNull();
15876
 
-  return ! defaultValue.isNull();
15877
 
-}
15878
 
-
15879
 
-/**
15880
 
-* Returns the value of the given parameter
15881
 
-* if no value is set yet the default value
15882
 
-* will be returned.
15883
 
-**/
15884
 
-QString SambaShare::getValue(const QString & name, bool globalValue, bool defaultValue)
15885
 
-{
15886
 
-  QString synonym = getSynonym(name);
15887
 
-
15888
 
-  QString* str = find(synonym);
15889
 
-  QString ret;
15890
 
-
15891
 
-  if (str) {
15892
 
-    ret = *str;
15893
 
-  }
15894
 
-  else
15895
 
-  if (globalValue)
15896
 
-    ret = getGlobalValue(synonym,defaultValue);
15897
 
-  else
15898
 
-  if (defaultValue)
15899
 
-    ret = getDefaultValue(synonym);
15900
 
-
15901
 
-
15902
 
-  if (name=="writable" || name=="write ok" || name=="writeable")
15903
 
-    ret = textFromBool( ! boolFromText(ret) );
15904
 
-
15905
 
-  return ret;
15906
 
-}
15907
 
-
15908
 
-bool SambaShare::getBoolValue(const QString & name, bool globalValue, bool defaultValue)
15909
 
-{
15910
 
-  return boolFromText(getValue(name,globalValue,defaultValue));
15911
 
-}
15912
 
-
15913
 
-
15914
 
-QString SambaShare::getGlobalValue(const QString & name, bool defaultValue)
15915
 
-{
15916
 
-  if (!_sambaFile)
15917
 
-    return getValue(name,false,defaultValue);
15918
 
-
15919
 
-  SambaShare* globals = _sambaFile->find("global");
15920
 
-
15921
 
-  QString ret;
15922
 
-  if (globals != 0)
15923
 
-    ret = globals->getValue(name,false,defaultValue);
15924
 
-  else if (defaultValue)
15925
 
-    ret = getDefaultValue(name);
15926
 
-
15927
 
-  return ret;
15928
 
-}
15929
 
-
15930
 
-
15931
 
-/**
15932
 
-* Returns the default synonym for the given parameter
15933
 
-* if no synonym exists the original parameter in lower
15934
 
-* case is returned
15935
 
-**/
15936
 
-QString SambaShare::getSynonym(const QString & name) const
15937
 
-{
15938
 
-  QString lname = name.toLower().trimmed();
15939
 
-
15940
 
-  if (lname == "browsable") return "browseable";
15941
 
-  if (lname == "allow hosts") return "hosts allow";
15942
 
-  if (lname == "auto services") return "preload";
15943
 
-  if (lname == "casesignames") return "case sensitive";
15944
 
-  if (lname == "create mode") return "create mask";
15945
 
-  if (lname == "debuglevel") return "log level";
15946
 
-  if (lname == "default") return "default service";
15947
 
-  if (lname == "deny hosts") return "hosts deny";
15948
 
-  if (lname == "directory") return "path";
15949
 
-  if (lname == "directory mode") return "directory mask";
15950
 
-  if (lname == "exec") return "preexec";
15951
 
-  if (lname == "group") return "force group";
15952
 
-  if (lname == "lock dir") return "lock directory";
15953
 
-  if (lname == "min passwd length") return "min password length";
15954
 
-  if (lname == "only guest") return "guest only";
15955
 
-  if (lname == "preferred master") return "preferred master";
15956
 
-  if (lname == "print ok") return "printable";
15957
 
-  if (lname == "printcap") return "printcap name";
15958
 
-  if (lname == "printer") return "printer name";
15959
 
-  if (lname == "protocol") return "max protocol";
15960
 
-  if (lname == "public") return "guest ok";
15961
 
-  if (lname == "writable") return "read only";
15962
 
-  if (lname == "write ok") return "read only";
15963
 
-  if (lname == "read only") return "read only";
15964
 
-  if (lname == "root") return "root directory";
15965
 
-  if (lname == "root") return "root dir";
15966
 
-  if (lname == "timestamp logs") return "debug timestamp";
15967
 
-  if (lname == "user") return "username";
15968
 
-  if (lname == "users") return "username";
15969
 
-  if (lname == "idmap uid") return "winbind uid";
15970
 
-  if (lname == "idmap gid") return "winbind gid";
15971
 
-  if (lname == "vfs object") return "vfs objects";
15972
 
-
15973
 
-  return lname;
15974
 
-}
15975
 
-
15976
 
-void SambaShare::setValue(const QString & name, const QString & value, bool globalValue, bool defaultValue)
15977
 
-{
15978
 
-  QString synonym = getSynonym(name);
15979
 
-
15980
 
-  QString newValue = value;
15981
 
-
15982
 
-  if (newValue.isNull())
15983
 
-    newValue = "";
15984
 
-
15985
 
-  if (getName().toLower() == "global")
15986
 
-    globalValue = false;
15987
 
-
15988
 
-  if (name=="writable" || name=="write ok" || name=="writeable")
15989
 
-  {
15990
 
-    synonym = "read only";
15991
 
-    newValue = textFromBool(!boolFromText(value));
15992
 
-  }
15993
 
-
15994
 
-  QString global = "";
15995
 
-
15996
 
-  if (globalValue && !hasComments(synonym))
15997
 
-  {
15998
 
-    global = getGlobalValue(synonym, false);
15999
 
-
16000
 
-    if ( newValue.compare(global, Qt::CaseInsensitive) == 0 )
16001
 
-    {
16002
 
-      remove(synonym);
16003
 
-      _optionList.removeAll(synonym);
16004
 
-      return;
16005
 
-    }
16006
 
-  }
16007
 
-
16008
 
-  // If the option has a comment we don't remove
16009
 
-  // it if the value is equal to the default value.
16010
 
-  // That's because the author of the option has thought about it.
16011
 
-  if (defaultValue && global.isEmpty() && !hasComments(synonym))
16012
 
-  {
16013
 
-    if ( newValue.trimmed().toLower() == getDefaultValue(synonym).trimmed().toLower() )
16014
 
-    {
16015
 
-      kDebug(5009) << getName() << " global: " << global << " remove " << synonym;
16016
 
-      remove(synonym);
16017
 
-      _optionList.removeAll(synonym);
16018
 
-      return;
16019
 
-    }
16020
 
-
16021
 
-  }
16022
 
-
16023
 
-  if (!find(synonym))
16024
 
-  {
16025
 
-    _optionList.append(synonym);
16026
 
-  }
16027
 
-
16028
 
-  replace(synonym,new QString(newValue));
16029
 
-}
16030
 
-
16031
 
-void SambaShare::setValue(const QString & name, bool value, bool globalValue, bool defaultValue)
16032
 
-{
16033
 
-  setValue(name,textFromBool(value),globalValue, defaultValue);
16034
 
-}
16035
 
-
16036
 
-void SambaShare::setValue(const QString & name, int value, bool globalValue, bool defaultValue)
16037
 
-{
16038
 
-  setValue(name,QString::number(value),globalValue, defaultValue);
16039
 
-}
16040
 
-
16041
 
-/**
16042
 
-* Returns the default value of the parameter
16043
 
-**/
16044
 
-QString SambaShare::getDefaultValue(const QString & name)
16045
 
-{
16046
 
-  QString defaultValue = _sambaFile->getDefaultValue(name);
16047
 
-  if (defaultValue.isNull())
16048
 
-    defaultValue = "";
16049
 
-
16050
 
-  return defaultValue;
16051
 
-}
16052
 
-
16053
 
-bool SambaShare::getDefaultBoolValue(const QString & name)
16054
 
-{
16055
 
-
16056
 
-  return boolFromText(getDefaultValue(name));
16057
 
-}
16058
 
-
16059
 
-/**
16060
 
-* Sets the comments for the passed option
16061
 
-**/
16062
 
-void SambaShare::setComments(const QString & name, const QStringList & commentList)
16063
 
-{
16064
 
-  // Only add inempty lists
16065
 
-  if (commentList.empty())
16066
 
-    return;
16067
 
-
16068
 
-  QString synonym = getSynonym(name);
16069
 
-
16070
 
-  _commentList.replace(name,new QStringList(commentList));
16071
 
-}
16072
 
-
16073
 
-/**
16074
 
-* Returns the comments of the passed option
16075
 
-**/
16076
 
-QStringList SambaShare::getComments(const QString & name)
16077
 
-{
16078
 
-  QStringList* list = _commentList.find(getSynonym(name));
16079
 
-
16080
 
-  if (list)
16081
 
-    return QStringList(*list);
16082
 
-  else
16083
 
-    return QStringList();
16084
 
-}
16085
 
-
16086
 
-
16087
 
-bool SambaShare::hasComments(const QString & name)
16088
 
-{
16089
 
-  return 0L != _commentList.find(getSynonym(name));
16090
 
-}
16091
 
-
16092
 
-/**
16093
 
-* Returns the comments of the share
16094
 
-* e.g. the text above the [...] section
16095
 
-**/
16096
 
-QStringList SambaShare::getComments()
16097
 
-{
16098
 
-  return _comments;
16099
 
-}
16100
 
-
16101
 
-/**
16102
 
-* Sets the comments for the share
16103
 
-* e.g. the text above the [...] section
16104
 
-**/
16105
 
-void SambaShare::setComments(const QStringList & commentList)
16106
 
-{
16107
 
-  _comments = commentList;
16108
 
-}
16109
 
-
16110
 
-QStringList SambaShare::getOptionList()
16111
 
-{
16112
 
-  return _optionList;
16113
 
-}
16114
 
-
16115
 
-/**
16116
 
-* Returns true if this share is a printer
16117
 
-**/
16118
 
-bool SambaShare::isPrinter()
16119
 
-{
16120
 
-  QString* str = find("printable");
16121
 
-
16122
 
-  if (!str)
16123
 
-      str = find("print ok");
16124
 
-
16125
 
-  return str!=0;
16126
 
-}
16127
 
-
16128
 
-/**
16129
 
-* Returns true if the share name is
16130
 
-* global, printers or homes
16131
 
-**/
16132
 
-bool SambaShare::isSpecialSection()
16133
 
-{
16134
 
-  if ( _name.toLower() == "global" ||
16135
 
-      _name.toLower() == "printers" ||
16136
 
-      _name.toLower() == "homes" )
16137
 
-    return true;
16138
 
-  else
16139
 
-    return false;
16140
 
-}
16141
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/sambashare.h
16142
 
===================================================================
16143
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/sambashare.h       2011-01-19 17:21:04.000000000 -0500
16144
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
16145
 
@@ -1,231 +0,0 @@
16146
 
-/***************************************************************************
16147
 
-                          sambashare.h  -  description
16148
 
-                             -------------------
16149
 
-    begin                : Mon 12 2002
16150
 
-    copyright            : (C) 2002 by Jan Schäfer
16151
 
-    email                : janschaefer@users.sourceforge.net
16152
 
- ***************************************************************************/
16153
 
-
16154
 
-/******************************************************************************
16155
 
- *                                                                            *
16156
 
- *  This file is part of KSambaPlugin.                                          *
16157
 
- *                                                                            *
16158
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify            *
16159
 
- *  it under the terms of the GNU General Public License as published by      *
16160
 
- *  the Free Software Foundation; either version 2 of the License, or         *
16161
 
- *  (at your option) any later version.                                       *
16162
 
- *                                                                            *
16163
 
- *  KSambaPlugin is distributed in the hope that it will be useful,                 *
16164
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
16165
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
16166
 
- *  GNU General Public License for more details.                              *
16167
 
- *                                                                            *
16168
 
- *  You should have received a copy of the GNU General Public License         *
16169
 
- *  along with KSambaPlugin; if not, write to the Free Software                     *
16170
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
16171
 
- *                                                                            *
16172
 
- ******************************************************************************/
16173
 
-
16174
 
-#ifndef SAMBASHARE_H
16175
 
-#define SAMBASHARE_H
16176
 
-
16177
 
-#include <q3dict.h>
16178
 
-#include <qstring.h>
16179
 
-#include <qstringlist.h>
16180
 
-#include <q3ptrlist.h>
16181
 
-
16182
 
-class SambaConfigFile;
16183
 
-class QStringList;
16184
 
-
16185
 
-/**
16186
 
- * A class which represents a Samba share
16187
 
- * @author Jan Sch&auml;fer
16188
 
- **/
16189
 
-class SambaShare :public Q3Dict<QString>
16190
 
-{
16191
 
-public:
16192
 
-
16193
 
-       /**
16194
 
-   * Creates a new SambaShare with an empty name
16195
 
-   **/
16196
 
-       SambaShare(SambaConfigFile* sambaFile);
16197
 
-
16198
 
-       /**
16199
 
-   * Creates a new SambaShare with the given name
16200
 
-   * @param name the name of the share
16201
 
-   **/
16202
 
-  SambaShare(const QString & name, SambaConfigFile* sambaFile);
16203
 
-
16204
 
-  /** 
16205
 
-   * Returns the name of the share
16206
 
-   **/
16207
 
-  const QString& getName() const;
16208
 
-
16209
 
-
16210
 
-  /**
16211
 
-   * Sets the name of the share
16212
 
-   * returns false if the name already exists and the testWetherExists
16213
 
-   * parameter is set to true
16214
 
-   **/
16215
 
-  bool setName(const QString & name, bool testWetherExists=true);
16216
 
-
16217
 
-  /**
16218
 
-   * Tests whether or not the given option is supported by Samba.
16219
 
-   * It does this by testing the output of testparm for this option
16220
 
-   **/
16221
 
-  bool optionSupported(const QString & name);
16222
 
-  
16223
 
-  /**
16224
 
-   * Returns the value of the given parameter
16225
 
-   * if the parameter doesn't exists, the
16226
 
-        * global and then the default value is returned.
16227
 
-   * @param name the name of the parameter
16228
 
-   * @param gobalValue if the gobal value should be returend
16229
 
-   * @param defaultValue if the default value should be returned or a null string
16230
 
-   **/
16231
 
-  QString getValue(const QString & name, bool globalValue=true, bool defaultValue=true);
16232
 
-
16233
 
-  /**
16234
 
-   * Same as above but for boolean parameters
16235
 
-   * Don't use defaultValue = false with this function
16236
 
-   * because you can't distinguish an unset parameter
16237
 
-   * from a false parameter
16238
 
-   **/
16239
 
-  bool getBoolValue(const QString & name, bool globalValue=true, bool defaultValue=true);
16240
 
-
16241
 
-  /**
16242
 
-   * Returns the value from the [globals] section
16243
 
-   **/
16244
 
-       QString getGlobalValue(const QString & name, bool defaultValue=true);
16245
 
-
16246
 
-  /**
16247
 
-   * Sets the parameter name to the given value
16248
 
-   * @param value the value of the parameter
16249
 
-   * @param name the name of the parameter
16250
 
-   * @param globalValue if true then the value is only set if it is different to the global value
16251
 
-   * @param defaultValue if true then the value is only set if it is different to the default value
16252
 
-   *                     if globalValue and defaultValue is true then the value is set when a global value
16253
 
-   *                     exists and it it is different to it. If no global value exists then it is only
16254
 
-   *                     set if different to the default value.
16255
 
-   **/
16256
 
-  void setValue(const QString & name,const QString & value, bool globalValue=true, bool defaultValue=true);
16257
 
-
16258
 
-  /**
16259
 
-   * Same as above but for boolean parameters
16260
 
-   **/
16261
 
-  void setValue(const QString & name, bool value, bool globalValue=true, bool defaultValue=true);
16262
 
-
16263
 
-  /**
16264
 
-   * Same as above but for integer parameters
16265
 
-   **/
16266
 
-  void setValue(const QString & name, int value, bool globalValue=true, bool defaultValue=true);
16267
 
-
16268
 
-  /**
16269
 
-   * Returns the default value of the parameter
16270
 
-   * @param name the name of the parameter
16271
 
-   **/
16272
 
-       QString getDefaultValue(const QString & name);
16273
 
-
16274
 
-  /**
16275
 
-   * Same as above but for booleans
16276
 
-   **/
16277
 
-  bool getDefaultBoolValue(const QString & name);
16278
 
-
16279
 
-  /**
16280
 
-        * Returns the default synonym for the given parameter
16281
 
-        * if no synonym exists the original parameter in lower
16282
 
-        * case is returned
16283
 
-        **/
16284
 
-       QString getSynonym(const QString & name) const;
16285
 
-
16286
 
-  /**
16287
 
-   * Returns the comments of the share
16288
 
-   * e.g. the text above the [...] section
16289
 
-   **/
16290
 
-  QStringList getComments();
16291
 
-
16292
 
-  /**
16293
 
-   * Sets the comments for the share
16294
 
-   * e.g. the text above the [...] section
16295
 
-   **/
16296
 
-  void setComments(const QStringList & commentList);
16297
 
-  
16298
 
-  /**
16299
 
-   * Sets the comments for the passed option
16300
 
-   **/
16301
 
-  void setComments(const QString & name, const QStringList & commentList);
16302
 
-
16303
 
-  /**
16304
 
-   * Returns the comments of the passed option
16305
 
-   **/
16306
 
-  QStringList getComments(const QString & name);
16307
 
-
16308
 
-  /**
16309
 
-   * Returns true if the passed option has comments
16310
 
-   * otherwise returns false
16311
 
-   **/
16312
 
-  bool hasComments(const QString & name);
16313
 
-
16314
 
-  /**
16315
 
-   * Returns the list of all options
16316
 
-   * the order of the options is exactly the
16317
 
-   * order of the insertion of the options
16318
 
-   **/
16319
 
-  QStringList getOptionList();
16320
 
-  
16321
 
-       /**
16322
 
-   * Returns true if this share is a printer
16323
 
-   * that's if printable = true
16324
 
-   **/
16325
 
-  bool isPrinter();
16326
 
-
16327
 
-  /**
16328
 
-   * Returns true if the share name is
16329
 
-   * global, printers or homes
16330
 
-   **/
16331
 
-  bool isSpecialSection();
16332
 
-
16333
 
-protected:
16334
 
-       /**
16335
 
-   * The name of the share
16336
 
-   * could be also printers, global and homes
16337
 
-   **/
16338
 
-       QString _name;
16339
 
-  SambaConfigFile* _sambaFile;
16340
 
-
16341
 
-  /**
16342
 
-   * This attribute stores all option comments.
16343
 
-   * the comments which stood above the option name
16344
 
-   * are stored in this QStringList
16345
 
-   **/
16346
 
-  Q3Dict<QStringList> _commentList;
16347
 
-
16348
 
-  /**
16349
 
-   * The comments for this share
16350
 
-   **/
16351
 
-  QStringList _comments;
16352
 
-
16353
 
-  /**
16354
 
-   * An extra list which holds
16355
 
-   * all stored options
16356
 
-   * You might say, hey for what is this ?
16357
 
-   * We have them already stored in the QDict.
16358
 
-   * That's right, but there is a problem :
16359
 
-   * QDict doesn't preserve the order of
16360
 
-   * the inserted items, but when saving
16361
 
-   * the options back to the smb.conf
16362
 
-   * we want to have exactly the same order
16363
 
-   * so this QStringList is only for saving
16364
 
-   * the order of the options.
16365
 
-   * On the other side we need a very fast lookup
16366
 
-   * of the options, because we lookup very frequently
16367
 
-   * so this is the best way to do both.
16368
 
-   **/
16369
 
-  QStringList _optionList;
16370
 
-
16371
 
-};
16372
 
-
16373
 
-typedef Q3PtrList<SambaShare> SambaShareList;
16374
 
-
16375
 
-
16376
 
-#endif
16377
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/sharedlgimpl.cpp
16378
 
===================================================================
16379
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/sharedlgimpl.cpp   2011-01-19 17:21:04.000000000 -0500
16380
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
16381
 
@@ -1,631 +0,0 @@
16382
 
-/***************************************************************************
16383
 
-                          sharedlgimpl.cpp  -  description
16384
 
-                             -------------------
16385
 
-    begin                : Tue June 6 2002
16386
 
-    copyright            : (C) 2002 by Jan Schäfer
16387
 
-    email                : janschaefer@users.sourceforge.net
16388
 
- ***************************************************************************/
16389
 
-
16390
 
-/******************************************************************************
16391
 
- *                                                                            *
16392
 
- *  This file is part of KSambaPlugin.                                          *
16393
 
- *                                                                            *
16394
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify            *
16395
 
- *  it under the terms of the GNU General Public License as published by      *
16396
 
- *  the Free Software Foundation; either version 2 of the License, or         *
16397
 
- *  (at your option) any later version.                                       *
16398
 
- *                                                                            *
16399
 
- *  KSambaPlugin is distributed in the hope that it will be useful,                 *
16400
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
16401
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
16402
 
- *  GNU General Public License for more details.                              *
16403
 
- *                                                                            *
16404
 
- *  You should have received a copy of the GNU General Public License         *
16405
 
- *  along with KSambaPlugin; if not, write to the Free Software                     *
16406
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
16407
 
- *                                                                            *
16408
 
- ******************************************************************************/
16409
 
-
16410
 
-/**
16411
 
- * @author Jan Schäfer
16412
 
- **/
16413
 
-
16414
 
-#include <qcheckbox.h>
16415
 
-#include <qlineedit.h>
16416
 
-#include <qcombobox.h>
16417
 
-#include <qlabel.h>
16418
 
-#include <q3groupbox.h>
16419
 
-#include <qlayout.h>
16420
 
-#include <qtabwidget.h>
16421
 
-#include <qregexp.h>
16422
 
-#include <qstringlist.h>
16423
 
-#include <q3grid.h>
16424
 
-#include <qcursor.h>
16425
 
-#include <q3table.h>
16426
 
-#include <q3listbox.h>
16427
 
-#include <qtoolbutton.h>
16428
 
-#include <qpixmap.h>
16429
 
-#include <q3frame.h>
16430
 
-#include <qwidget.h>
16431
 
-#include <QVBoxLayout>
16432
 
-#include <QList>
16433
 
-#include <QLabel>
16434
 
-
16435
 
-#include <klineedit.h>
16436
 
-#include <kurlrequester.h>
16437
 
-#include <knuminput.h>
16438
 
-#include <kdebug.h>
16439
 
-#include <kcombobox.h>
16440
 
-#include <kiconloader.h>
16441
 
-#include <klocale.h>
16442
 
-#include <kdirlister.h>
16443
 
-#include <kmessagebox.h>
16444
 
-#include <kmenu.h>
16445
 
-#include <kaction.h>
16446
 
-#include <krestrictedline.h>
16447
 
-#include <KPageWidget>
16448
 
-
16449
 
-#include "smbpasswdfile.h"
16450
 
-#include "sambafile.h"
16451
 
-#include "common.h"
16452
 
-#include "passwd.h"
16453
 
-#include "usertabimpl.h"
16454
 
-#include "filemodedlgimpl.h"
16455
 
-#include "hiddenfileview.h"
16456
 
-#include "dictmanager.h"
16457
 
-
16458
 
-#include "sharedlgimpl.h"
16459
 
-
16460
 
-#define DEBUG 5009
16461
 
-
16462
 
-ShareDlgImpl::ShareDlgImpl(QWidget* parent, SambaShare* share)
16463
 
-  : QDialog(parent)
16464
 
-{
16465
 
-  if (!share) {
16466
 
-    kWarning() << "share parameter is null!";
16467
 
-    return;
16468
 
-  }
16469
 
-
16470
 
-  kDebug(DEBUG) << "setting up ui ..." << endl;
16471
 
-  setupUi(this);
16472
 
-
16473
 
-  kDebug(DEBUG) << "creating DictManager ..." << endl;
16474
 
-  _dictMngr = new DictManager(share);
16475
 
-  _share = share;
16476
 
-
16477
 
-  initDialog();
16478
 
-  initAdvancedTab();
16479
 
-
16480
 
-  kDebug(DEBUG) << "finished" << endl;
16481
 
-
16482
 
-}
16483
 
-
16484
 
-void ShareDlgImpl::initDialog()
16485
 
-{
16486
 
-  if (!_share)
16487
 
-     return;
16488
 
-
16489
 
-  kDebug(DEBUG) << "started" << endl;
16490
 
-
16491
 
-  // Base settings
16492
 
-  _fileView = 0L;
16493
 
-
16494
 
-  kDebug(DEBUG) << "setting pathUrlRq mode ..." << endl;
16495
 
-
16496
 
-  pathUrlRq->setMode(KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly);
16497
 
-
16498
 
-  kDebug(DEBUG) << "checking homes ..." << endl;
16499
 
-
16500
 
-  homeChk->setChecked(_share->getName().toLower() == "homes");
16501
 
-  shareNameEdit->setText( _share->getName() );
16502
 
-
16503
 
-  directoryPixLbl->setPixmap(DesktopIcon("folder"));
16504
 
-  PixmapLabel1->setPixmap(SmallIcon("dialog-warning"));
16505
 
-
16506
 
-
16507
 
-  _dictMngr->add("path",pathUrlRq);
16508
 
-
16509
 
-  _dictMngr->add("comment",commentEdit);
16510
 
-  _dictMngr->add("available",availableBaseChk);
16511
 
-  _dictMngr->add("browseable",browseableBaseChk);
16512
 
-  _dictMngr->add("public",publicBaseChk);
16513
 
-
16514
 
-  _dictMngr->add("read only",readOnlyBaseChk);
16515
 
-
16516
 
-  // User settings
16517
 
-
16518
 
-  kDebug(DEBUG) << "creating UserTab ..." << endl;
16519
 
-  _userTab = new UserTabImpl(this,_share);
16520
 
-  _tabs->insertTab(1,_userTab,i18n("&Users"));
16521
 
-  kDebug(DEBUG) << "loading UserTab ..." << endl;
16522
 
-  _userTab->load();
16523
 
-  connect(_userTab, SIGNAL(changed()), this, SLOT(changedSlot()));
16524
 
-
16525
 
-  // Filename settings
16526
 
-
16527
 
-  _dictMngr->add("case sensitive",caseSensitiveCombo,
16528
 
-                new QStringList(QStringList() << "auto" << "yes" << "no"));
16529
 
-
16530
 
-  _dictMngr->add("preserve case",preserveCaseChk);
16531
 
-  _dictMngr->add("short preserve case",shortPreserveCaseChk);
16532
 
-  _dictMngr->add("mangled names",mangledNamesChk);
16533
 
-  _dictMngr->add("mangle case",mangleCaseChk);
16534
 
-  _dictMngr->add("mangling char",manglingCharEdit);
16535
 
-  _dictMngr->add("mangled map",mangledMapEdit);
16536
 
-
16537
 
-
16538
 
-  _dictMngr->add("mangling method",manglingMethodCombo,
16539
 
-                 new QStringList(QStringList() << "hash" << "hash2"));
16540
 
-
16541
 
-  _dictMngr->add("default case",defaultCaseCombo,
16542
 
-                 new QStringList(QStringList() << "Lower" << "Upper"));
16543
 
-
16544
 
-  _dictMngr->add("hide dot files",hideDotFilesChk);
16545
 
-  _dictMngr->add("strip dot",hideTrailingDotChk);
16546
 
-  _dictMngr->add("hide unreadable",hideUnreadableChk);
16547
 
-  _dictMngr->add("hide unwriteable files",hideUnwriteableFilesChk);
16548
 
-  _dictMngr->add("hide special files",hideSpecialFilesChk);
16549
 
-  _dictMngr->add("dos filemode",dosFilemodeChk);
16550
 
-  _dictMngr->add("dos filetimes",dosFiletimesChk);
16551
 
-  _dictMngr->add("dos filetime resolution",dosFiletimeResolutionChk);
16552
 
-
16553
 
-  // Security tab
16554
 
-
16555
 
-  _dictMngr->add("guest only",guestOnlyChk);
16556
 
-  _dictMngr->add("hosts allow",hostsAllowEdit);
16557
 
-
16558
 
-  _dictMngr->add("only user",onlyUserChk);
16559
 
-  _dictMngr->add("username",userNameEdit);
16560
 
-
16561
 
-
16562
 
-  guestAccountCombo->insertStringList( getUnixUsers() );
16563
 
-  setComboToString(guestAccountCombo,_share->getValue("guest account"));
16564
 
-
16565
 
-  _dictMngr->add("hosts deny",hostsDenyEdit);
16566
 
-  _dictMngr->add("force directory security mode",forceDirectorySecurityModeEdit);
16567
 
-  _dictMngr->add("force directory mode",forceDirectoryModeEdit);
16568
 
-  _dictMngr->add("force security mode",forceSecurityModeEdit);
16569
 
-
16570
 
-  _dictMngr->add("force create mode",forceCreateModeEdit);
16571
 
-  _dictMngr->add("directory security mask",directorySecurityMaskEdit);
16572
 
-  _dictMngr->add("directory mask",directoryMaskEdit);
16573
 
-  _dictMngr->add("security mask",securityMaskEdit);
16574
 
-  _dictMngr->add("create mask",createMaskEdit);
16575
 
-  _dictMngr->add("inherit permissions",inheritPermissionsChk);
16576
 
-  _dictMngr->add("inherit acls",inheritAclsChk);
16577
 
-  _dictMngr->add("nt acl support",ntAclSupportChk);
16578
 
-  _dictMngr->add("delete readonly",deleteReadonlyChk);
16579
 
-
16580
 
-  _dictMngr->add("wide links",wideLinksChk);
16581
 
-  _dictMngr->add("follow symlinks",followSymlinksChk);
16582
 
-
16583
 
-  _dictMngr->add("map hidden",mapHiddenChk);
16584
 
-  _dictMngr->add("map archive",mapArchiveChk);
16585
 
-  _dictMngr->add("map system",mapSystemChk);
16586
 
-  _dictMngr->add("store dos attributes",eaSupportChk);
16587
 
-
16588
 
-  _dictMngr->add("ea support",eaSupportChk);
16589
 
-
16590
 
-
16591
 
-  _dictMngr->add("force unknown acl user",forceUnknownAclUserEdit);
16592
 
-  _dictMngr->add("profile acls",profileAclsChk);
16593
 
-  _dictMngr->add("map acl inherit",mapAclInheritChk);
16594
 
-
16595
 
-
16596
 
-  // Advanced
16597
 
-
16598
 
-  _dictMngr->add("blocking locks",blockingLocksChk);
16599
 
-  _dictMngr->add("fake oplocks",fakeOplocksChk);
16600
 
-  _dictMngr->add("locking",lockingChk);
16601
 
-  _dictMngr->add("level2 oplocks",level2OplocksChk);
16602
 
-  _dictMngr->add("posix locking",posixLockingChk);
16603
 
-  _dictMngr->add("strict locking",strictLockingCombo,
16604
 
-                new QStringList(QStringList() << "auto" << "yes" << "no"));
16605
 
-  _dictMngr->add("share modes",shareModesChk);
16606
 
-  _dictMngr->add("oplocks",oplocksChk);
16607
 
-
16608
 
-
16609
 
-  _dictMngr->add("oplock contention limit",oplockContentionLimitSpin);
16610
 
-  _dictMngr->add("strict sync",strictSyncChk);
16611
 
-
16612
 
-  // Tuning
16613
 
-
16614
 
-  _dictMngr->add("strict allocate",strictAllocateChk);
16615
 
-
16616
 
-  _dictMngr->add("max connections",maxConnectionsSpin);
16617
 
-  _dictMngr->add("write cache size",writeCacheSizeSpin);
16618
 
-  _dictMngr->add("block size",blockSizeSpin);
16619
 
-
16620
 
-
16621
 
-  _dictMngr->add("sync always",syncAlwaysChk);
16622
 
-  _dictMngr->add("use sendfile",useSendfileChk);
16623
 
-
16624
 
-  _dictMngr->add("csc policy",cscPolicyCombo,
16625
 
-                 new QStringList(QStringList() << "manual" << "documents" << "programs" << "disable"));
16626
 
-
16627
 
-
16628
 
-
16629
 
-  // VFS
16630
 
-
16631
 
-  _dictMngr->add("vfs objects",vfsObjectsEdit);
16632
 
-  _dictMngr->add("vfs options",vfsOptionsEdit);
16633
 
-
16634
 
-  // Misc
16635
 
-
16636
 
-  _dictMngr->add("preexec",preexecEdit);
16637
 
-  _dictMngr->add("postexec",postexecEdit);
16638
 
-  _dictMngr->add("root preexec",rootPreexecEdit);
16639
 
-  _dictMngr->add("root postexec",rootPostexecEdit);
16640
 
-
16641
 
-  _dictMngr->add("preexec close",preexecCloseChk);
16642
 
-  _dictMngr->add("root preexec close",rootPreexecCloseChk);
16643
 
-
16644
 
-  _dictMngr->add("volume",volumeEdit);
16645
 
-  _dictMngr->add("fstype",fstypeEdit);
16646
 
-  _dictMngr->add("magic script",magicScriptEdit);
16647
 
-  _dictMngr->add("magic output",magicOutputEdit);
16648
 
-  _dictMngr->add("do not descend",dontDescendEdit);
16649
 
-  _dictMngr->add("set directory",setDirectoryChk);
16650
 
-  _dictMngr->add("fake directory create times",fakeDirectoryCreateTimesChk);
16651
 
-
16652
 
-  _dictMngr->add("msdfs root",msdfsRootChk);
16653
 
-  _dictMngr->add("msdfs proxy",msdfsProxyEdit);
16654
 
-
16655
 
-  kDebug(DEBUG) << "dictMngr: loading share ..." << endl;
16656
 
-
16657
 
-  _dictMngr->load( _share );
16658
 
-
16659
 
-
16660
 
-  connect( _tabs, SIGNAL(currentChanged(QWidget*)), this, SLOT(tabChangedSlot(QWidget*)));
16661
 
-  connect(_dictMngr, SIGNAL(changed()), this, SLOT(changedSlot()));
16662
 
-}
16663
 
-
16664
 
-ShareDlgImpl::~ShareDlgImpl()
16665
 
-{
16666
 
-  delete _fileView;
16667
 
-}
16668
 
-
16669
 
-void ShareDlgImpl::initAdvancedTab()
16670
 
-{
16671
 
-  kDebug(DEBUG) << "started" << endl;
16672
 
-
16673
 
-  QVBoxLayout *l = new QVBoxLayout(advancedFrame);
16674
 
-       l->setMargin(0);
16675
 
-       _janus = new KPageWidget(advancedFrame);
16676
 
-       _janus->setFaceType(KPageView::List);
16677
 
-       l->addWidget(_janus);
16678
 
-//     _janus->setRootIsDecorated(false);
16679
 
-//     _janus->setShowIconsInTreeList(true);
16680
 
-
16681
 
-       KPageWidgetItem *f;
16682
 
-       QPixmap icon;
16683
 
-
16684
 
-       QList<QWidget*> widgets;
16685
 
-       QList<QString> labels;
16686
 
-
16687
 
-       for (int i=0;i<advancedDumpTab->count();i++) {
16688
 
-         kDebug(DEBUG) <<  advancedDumpTab->tabText(i) << endl;
16689
 
-         widgets.append(advancedDumpTab->widget(i));
16690
 
-         labels.append(advancedDumpTab->tabText(i));
16691
 
-        }
16692
 
-
16693
 
-       KIconLoader* il = KIconLoader::global();
16694
 
-
16695
 
-       for (int i=0; i<widgets.size(); i++)
16696
 
-       {
16697
 
-         QWidget* w = widgets.at(i);
16698
 
-         QString label = labels.at(i);
16699
 
-
16700
 
-               kDebug(DEBUG) << "handling widget " << label << endl;
16701
 
-               if (label.toLower() == "security")
16702
 
-                 //              icon = il->loadIcon("kgpg-key1-kgpg",KIconLoader::Small);
16703
 
-                 icon = il->loadIcon("dialog-password",KIconLoader::Small);
16704
 
-               else
16705
 
-               if (label.toLower() == "tuning")
16706
 
-                 icon = il->loadIcon("preferences-system-performance",KIconLoader::Small);
16707
 
-               else
16708
 
-               if (label.toLower() == "vfs")
16709
 
-                 icon = il->loadIcon("folder",KIconLoader::Small);
16710
 
-               else
16711
 
-               if (label.toLower() == "filenames")
16712
 
-                 icon = il->loadIcon("text-plain",KIconLoader::Small);//SmallIcon("folder");
16713
 
-               else
16714
 
-               if (label.toLower() == "exec")
16715
 
-                 icon = il->loadIcon("gear",KIconLoader::Small);
16716
 
-               else
16717
 
-               if (label.toLower() == "locking")
16718
 
-                 icon = il->loadIcon("object-locked",KIconLoader::Small);//SmallIcon("folder");
16719
 
-               else
16720
 
-               if (label.toLower() == "misc")
16721
 
-                 icon = il->loadIcon("preferences-other",KIconLoader::Small);
16722
 
-               else {
16723
 
-                        icon = QPixmap(16,16);
16724
 
-                        icon.fill();
16725
 
-               }
16726
 
-                        //SmallIcon("empty2");
16727
 
-
16728
 
-               QWidget* frame = new QWidget();
16729
 
-               QVBoxLayout* l = new QVBoxLayout(frame);
16730
 
-               KPageWidgetItem *page = new KPageWidgetItem( frame, label );
16731
 
-               l->setMargin(0);
16732
 
-               l->addWidget(w);
16733
 
-               kDebug(DEBUG) << "adding page ..." << endl;
16734
 
-               _janus->addPage(page);
16735
 
-               w->show();
16736
 
-               page->setIcon(KIcon(icon));
16737
 
-
16738
 
-               //              advancedDumpTab->removeTab(advancedDumpTab->indexOf(w));
16739
 
-       }
16740
 
-
16741
 
-       QWidget *w = _tabs->page(5);
16742
 
-       _tabs->removeTab(5);
16743
 
-       delete w;
16744
 
-
16745
 
-        storeDosAttributesChk_toggled( false );
16746
 
-}
16747
 
-
16748
 
-
16749
 
-void ShareDlgImpl::tabChangedSlot(QWidget* w)
16750
 
-{
16751
 
-  // We are only interested in the Hidden files tab
16752
 
-  if ( QString(w->objectName()) == "hiddenFilesTab" )
16753
 
-     loadHiddenFilesView();
16754
 
-
16755
 
-}
16756
 
-
16757
 
-void ShareDlgImpl::loadHiddenFilesView()
16758
 
-{
16759
 
-
16760
 
-  if (_fileView)
16761
 
-     return;
16762
 
-
16763
 
-  kDebug(DEBUG) << "creating HiddenFileView ..." << endl;
16764
 
-
16765
 
-  _fileView = new HiddenFileView( this, _share );
16766
 
-
16767
 
-  if ( ! _share->isSpecialSection()) {
16768
 
-    kDebug(DEBUG) << "loading HiddenFileView ..." << endl;
16769
 
-    _fileView->load();
16770
 
-  }
16771
 
-
16772
 
-
16773
 
-}
16774
 
-
16775
 
-void ShareDlgImpl::accept()
16776
 
-{
16777
 
-  if (!_share)
16778
 
-     return;
16779
 
-
16780
 
-  if (homeChk->isChecked())
16781
 
-        _share->setName("homes");
16782
 
-       else
16783
 
-    _share->setName(shareNameEdit->text());
16784
 
-
16785
 
-  _userTab->save();
16786
 
-
16787
 
-  _share->setValue("guest account",guestAccountCombo->currentText( ) );
16788
 
-
16789
 
-  if (_fileView)
16790
 
-      _fileView->save();
16791
 
-
16792
 
-  _dictMngr->save( _share );
16793
 
-
16794
 
-  QDialog::accept();
16795
 
-}
16796
 
-
16797
 
-void ShareDlgImpl::homeChkToggled(bool b)
16798
 
-{
16799
 
-  shareNameEdit->setDisabled(b);
16800
 
-       pathUrlRq->setDisabled(b);
16801
 
-
16802
 
-       if (b)
16803
 
-  {
16804
 
-       shareNameEdit->setText("homes");
16805
 
-    pathUrlRq->setUrl(KUrl(""));
16806
 
-    directoryPixLbl->setPixmap(DesktopIcon("user-home",48));
16807
 
-
16808
 
-  }
16809
 
-  else
16810
 
-  {
16811
 
-       shareNameEdit->setText( _share->getName() );
16812
 
-         pathUrlRq->setUrl( _share->getValue("path") );
16813
 
-    directoryPixLbl->setPixmap(DesktopIcon("folder"));
16814
 
-  }
16815
 
-}
16816
 
-
16817
 
-void ShareDlgImpl::accessModifierBtnClicked()
16818
 
-{
16819
 
-  if (!QObject::sender()) {
16820
 
-    kWarning() << "ShareDlgImpl::accessModifierBtnClicked() : QObject::sender() is null!";
16821
 
-    return;
16822
 
-  }
16823
 
-
16824
 
-
16825
 
-  QString name = QObject::sender()->objectName();
16826
 
-
16827
 
-  QLineEdit *edit = 0L;
16828
 
-
16829
 
-  if (name == "forceCreateModeBtn")
16830
 
-     edit = forceCreateModeEdit;
16831
 
-  else
16832
 
-  if (name == "forceSecurityModeBtn")
16833
 
-     edit = forceSecurityModeEdit;
16834
 
-  else
16835
 
-  if (name == "forceDirectoryModeBtn")
16836
 
-     edit = forceDirectoryModeEdit;
16837
 
-  else
16838
 
-  if (name == "forceDirectorySecurityModeBtn")
16839
 
-     edit = forceDirectorySecurityModeEdit;
16840
 
-  else
16841
 
-  if (name == "createMaskBtn")
16842
 
-     edit = createMaskEdit;
16843
 
-  else
16844
 
-  if (name == "securityMaskBtn")
16845
 
-     edit = securityMaskEdit;
16846
 
-  else
16847
 
-  if (name == "directoryMaskBtn")
16848
 
-     edit = directoryMaskEdit;
16849
 
-  else
16850
 
-  if (name == "directorySecurityMaskBtn")
16851
 
-     edit = directorySecurityMaskEdit;
16852
 
-
16853
 
-  if (!edit) {
16854
 
-    kWarning() << "ShareDlgImpl::accessModifierBtnClicked() : edit is null! name=" << name;
16855
 
-    return;
16856
 
-  }
16857
 
-
16858
 
-  FileModeDlgImpl dlg(this, edit);
16859
 
-
16860
 
-  dlg.exec();
16861
 
-}
16862
 
-
16863
 
-void ShareDlgImpl::changedSlot() {
16864
 
-  m_changed = true;
16865
 
-  kDebug(5009) << "ShareDlgImpl::changedSlot()";
16866
 
-  emit changed();
16867
 
-}
16868
 
-
16869
 
-void ShareDlgImpl::pathUrlRq_textChanged( const QString &)
16870
 
-{
16871
 
-  if (_fileView && ! _share->isSpecialSection())
16872
 
-     _fileView->load();
16873
 
-}
16874
 
-
16875
 
-
16876
 
-void ShareDlgImpl::checkValues()
16877
 
-{
16878
 
-/*
16879
 
-       bool state = true;
16880
 
-       // Check if the ok-button should be enabled
16881
 
-       if (directory->isChecked()){
16882
 
-           if (homes->isChecked()){
16883
 
-               state = true;
16884
 
-           }else{
16885
 
-               if (shareName->text() == "")
16886
 
-                   state = false;
16887
 
-               if (path->url() == "")
16888
 
-                   state = false;
16889
 
-           }
16890
 
-       }else{
16891
 
-           if (printers->isChecked()){
16892
 
-               state = true;
16893
 
-           }else{
16894
 
-               if (shareName->text() == ""){
16895
 
-                   state = false;
16896
 
-               }
16897
 
-           }
16898
 
-       }
16899
 
-       buttonOk->setEnabled(state);
16900
 
-*/
16901
 
-}
16902
 
-
16903
 
-
16904
 
-void ShareDlgImpl::guestOnlyChk_toggled( bool b)
16905
 
-{
16906
 
-  if (b)
16907
 
-  {
16908
 
-    onlyUserChk->setChecked(false);
16909
 
-    publicBaseChk->setChecked(true);
16910
 
-  }
16911
 
-
16912
 
-  onlyUserChk->setDisabled(b);
16913
 
-  publicBaseChk->setDisabled(b);
16914
 
-}
16915
 
-
16916
 
-
16917
 
-void ShareDlgImpl::userOnlyChk_toggled( bool b)
16918
 
-{
16919
 
-  if (b)
16920
 
-  {
16921
 
-    guestOnlyChk->setChecked(false);
16922
 
-    publicBaseChk->setChecked(false);
16923
 
-  }
16924
 
-
16925
 
-  guestOnlyChk->setDisabled(b);
16926
 
-  publicBaseChk->setDisabled(b);
16927
 
-}
16928
 
-
16929
 
-void ShareDlgImpl::publicBaseChk_toggled( bool b)
16930
 
-{
16931
 
-    guestOnlyChk->setEnabled(b);
16932
 
-    if (!b) {
16933
 
-       guestOnlyChk->setChecked(false);
16934
 
-   }
16935
 
-    guestAccountCombo->setEnabled(b);
16936
 
-    guestAccountLbl->setEnabled(b);
16937
 
-
16938
 
-}
16939
 
-
16940
 
-
16941
 
-void ShareDlgImpl::oplocksChk_toggled( bool b)
16942
 
-{
16943
 
-    if (b)
16944
 
-       fakeOplocksChk->setChecked(false);
16945
 
-}
16946
 
-
16947
 
-
16948
 
-void ShareDlgImpl::lockingChk_toggled( bool b)
16949
 
-{
16950
 
-  // It is Dangerous to disable locking !
16951
 
-/*
16952
 
-    if (!b)  {
16953
 
-       enableLockingWarnPix->setPixmap(SmallIcon("dialog-warning"));
16954
 
-       enableLockingWarnPix->show();
16955
 
-    } else {
16956
 
-       enableLockingWarnPix->hide();
16957
 
-    }
16958
 
-*/
16959
 
-
16960
 
-}
16961
 
-
16962
 
-
16963
 
-void ShareDlgImpl::fakeOplocksChk_toggled( bool b)
16964
 
-{
16965
 
-/*
16966
 
-    if (b)  {
16967
 
-       fakeOplocksWarnPix->setPixmap(SmallIcon("dialog-information"));
16968
 
-       fakeOplocksWarnPix->setText(i18n("Better use the real oplocks support than this parameter"));
16969
 
-       fakeOplocksWarnPix->showMaximized();
16970
 
-       fakeOplocksWarnPix->show();
16971
 
-    } else {
16972
 
-       fakeOplocksWarnPix->hide();
16973
 
-    }
16974
 
-*/
16975
 
-}
16976
 
-
16977
 
-
16978
 
-void ShareDlgImpl::oplockContentionLimitSpin_valueChanged( int i)
16979
 
-{
16980
 
-/*
16981
 
-    oplockContentionLimitWarnPix->setMaximumWidth(32767);
16982
 
-    oplockContentionLimitWarnPix->setPixmap(SmallIcon("dialog-error"));
16983
 
-*/
16984
 
-    //oplockContentionLimitWarnPix->show();
16985
 
-
16986
 
-}
16987
 
-
16988
 
-
16989
 
-void ShareDlgImpl::storeDosAttributesChk_toggled( bool b)
16990
 
-{
16991
 
-    mapArchiveChk->setDisabled(b);
16992
 
-    mapSystemChk->setDisabled(b);
16993
 
-    mapHiddenChk->setDisabled(b);
16994
 
-
16995
 
-    if (b) {
16996
 
-       mapArchiveChk->setChecked(false);
16997
 
-       mapSystemChk->setChecked(false);
16998
 
-       mapHiddenChk->setChecked(false);
16999
 
-    }
17000
 
-}
17001
 
-
17002
 
-
17003
 
-void ShareDlgImpl::buttonHelp_clicked()
17004
 
-{
17005
 
-    K3Process* p = new K3Process();
17006
 
-    *p << "konqueror";
17007
 
-    *p << "man:smb.conf";
17008
 
-    p->start();
17009
 
-}
17010
 
-
17011
 
-
17012
 
-#include "sharedlgimpl.moc"
17013
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/sharedlgimpl.h
17014
 
===================================================================
17015
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/sharedlgimpl.h     2011-01-19 17:21:04.000000000 -0500
17016
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
17017
 
@@ -1,109 +0,0 @@
17018
 
-/***************************************************************************
17019
 
-                          sharedlgimpl.h  -  description
17020
 
-                             -------------------
17021
 
-    begin                : Tue June 6 2002
17022
 
-    copyright            : (C) 2002 by Jan Schäfer
17023
 
-    email                : janschaefer@users.sourceforge.net
17024
 
- ***************************************************************************/
17025
 
-
17026
 
-/******************************************************************************
17027
 
- *                                                                            *
17028
 
- *  This file is part of KSambaPlugin.                                          *
17029
 
- *                                                                            *
17030
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify            *
17031
 
- *  it under the terms of the GNU General Public License as published by      *
17032
 
- *  the Free Software Foundation; either version 2 of the License, or         *
17033
 
- *  (at your option) any later version.                                       *
17034
 
- *                                                                            *
17035
 
- *  KSambaPlugin is distributed in the hope that it will be useful,                 *
17036
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
17037
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
17038
 
- *  GNU General Public License for more details.                              *
17039
 
- *                                                                            *
17040
 
- *  You should have received a copy of the GNU General Public License         *
17041
 
- *  along with KSambaPlugin; if not, write to the Free Software                     *
17042
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
17043
 
- *                                                                            *
17044
 
- ******************************************************************************/
17045
 
-
17046
 
-#ifndef SHAREDLGIMPL_H
17047
 
-#define SHAREDLGIMPL_H
17048
 
-
17049
 
-
17050
 
-/**
17051
 
- * @author Jan Schäfer
17052
 
- **/
17053
 
-
17054
 
-#include <q3ptrlist.h>
17055
 
-#include <QDialog>
17056
 
-#include <K3Process>
17057
 
-
17058
 
-#include <ui_share.h>
17059
 
-
17060
 
-class SambaShare;
17061
 
-class QWidget;
17062
 
-class UserTabImpl;
17063
 
-class HiddenFileView;
17064
 
-class DictManager;
17065
 
-class KPageWidget;
17066
 
-
17067
 
-/**
17068
 
- * This class implements the share.ui interface
17069
 
- **/
17070
 
-class ShareDlgImpl : public QDialog, public Ui::KcmShareDlg
17071
 
-{
17072
 
-Q_OBJECT
17073
 
-
17074
 
-public :
17075
 
-
17076
 
-  ShareDlgImpl(QWidget* parent, SambaShare* share);
17077
 
-  ~ShareDlgImpl();
17078
 
-
17079
 
-  bool hasChanged() { return m_changed; }
17080
 
-  
17081
 
-protected :
17082
 
-
17083
 
-       /**
17084
 
-   * Fills all dialog fields with the values
17085
 
-   * of the SambaShare object
17086
 
-   **/
17087
 
-  void initDialog();
17088
 
-  
17089
 
-  /**
17090
 
-   * The share object to change with this dialog
17091
 
-   **/
17092
 
-       SambaShare* _share;
17093
 
-
17094
 
-  HiddenFileView* _fileView;
17095
 
-  UserTabImpl* _userTab;
17096
 
-  KPageWidget* _janus;
17097
 
-  bool m_changed;
17098
 
-  DictManager* _dictMngr;
17099
 
-
17100
 
-  void loadHiddenFilesView();
17101
 
-  void initAdvancedTab();
17102
 
-
17103
 
-protected slots:
17104
 
-       virtual void accept();
17105
 
-  virtual void homeChkToggled(bool);
17106
 
-  virtual void accessModifierBtnClicked();
17107
 
-  virtual void changedSlot();
17108
 
-  virtual void pathUrlRq_textChanged( const QString & );
17109
 
-  void buttonHelp_clicked();
17110
 
-  void oplocksChk_toggled( bool b);
17111
 
-  void tabChangedSlot(QWidget* w);
17112
 
-  void publicBaseChk_toggled( bool b);
17113
 
-  void lockingChk_toggled( bool b);
17114
 
-  void oplockContentionLimitSpin_valueChanged( int i);
17115
 
-  void fakeOplocksChk_toggled( bool b);
17116
 
-  void storeDosAttributesChk_toggled( bool b);
17117
 
-  void checkValues();
17118
 
-  void userOnlyChk_toggled( bool b);
17119
 
-  void guestOnlyChk_toggled( bool b);
17120
 
-
17121
 
-signals:
17122
 
-  void changed();
17123
 
-};
17124
 
-
17125
 
-
17126
 
-#endif
17127
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/share.ui
17128
 
===================================================================
17129
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/share.ui   2011-01-19 17:21:04.000000000 -0500
17130
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
17131
 
@@ -1,3243 +0,0 @@
17132
 
-<ui version="4.0" >
17133
 
- <comment>
17134
 
- ******************************************************************************
17135
 
- *                                                                            *
17136
 
- *  This file is part of KSambaPlugin.                                        *
17137
 
- *                                                                            *
17138
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify      *
17139
 
- *  it under the terms of the GNU General Public License as published by      *
17140
 
- *  the Free Software Foundation; either version 2 of the License, or         *
17141
 
- *  (at your option) any later version.                                       *
17142
 
- *                                                                            *
17143
 
- *  KSambaPlugin is distributed in the hope that it will be useful,           *
17144
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
17145
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
17146
 
- *  GNU General Public License for more details.                              *
17147
 
- *                                                                            *
17148
 
- *  You should have received a copy of the GNU General Public License         *
17149
 
- *  along with KSambaPlugin; if not, write to the Free Software                     *
17150
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
17151
 
- *                                                                            *
17152
 
- ******************************************************************************
17153
 
-</comment>
17154
 
- <class>KcmShareDlg</class>
17155
 
- <widget class="QDialog" name="KcmShareDlg" >
17156
 
-  <property name="geometry" >
17157
 
-   <rect>
17158
 
-    <x>0</x>
17159
 
-    <y>0</y>
17160
 
-    <width>674</width>
17161
 
-    <height>643</height>
17162
 
-   </rect>
17163
 
-  </property>
17164
 
-  <property name="windowTitle" >
17165
 
-   <string>Add/Edit Share</string>
17166
 
-  </property>
17167
 
-  <property name="sizeGripEnabled" >
17168
 
-   <bool>true</bool>
17169
 
-  </property>
17170
 
-  <layout class="QVBoxLayout" >
17171
 
-   <item>
17172
 
-    <widget class="QTabWidget" name="_tabs" >
17173
 
-     <property name="currentIndex" >
17174
 
-      <number>4</number>
17175
 
-     </property>
17176
 
-     <widget class="QWidget" name="baseTab" >
17177
 
-      <attribute name="title" >
17178
 
-       <string>&amp;Base Settings</string>
17179
 
-      </attribute>
17180
 
-      <layout class="QGridLayout" >
17181
 
-       <item row="0" column="0" >
17182
 
-        <layout class="QHBoxLayout" >
17183
 
-         <property name="spacing" >
17184
 
-          <number>6</number>
17185
 
-         </property>
17186
 
-         <property name="leftMargin" >
17187
 
-          <number>0</number>
17188
 
-         </property>
17189
 
-         <property name="topMargin" >
17190
 
-          <number>0</number>
17191
 
-         </property>
17192
 
-         <property name="rightMargin" >
17193
 
-          <number>0</number>
17194
 
-         </property>
17195
 
-         <property name="bottomMargin" >
17196
 
-          <number>0</number>
17197
 
-         </property>
17198
 
-         <item>
17199
 
-          <widget class="QFrame" name="pixmapFrame" >
17200
 
-           <property name="frameShape" >
17201
 
-            <enum>QFrame::NoFrame</enum>
17202
 
-           </property>
17203
 
-           <property name="frameShadow" >
17204
 
-            <enum>QFrame::Plain</enum>
17205
 
-           </property>
17206
 
-           <layout class="QVBoxLayout" >
17207
 
-            <property name="spacing" >
17208
 
-             <number>6</number>
17209
 
-            </property>
17210
 
-            <property name="leftMargin" >
17211
 
-             <number>11</number>
17212
 
-            </property>
17213
 
-            <property name="topMargin" >
17214
 
-             <number>11</number>
17215
 
-            </property>
17216
 
-            <property name="rightMargin" >
17217
 
-             <number>11</number>
17218
 
-            </property>
17219
 
-            <property name="bottomMargin" >
17220
 
-             <number>11</number>
17221
 
-            </property>
17222
 
-            <item>
17223
 
-             <widget class="QLabel" name="directoryPixLbl" >
17224
 
-              <property name="sizePolicy" >
17225
 
-               <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
17226
 
-                <horstretch>0</horstretch>
17227
 
-                <verstretch>0</verstretch>
17228
 
-               </sizepolicy>
17229
 
-              </property>
17230
 
-              <property name="text" >
17231
 
-               <string>Pixmap</string>
17232
 
-              </property>
17233
 
-              <property name="scaledContents" >
17234
 
-               <bool>true</bool>
17235
 
-              </property>
17236
 
-              <property name="wordWrap" >
17237
 
-               <bool>false</bool>
17238
 
-              </property>
17239
 
-             </widget>
17240
 
-            </item>
17241
 
-           </layout>
17242
 
-          </widget>
17243
 
-         </item>
17244
 
-         <item>
17245
 
-          <widget class="QGroupBox" name="directoryGrp" >
17246
 
-           <property name="title" >
17247
 
-            <string>D&amp;irectory</string>
17248
 
-           </property>
17249
 
-           <layout class="QVBoxLayout" >
17250
 
-            <property name="spacing" >
17251
 
-             <number>6</number>
17252
 
-            </property>
17253
 
-            <property name="leftMargin" >
17254
 
-             <number>11</number>
17255
 
-            </property>
17256
 
-            <property name="topMargin" >
17257
 
-             <number>11</number>
17258
 
-            </property>
17259
 
-            <property name="rightMargin" >
17260
 
-             <number>11</number>
17261
 
-            </property>
17262
 
-            <property name="bottomMargin" >
17263
 
-             <number>11</number>
17264
 
-            </property>
17265
 
-            <item>
17266
 
-             <layout class="QHBoxLayout" >
17267
 
-              <property name="spacing" >
17268
 
-               <number>6</number>
17269
 
-              </property>
17270
 
-              <property name="leftMargin" >
17271
 
-               <number>0</number>
17272
 
-              </property>
17273
 
-              <property name="topMargin" >
17274
 
-               <number>0</number>
17275
 
-              </property>
17276
 
-              <property name="rightMargin" >
17277
 
-               <number>0</number>
17278
 
-              </property>
17279
 
-              <property name="bottomMargin" >
17280
 
-               <number>0</number>
17281
 
-              </property>
17282
 
-              <item>
17283
 
-               <widget class="QLabel" name="TextLabel1" >
17284
 
-                <property name="enabled" >
17285
 
-                 <bool>true</bool>
17286
 
-                </property>
17287
 
-                <property name="text" >
17288
 
-                 <string>&amp;Path:</string>
17289
 
-                </property>
17290
 
-                <property name="wordWrap" >
17291
 
-                 <bool>false</bool>
17292
 
-                </property>
17293
 
-                <property name="buddy" >
17294
 
-                 <cstring>pathUrlRq</cstring>
17295
 
-                </property>
17296
 
-               </widget>
17297
 
-              </item>
17298
 
-              <item>
17299
 
-               <widget class="KUrlRequester" name="pathUrlRq" >
17300
 
-                <property name="enabled" >
17301
 
-                 <bool>true</bool>
17302
 
-                </property>
17303
 
-               </widget>
17304
 
-              </item>
17305
 
-             </layout>
17306
 
-            </item>
17307
 
-            <item>
17308
 
-             <widget class="QCheckBox" name="homeChk" >
17309
 
-              <property name="text" >
17310
 
-               <string>Share all home &amp;directories</string>
17311
 
-              </property>
17312
 
-             </widget>
17313
 
-            </item>
17314
 
-           </layout>
17315
 
-          </widget>
17316
 
-         </item>
17317
 
-        </layout>
17318
 
-       </item>
17319
 
-       <item row="1" column="0" >
17320
 
-        <widget class="QGroupBox" name="identifierGrp" >
17321
 
-         <property name="title" >
17322
 
-          <string>Iden&amp;tifier</string>
17323
 
-         </property>
17324
 
-         <layout class="QGridLayout" >
17325
 
-          <property name="leftMargin" >
17326
 
-           <number>11</number>
17327
 
-          </property>
17328
 
-          <property name="topMargin" >
17329
 
-           <number>11</number>
17330
 
-          </property>
17331
 
-          <property name="rightMargin" >
17332
 
-           <number>11</number>
17333
 
-          </property>
17334
 
-          <property name="bottomMargin" >
17335
 
-           <number>11</number>
17336
 
-          </property>
17337
 
-          <property name="horizontalSpacing" >
17338
 
-           <number>6</number>
17339
 
-          </property>
17340
 
-          <property name="verticalSpacing" >
17341
 
-           <number>6</number>
17342
 
-          </property>
17343
 
-          <item row="0" column="0" >
17344
 
-           <widget class="QLabel" name="Lbl_shareName" >
17345
 
-            <property name="text" >
17346
 
-             <string>Na&amp;me:</string>
17347
 
-            </property>
17348
 
-            <property name="wordWrap" >
17349
 
-             <bool>false</bool>
17350
 
-            </property>
17351
 
-            <property name="buddy" >
17352
 
-             <cstring>shareNameEdit</cstring>
17353
 
-            </property>
17354
 
-           </widget>
17355
 
-          </item>
17356
 
-          <item row="1" column="0" >
17357
 
-           <widget class="QLabel" name="TextLabel3" >
17358
 
-            <property name="text" >
17359
 
-             <string>Comme&amp;nt:</string>
17360
 
-            </property>
17361
 
-            <property name="wordWrap" >
17362
 
-             <bool>false</bool>
17363
 
-            </property>
17364
 
-            <property name="buddy" >
17365
 
-             <cstring>commentEdit</cstring>
17366
 
-            </property>
17367
 
-           </widget>
17368
 
-          </item>
17369
 
-          <item row="1" column="1" >
17370
 
-           <widget class="KLineEdit" name="commentEdit" />
17371
 
-          </item>
17372
 
-          <item row="0" column="1" >
17373
 
-           <widget class="KLineEdit" name="shareNameEdit" />
17374
 
-          </item>
17375
 
-         </layout>
17376
 
-        </widget>
17377
 
-       </item>
17378
 
-       <item row="2" column="0" >
17379
 
-        <widget class="QGroupBox" name="GroupBox4" >
17380
 
-         <property name="title" >
17381
 
-          <string>Main P&amp;roperties</string>
17382
 
-         </property>
17383
 
-         <layout class="QVBoxLayout" >
17384
 
-          <property name="spacing" >
17385
 
-           <number>6</number>
17386
 
-          </property>
17387
 
-          <property name="leftMargin" >
17388
 
-           <number>11</number>
17389
 
-          </property>
17390
 
-          <property name="topMargin" >
17391
 
-           <number>11</number>
17392
 
-          </property>
17393
 
-          <property name="rightMargin" >
17394
 
-           <number>11</number>
17395
 
-          </property>
17396
 
-          <property name="bottomMargin" >
17397
 
-           <number>11</number>
17398
 
-          </property>
17399
 
-          <item>
17400
 
-           <widget class="QCheckBox" name="readOnlyBaseChk" >
17401
 
-            <property name="text" >
17402
 
-             <string>Read onl&amp;y</string>
17403
 
-            </property>
17404
 
-            <property name="checked" >
17405
 
-             <bool>true</bool>
17406
 
-            </property>
17407
 
-           </widget>
17408
 
-          </item>
17409
 
-          <item>
17410
 
-           <widget class="QCheckBox" name="publicBaseChk" >
17411
 
-            <property name="text" >
17412
 
-             <string>Pub&amp;lic</string>
17413
 
-            </property>
17414
 
-           </widget>
17415
 
-          </item>
17416
 
-          <item>
17417
 
-           <widget class="QCheckBox" name="browseableBaseChk" >
17418
 
-            <property name="text" >
17419
 
-             <string>Bro&amp;wseable</string>
17420
 
-            </property>
17421
 
-           </widget>
17422
 
-          </item>
17423
 
-          <item>
17424
 
-           <widget class="QCheckBox" name="availableBaseChk" >
17425
 
-            <property name="text" >
17426
 
-             <string>A&amp;vailable</string>
17427
 
-            </property>
17428
 
-           </widget>
17429
 
-          </item>
17430
 
-         </layout>
17431
 
-        </widget>
17432
 
-       </item>
17433
 
-       <item row="4" column="0" >
17434
 
-        <spacer>
17435
 
-         <property name="orientation" >
17436
 
-          <enum>Qt::Vertical</enum>
17437
 
-         </property>
17438
 
-         <property name="sizeType" >
17439
 
-          <enum>QSizePolicy::Expanding</enum>
17440
 
-         </property>
17441
 
-         <property name="sizeHint" >
17442
 
-          <size>
17443
 
-           <width>20</width>
17444
 
-           <height>90</height>
17445
 
-          </size>
17446
 
-         </property>
17447
 
-        </spacer>
17448
 
-       </item>
17449
 
-      </layout>
17450
 
-     </widget>
17451
 
-     <widget class="QWidget" name="securityTab" >
17452
 
-      <attribute name="title" >
17453
 
-       <string>&amp;Security</string>
17454
 
-      </attribute>
17455
 
-      <layout class="QVBoxLayout" >
17456
 
-       <item>
17457
 
-        <widget class="QGroupBox" name="groupBox19" >
17458
 
-         <property name="title" >
17459
 
-          <string>Gu&amp;ests</string>
17460
 
-         </property>
17461
 
-         <layout class="QVBoxLayout" >
17462
 
-          <item>
17463
 
-           <layout class="QHBoxLayout" >
17464
 
-            <item>
17465
 
-             <widget class="QLabel" name="guestAccountLbl" >
17466
 
-              <property name="enabled" >
17467
 
-               <bool>false</bool>
17468
 
-              </property>
17469
 
-              <property name="whatsThis" >
17470
 
-               <string>This is a username which will be used for access to services which are specified as guest ok. Whatever privileges this user has will be available to any client connecting to the guest service. Typically this user will exist in the password file, but will not have a valid login. The user account \"ftp\" is often a good choice for this parameter. If a username is specified in a given service, the specified username overrides this one.</string>
17471
 
-              </property>
17472
 
-              <property name="text" >
17473
 
-               <string>&amp;Guest account:</string>
17474
 
-              </property>
17475
 
-              <property name="wordWrap" >
17476
 
-               <bool>false</bool>
17477
 
-              </property>
17478
 
-              <property name="buddy" >
17479
 
-               <cstring>guestAccountCombo</cstring>
17480
 
-              </property>
17481
 
-             </widget>
17482
 
-            </item>
17483
 
-            <item>
17484
 
-             <widget class="QComboBox" name="guestAccountCombo" />
17485
 
-            </item>
17486
 
-            <item>
17487
 
-             <spacer>
17488
 
-              <property name="orientation" >
17489
 
-               <enum>Qt::Horizontal</enum>
17490
 
-              </property>
17491
 
-              <property name="sizeHint" >
17492
 
-               <size>
17493
 
-                <width>40</width>
17494
 
-                <height>20</height>
17495
 
-               </size>
17496
 
-              </property>
17497
 
-             </spacer>
17498
 
-            </item>
17499
 
-           </layout>
17500
 
-          </item>
17501
 
-          <item>
17502
 
-           <widget class="QCheckBox" name="guestOnlyChk" >
17503
 
-            <property name="enabled" >
17504
 
-             <bool>false</bool>
17505
 
-            </property>
17506
 
-            <property name="whatsThis" >
17507
 
-             <string>If this is checked , then no password is required to connect to the service. Privileges will be those of the guest account.</string>
17508
 
-            </property>
17509
 
-            <property name="text" >
17510
 
-             <string>Only allow guest connect&amp;ions</string>
17511
 
-            </property>
17512
 
-           </widget>
17513
 
-          </item>
17514
 
-         </layout>
17515
 
-        </widget>
17516
 
-       </item>
17517
 
-       <item>
17518
 
-        <widget class="QGroupBox" name="groupBox18" >
17519
 
-         <property name="title" >
17520
 
-          <string>Hos&amp;ts</string>
17521
 
-         </property>
17522
 
-         <layout class="QGridLayout" >
17523
 
-          <property name="leftMargin" >
17524
 
-           <number>11</number>
17525
 
-          </property>
17526
 
-          <property name="topMargin" >
17527
 
-           <number>11</number>
17528
 
-          </property>
17529
 
-          <property name="rightMargin" >
17530
 
-           <number>11</number>
17531
 
-          </property>
17532
 
-          <property name="bottomMargin" >
17533
 
-           <number>11</number>
17534
 
-          </property>
17535
 
-          <property name="horizontalSpacing" >
17536
 
-           <number>6</number>
17537
 
-          </property>
17538
 
-          <property name="verticalSpacing" >
17539
 
-           <number>6</number>
17540
 
-          </property>
17541
 
-          <item row="1" column="1" >
17542
 
-           <widget class="QLineEdit" name="hostsDenyEdit" >
17543
 
-            <property name="whatsThis" >
17544
 
-             <string>The opposite of hosts allow - hosts listed here are NOT permitted access to services unless the specific services have their own lists to override this one. Where the lists conflict, the allow list takes precedence.</string>
17545
 
-            </property>
17546
 
-           </widget>
17547
 
-          </item>
17548
 
-          <item row="0" column="0" >
17549
 
-           <widget class="QLabel" name="TextLabel5" >
17550
 
-            <property name="whatsThis" >
17551
 
-             <string>This parameter is a comma, space, or tab delimited set of hosts which are permitted to access a service.</string>
17552
 
-            </property>
17553
 
-            <property name="text" >
17554
 
-             <string>Hosts allo&amp;w:</string>
17555
 
-            </property>
17556
 
-            <property name="wordWrap" >
17557
 
-             <bool>false</bool>
17558
 
-            </property>
17559
 
-            <property name="buddy" >
17560
 
-             <cstring>hostsAllowEdit</cstring>
17561
 
-            </property>
17562
 
-           </widget>
17563
 
-          </item>
17564
 
-          <item row="1" column="0" >
17565
 
-           <widget class="QLabel" name="TextLabel6" >
17566
 
-            <property name="whatsThis" >
17567
 
-             <string>The opposite of hosts allow - hosts listed here are NOT permitted access to services unless the specific services have their own lists to override this one. Where the lists conflict, the allow list takes precedence.</string>
17568
 
-            </property>
17569
 
-            <property name="text" >
17570
 
-             <string>Hosts &amp;deny:</string>
17571
 
-            </property>
17572
 
-            <property name="wordWrap" >
17573
 
-             <bool>false</bool>
17574
 
-            </property>
17575
 
-            <property name="buddy" >
17576
 
-             <cstring>hostsDenyEdit</cstring>
17577
 
-            </property>
17578
 
-           </widget>
17579
 
-          </item>
17580
 
-          <item row="0" column="1" >
17581
 
-           <widget class="QLineEdit" name="hostsAllowEdit" >
17582
 
-            <property name="whatsThis" >
17583
 
-             <string>This parameter is a comma, space, or tab delimited set of hosts which are permitted to access a service.</string>
17584
 
-            </property>
17585
 
-           </widget>
17586
 
-          </item>
17587
 
-         </layout>
17588
 
-        </widget>
17589
 
-       </item>
17590
 
-       <item>
17591
 
-        <widget class="QGroupBox" name="groupBox17" >
17592
 
-         <property name="title" >
17593
 
-          <string>Sy&amp;mbolic Links</string>
17594
 
-         </property>
17595
 
-         <layout class="QVBoxLayout" >
17596
 
-          <property name="spacing" >
17597
 
-           <number>6</number>
17598
 
-          </property>
17599
 
-          <property name="leftMargin" >
17600
 
-           <number>11</number>
17601
 
-          </property>
17602
 
-          <property name="topMargin" >
17603
 
-           <number>11</number>
17604
 
-          </property>
17605
 
-          <property name="rightMargin" >
17606
 
-           <number>11</number>
17607
 
-          </property>
17608
 
-          <property name="bottomMargin" >
17609
 
-           <number>11</number>
17610
 
-          </property>
17611
 
-          <item>
17612
 
-           <widget class="QCheckBox" name="followSymlinksChk" >
17613
 
-            <property name="text" >
17614
 
-             <string>Allow following of symbolic lin&amp;ks</string>
17615
 
-            </property>
17616
 
-           </widget>
17617
 
-          </item>
17618
 
-          <item>
17619
 
-           <widget class="QCheckBox" name="wideLinksChk" >
17620
 
-            <property name="enabled" >
17621
 
-             <bool>false</bool>
17622
 
-            </property>
17623
 
-            <property name="text" >
17624
 
-             <string>Allow following of symbolic links that &amp;point to areas outside the directory tree</string>
17625
 
-            </property>
17626
 
-           </widget>
17627
 
-          </item>
17628
 
-         </layout>
17629
 
-        </widget>
17630
 
-       </item>
17631
 
-       <item>
17632
 
-        <widget class="QLabel" name="TextLabel2_4_2" >
17633
 
-         <property name="text" >
17634
 
-          <string>&lt;qt>Validate password against the following usernames if the client cannot supply a username:&lt;/qt></string>
17635
 
-         </property>
17636
 
-         <property name="wordWrap" >
17637
 
-          <bool>false</bool>
17638
 
-         </property>
17639
 
-         <property name="buddy" >
17640
 
-          <cstring>userNameEdit</cstring>
17641
 
-         </property>
17642
 
-        </widget>
17643
 
-       </item>
17644
 
-       <item>
17645
 
-        <widget class="QLineEdit" name="userNameEdit" />
17646
 
-       </item>
17647
 
-       <item>
17648
 
-        <widget class="QCheckBox" name="onlyUserChk" >
17649
 
-         <property name="whatsThis" >
17650
 
-          <string>If this is checked , then no password is required to connect to the service. Privileges will be those of the guest account.</string>
17651
 
-         </property>
17652
 
-         <property name="text" >
17653
 
-          <string>Only allow connections with use&amp;rnames specified in this username list</string>
17654
 
-         </property>
17655
 
-        </widget>
17656
 
-       </item>
17657
 
-       <item>
17658
 
-        <spacer>
17659
 
-         <property name="orientation" >
17660
 
-          <enum>Qt::Vertical</enum>
17661
 
-         </property>
17662
 
-         <property name="sizeHint" >
17663
 
-          <size>
17664
 
-           <width>20</width>
17665
 
-           <height>40</height>
17666
 
-          </size>
17667
 
-         </property>
17668
 
-        </spacer>
17669
 
-       </item>
17670
 
-      </layout>
17671
 
-     </widget>
17672
 
-     <widget class="QWidget" name="hiddenFilesTab" >
17673
 
-      <attribute name="title" >
17674
 
-       <string>Hidden &amp;Files</string>
17675
 
-      </attribute>
17676
 
-      <layout class="QVBoxLayout" >
17677
 
-       <property name="spacing" >
17678
 
-        <number>6</number>
17679
 
-       </property>
17680
 
-       <property name="leftMargin" >
17681
 
-        <number>11</number>
17682
 
-       </property>
17683
 
-       <property name="topMargin" >
17684
 
-        <number>11</number>
17685
 
-       </property>
17686
 
-       <property name="rightMargin" >
17687
 
-        <number>11</number>
17688
 
-       </property>
17689
 
-       <property name="bottomMargin" >
17690
 
-        <number>11</number>
17691
 
-       </property>
17692
 
-       <item>
17693
 
-        <widget class="K3ListView" name="hiddenListView" >
17694
 
-         <property name="showSortIndicator" >
17695
 
-          <bool>true</bool>
17696
 
-         </property>
17697
 
-         <column>
17698
 
-          <property name="text" >
17699
 
-           <string>Name</string>
17700
 
-          </property>
17701
 
-         </column>
17702
 
-         <column>
17703
 
-          <property name="text" >
17704
 
-           <string>Hidden</string>
17705
 
-          </property>
17706
 
-         </column>
17707
 
-         <column>
17708
 
-          <property name="text" >
17709
 
-           <string>Veto</string>
17710
 
-          </property>
17711
 
-         </column>
17712
 
-         <column>
17713
 
-          <property name="text" >
17714
 
-           <string>Veto Oplock</string>
17715
 
-          </property>
17716
 
-         </column>
17717
 
-         <column>
17718
 
-          <property name="text" >
17719
 
-           <string>Size</string>
17720
 
-          </property>
17721
 
-         </column>
17722
 
-         <column>
17723
 
-          <property name="text" >
17724
 
-           <string>Date</string>
17725
 
-          </property>
17726
 
-         </column>
17727
 
-         <column>
17728
 
-          <property name="text" >
17729
 
-           <string>Permissions</string>
17730
 
-          </property>
17731
 
-         </column>
17732
 
-         <column>
17733
 
-          <property name="text" >
17734
 
-           <string>Owner</string>
17735
 
-          </property>
17736
 
-         </column>
17737
 
-         <column>
17738
 
-          <property name="text" >
17739
 
-           <string>Group</string>
17740
 
-          </property>
17741
 
-         </column>
17742
 
-        </widget>
17743
 
-       </item>
17744
 
-       <item>
17745
 
-        <widget class="QGroupBox" name="selGrpBx" >
17746
 
-         <property name="title" >
17747
 
-          <string>Se&amp;lected Files</string>
17748
 
-         </property>
17749
 
-         <layout class="QHBoxLayout" >
17750
 
-          <property name="spacing" >
17751
 
-           <number>6</number>
17752
 
-          </property>
17753
 
-          <property name="leftMargin" >
17754
 
-           <number>11</number>
17755
 
-          </property>
17756
 
-          <property name="topMargin" >
17757
 
-           <number>11</number>
17758
 
-          </property>
17759
 
-          <property name="rightMargin" >
17760
 
-           <number>11</number>
17761
 
-          </property>
17762
 
-          <property name="bottomMargin" >
17763
 
-           <number>11</number>
17764
 
-          </property>
17765
 
-          <item>
17766
 
-           <widget class="QCheckBox" name="hiddenChk" >
17767
 
-            <property name="text" >
17768
 
-             <string>Hi&amp;de</string>
17769
 
-            </property>
17770
 
-           </widget>
17771
 
-          </item>
17772
 
-          <item>
17773
 
-           <widget class="QCheckBox" name="vetoChk" >
17774
 
-            <property name="text" >
17775
 
-             <string>&amp;Veto</string>
17776
 
-            </property>
17777
 
-           </widget>
17778
 
-          </item>
17779
 
-          <item>
17780
 
-           <widget class="QCheckBox" name="vetoOplockChk" >
17781
 
-            <property name="text" >
17782
 
-             <string>Veto oploc&amp;k</string>
17783
 
-            </property>
17784
 
-           </widget>
17785
 
-          </item>
17786
 
-         </layout>
17787
 
-        </widget>
17788
 
-       </item>
17789
 
-       <item>
17790
 
-        <widget class="QGroupBox" name="GroupBox13_2" >
17791
 
-         <property name="title" >
17792
 
-          <string>&amp;Manual Configuration</string>
17793
 
-         </property>
17794
 
-         <layout class="QVBoxLayout" >
17795
 
-          <property name="spacing" >
17796
 
-           <number>6</number>
17797
 
-          </property>
17798
 
-          <property name="leftMargin" >
17799
 
-           <number>11</number>
17800
 
-          </property>
17801
 
-          <property name="topMargin" >
17802
 
-           <number>11</number>
17803
 
-          </property>
17804
 
-          <property name="rightMargin" >
17805
 
-           <number>11</number>
17806
 
-          </property>
17807
 
-          <property name="bottomMargin" >
17808
 
-           <number>11</number>
17809
 
-          </property>
17810
 
-          <item>
17811
 
-           <layout class="QGridLayout" >
17812
 
-            <property name="leftMargin" >
17813
 
-             <number>0</number>
17814
 
-            </property>
17815
 
-            <property name="topMargin" >
17816
 
-             <number>0</number>
17817
 
-            </property>
17818
 
-            <property name="rightMargin" >
17819
 
-             <number>0</number>
17820
 
-            </property>
17821
 
-            <property name="bottomMargin" >
17822
 
-             <number>0</number>
17823
 
-            </property>
17824
 
-            <property name="horizontalSpacing" >
17825
 
-             <number>6</number>
17826
 
-            </property>
17827
 
-            <property name="verticalSpacing" >
17828
 
-             <number>6</number>
17829
 
-            </property>
17830
 
-            <item row="1" column="0" >
17831
 
-             <widget class="QLabel" name="TextLabel2_2" >
17832
 
-              <property name="text" >
17833
 
-               <string>Ve&amp;to files:</string>
17834
 
-              </property>
17835
 
-              <property name="wordWrap" >
17836
 
-               <bool>false</bool>
17837
 
-              </property>
17838
 
-              <property name="buddy" >
17839
 
-               <cstring>vetoEdit</cstring>
17840
 
-              </property>
17841
 
-             </widget>
17842
 
-            </item>
17843
 
-            <item row="2" column="0" >
17844
 
-             <widget class="QLabel" name="TextLabel2_2_2" >
17845
 
-              <property name="text" >
17846
 
-               <string>Veto oplock f&amp;iles:</string>
17847
 
-              </property>
17848
 
-              <property name="wordWrap" >
17849
 
-               <bool>false</bool>
17850
 
-              </property>
17851
 
-              <property name="buddy" >
17852
 
-               <cstring>vetoOplockEdit</cstring>
17853
 
-              </property>
17854
 
-             </widget>
17855
 
-            </item>
17856
 
-            <item row="0" column="1" >
17857
 
-             <widget class="QLineEdit" name="hiddenEdit" />
17858
 
-            </item>
17859
 
-            <item row="2" column="1" >
17860
 
-             <widget class="QLineEdit" name="vetoOplockEdit" />
17861
 
-            </item>
17862
 
-            <item row="1" column="1" >
17863
 
-             <widget class="QLineEdit" name="vetoEdit" />
17864
 
-            </item>
17865
 
-            <item row="0" column="0" >
17866
 
-             <widget class="QLabel" name="TextLabel1_3" >
17867
 
-              <property name="text" >
17868
 
-               <string>Hidde&amp;n files:</string>
17869
 
-              </property>
17870
 
-              <property name="wordWrap" >
17871
 
-               <bool>false</bool>
17872
 
-              </property>
17873
 
-              <property name="buddy" >
17874
 
-               <cstring>hiddenEdit</cstring>
17875
 
-              </property>
17876
 
-             </widget>
17877
 
-            </item>
17878
 
-           </layout>
17879
 
-          </item>
17880
 
-          <item>
17881
 
-           <layout class="QGridLayout" >
17882
 
-            <property name="leftMargin" >
17883
 
-             <number>0</number>
17884
 
-            </property>
17885
 
-            <property name="topMargin" >
17886
 
-             <number>0</number>
17887
 
-            </property>
17888
 
-            <property name="rightMargin" >
17889
 
-             <number>0</number>
17890
 
-            </property>
17891
 
-            <property name="bottomMargin" >
17892
 
-             <number>0</number>
17893
 
-            </property>
17894
 
-            <property name="horizontalSpacing" >
17895
 
-             <number>6</number>
17896
 
-            </property>
17897
 
-            <property name="verticalSpacing" >
17898
 
-             <number>6</number>
17899
 
-            </property>
17900
 
-            <item row="1" column="0" >
17901
 
-             <widget class="QCheckBox" name="hideUnwriteableFilesChk" >
17902
 
-              <property name="text" >
17903
 
-               <string>Hide un&amp;writable files</string>
17904
 
-              </property>
17905
 
-             </widget>
17906
 
-            </item>
17907
 
-            <item row="1" column="1" >
17908
 
-             <widget class="QCheckBox" name="hideSpecialFilesChk" >
17909
 
-              <property name="text" >
17910
 
-               <string>Hide s&amp;pecial files</string>
17911
 
-              </property>
17912
 
-             </widget>
17913
 
-            </item>
17914
 
-            <item row="0" column="1" >
17915
 
-             <widget class="QCheckBox" name="hideDotFilesChk" >
17916
 
-              <property name="text" >
17917
 
-               <string>Hide files startin&amp;g with a dot </string>
17918
 
-              </property>
17919
 
-             </widget>
17920
 
-            </item>
17921
 
-            <item row="0" column="0" >
17922
 
-             <widget class="QCheckBox" name="hideUnreadableChk" >
17923
 
-              <property name="text" >
17924
 
-               <string>Hide un&amp;readable files</string>
17925
 
-              </property>
17926
 
-             </widget>
17927
 
-            </item>
17928
 
-           </layout>
17929
 
-          </item>
17930
 
-         </layout>
17931
 
-        </widget>
17932
 
-       </item>
17933
 
-      </layout>
17934
 
-     </widget>
17935
 
-     <widget class="QWidget" name="advancedTab" >
17936
 
-      <attribute name="title" >
17937
 
-       <string>&amp;Advanced</string>
17938
 
-      </attribute>
17939
 
-      <layout class="QVBoxLayout" >
17940
 
-       <property name="spacing" >
17941
 
-        <number>6</number>
17942
 
-       </property>
17943
 
-       <property name="leftMargin" >
17944
 
-        <number>11</number>
17945
 
-       </property>
17946
 
-       <property name="topMargin" >
17947
 
-        <number>11</number>
17948
 
-       </property>
17949
 
-       <property name="rightMargin" >
17950
 
-        <number>11</number>
17951
 
-       </property>
17952
 
-       <property name="bottomMargin" >
17953
 
-        <number>11</number>
17954
 
-       </property>
17955
 
-       <item>
17956
 
-        <widget class="QFrame" name="advancedFrame" >
17957
 
-         <property name="frameShape" >
17958
 
-          <enum>QFrame::NoFrame</enum>
17959
 
-         </property>
17960
 
-         <property name="frameShadow" >
17961
 
-          <enum>QFrame::Plain</enum>
17962
 
-         </property>
17963
 
-        </widget>
17964
 
-       </item>
17965
 
-       <item>
17966
 
-        <widget class="QFrame" name="Frame26" >
17967
 
-         <property name="frameShape" >
17968
 
-          <enum>QFrame::NoFrame</enum>
17969
 
-         </property>
17970
 
-         <property name="frameShadow" >
17971
 
-          <enum>QFrame::Plain</enum>
17972
 
-         </property>
17973
 
-        </widget>
17974
 
-       </item>
17975
 
-       <item>
17976
 
-        <layout class="QHBoxLayout" >
17977
 
-         <property name="spacing" >
17978
 
-          <number>6</number>
17979
 
-         </property>
17980
 
-         <property name="leftMargin" >
17981
 
-          <number>0</number>
17982
 
-         </property>
17983
 
-         <property name="topMargin" >
17984
 
-          <number>0</number>
17985
 
-         </property>
17986
 
-         <property name="rightMargin" >
17987
 
-          <number>0</number>
17988
 
-         </property>
17989
 
-         <property name="bottomMargin" >
17990
 
-          <number>0</number>
17991
 
-         </property>
17992
 
-         <item>
17993
 
-          <widget class="QLabel" name="PixmapLabel1" >
17994
 
-           <property name="sizePolicy" >
17995
 
-            <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
17996
 
-             <horstretch>0</horstretch>
17997
 
-             <verstretch>0</verstretch>
17998
 
-            </sizepolicy>
17999
 
-           </property>
18000
 
-           <property name="scaledContents" >
18001
 
-            <bool>true</bool>
18002
 
-           </property>
18003
 
-           <property name="wordWrap" >
18004
 
-            <bool>false</bool>
18005
 
-           </property>
18006
 
-          </widget>
18007
 
-         </item>
18008
 
-         <item>
18009
 
-          <widget class="QLabel" name="TextLabel1_4" >
18010
 
-           <property name="font" >
18011
 
-            <font>
18012
 
-             <weight>75</weight>
18013
 
-             <bold>true</bold>
18014
 
-            </font>
18015
 
-           </property>
18016
 
-           <property name="text" >
18017
 
-            <string>Here you can change advanced options of the SAMBA server.
18018
 
-Only change something if you know what you are doing.</string>
18019
 
-           </property>
18020
 
-           <property name="wordWrap" >
18021
 
-            <bool>false</bool>
18022
 
-           </property>
18023
 
-          </widget>
18024
 
-         </item>
18025
 
-        </layout>
18026
 
-       </item>
18027
 
-      </layout>
18028
 
-     </widget>
18029
 
-     <widget class="QWidget" name="advancedDumpTabPage" >
18030
 
-      <attribute name="title" >
18031
 
-       <string>Advanced Dump</string>
18032
 
-      </attribute>
18033
 
-      <layout class="QVBoxLayout" >
18034
 
-       <item>
18035
 
-        <widget class="QTabWidget" name="advancedDumpTab" >
18036
 
-         <property name="currentIndex" >
18037
 
-          <number>3</number>
18038
 
-         </property>
18039
 
-         <widget class="QWidget" name="tab" >
18040
 
-          <attribute name="title" >
18041
 
-           <string>Security</string>
18042
 
-          </attribute>
18043
 
-          <layout class="QGridLayout" >
18044
 
-           <property name="leftMargin" >
18045
 
-            <number>0</number>
18046
 
-           </property>
18047
 
-           <property name="topMargin" >
18048
 
-            <number>0</number>
18049
 
-           </property>
18050
 
-           <property name="rightMargin" >
18051
 
-            <number>0</number>
18052
 
-           </property>
18053
 
-           <property name="bottomMargin" >
18054
 
-            <number>0</number>
18055
 
-           </property>
18056
 
-           <item row="3" column="0" >
18057
 
-            <widget class="QGroupBox" name="GroupBox11_2" >
18058
 
-             <property name="title" >
18059
 
-              <string>Force Modes</string>
18060
 
-             </property>
18061
 
-             <layout class="QGridLayout" >
18062
 
-              <property name="leftMargin" >
18063
 
-               <number>11</number>
18064
 
-              </property>
18065
 
-              <property name="topMargin" >
18066
 
-               <number>11</number>
18067
 
-              </property>
18068
 
-              <property name="rightMargin" >
18069
 
-               <number>11</number>
18070
 
-              </property>
18071
 
-              <property name="bottomMargin" >
18072
 
-               <number>11</number>
18073
 
-              </property>
18074
 
-              <property name="horizontalSpacing" >
18075
 
-               <number>6</number>
18076
 
-              </property>
18077
 
-              <property name="verticalSpacing" >
18078
 
-               <number>6</number>
18079
 
-              </property>
18080
 
-              <item row="3" column="0" >
18081
 
-               <widget class="QLabel" name="TextLabel5_2_3_2_2_2_2" >
18082
 
-                <property name="whatsThis" >
18083
 
-                 <string>This parameter is a comma, space, or tab delimited set of hosts which are permitted to access a service.</string>
18084
 
-                </property>
18085
 
-                <property name="text" >
18086
 
-                 <string>Forc&amp;e directory security mode:</string>
18087
 
-                </property>
18088
 
-                <property name="wordWrap" >
18089
 
-                 <bool>false</bool>
18090
 
-                </property>
18091
 
-                <property name="buddy" >
18092
 
-                 <cstring>forceDirectorySecurityModeEdit</cstring>
18093
 
-                </property>
18094
 
-               </widget>
18095
 
-              </item>
18096
 
-              <item row="1" column="0" >
18097
 
-               <widget class="QLabel" name="TextLabel5_2_3_2_3" >
18098
 
-                <property name="whatsThis" >
18099
 
-                 <string>This parameter is a comma, space, or tab delimited set of hosts which are permitted to access a service.</string>
18100
 
-                </property>
18101
 
-                <property name="text" >
18102
 
-                 <string>Fo&amp;rce security mode:</string>
18103
 
-                </property>
18104
 
-                <property name="wordWrap" >
18105
 
-                 <bool>false</bool>
18106
 
-                </property>
18107
 
-                <property name="buddy" >
18108
 
-                 <cstring>forceSecurityModeEdit</cstring>
18109
 
-                </property>
18110
 
-               </widget>
18111
 
-              </item>
18112
 
-              <item row="2" column="0" >
18113
 
-               <widget class="QLabel" name="TextLabel5_2_3_2_2_3" >
18114
 
-                <property name="whatsThis" >
18115
 
-                 <string>This parameter is a comma, space, or tab delimited set of hosts which are permitted to access a service.</string>
18116
 
-                </property>
18117
 
-                <property name="text" >
18118
 
-                 <string>Force director&amp;y mode:</string>
18119
 
-                </property>
18120
 
-                <property name="wordWrap" >
18121
 
-                 <bool>false</bool>
18122
 
-                </property>
18123
 
-                <property name="buddy" >
18124
 
-                 <cstring>forceDirectoryModeEdit</cstring>
18125
 
-                </property>
18126
 
-               </widget>
18127
 
-              </item>
18128
 
-              <item row="0" column="0" >
18129
 
-               <widget class="QLabel" name="TextLabel5_2_3_3" >
18130
 
-                <property name="whatsThis" >
18131
 
-                 <string>This parameter is a comma, space, or tab delimited set of hosts which are permitted to access a service.</string>
18132
 
-                </property>
18133
 
-                <property name="text" >
18134
 
-                 <string>Force create mo&amp;de:</string>
18135
 
-                </property>
18136
 
-                <property name="wordWrap" >
18137
 
-                 <bool>false</bool>
18138
 
-                </property>
18139
 
-                <property name="buddy" >
18140
 
-                 <cstring>forceCreateModeEdit</cstring>
18141
 
-                </property>
18142
 
-               </widget>
18143
 
-              </item>
18144
 
-              <item row="2" column="2" >
18145
 
-               <widget class="QToolButton" name="forceDirectoryModeBtn" >
18146
 
-                <property name="sizePolicy" >
18147
 
-                 <sizepolicy vsizetype="Minimum" hsizetype="Minimum" >
18148
 
-                  <horstretch>0</horstretch>
18149
 
-                  <verstretch>0</verstretch>
18150
 
-                 </sizepolicy>
18151
 
-                </property>
18152
 
-                <property name="minimumSize" >
18153
 
-                 <size>
18154
 
-                  <width>20</width>
18155
 
-                  <height>0</height>
18156
 
-                 </size>
18157
 
-                </property>
18158
 
-                <property name="text" >
18159
 
-                 <string>...</string>
18160
 
-                </property>
18161
 
-               </widget>
18162
 
-              </item>
18163
 
-              <item row="3" column="2" >
18164
 
-               <widget class="QToolButton" name="forceDirectorySecurityModeBtn" >
18165
 
-                <property name="sizePolicy" >
18166
 
-                 <sizepolicy vsizetype="Minimum" hsizetype="Minimum" >
18167
 
-                  <horstretch>0</horstretch>
18168
 
-                  <verstretch>0</verstretch>
18169
 
-                 </sizepolicy>
18170
 
-                </property>
18171
 
-                <property name="minimumSize" >
18172
 
-                 <size>
18173
 
-                  <width>20</width>
18174
 
-                  <height>0</height>
18175
 
-                 </size>
18176
 
-                </property>
18177
 
-                <property name="text" >
18178
 
-                 <string>...</string>
18179
 
-                </property>
18180
 
-               </widget>
18181
 
-              </item>
18182
 
-              <item row="0" column="1" >
18183
 
-               <widget class="KRestrictedLine" name="forceCreateModeEdit" >
18184
 
-                <property name="minimumSize" >
18185
 
-                 <size>
18186
 
-                  <width>40</width>
18187
 
-                  <height>0</height>
18188
 
-                 </size>
18189
 
-                </property>
18190
 
-                <property name="validChars" >
18191
 
-                 <string>01234567</string>
18192
 
-                </property>
18193
 
-               </widget>
18194
 
-              </item>
18195
 
-              <item row="1" column="1" >
18196
 
-               <widget class="KRestrictedLine" name="forceSecurityModeEdit" >
18197
 
-                <property name="minimumSize" >
18198
 
-                 <size>
18199
 
-                  <width>40</width>
18200
 
-                  <height>0</height>
18201
 
-                 </size>
18202
 
-                </property>
18203
 
-                <property name="validChars" >
18204
 
-                 <string>01234567</string>
18205
 
-                </property>
18206
 
-               </widget>
18207
 
-              </item>
18208
 
-              <item row="2" column="1" >
18209
 
-               <widget class="KRestrictedLine" name="forceDirectoryModeEdit" >
18210
 
-                <property name="minimumSize" >
18211
 
-                 <size>
18212
 
-                  <width>40</width>
18213
 
-                  <height>0</height>
18214
 
-                 </size>
18215
 
-                </property>
18216
 
-                <property name="validChars" >
18217
 
-                 <string>01234567</string>
18218
 
-                </property>
18219
 
-               </widget>
18220
 
-              </item>
18221
 
-              <item row="3" column="1" >
18222
 
-               <widget class="KRestrictedLine" name="forceDirectorySecurityModeEdit" >
18223
 
-                <property name="minimumSize" >
18224
 
-                 <size>
18225
 
-                  <width>40</width>
18226
 
-                  <height>0</height>
18227
 
-                 </size>
18228
 
-                </property>
18229
 
-                <property name="validChars" >
18230
 
-                 <string>01234567</string>
18231
 
-                </property>
18232
 
-               </widget>
18233
 
-              </item>
18234
 
-              <item row="1" column="2" >
18235
 
-               <widget class="QToolButton" name="forceSecurityModeBtn" >
18236
 
-                <property name="sizePolicy" >
18237
 
-                 <sizepolicy vsizetype="Minimum" hsizetype="Minimum" >
18238
 
-                  <horstretch>0</horstretch>
18239
 
-                  <verstretch>0</verstretch>
18240
 
-                 </sizepolicy>
18241
 
-                </property>
18242
 
-                <property name="minimumSize" >
18243
 
-                 <size>
18244
 
-                  <width>20</width>
18245
 
-                  <height>0</height>
18246
 
-                 </size>
18247
 
-                </property>
18248
 
-                <property name="text" >
18249
 
-                 <string>...</string>
18250
 
-                </property>
18251
 
-               </widget>
18252
 
-              </item>
18253
 
-              <item row="0" column="2" >
18254
 
-               <widget class="QToolButton" name="forceCreateModeBtn" >
18255
 
-                <property name="sizePolicy" >
18256
 
-                 <sizepolicy vsizetype="Minimum" hsizetype="Minimum" >
18257
 
-                  <horstretch>0</horstretch>
18258
 
-                  <verstretch>0</verstretch>
18259
 
-                 </sizepolicy>
18260
 
-                </property>
18261
 
-                <property name="minimumSize" >
18262
 
-                 <size>
18263
 
-                  <width>20</width>
18264
 
-                  <height>0</height>
18265
 
-                 </size>
18266
 
-                </property>
18267
 
-                <property name="text" >
18268
 
-                 <string>...</string>
18269
 
-                </property>
18270
 
-               </widget>
18271
 
-              </item>
18272
 
-             </layout>
18273
 
-            </widget>
18274
 
-           </item>
18275
 
-           <item row="4" column="0" >
18276
 
-            <spacer>
18277
 
-             <property name="orientation" >
18278
 
-              <enum>Qt::Vertical</enum>
18279
 
-             </property>
18280
 
-             <property name="sizeType" >
18281
 
-              <enum>QSizePolicy::Expanding</enum>
18282
 
-             </property>
18283
 
-             <property name="sizeHint" >
18284
 
-              <size>
18285
 
-               <width>20</width>
18286
 
-               <height>16</height>
18287
 
-              </size>
18288
 
-             </property>
18289
 
-            </spacer>
18290
 
-           </item>
18291
 
-           <item row="3" column="1" >
18292
 
-            <widget class="QGroupBox" name="GroupBox10_2" >
18293
 
-             <property name="title" >
18294
 
-              <string>Masks</string>
18295
 
-             </property>
18296
 
-             <layout class="QGridLayout" >
18297
 
-              <property name="leftMargin" >
18298
 
-               <number>11</number>
18299
 
-              </property>
18300
 
-              <property name="topMargin" >
18301
 
-               <number>11</number>
18302
 
-              </property>
18303
 
-              <property name="rightMargin" >
18304
 
-               <number>11</number>
18305
 
-              </property>
18306
 
-              <property name="bottomMargin" >
18307
 
-               <number>11</number>
18308
 
-              </property>
18309
 
-              <property name="horizontalSpacing" >
18310
 
-               <number>6</number>
18311
 
-              </property>
18312
 
-              <property name="verticalSpacing" >
18313
 
-               <number>6</number>
18314
 
-              </property>
18315
 
-              <item row="3" column="0" >
18316
 
-               <widget class="QLabel" name="TextLabel5_2_4_2_2_2" >
18317
 
-                <property name="whatsThis" >
18318
 
-                 <string>This parameter is a comma, space, or tab delimited set of hosts which are permitted to access a service.</string>
18319
 
-                </property>
18320
 
-                <property name="text" >
18321
 
-                 <string>Directory security mask:</string>
18322
 
-                </property>
18323
 
-                <property name="wordWrap" >
18324
 
-                 <bool>false</bool>
18325
 
-                </property>
18326
 
-                <property name="buddy" >
18327
 
-                 <cstring>directorySecurityMaskEdit</cstring>
18328
 
-                </property>
18329
 
-               </widget>
18330
 
-              </item>
18331
 
-              <item row="1" column="0" >
18332
 
-               <widget class="QLabel" name="TextLabel5_2_4_3" >
18333
 
-                <property name="whatsThis" >
18334
 
-                 <string>This parameter is a comma, space, or tab delimited set of hosts which are permitted to access a service.</string>
18335
 
-                </property>
18336
 
-                <property name="text" >
18337
 
-                 <string>Security &amp;mask:</string>
18338
 
-                </property>
18339
 
-                <property name="wordWrap" >
18340
 
-                 <bool>false</bool>
18341
 
-                </property>
18342
 
-                <property name="buddy" >
18343
 
-                 <cstring>securityMaskEdit</cstring>
18344
 
-                </property>
18345
 
-               </widget>
18346
 
-              </item>
18347
 
-              <item row="2" column="0" >
18348
 
-               <widget class="QLabel" name="TextLabel5_2_4_2_3" >
18349
 
-                <property name="whatsThis" >
18350
 
-                 <string>This parameter is a comma, space, or tab delimited set of hosts which are permitted to access a service.</string>
18351
 
-                </property>
18352
 
-                <property name="text" >
18353
 
-                 <string>Direc&amp;tory mask:</string>
18354
 
-                </property>
18355
 
-                <property name="wordWrap" >
18356
 
-                 <bool>false</bool>
18357
 
-                </property>
18358
 
-                <property name="buddy" >
18359
 
-                 <cstring>directoryMaskEdit</cstring>
18360
 
-                </property>
18361
 
-               </widget>
18362
 
-              </item>
18363
 
-              <item row="1" column="2" >
18364
 
-               <widget class="QToolButton" name="securityMaskBtn" >
18365
 
-                <property name="sizePolicy" >
18366
 
-                 <sizepolicy vsizetype="Minimum" hsizetype="Minimum" >
18367
 
-                  <horstretch>0</horstretch>
18368
 
-                  <verstretch>0</verstretch>
18369
 
-                 </sizepolicy>
18370
 
-                </property>
18371
 
-                <property name="minimumSize" >
18372
 
-                 <size>
18373
 
-                  <width>20</width>
18374
 
-                  <height>0</height>
18375
 
-                 </size>
18376
 
-                </property>
18377
 
-                <property name="text" >
18378
 
-                 <string>...</string>
18379
 
-                </property>
18380
 
-               </widget>
18381
 
-              </item>
18382
 
-              <item row="2" column="2" >
18383
 
-               <widget class="QToolButton" name="directoryMaskBtn" >
18384
 
-                <property name="sizePolicy" >
18385
 
-                 <sizepolicy vsizetype="Minimum" hsizetype="Minimum" >
18386
 
-                  <horstretch>0</horstretch>
18387
 
-                  <verstretch>0</verstretch>
18388
 
-                 </sizepolicy>
18389
 
-                </property>
18390
 
-                <property name="minimumSize" >
18391
 
-                 <size>
18392
 
-                  <width>20</width>
18393
 
-                  <height>0</height>
18394
 
-                 </size>
18395
 
-                </property>
18396
 
-                <property name="text" >
18397
 
-                 <string>...</string>
18398
 
-                </property>
18399
 
-               </widget>
18400
 
-              </item>
18401
 
-              <item row="3" column="2" >
18402
 
-               <widget class="QToolButton" name="directorySecurityMaskBtn" >
18403
 
-                <property name="sizePolicy" >
18404
 
-                 <sizepolicy vsizetype="Minimum" hsizetype="Minimum" >
18405
 
-                  <horstretch>0</horstretch>
18406
 
-                  <verstretch>0</verstretch>
18407
 
-                 </sizepolicy>
18408
 
-                </property>
18409
 
-                <property name="minimumSize" >
18410
 
-                 <size>
18411
 
-                  <width>20</width>
18412
 
-                  <height>0</height>
18413
 
-                 </size>
18414
 
-                </property>
18415
 
-                <property name="text" >
18416
 
-                 <string>...</string>
18417
 
-                </property>
18418
 
-               </widget>
18419
 
-              </item>
18420
 
-              <item row="1" column="1" >
18421
 
-               <widget class="KRestrictedLine" name="securityMaskEdit" >
18422
 
-                <property name="minimumSize" >
18423
 
-                 <size>
18424
 
-                  <width>40</width>
18425
 
-                  <height>0</height>
18426
 
-                 </size>
18427
 
-                </property>
18428
 
-                <property name="validChars" >
18429
 
-                 <string>01234567</string>
18430
 
-                </property>
18431
 
-               </widget>
18432
 
-              </item>
18433
 
-              <item row="2" column="1" >
18434
 
-               <widget class="KRestrictedLine" name="directoryMaskEdit" >
18435
 
-                <property name="minimumSize" >
18436
 
-                 <size>
18437
 
-                  <width>40</width>
18438
 
-                  <height>0</height>
18439
 
-                 </size>
18440
 
-                </property>
18441
 
-                <property name="validChars" >
18442
 
-                 <string>01234567</string>
18443
 
-                </property>
18444
 
-               </widget>
18445
 
-              </item>
18446
 
-              <item row="3" column="1" >
18447
 
-               <widget class="KRestrictedLine" name="directorySecurityMaskEdit" >
18448
 
-                <property name="minimumSize" >
18449
 
-                 <size>
18450
 
-                  <width>40</width>
18451
 
-                  <height>0</height>
18452
 
-                 </size>
18453
 
-                </property>
18454
 
-                <property name="validChars" >
18455
 
-                 <string>01234567</string>
18456
 
-                </property>
18457
 
-               </widget>
18458
 
-              </item>
18459
 
-              <item row="0" column="0" >
18460
 
-               <widget class="QLabel" name="TextLabel5_2_2" >
18461
 
-                <property name="whatsThis" >
18462
 
-                 <string>This parameter is a comma, space, or tab delimited set of hosts which are permitted to access a service.</string>
18463
 
-                </property>
18464
 
-                <property name="text" >
18465
 
-                 <string>Create mas&amp;k:</string>
18466
 
-                </property>
18467
 
-                <property name="wordWrap" >
18468
 
-                 <bool>false</bool>
18469
 
-                </property>
18470
 
-                <property name="buddy" >
18471
 
-                 <cstring>createMaskEdit</cstring>
18472
 
-                </property>
18473
 
-               </widget>
18474
 
-              </item>
18475
 
-              <item row="0" column="1" >
18476
 
-               <widget class="KRestrictedLine" name="createMaskEdit" >
18477
 
-                <property name="minimumSize" >
18478
 
-                 <size>
18479
 
-                  <width>40</width>
18480
 
-                  <height>0</height>
18481
 
-                 </size>
18482
 
-                </property>
18483
 
-                <property name="validChars" >
18484
 
-                 <string>01234567</string>
18485
 
-                </property>
18486
 
-               </widget>
18487
 
-              </item>
18488
 
-              <item row="0" column="2" >
18489
 
-               <widget class="QToolButton" name="createMaskBtn" >
18490
 
-                <property name="sizePolicy" >
18491
 
-                 <sizepolicy vsizetype="Minimum" hsizetype="Minimum" >
18492
 
-                  <horstretch>0</horstretch>
18493
 
-                  <verstretch>0</verstretch>
18494
 
-                 </sizepolicy>
18495
 
-                </property>
18496
 
-                <property name="minimumSize" >
18497
 
-                 <size>
18498
 
-                  <width>20</width>
18499
 
-                  <height>0</height>
18500
 
-                 </size>
18501
 
-                </property>
18502
 
-                <property name="text" >
18503
 
-                 <string>...</string>
18504
 
-                </property>
18505
 
-               </widget>
18506
 
-              </item>
18507
 
-             </layout>
18508
 
-            </widget>
18509
 
-           </item>
18510
 
-           <item rowspan="2" row="0" column="1" >
18511
 
-            <widget class="QGroupBox" name="groupBox56" >
18512
 
-             <property name="title" >
18513
 
-              <string>ACL</string>
18514
 
-             </property>
18515
 
-             <layout class="QGridLayout" >
18516
 
-              <property name="leftMargin" >
18517
 
-               <number>11</number>
18518
 
-              </property>
18519
 
-              <property name="topMargin" >
18520
 
-               <number>11</number>
18521
 
-              </property>
18522
 
-              <property name="rightMargin" >
18523
 
-               <number>11</number>
18524
 
-              </property>
18525
 
-              <property name="bottomMargin" >
18526
 
-               <number>11</number>
18527
 
-              </property>
18528
 
-              <property name="horizontalSpacing" >
18529
 
-               <number>6</number>
18530
 
-              </property>
18531
 
-              <property name="verticalSpacing" >
18532
 
-               <number>6</number>
18533
 
-              </property>
18534
 
-              <item row="2" column="0" colspan="3" >
18535
 
-               <widget class="QCheckBox" name="profileAclsChk" >
18536
 
-                <property name="text" >
18537
 
-                 <string>&amp;Profile acls</string>
18538
 
-                </property>
18539
 
-               </widget>
18540
 
-              </item>
18541
 
-              <item row="1" column="0" colspan="3" >
18542
 
-               <widget class="QCheckBox" name="inheritAclsChk" >
18543
 
-                <property name="text" >
18544
 
-                 <string>Inherit ac&amp;ls</string>
18545
 
-                </property>
18546
 
-               </widget>
18547
 
-              </item>
18548
 
-              <item row="0" column="0" >
18549
 
-               <widget class="QCheckBox" name="ntAclSupportChk" >
18550
 
-                <property name="text" >
18551
 
-                 <string>&amp;NT ACL support</string>
18552
 
-                </property>
18553
 
-                <property name="checked" >
18554
 
-                 <bool>true</bool>
18555
 
-                </property>
18556
 
-               </widget>
18557
 
-              </item>
18558
 
-              <item row="4" column="0" >
18559
 
-               <widget class="QLabel" name="TextLabel5_2_2_2" >
18560
 
-                <property name="whatsThis" >
18561
 
-                 <string>This parameter is a comma, space, or tab delimited set of hosts which are permitted to access a service.</string>
18562
 
-                </property>
18563
 
-                <property name="text" >
18564
 
-                 <string>Force unkno&amp;wn acl user:</string>
18565
 
-                </property>
18566
 
-                <property name="wordWrap" >
18567
 
-                 <bool>false</bool>
18568
 
-                </property>
18569
 
-                <property name="buddy" >
18570
 
-                 <cstring>forceUnknownAclUserEdit</cstring>
18571
 
-                </property>
18572
 
-               </widget>
18573
 
-              </item>
18574
 
-              <item row="3" column="0" colspan="3" >
18575
 
-               <widget class="QCheckBox" name="mapAclInheritChk" >
18576
 
-                <property name="text" >
18577
 
-                 <string>Map acl &amp;inherit</string>
18578
 
-                </property>
18579
 
-               </widget>
18580
 
-              </item>
18581
 
-              <item row="4" column="1" colspan="2" >
18582
 
-               <widget class="KRestrictedLine" name="forceUnknownAclUserEdit" >
18583
 
-                <property name="minimumSize" >
18584
 
-                 <size>
18585
 
-                  <width>40</width>
18586
 
-                  <height>0</height>
18587
 
-                 </size>
18588
 
-                </property>
18589
 
-                <property name="validChars" >
18590
 
-                 <string>01234567</string>
18591
 
-                </property>
18592
 
-               </widget>
18593
 
-              </item>
18594
 
-             </layout>
18595
 
-            </widget>
18596
 
-           </item>
18597
 
-           <item row="0" column="0" >
18598
 
-            <widget class="QGroupBox" name="groupBox58" >
18599
 
-             <property name="title" >
18600
 
-              <string>General</string>
18601
 
-             </property>
18602
 
-             <layout class="QVBoxLayout" >
18603
 
-              <property name="spacing" >
18604
 
-               <number>6</number>
18605
 
-              </property>
18606
 
-              <property name="leftMargin" >
18607
 
-               <number>11</number>
18608
 
-              </property>
18609
 
-              <property name="topMargin" >
18610
 
-               <number>11</number>
18611
 
-              </property>
18612
 
-              <property name="rightMargin" >
18613
 
-               <number>11</number>
18614
 
-              </property>
18615
 
-              <property name="bottomMargin" >
18616
 
-               <number>11</number>
18617
 
-              </property>
18618
 
-              <item>
18619
 
-               <widget class="QCheckBox" name="inheritPermissionsChk" >
18620
 
-                <property name="text" >
18621
 
-                 <string>Inherit permissions from parent directory</string>
18622
 
-                </property>
18623
 
-               </widget>
18624
 
-              </item>
18625
 
-              <item>
18626
 
-               <widget class="QCheckBox" name="deleteReadonlyChk" >
18627
 
-                <property name="text" >
18628
 
-                 <string>Allow deletion of readonly files</string>
18629
 
-                </property>
18630
 
-               </widget>
18631
 
-              </item>
18632
 
-             </layout>
18633
 
-            </widget>
18634
 
-           </item>
18635
 
-           <item rowspan="2" row="1" column="0" >
18636
 
-            <widget class="QGroupBox" name="groupBox57" >
18637
 
-             <property name="title" >
18638
 
-              <string>DOS Attribute Mapping</string>
18639
 
-             </property>
18640
 
-             <layout class="QVBoxLayout" >
18641
 
-              <property name="spacing" >
18642
 
-               <number>6</number>
18643
 
-              </property>
18644
 
-              <property name="leftMargin" >
18645
 
-               <number>11</number>
18646
 
-              </property>
18647
 
-              <property name="topMargin" >
18648
 
-               <number>11</number>
18649
 
-              </property>
18650
 
-              <property name="rightMargin" >
18651
 
-               <number>11</number>
18652
 
-              </property>
18653
 
-              <property name="bottomMargin" >
18654
 
-               <number>11</number>
18655
 
-              </property>
18656
 
-              <item>
18657
 
-               <widget class="QCheckBox" name="mapArchiveChk" >
18658
 
-                <property name="text" >
18659
 
-                 <string>Map DOS archi&amp;ve to UNIX owner execute</string>
18660
 
-                </property>
18661
 
-               </widget>
18662
 
-              </item>
18663
 
-              <item>
18664
 
-               <widget class="QCheckBox" name="mapHiddenChk" >
18665
 
-                <property name="text" >
18666
 
-                 <string>Map DOS hidden to UNI&amp;X world execute</string>
18667
 
-                </property>
18668
 
-               </widget>
18669
 
-              </item>
18670
 
-              <item>
18671
 
-               <widget class="QCheckBox" name="mapSystemChk" >
18672
 
-                <property name="text" >
18673
 
-                 <string>Map DOS system to UNIX &amp;group execute</string>
18674
 
-                </property>
18675
 
-               </widget>
18676
 
-              </item>
18677
 
-              <item>
18678
 
-               <widget class="QCheckBox" name="storeDosAttributesChk" >
18679
 
-                <property name="text" >
18680
 
-                 <string>Store DOS attributes onto extended attribute</string>
18681
 
-                </property>
18682
 
-                <property name="shortcut" >
18683
 
-                 <string/>
18684
 
-                </property>
18685
 
-               </widget>
18686
 
-              </item>
18687
 
-             </layout>
18688
 
-            </widget>
18689
 
-           </item>
18690
 
-           <item row="2" column="1" >
18691
 
-            <widget class="QGroupBox" name="groupBox76" >
18692
 
-             <property name="title" >
18693
 
-              <string>OS/2</string>
18694
 
-             </property>
18695
 
-             <layout class="QVBoxLayout" >
18696
 
-              <item>
18697
 
-               <widget class="QCheckBox" name="eaSupportChk" >
18698
 
-                <property name="text" >
18699
 
-                 <string>OS/2 style extended attributes support</string>
18700
 
-                </property>
18701
 
-               </widget>
18702
 
-              </item>
18703
 
-             </layout>
18704
 
-            </widget>
18705
 
-           </item>
18706
 
-          </layout>
18707
 
-         </widget>
18708
 
-         <widget class="QWidget" name="tab" >
18709
 
-          <attribute name="title" >
18710
 
-           <string>Tuning</string>
18711
 
-          </attribute>
18712
 
-          <layout class="QGridLayout" >
18713
 
-           <item row="0" column="0" colspan="2" >
18714
 
-            <widget class="QCheckBox" name="strictSyncChk" >
18715
 
-             <property name="text" >
18716
 
-              <string>Strict s&amp;ync</string>
18717
 
-             </property>
18718
 
-            </widget>
18719
 
-           </item>
18720
 
-           <item row="1" column="0" colspan="2" >
18721
 
-            <widget class="QCheckBox" name="syncAlwaysChk" >
18722
 
-             <property name="enabled" >
18723
 
-              <bool>false</bool>
18724
 
-             </property>
18725
 
-             <property name="text" >
18726
 
-              <string>Sync al&amp;ways</string>
18727
 
-             </property>
18728
 
-            </widget>
18729
 
-           </item>
18730
 
-           <item row="2" column="0" colspan="3" >
18731
 
-            <widget class="QCheckBox" name="strictAllocateChk" >
18732
 
-             <property name="text" >
18733
 
-              <string>St&amp;rict allocate</string>
18734
 
-             </property>
18735
 
-            </widget>
18736
 
-           </item>
18737
 
-           <item row="3" column="0" colspan="2" >
18738
 
-            <widget class="QCheckBox" name="useSendfileChk" >
18739
 
-             <property name="text" >
18740
 
-              <string>Use sen&amp;dfile</string>
18741
 
-             </property>
18742
 
-            </widget>
18743
 
-           </item>
18744
 
-           <item row="4" column="0" colspan="2" >
18745
 
-            <widget class="QLabel" name="TextLabel5_3_4" >
18746
 
-             <property name="text" >
18747
 
-              <string>&amp;Maximum number of simultaneous connections:</string>
18748
 
-             </property>
18749
 
-             <property name="wordWrap" >
18750
 
-              <bool>false</bool>
18751
 
-             </property>
18752
 
-             <property name="buddy" >
18753
 
-              <cstring>maxConnectionsSpin</cstring>
18754
 
-             </property>
18755
 
-            </widget>
18756
 
-           </item>
18757
 
-           <item row="4" column="2" >
18758
 
-            <widget class="KIntSpinBox" name="maxConnectionsSpin" >
18759
 
-             <property name="buttonSymbols" >
18760
 
-              <enum>QAbstractSpinBox::UpDownArrows</enum>
18761
 
-             </property>
18762
 
-             <property name="maximum" >
18763
 
-              <number>2147483647</number>
18764
 
-             </property>
18765
 
-            </widget>
18766
 
-           </item>
18767
 
-           <item row="5" column="0" colspan="2" >
18768
 
-            <widget class="QLabel" name="TextLabel5_3_2_2" >
18769
 
-             <property name="text" >
18770
 
-              <string>Write cache si&amp;ze:</string>
18771
 
-             </property>
18772
 
-             <property name="wordWrap" >
18773
 
-              <bool>false</bool>
18774
 
-             </property>
18775
 
-             <property name="buddy" >
18776
 
-              <cstring>writeCacheSizeSpin</cstring>
18777
 
-             </property>
18778
 
-            </widget>
18779
 
-           </item>
18780
 
-           <item row="5" column="2" >
18781
 
-            <widget class="KIntSpinBox" name="writeCacheSizeSpin" >
18782
 
-             <property name="buttonSymbols" >
18783
 
-              <enum>QAbstractSpinBox::UpDownArrows</enum>
18784
 
-             </property>
18785
 
-             <property name="maximum" >
18786
 
-              <number>2147483647</number>
18787
 
-             </property>
18788
 
-            </widget>
18789
 
-           </item>
18790
 
-           <item row="5" column="3" >
18791
 
-            <widget class="QLabel" name="TextLabel1_7" >
18792
 
-             <property name="text" >
18793
 
-              <string>bytes</string>
18794
 
-             </property>
18795
 
-             <property name="wordWrap" >
18796
 
-              <bool>false</bool>
18797
 
-             </property>
18798
 
-            </widget>
18799
 
-           </item>
18800
 
-           <item row="6" column="0" >
18801
 
-            <widget class="QLabel" name="textLabel1" >
18802
 
-             <property name="text" >
18803
 
-              <string>Bloc&amp;k size:</string>
18804
 
-             </property>
18805
 
-             <property name="wordWrap" >
18806
 
-              <bool>false</bool>
18807
 
-             </property>
18808
 
-             <property name="buddy" >
18809
 
-              <cstring>blockSizeSpin</cstring>
18810
 
-             </property>
18811
 
-            </widget>
18812
 
-           </item>
18813
 
-           <item row="6" column="2" >
18814
 
-            <widget class="KIntSpinBox" name="blockSizeSpin" >
18815
 
-             <property name="buttonSymbols" >
18816
 
-              <enum>QAbstractSpinBox::UpDownArrows</enum>
18817
 
-             </property>
18818
 
-             <property name="maximum" >
18819
 
-              <number>2147483647</number>
18820
 
-             </property>
18821
 
-            </widget>
18822
 
-           </item>
18823
 
-           <item row="6" column="3" >
18824
 
-            <widget class="QLabel" name="TextLabel1_7_2" >
18825
 
-             <property name="text" >
18826
 
-              <string>bytes</string>
18827
 
-             </property>
18828
 
-             <property name="wordWrap" >
18829
 
-              <bool>false</bool>
18830
 
-             </property>
18831
 
-            </widget>
18832
 
-           </item>
18833
 
-           <item row="7" column="0" >
18834
 
-            <widget class="QLabel" name="textLabel3" >
18835
 
-             <property name="text" >
18836
 
-              <string>Client-side cachin&amp;g policy:</string>
18837
 
-             </property>
18838
 
-             <property name="wordWrap" >
18839
 
-              <bool>false</bool>
18840
 
-             </property>
18841
 
-             <property name="buddy" >
18842
 
-              <cstring>cscPolicyCombo</cstring>
18843
 
-             </property>
18844
 
-            </widget>
18845
 
-           </item>
18846
 
-           <item row="7" column="2" colspan="2" >
18847
 
-            <widget class="QComboBox" name="cscPolicyCombo" >
18848
 
-             <item>
18849
 
-              <property name="text" >
18850
 
-               <string>manual</string>
18851
 
-              </property>
18852
 
-             </item>
18853
 
-             <item>
18854
 
-              <property name="text" >
18855
 
-               <string>documents</string>
18856
 
-              </property>
18857
 
-             </item>
18858
 
-             <item>
18859
 
-              <property name="text" >
18860
 
-               <string>programs</string>
18861
 
-              </property>
18862
 
-             </item>
18863
 
-             <item>
18864
 
-              <property name="text" >
18865
 
-               <string>disable</string>
18866
 
-              </property>
18867
 
-             </item>
18868
 
-            </widget>
18869
 
-           </item>
18870
 
-           <item row="8" column="1" >
18871
 
-            <spacer>
18872
 
-             <property name="orientation" >
18873
 
-              <enum>Qt::Vertical</enum>
18874
 
-             </property>
18875
 
-             <property name="sizeType" >
18876
 
-              <enum>QSizePolicy::Expanding</enum>
18877
 
-             </property>
18878
 
-             <property name="sizeHint" >
18879
 
-              <size>
18880
 
-               <width>20</width>
18881
 
-               <height>120</height>
18882
 
-              </size>
18883
 
-             </property>
18884
 
-            </spacer>
18885
 
-           </item>
18886
 
-          </layout>
18887
 
-         </widget>
18888
 
-         <widget class="QWidget" name="tab" >
18889
 
-          <attribute name="title" >
18890
 
-           <string>Filenames</string>
18891
 
-          </attribute>
18892
 
-          <layout class="QHBoxLayout" >
18893
 
-           <item>
18894
 
-            <widget class="QGroupBox" name="GroupBox5" >
18895
 
-             <property name="sizePolicy" >
18896
 
-              <sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
18897
 
-               <horstretch>0</horstretch>
18898
 
-               <verstretch>0</verstretch>
18899
 
-              </sizepolicy>
18900
 
-             </property>
18901
 
-             <property name="title" >
18902
 
-              <string>Name Mangling</string>
18903
 
-             </property>
18904
 
-             <layout class="QGridLayout" >
18905
 
-              <item row="0" column="0" colspan="2" >
18906
 
-               <widget class="QCheckBox" name="mangledNamesChk" >
18907
 
-                <property name="text" >
18908
 
-                 <string>Enable na&amp;me mangling</string>
18909
 
-                </property>
18910
 
-               </widget>
18911
 
-              </item>
18912
 
-              <item row="1" column="0" colspan="2" >
18913
 
-               <widget class="QCheckBox" name="mangleCaseChk" >
18914
 
-                <property name="text" >
18915
 
-                 <string>Man&amp;gle case</string>
18916
 
-                </property>
18917
 
-               </widget>
18918
 
-              </item>
18919
 
-              <item row="2" column="0" colspan="2" >
18920
 
-               <widget class="QCheckBox" name="preserveCaseChk" >
18921
 
-                <property name="text" >
18922
 
-                 <string>Preser&amp;ve case</string>
18923
 
-                </property>
18924
 
-                <property name="checked" >
18925
 
-                 <bool>true</bool>
18926
 
-                </property>
18927
 
-               </widget>
18928
 
-              </item>
18929
 
-              <item row="3" column="0" colspan="2" >
18930
 
-               <widget class="QCheckBox" name="shortPreserveCaseChk" >
18931
 
-                <property name="text" >
18932
 
-                 <string>Short pr&amp;eserve case</string>
18933
 
-                </property>
18934
 
-               </widget>
18935
 
-              </item>
18936
 
-              <item row="4" column="0" >
18937
 
-               <widget class="QLabel" name="label" >
18938
 
-                <property name="text" >
18939
 
-                 <string>Case sensi&amp;tive</string>
18940
 
-                </property>
18941
 
-                <property name="buddy" >
18942
 
-                 <cstring>caseSensitiveCombo</cstring>
18943
 
-                </property>
18944
 
-               </widget>
18945
 
-              </item>
18946
 
-              <item row="4" column="1" >
18947
 
-               <widget class="QComboBox" name="caseSensitiveCombo" >
18948
 
-                <item>
18949
 
-                 <property name="text" >
18950
 
-                  <string>Auto</string>
18951
 
-                 </property>
18952
 
-                </item>
18953
 
-                <item>
18954
 
-                 <property name="text" >
18955
 
-                  <string>Yes</string>
18956
 
-                 </property>
18957
 
-                </item>
18958
 
-                <item>
18959
 
-                 <property name="text" >
18960
 
-                  <string>No</string>
18961
 
-                 </property>
18962
 
-                </item>
18963
 
-               </widget>
18964
 
-              </item>
18965
 
-              <item row="5" column="0" >
18966
 
-               <widget class="QLabel" name="TextLabel2_3" >
18967
 
-                <property name="text" >
18968
 
-                 <string>Defau&amp;lt case:</string>
18969
 
-                </property>
18970
 
-                <property name="wordWrap" >
18971
 
-                 <bool>false</bool>
18972
 
-                </property>
18973
 
-                <property name="buddy" >
18974
 
-                 <cstring>defaultCaseCombo</cstring>
18975
 
-                </property>
18976
 
-               </widget>
18977
 
-              </item>
18978
 
-              <item row="5" column="1" >
18979
 
-               <widget class="QComboBox" name="defaultCaseCombo" >
18980
 
-                <property name="sizePolicy" >
18981
 
-                 <sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
18982
 
-                  <horstretch>0</horstretch>
18983
 
-                  <verstretch>0</verstretch>
18984
 
-                 </sizepolicy>
18985
 
-                </property>
18986
 
-                <item>
18987
 
-                 <property name="text" >
18988
 
-                  <string>Lower</string>
18989
 
-                 </property>
18990
 
-                </item>
18991
 
-                <item>
18992
 
-                 <property name="text" >
18993
 
-                  <string>Upper</string>
18994
 
-                 </property>
18995
 
-                </item>
18996
 
-               </widget>
18997
 
-              </item>
18998
 
-              <item row="6" column="0" >
18999
 
-               <widget class="QLabel" name="TextLabel3_2_2" >
19000
 
-                <property name="sizePolicy" >
19001
 
-                 <sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
19002
 
-                  <horstretch>0</horstretch>
19003
 
-                  <verstretch>0</verstretch>
19004
 
-                 </sizepolicy>
19005
 
-                </property>
19006
 
-                <property name="text" >
19007
 
-                 <string>Mangling cha&amp;r:</string>
19008
 
-                </property>
19009
 
-                <property name="wordWrap" >
19010
 
-                 <bool>false</bool>
19011
 
-                </property>
19012
 
-                <property name="buddy" >
19013
 
-                 <cstring>manglingCharEdit</cstring>
19014
 
-                </property>
19015
 
-               </widget>
19016
 
-              </item>
19017
 
-              <item row="6" column="1" >
19018
 
-               <layout class="QHBoxLayout" >
19019
 
-                <item>
19020
 
-                 <widget class="QLineEdit" name="manglingCharEdit" >
19021
 
-                  <property name="maximumSize" >
19022
 
-                   <size>
19023
 
-                    <width>40</width>
19024
 
-                    <height>16777215</height>
19025
 
-                   </size>
19026
 
-                  </property>
19027
 
-                 </widget>
19028
 
-                </item>
19029
 
-                <item>
19030
 
-                 <spacer>
19031
 
-                  <property name="orientation" >
19032
 
-                   <enum>Qt::Horizontal</enum>
19033
 
-                  </property>
19034
 
-                  <property name="sizeHint" >
19035
 
-                   <size>
19036
 
-                    <width>40</width>
19037
 
-                    <height>20</height>
19038
 
-                   </size>
19039
 
-                  </property>
19040
 
-                 </spacer>
19041
 
-                </item>
19042
 
-               </layout>
19043
 
-              </item>
19044
 
-              <item row="7" column="0" >
19045
 
-               <widget class="QLabel" name="TextLabel1_5" >
19046
 
-                <property name="text" >
19047
 
-                 <string>Mangled ma&amp;p:</string>
19048
 
-                </property>
19049
 
-                <property name="wordWrap" >
19050
 
-                 <bool>false</bool>
19051
 
-                </property>
19052
 
-                <property name="buddy" >
19053
 
-                 <cstring>mangledMapEdit</cstring>
19054
 
-                </property>
19055
 
-               </widget>
19056
 
-              </item>
19057
 
-              <item row="7" column="1" >
19058
 
-               <widget class="QLineEdit" name="mangledMapEdit" />
19059
 
-              </item>
19060
 
-              <item row="8" column="0" >
19061
 
-               <widget class="QLabel" name="textLabel2" >
19062
 
-                <property name="text" >
19063
 
-                 <string>Mangling method:</string>
19064
 
-                </property>
19065
 
-                <property name="wordWrap" >
19066
 
-                 <bool>false</bool>
19067
 
-                </property>
19068
 
-                <property name="buddy" >
19069
 
-                 <cstring>manglingMethodCombo</cstring>
19070
 
-                </property>
19071
 
-               </widget>
19072
 
-              </item>
19073
 
-              <item row="8" column="1" >
19074
 
-               <widget class="QComboBox" name="manglingMethodCombo" >
19075
 
-                <item>
19076
 
-                 <property name="text" >
19077
 
-                  <string>hash</string>
19078
 
-                 </property>
19079
 
-                </item>
19080
 
-                <item>
19081
 
-                 <property name="text" >
19082
 
-                  <string>hash2</string>
19083
 
-                 </property>
19084
 
-                </item>
19085
 
-               </widget>
19086
 
-              </item>
19087
 
-             </layout>
19088
 
-            </widget>
19089
 
-           </item>
19090
 
-           <item>
19091
 
-            <layout class="QVBoxLayout" >
19092
 
-             <item>
19093
 
-              <widget class="QGroupBox" name="GroupBox9" >
19094
 
-               <property name="sizePolicy" >
19095
 
-                <sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
19096
 
-                 <horstretch>0</horstretch>
19097
 
-                 <verstretch>0</verstretch>
19098
 
-                </sizepolicy>
19099
 
-               </property>
19100
 
-               <property name="title" >
19101
 
-                <string>Other Options</string>
19102
 
-               </property>
19103
 
-               <layout class="QVBoxLayout" >
19104
 
-                <item>
19105
 
-                 <widget class="QCheckBox" name="hideTrailingDotChk" >
19106
 
-                  <property name="text" >
19107
 
-                   <string>Hide traili&amp;ng dot</string>
19108
 
-                  </property>
19109
 
-                 </widget>
19110
 
-                </item>
19111
 
-               </layout>
19112
 
-              </widget>
19113
 
-             </item>
19114
 
-             <item>
19115
 
-              <widget class="QGroupBox" name="GroupBox15" >
19116
 
-               <property name="title" >
19117
 
-                <string>DOS</string>
19118
 
-               </property>
19119
 
-               <layout class="QVBoxLayout" >
19120
 
-                <property name="spacing" >
19121
 
-                 <number>6</number>
19122
 
-                </property>
19123
 
-                <property name="leftMargin" >
19124
 
-                 <number>11</number>
19125
 
-                </property>
19126
 
-                <property name="topMargin" >
19127
 
-                 <number>11</number>
19128
 
-                </property>
19129
 
-                <property name="rightMargin" >
19130
 
-                 <number>11</number>
19131
 
-                </property>
19132
 
-                <property name="bottomMargin" >
19133
 
-                 <number>11</number>
19134
 
-                </property>
19135
 
-                <item>
19136
 
-                 <widget class="QCheckBox" name="dosFilemodeChk" >
19137
 
-                  <property name="text" >
19138
 
-                   <string>&amp;DOS file mode</string>
19139
 
-                  </property>
19140
 
-                 </widget>
19141
 
-                </item>
19142
 
-                <item>
19143
 
-                 <widget class="QCheckBox" name="dosFiletimesChk" >
19144
 
-                  <property name="text" >
19145
 
-                   <string>DOS f&amp;ile times</string>
19146
 
-                  </property>
19147
 
-                 </widget>
19148
 
-                </item>
19149
 
-                <item>
19150
 
-                 <widget class="QCheckBox" name="dosFiletimeResolutionChk" >
19151
 
-                  <property name="text" >
19152
 
-                   <string>DOS file time resolution</string>
19153
 
-                  </property>
19154
 
-                 </widget>
19155
 
-                </item>
19156
 
-               </layout>
19157
 
-              </widget>
19158
 
-             </item>
19159
 
-            </layout>
19160
 
-           </item>
19161
 
-          </layout>
19162
 
-         </widget>
19163
 
-         <widget class="QWidget" name="tab" >
19164
 
-          <attribute name="title" >
19165
 
-           <string>Locking</string>
19166
 
-          </attribute>
19167
 
-          <layout class="QVBoxLayout" >
19168
 
-           <item>
19169
 
-            <widget class="QCheckBox" name="lockingChk" >
19170
 
-             <property name="text" >
19171
 
-              <string>Enable lock&amp;ing</string>
19172
 
-             </property>
19173
 
-            </widget>
19174
 
-           </item>
19175
 
-           <item>
19176
 
-            <widget class="QGroupBox" name="groupBox47" >
19177
 
-             <property name="enabled" >
19178
 
-              <bool>false</bool>
19179
 
-             </property>
19180
 
-             <property name="title" >
19181
 
-              <string>Locki&amp;ng</string>
19182
 
-             </property>
19183
 
-             <layout class="QVBoxLayout" >
19184
 
-              <item>
19185
 
-               <layout class="QHBoxLayout" >
19186
 
-                <item>
19187
 
-                 <widget class="QLabel" name="label_2" >
19188
 
-                  <property name="text" >
19189
 
-                   <string>S&amp;trict locking</string>
19190
 
-                  </property>
19191
 
-                  <property name="buddy" >
19192
 
-                   <cstring>strictLockingCombo</cstring>
19193
 
-                  </property>
19194
 
-                 </widget>
19195
 
-                </item>
19196
 
-                <item>
19197
 
-                 <widget class="QComboBox" name="strictLockingCombo" >
19198
 
-                  <item>
19199
 
-                   <property name="text" >
19200
 
-                    <string>Auto</string>
19201
 
-                   </property>
19202
 
-                  </item>
19203
 
-                  <item>
19204
 
-                   <property name="text" >
19205
 
-                    <string>Yes</string>
19206
 
-                   </property>
19207
 
-                  </item>
19208
 
-                  <item>
19209
 
-                   <property name="text" >
19210
 
-                    <string>No</string>
19211
 
-                   </property>
19212
 
-                  </item>
19213
 
-                 </widget>
19214
 
-                </item>
19215
 
-                <item>
19216
 
-                 <spacer>
19217
 
-                  <property name="orientation" >
19218
 
-                   <enum>Qt::Horizontal</enum>
19219
 
-                  </property>
19220
 
-                  <property name="sizeHint" >
19221
 
-                   <size>
19222
 
-                    <width>40</width>
19223
 
-                    <height>20</height>
19224
 
-                   </size>
19225
 
-                  </property>
19226
 
-                 </spacer>
19227
 
-                </item>
19228
 
-               </layout>
19229
 
-              </item>
19230
 
-              <item>
19231
 
-               <widget class="QCheckBox" name="blockingLocksChk" >
19232
 
-                <property name="text" >
19233
 
-                 <string>Blockin&amp;g locks</string>
19234
 
-                </property>
19235
 
-               </widget>
19236
 
-              </item>
19237
 
-              <item>
19238
 
-               <widget class="QCheckBox" name="posixLockingChk" >
19239
 
-                <property name="text" >
19240
 
-                 <string>Posi&amp;x locking</string>
19241
 
-                </property>
19242
 
-               </widget>
19243
 
-              </item>
19244
 
-              <item>
19245
 
-               <widget class="QCheckBox" name="shareModesChk" >
19246
 
-                <property name="text" >
19247
 
-                 <string>Share mo&amp;des</string>
19248
 
-                </property>
19249
 
-               </widget>
19250
 
-              </item>
19251
 
-              <item>
19252
 
-               <widget class="QCheckBox" name="oplocksChk" >
19253
 
-                <property name="text" >
19254
 
-                 <string>Issue oppo&amp;rtunistic locks (oplocks) </string>
19255
 
-                </property>
19256
 
-               </widget>
19257
 
-              </item>
19258
 
-              <item>
19259
 
-               <widget class="QGroupBox" name="groupBox59" >
19260
 
-                <property name="title" >
19261
 
-                 <string>O&amp;plocks</string>
19262
 
-                </property>
19263
 
-                <layout class="QVBoxLayout" >
19264
 
-                 <item>
19265
 
-                  <widget class="QCheckBox" name="level2OplocksChk" >
19266
 
-                   <property name="text" >
19267
 
-                    <string>Le&amp;vel2 oplocks</string>
19268
 
-                   </property>
19269
 
-                  </widget>
19270
 
-                 </item>
19271
 
-                 <item>
19272
 
-                  <layout class="QHBoxLayout" >
19273
 
-                   <item>
19274
 
-                    <widget class="QLabel" name="TextLabel5_3_3_2_2" >
19275
 
-                     <property name="font" >
19276
 
-                      <font/>
19277
 
-                     </property>
19278
 
-                     <property name="text" >
19279
 
-                      <string>Oplock contention li&amp;mit:</string>
19280
 
-                     </property>
19281
 
-                     <property name="wordWrap" >
19282
 
-                      <bool>false</bool>
19283
 
-                     </property>
19284
 
-                     <property name="buddy" >
19285
 
-                      <cstring>oplockContentionLimitSpin</cstring>
19286
 
-                     </property>
19287
 
-                    </widget>
19288
 
-                   </item>
19289
 
-                   <item>
19290
 
-                    <widget class="KIntSpinBox" name="oplockContentionLimitSpin" >
19291
 
-                     <property name="buttonSymbols" >
19292
 
-                      <enum>QAbstractSpinBox::UpDownArrows</enum>
19293
 
-                     </property>
19294
 
-                     <property name="maximum" >
19295
 
-                      <number>2147483647</number>
19296
 
-                     </property>
19297
 
-                    </widget>
19298
 
-                   </item>
19299
 
-                   <item>
19300
 
-                    <spacer>
19301
 
-                     <property name="orientation" >
19302
 
-                      <enum>Qt::Horizontal</enum>
19303
 
-                     </property>
19304
 
-                     <property name="sizeHint" >
19305
 
-                      <size>
19306
 
-                       <width>40</width>
19307
 
-                       <height>20</height>
19308
 
-                      </size>
19309
 
-                     </property>
19310
 
-                    </spacer>
19311
 
-                   </item>
19312
 
-                  </layout>
19313
 
-                 </item>
19314
 
-                </layout>
19315
 
-               </widget>
19316
 
-              </item>
19317
 
-              <item>
19318
 
-               <widget class="QCheckBox" name="fakeOplocksChk" >
19319
 
-                <property name="text" >
19320
 
-                 <string>Fak&amp;e oplocks</string>
19321
 
-                </property>
19322
 
-                <property name="checked" >
19323
 
-                 <bool>true</bool>
19324
 
-                </property>
19325
 
-               </widget>
19326
 
-              </item>
19327
 
-             </layout>
19328
 
-            </widget>
19329
 
-           </item>
19330
 
-           <item>
19331
 
-            <spacer>
19332
 
-             <property name="orientation" >
19333
 
-              <enum>Qt::Vertical</enum>
19334
 
-             </property>
19335
 
-             <property name="sizeType" >
19336
 
-              <enum>QSizePolicy::Expanding</enum>
19337
 
-             </property>
19338
 
-             <property name="sizeHint" >
19339
 
-              <size>
19340
 
-               <width>626</width>
19341
 
-               <height>71</height>
19342
 
-              </size>
19343
 
-             </property>
19344
 
-            </spacer>
19345
 
-           </item>
19346
 
-          </layout>
19347
 
-         </widget>
19348
 
-         <widget class="QWidget" name="tab" >
19349
 
-          <attribute name="title" >
19350
 
-           <string>VFS</string>
19351
 
-          </attribute>
19352
 
-          <layout class="QGridLayout" >
19353
 
-           <item row="0" column="0" >
19354
 
-            <widget class="QLabel" name="TextLabel1_6" >
19355
 
-             <property name="text" >
19356
 
-              <string>Vfs ob&amp;jects:</string>
19357
 
-             </property>
19358
 
-             <property name="wordWrap" >
19359
 
-              <bool>false</bool>
19360
 
-             </property>
19361
 
-             <property name="buddy" >
19362
 
-              <cstring>vfsObjectsEdit</cstring>
19363
 
-             </property>
19364
 
-            </widget>
19365
 
-           </item>
19366
 
-           <item row="0" column="1" >
19367
 
-            <widget class="QLineEdit" name="vfsObjectsEdit" />
19368
 
-           </item>
19369
 
-           <item row="1" column="0" >
19370
 
-            <widget class="QLabel" name="TextLabel1_6_2" >
19371
 
-             <property name="text" >
19372
 
-              <string>Vfs o&amp;ptions:</string>
19373
 
-             </property>
19374
 
-             <property name="wordWrap" >
19375
 
-              <bool>false</bool>
19376
 
-             </property>
19377
 
-             <property name="buddy" >
19378
 
-              <cstring>vfsOptionsEdit</cstring>
19379
 
-             </property>
19380
 
-            </widget>
19381
 
-           </item>
19382
 
-           <item row="1" column="1" >
19383
 
-            <widget class="QLineEdit" name="vfsOptionsEdit" />
19384
 
-           </item>
19385
 
-           <item row="2" column="1" >
19386
 
-            <spacer>
19387
 
-             <property name="orientation" >
19388
 
-              <enum>Qt::Vertical</enum>
19389
 
-             </property>
19390
 
-             <property name="sizeType" >
19391
 
-              <enum>QSizePolicy::Expanding</enum>
19392
 
-             </property>
19393
 
-             <property name="sizeHint" >
19394
 
-              <size>
19395
 
-               <width>20</width>
19396
 
-               <height>260</height>
19397
 
-              </size>
19398
 
-             </property>
19399
 
-            </spacer>
19400
 
-           </item>
19401
 
-          </layout>
19402
 
-         </widget>
19403
 
-         <widget class="QWidget" name="tab" >
19404
 
-          <attribute name="title" >
19405
 
-           <string>Exec</string>
19406
 
-          </attribute>
19407
 
-          <layout class="QGridLayout" >
19408
 
-           <item row="0" column="0" >
19409
 
-            <widget class="QLabel" name="TextLabel2" >
19410
 
-             <property name="text" >
19411
 
-              <string>P&amp;reexec:</string>
19412
 
-             </property>
19413
 
-             <property name="wordWrap" >
19414
 
-              <bool>false</bool>
19415
 
-             </property>
19416
 
-             <property name="buddy" >
19417
 
-              <cstring>preexecEdit</cstring>
19418
 
-             </property>
19419
 
-            </widget>
19420
 
-           </item>
19421
 
-           <item row="0" column="1" >
19422
 
-            <widget class="QLineEdit" name="preexecEdit" />
19423
 
-           </item>
19424
 
-           <item row="1" column="0" >
19425
 
-            <widget class="QLabel" name="TextLabel5_2" >
19426
 
-             <property name="text" >
19427
 
-              <string>Root pr&amp;eexec:</string>
19428
 
-             </property>
19429
 
-             <property name="wordWrap" >
19430
 
-              <bool>false</bool>
19431
 
-             </property>
19432
 
-             <property name="buddy" >
19433
 
-              <cstring>postexecEdit</cstring>
19434
 
-             </property>
19435
 
-            </widget>
19436
 
-           </item>
19437
 
-           <item row="1" column="1" >
19438
 
-            <widget class="QLineEdit" name="rootPreexecEdit" />
19439
 
-           </item>
19440
 
-           <item row="2" column="0" >
19441
 
-            <widget class="QLabel" name="TextLabel4" >
19442
 
-             <property name="text" >
19443
 
-              <string>Pos&amp;texec:</string>
19444
 
-             </property>
19445
 
-             <property name="wordWrap" >
19446
 
-              <bool>false</bool>
19447
 
-             </property>
19448
 
-             <property name="buddy" >
19449
 
-              <cstring>rootPreexecEdit</cstring>
19450
 
-             </property>
19451
 
-            </widget>
19452
 
-           </item>
19453
 
-           <item row="2" column="1" >
19454
 
-            <widget class="QLineEdit" name="postexecEdit" />
19455
 
-           </item>
19456
 
-           <item row="3" column="0" >
19457
 
-            <widget class="QLabel" name="TextLabel5_2_4" >
19458
 
-             <property name="text" >
19459
 
-              <string>Root &amp;postexec:</string>
19460
 
-             </property>
19461
 
-             <property name="wordWrap" >
19462
 
-              <bool>false</bool>
19463
 
-             </property>
19464
 
-             <property name="buddy" >
19465
 
-              <cstring>rootPostexecEdit</cstring>
19466
 
-             </property>
19467
 
-            </widget>
19468
 
-           </item>
19469
 
-           <item row="3" column="1" >
19470
 
-            <widget class="QLineEdit" name="rootPostexecEdit" />
19471
 
-           </item>
19472
 
-           <item row="4" column="0" colspan="2" >
19473
 
-            <widget class="QCheckBox" name="preexecCloseChk" >
19474
 
-             <property name="text" >
19475
 
-              <string>preexec c&amp;lose</string>
19476
 
-             </property>
19477
 
-            </widget>
19478
 
-           </item>
19479
 
-           <item row="5" column="0" colspan="2" >
19480
 
-            <widget class="QCheckBox" name="rootPreexecCloseChk" >
19481
 
-             <property name="text" >
19482
 
-              <string>root pree&amp;xec close</string>
19483
 
-             </property>
19484
 
-            </widget>
19485
 
-           </item>
19486
 
-           <item row="6" column="1" >
19487
 
-            <spacer>
19488
 
-             <property name="orientation" >
19489
 
-              <enum>Qt::Vertical</enum>
19490
 
-             </property>
19491
 
-             <property name="sizeType" >
19492
 
-              <enum>QSizePolicy::Expanding</enum>
19493
 
-             </property>
19494
 
-             <property name="sizeHint" >
19495
 
-              <size>
19496
 
-               <width>16</width>
19497
 
-               <height>284</height>
19498
 
-              </size>
19499
 
-             </property>
19500
 
-            </spacer>
19501
 
-           </item>
19502
 
-          </layout>
19503
 
-         </widget>
19504
 
-         <widget class="QWidget" name="tab" >
19505
 
-          <attribute name="title" >
19506
 
-           <string>Misc</string>
19507
 
-          </attribute>
19508
 
-          <layout class="QGridLayout" >
19509
 
-           <item row="0" column="0" >
19510
 
-            <widget class="QLabel" name="TextLabel6_2" >
19511
 
-             <property name="text" >
19512
 
-              <string>&amp;Volume:</string>
19513
 
-             </property>
19514
 
-             <property name="wordWrap" >
19515
 
-              <bool>false</bool>
19516
 
-             </property>
19517
 
-             <property name="buddy" >
19518
 
-              <cstring>volumeEdit</cstring>
19519
 
-             </property>
19520
 
-            </widget>
19521
 
-           </item>
19522
 
-           <item row="0" column="1" >
19523
 
-            <widget class="QLineEdit" name="volumeEdit" />
19524
 
-           </item>
19525
 
-           <item row="1" column="0" >
19526
 
-            <widget class="QLabel" name="TextLabel6_2_2" >
19527
 
-             <property name="text" >
19528
 
-              <string>Fst&amp;ype:</string>
19529
 
-             </property>
19530
 
-             <property name="wordWrap" >
19531
 
-              <bool>false</bool>
19532
 
-             </property>
19533
 
-             <property name="buddy" >
19534
 
-              <cstring>fstypeEdit</cstring>
19535
 
-             </property>
19536
 
-            </widget>
19537
 
-           </item>
19538
 
-           <item row="1" column="1" >
19539
 
-            <widget class="QLineEdit" name="fstypeEdit" />
19540
 
-           </item>
19541
 
-           <item row="2" column="0" >
19542
 
-            <widget class="QLabel" name="TextLabel6_2_3" >
19543
 
-             <property name="text" >
19544
 
-              <string>Ma&amp;gic script:</string>
19545
 
-             </property>
19546
 
-             <property name="wordWrap" >
19547
 
-              <bool>false</bool>
19548
 
-             </property>
19549
 
-             <property name="buddy" >
19550
 
-              <cstring>magicScriptEdit</cstring>
19551
 
-             </property>
19552
 
-            </widget>
19553
 
-           </item>
19554
 
-           <item row="2" column="1" >
19555
 
-            <widget class="QLineEdit" name="magicScriptEdit" />
19556
 
-           </item>
19557
 
-           <item row="3" column="0" >
19558
 
-            <widget class="QLabel" name="TextLabel6_2_2_2" >
19559
 
-             <property name="text" >
19560
 
-              <string>Mag&amp;ic output:</string>
19561
 
-             </property>
19562
 
-             <property name="wordWrap" >
19563
 
-              <bool>false</bool>
19564
 
-             </property>
19565
 
-             <property name="buddy" >
19566
 
-              <cstring>magicOutputEdit</cstring>
19567
 
-             </property>
19568
 
-            </widget>
19569
 
-           </item>
19570
 
-           <item row="3" column="1" >
19571
 
-            <widget class="QLineEdit" name="magicOutputEdit" />
19572
 
-           </item>
19573
 
-           <item row="4" column="0" >
19574
 
-            <widget class="QLabel" name="TextLabel6_2_3_2" >
19575
 
-             <property name="text" >
19576
 
-              <string>Do &amp;not descend:</string>
19577
 
-             </property>
19578
 
-             <property name="wordWrap" >
19579
 
-              <bool>false</bool>
19580
 
-             </property>
19581
 
-             <property name="buddy" >
19582
 
-              <cstring>dontDescendEdit</cstring>
19583
 
-             </property>
19584
 
-            </widget>
19585
 
-           </item>
19586
 
-           <item row="4" column="1" >
19587
 
-            <widget class="QLineEdit" name="dontDescendEdit" />
19588
 
-           </item>
19589
 
-           <item row="5" column="0" >
19590
 
-            <widget class="QLabel" name="TextLabel6_2_3_3" >
19591
 
-             <property name="text" >
19592
 
-              <string>Msdfs pro&amp;xy</string>
19593
 
-             </property>
19594
 
-             <property name="wordWrap" >
19595
 
-              <bool>false</bool>
19596
 
-             </property>
19597
 
-             <property name="buddy" >
19598
 
-              <cstring>msdfsProxyEdit</cstring>
19599
 
-             </property>
19600
 
-            </widget>
19601
 
-           </item>
19602
 
-           <item row="5" column="1" >
19603
 
-            <widget class="QLineEdit" name="msdfsProxyEdit" />
19604
 
-           </item>
19605
 
-           <item row="6" column="0" colspan="2" >
19606
 
-            <widget class="QCheckBox" name="setDirectoryChk" >
19607
 
-             <property name="text" >
19608
 
-              <string>Setdir command allo&amp;wed</string>
19609
 
-             </property>
19610
 
-            </widget>
19611
 
-           </item>
19612
 
-           <item row="7" column="0" colspan="2" >
19613
 
-            <widget class="QCheckBox" name="fakeDirectoryCreateTimesChk" >
19614
 
-             <property name="text" >
19615
 
-              <string>Fa&amp;ke directory create times</string>
19616
 
-             </property>
19617
 
-            </widget>
19618
 
-           </item>
19619
 
-           <item row="8" column="0" colspan="2" >
19620
 
-            <widget class="QCheckBox" name="msdfsRootChk" >
19621
 
-             <property name="text" >
19622
 
-              <string>Ms&amp;dfs root</string>
19623
 
-             </property>
19624
 
-            </widget>
19625
 
-           </item>
19626
 
-           <item row="9" column="1" >
19627
 
-            <spacer>
19628
 
-             <property name="orientation" >
19629
 
-              <enum>Qt::Vertical</enum>
19630
 
-             </property>
19631
 
-             <property name="sizeType" >
19632
 
-              <enum>QSizePolicy::Expanding</enum>
19633
 
-             </property>
19634
 
-             <property name="sizeHint" >
19635
 
-              <size>
19636
 
-               <width>20</width>
19637
 
-               <height>171</height>
19638
 
-              </size>
19639
 
-             </property>
19640
 
-            </spacer>
19641
 
-           </item>
19642
 
-          </layout>
19643
 
-         </widget>
19644
 
-        </widget>
19645
 
-       </item>
19646
 
-      </layout>
19647
 
-     </widget>
19648
 
-    </widget>
19649
 
-   </item>
19650
 
-   <item>
19651
 
-    <layout class="QHBoxLayout" >
19652
 
-     <property name="spacing" >
19653
 
-      <number>6</number>
19654
 
-     </property>
19655
 
-     <property name="leftMargin" >
19656
 
-      <number>0</number>
19657
 
-     </property>
19658
 
-     <property name="topMargin" >
19659
 
-      <number>0</number>
19660
 
-     </property>
19661
 
-     <property name="rightMargin" >
19662
 
-      <number>0</number>
19663
 
-     </property>
19664
 
-     <property name="bottomMargin" >
19665
 
-      <number>0</number>
19666
 
-     </property>
19667
 
-     <item>
19668
 
-      <widget class="QPushButton" name="buttonHelp" >
19669
 
-       <property name="text" >
19670
 
-        <string>&amp;Help</string>
19671
 
-       </property>
19672
 
-       <property name="shortcut" >
19673
 
-        <string>F1</string>
19674
 
-       </property>
19675
 
-       <property name="autoDefault" >
19676
 
-        <bool>true</bool>
19677
 
-       </property>
19678
 
-      </widget>
19679
 
-     </item>
19680
 
-     <item>
19681
 
-      <spacer>
19682
 
-       <property name="orientation" >
19683
 
-        <enum>Qt::Horizontal</enum>
19684
 
-       </property>
19685
 
-       <property name="sizeHint" >
19686
 
-        <size>
19687
 
-         <width>40</width>
19688
 
-         <height>20</height>
19689
 
-        </size>
19690
 
-       </property>
19691
 
-      </spacer>
19692
 
-     </item>
19693
 
-     <item>
19694
 
-      <widget class="QPushButton" name="buttonOk" >
19695
 
-       <property name="text" >
19696
 
-        <string>&amp;OK</string>
19697
 
-       </property>
19698
 
-       <property name="autoDefault" >
19699
 
-        <bool>true</bool>
19700
 
-       </property>
19701
 
-       <property name="default" >
19702
 
-        <bool>true</bool>
19703
 
-       </property>
19704
 
-      </widget>
19705
 
-     </item>
19706
 
-     <item>
19707
 
-      <widget class="QPushButton" name="buttonCancel" >
19708
 
-       <property name="text" >
19709
 
-        <string>&amp;Cancel</string>
19710
 
-       </property>
19711
 
-       <property name="autoDefault" >
19712
 
-        <bool>true</bool>
19713
 
-       </property>
19714
 
-      </widget>
19715
 
-     </item>
19716
 
-    </layout>
19717
 
-   </item>
19718
 
-  </layout>
19719
 
- </widget>
19720
 
-  <customwidgets>
19721
 
-  <customwidget>
19722
 
-   <class>K3ListView</class>
19723
 
-   <extends>Q3ListView</extends>
19724
 
-   <header>k3listview.h</header>
19725
 
-  </customwidget>
19726
 
-  <customwidget>
19727
 
-   <class>KIntSpinBox</class>
19728
 
-   <extends>QSpinBox</extends>
19729
 
-   <header>knuminput.h</header>
19730
 
-  </customwidget>
19731
 
-  <customwidget>
19732
 
-   <class>KLineEdit</class>
19733
 
-   <extends>QLineEdit</extends>
19734
 
-   <header>klineedit.h</header>
19735
 
-  </customwidget>
19736
 
-  <customwidget>
19737
 
-   <class>KRestrictedLine</class>
19738
 
-   <extends>KLineEdit</extends>
19739
 
-   <header>krestrictedline.h</header>
19740
 
-  </customwidget>
19741
 
-  <customwidget>
19742
 
-   <class>KUrlRequester</class>
19743
 
-   <extends>QFrame</extends>
19744
 
-   <header>kurlrequester.h</header>
19745
 
-  </customwidget>
19746
 
- </customwidgets>
19747
 
- <tabstops>
19748
 
-  <tabstop>volumeEdit</tabstop>
19749
 
-  <tabstop>fstypeEdit</tabstop>
19750
 
-  <tabstop>magicScriptEdit</tabstop>
19751
 
-  <tabstop>magicOutputEdit</tabstop>
19752
 
-  <tabstop>dontDescendEdit</tabstop>
19753
 
-  <tabstop>setDirectoryChk</tabstop>
19754
 
-  <tabstop>fakeDirectoryCreateTimesChk</tabstop>
19755
 
-  <tabstop>msdfsRootChk</tabstop>
19756
 
-  <tabstop>preexecEdit</tabstop>
19757
 
-  <tabstop>rootPreexecEdit</tabstop>
19758
 
-  <tabstop>postexecEdit</tabstop>
19759
 
-  <tabstop>rootPostexecEdit</tabstop>
19760
 
-  <tabstop>preexecCloseChk</tabstop>
19761
 
-  <tabstop>rootPreexecCloseChk</tabstop>
19762
 
-  <tabstop>lockingChk</tabstop>
19763
 
-  <tabstop>blockingLocksChk</tabstop>
19764
 
-  <tabstop>posixLockingChk</tabstop>
19765
 
-  <tabstop>shareModesChk</tabstop>
19766
 
-  <tabstop>oplocksChk</tabstop>
19767
 
-  <tabstop>level2OplocksChk</tabstop>
19768
 
-  <tabstop>oplockContentionLimitSpin</tabstop>
19769
 
-  <tabstop>fakeOplocksChk</tabstop>
19770
 
-  <tabstop>mangledNamesChk</tabstop>
19771
 
-  <tabstop>mangleCaseChk</tabstop>
19772
 
-  <tabstop>preserveCaseChk</tabstop>
19773
 
-  <tabstop>shortPreserveCaseChk</tabstop>
19774
 
-  <tabstop>defaultCaseCombo</tabstop>
19775
 
-  <tabstop>manglingCharEdit</tabstop>
19776
 
-  <tabstop>mangledMapEdit</tabstop>
19777
 
-  <tabstop>manglingMethodCombo</tabstop>
19778
 
-  <tabstop>hideTrailingDotChk</tabstop>
19779
 
-  <tabstop>dosFilemodeChk</tabstop>
19780
 
-  <tabstop>dosFiletimesChk</tabstop>
19781
 
-  <tabstop>dosFiletimeResolutionChk</tabstop>
19782
 
-  <tabstop>strictSyncChk</tabstop>
19783
 
-  <tabstop>syncAlwaysChk</tabstop>
19784
 
-  <tabstop>strictAllocateChk</tabstop>
19785
 
-  <tabstop>useSendfileChk</tabstop>
19786
 
-  <tabstop>maxConnectionsSpin</tabstop>
19787
 
-  <tabstop>writeCacheSizeSpin</tabstop>
19788
 
-  <tabstop>blockSizeSpin</tabstop>
19789
 
-  <tabstop>cscPolicyCombo</tabstop>
19790
 
-  <tabstop>inheritPermissionsChk</tabstop>
19791
 
-  <tabstop>deleteReadonlyChk</tabstop>
19792
 
-  <tabstop>mapArchiveChk</tabstop>
19793
 
-  <tabstop>mapHiddenChk</tabstop>
19794
 
-  <tabstop>mapSystemChk</tabstop>
19795
 
-  <tabstop>forceCreateModeEdit</tabstop>
19796
 
-  <tabstop>forceSecurityModeEdit</tabstop>
19797
 
-  <tabstop>forceDirectoryModeEdit</tabstop>
19798
 
-  <tabstop>forceDirectorySecurityModeEdit</tabstop>
19799
 
-  <tabstop>ntAclSupportChk</tabstop>
19800
 
-  <tabstop>inheritAclsChk</tabstop>
19801
 
-  <tabstop>profileAclsChk</tabstop>
19802
 
-  <tabstop>mapAclInheritChk</tabstop>
19803
 
-  <tabstop>forceUnknownAclUserEdit</tabstop>
19804
 
-  <tabstop>createMaskEdit</tabstop>
19805
 
-  <tabstop>securityMaskEdit</tabstop>
19806
 
-  <tabstop>directoryMaskEdit</tabstop>
19807
 
-  <tabstop>directorySecurityMaskEdit</tabstop>
19808
 
-  <tabstop>advancedDumpTab</tabstop>
19809
 
-  <tabstop>hiddenListView</tabstop>
19810
 
-  <tabstop>hiddenChk</tabstop>
19811
 
-  <tabstop>vetoChk</tabstop>
19812
 
-  <tabstop>vetoOplockChk</tabstop>
19813
 
-  <tabstop>hiddenEdit</tabstop>
19814
 
-  <tabstop>vetoEdit</tabstop>
19815
 
-  <tabstop>vetoOplockEdit</tabstop>
19816
 
-  <tabstop>hideUnreadableChk</tabstop>
19817
 
-  <tabstop>hideUnwriteableFilesChk</tabstop>
19818
 
-  <tabstop>hideDotFilesChk</tabstop>
19819
 
-  <tabstop>hideSpecialFilesChk</tabstop>
19820
 
-  <tabstop>pathUrlRq</tabstop>
19821
 
-  <tabstop>homeChk</tabstop>
19822
 
-  <tabstop>shareNameEdit</tabstop>
19823
 
-  <tabstop>commentEdit</tabstop>
19824
 
-  <tabstop>readOnlyBaseChk</tabstop>
19825
 
-  <tabstop>publicBaseChk</tabstop>
19826
 
-  <tabstop>browseableBaseChk</tabstop>
19827
 
-  <tabstop>availableBaseChk</tabstop>
19828
 
-  <tabstop>guestAccountCombo</tabstop>
19829
 
-  <tabstop>guestOnlyChk</tabstop>
19830
 
-  <tabstop>hostsAllowEdit</tabstop>
19831
 
-  <tabstop>hostsDenyEdit</tabstop>
19832
 
-  <tabstop>followSymlinksChk</tabstop>
19833
 
-  <tabstop>wideLinksChk</tabstop>
19834
 
-  <tabstop>userNameEdit</tabstop>
19835
 
-  <tabstop>onlyUserChk</tabstop>
19836
 
-  <tabstop>_tabs</tabstop>
19837
 
-  <tabstop>vfsObjectsEdit</tabstop>
19838
 
-  <tabstop>vfsOptionsEdit</tabstop>
19839
 
-  <tabstop>buttonHelp</tabstop>
19840
 
-  <tabstop>buttonOk</tabstop>
19841
 
-  <tabstop>buttonCancel</tabstop>
19842
 
- </tabstops>
19843
 
- <resources/>
19844
 
- <connections>
19845
 
-  <connection>
19846
 
-   <sender>buttonCancel</sender>
19847
 
-   <signal>clicked()</signal>
19848
 
-   <receiver>KcmShareDlg</receiver>
19849
 
-   <slot>reject()</slot>
19850
 
-   <hints>
19851
 
-    <hint type="sourcelabel" >
19852
 
-     <x>668</x>
19853
 
-     <y>637</y>
19854
 
-    </hint>
19855
 
-    <hint type="destinationlabel" >
19856
 
-     <x>20</x>
19857
 
-     <y>20</y>
19858
 
-    </hint>
19859
 
-   </hints>
19860
 
-  </connection>
19861
 
-  <connection>
19862
 
-   <sender>shareNameEdit</sender>
19863
 
-   <signal>textChanged(QString)</signal>
19864
 
-   <receiver>KcmShareDlg</receiver>
19865
 
-   <slot>checkValues()</slot>
19866
 
-   <hints>
19867
 
-    <hint type="sourcelabel" >
19868
 
-     <x>109</x>
19869
 
-     <y>212</y>
19870
 
-    </hint>
19871
 
-    <hint type="destinationlabel" >
19872
 
-     <x>20</x>
19873
 
-     <y>20</y>
19874
 
-    </hint>
19875
 
-   </hints>
19876
 
-  </connection>
19877
 
-  <connection>
19878
 
-   <sender>buttonOk</sender>
19879
 
-   <signal>clicked()</signal>
19880
 
-   <receiver>KcmShareDlg</receiver>
19881
 
-   <slot>accept()</slot>
19882
 
-   <hints>
19883
 
-    <hint type="sourcelabel" >
19884
 
-     <x>577</x>
19885
 
-     <y>637</y>
19886
 
-    </hint>
19887
 
-    <hint type="destinationlabel" >
19888
 
-     <x>20</x>
19889
 
-     <y>20</y>
19890
 
-    </hint>
19891
 
-   </hints>
19892
 
-  </connection>
19893
 
-  <connection>
19894
 
-   <sender>homeChk</sender>
19895
 
-   <signal>toggled(bool)</signal>
19896
 
-   <receiver>KcmShareDlg</receiver>
19897
 
-   <slot>homeChkToggled(bool)</slot>
19898
 
-   <hints>
19899
 
-    <hint type="sourcelabel" >
19900
 
-     <x>111</x>
19901
 
-     <y>130</y>
19902
 
-    </hint>
19903
 
-    <hint type="destinationlabel" >
19904
 
-     <x>20</x>
19905
 
-     <y>20</y>
19906
 
-    </hint>
19907
 
-   </hints>
19908
 
-  </connection>
19909
 
-  <connection>
19910
 
-   <sender>strictSyncChk</sender>
19911
 
-   <signal>toggled(bool)</signal>
19912
 
-   <receiver>syncAlwaysChk</receiver>
19913
 
-   <slot>setEnabled(bool)</slot>
19914
 
-   <hints>
19915
 
-    <hint type="sourcelabel" >
19916
 
-     <x>33</x>
19917
 
-     <y>89</y>
19918
 
-    </hint>
19919
 
-    <hint type="destinationlabel" >
19920
 
-     <x>33</x>
19921
 
-     <y>116</y>
19922
 
-    </hint>
19923
 
-   </hints>
19924
 
-  </connection>
19925
 
-  <connection>
19926
 
-   <sender>inheritPermissionsChk</sender>
19927
 
-   <signal>toggled(bool)</signal>
19928
 
-   <receiver>forceCreateModeEdit</receiver>
19929
 
-   <slot>setDisabled(bool)</slot>
19930
 
-   <hints>
19931
 
-    <hint type="sourcelabel" >
19932
 
-     <x>45</x>
19933
 
-     <y>128</y>
19934
 
-    </hint>
19935
 
-    <hint type="destinationlabel" >
19936
 
-     <x>245</x>
19937
 
-     <y>407</y>
19938
 
-    </hint>
19939
 
-   </hints>
19940
 
-  </connection>
19941
 
-  <connection>
19942
 
-   <sender>inheritPermissionsChk</sender>
19943
 
-   <signal>toggled(bool)</signal>
19944
 
-   <receiver>forceCreateModeBtn</receiver>
19945
 
-   <slot>setDisabled(bool)</slot>
19946
 
-   <hints>
19947
 
-    <hint type="sourcelabel" >
19948
 
-     <x>45</x>
19949
 
-     <y>128</y>
19950
 
-    </hint>
19951
 
-    <hint type="destinationlabel" >
19952
 
-     <x>338</x>
19953
 
-     <y>437</y>
19954
 
-    </hint>
19955
 
-   </hints>
19956
 
-  </connection>
19957
 
-  <connection>
19958
 
-   <sender>inheritPermissionsChk</sender>
19959
 
-   <signal>toggled(bool)</signal>
19960
 
-   <receiver>forceDirectoryModeEdit</receiver>
19961
 
-   <slot>setDisabled(bool)</slot>
19962
 
-   <hints>
19963
 
-    <hint type="sourcelabel" >
19964
 
-     <x>45</x>
19965
 
-     <y>128</y>
19966
 
-    </hint>
19967
 
-    <hint type="destinationlabel" >
19968
 
-     <x>245</x>
19969
 
-     <y>481</y>
19970
 
-    </hint>
19971
 
-   </hints>
19972
 
-  </connection>
19973
 
-  <connection>
19974
 
-   <sender>inheritPermissionsChk</sender>
19975
 
-   <signal>toggled(bool)</signal>
19976
 
-   <receiver>forceDirectoryModeBtn</receiver>
19977
 
-   <slot>setDisabled(bool)</slot>
19978
 
-   <hints>
19979
 
-    <hint type="sourcelabel" >
19980
 
-     <x>45</x>
19981
 
-     <y>128</y>
19982
 
-    </hint>
19983
 
-    <hint type="destinationlabel" >
19984
 
-     <x>338</x>
19985
 
-     <y>511</y>
19986
 
-    </hint>
19987
 
-   </hints>
19988
 
-  </connection>
19989
 
-  <connection>
19990
 
-   <sender>inheritPermissionsChk</sender>
19991
 
-   <signal>toggled(bool)</signal>
19992
 
-   <receiver>createMaskEdit</receiver>
19993
 
-   <slot>setDisabled(bool)</slot>
19994
 
-   <hints>
19995
 
-    <hint type="sourcelabel" >
19996
 
-     <x>45</x>
19997
 
-     <y>128</y>
19998
 
-    </hint>
19999
 
-    <hint type="destinationlabel" >
20000
 
-     <x>611</x>
20001
 
-     <y>437</y>
20002
 
-    </hint>
20003
 
-   </hints>
20004
 
-  </connection>
20005
 
-  <connection>
20006
 
-   <sender>inheritPermissionsChk</sender>
20007
 
-   <signal>toggled(bool)</signal>
20008
 
-   <receiver>createMaskBtn</receiver>
20009
 
-   <slot>setDisabled(bool)</slot>
20010
 
-   <hints>
20011
 
-    <hint type="sourcelabel" >
20012
 
-     <x>45</x>
20013
 
-     <y>128</y>
20014
 
-    </hint>
20015
 
-    <hint type="destinationlabel" >
20016
 
-     <x>637</x>
20017
 
-     <y>437</y>
20018
 
-    </hint>
20019
 
-   </hints>
20020
 
-  </connection>
20021
 
-  <connection>
20022
 
-   <sender>inheritPermissionsChk</sender>
20023
 
-   <signal>toggled(bool)</signal>
20024
 
-   <receiver>directoryMaskEdit</receiver>
20025
 
-   <slot>setDisabled(bool)</slot>
20026
 
-   <hints>
20027
 
-    <hint type="sourcelabel" >
20028
 
-     <x>45</x>
20029
 
-     <y>128</y>
20030
 
-    </hint>
20031
 
-    <hint type="destinationlabel" >
20032
 
-     <x>611</x>
20033
 
-     <y>511</y>
20034
 
-    </hint>
20035
 
-   </hints>
20036
 
-  </connection>
20037
 
-  <connection>
20038
 
-   <sender>inheritPermissionsChk</sender>
20039
 
-   <signal>toggled(bool)</signal>
20040
 
-   <receiver>directoryMaskBtn</receiver>
20041
 
-   <slot>setDisabled(bool)</slot>
20042
 
-   <hints>
20043
 
-    <hint type="sourcelabel" >
20044
 
-     <x>45</x>
20045
 
-     <y>128</y>
20046
 
-    </hint>
20047
 
-    <hint type="destinationlabel" >
20048
 
-     <x>637</x>
20049
 
-     <y>511</y>
20050
 
-    </hint>
20051
 
-   </hints>
20052
 
-  </connection>
20053
 
-  <connection>
20054
 
-   <sender>followSymlinksChk</sender>
20055
 
-   <signal>toggled(bool)</signal>
20056
 
-   <receiver>wideLinksChk</receiver>
20057
 
-   <slot>setChecked(bool)</slot>
20058
 
-   <hints>
20059
 
-    <hint type="sourcelabel" >
20060
 
-     <x>19</x>
20061
 
-     <y>47</y>
20062
 
-    </hint>
20063
 
-    <hint type="destinationlabel" >
20064
 
-     <x>19</x>
20065
 
-     <y>47</y>
20066
 
-    </hint>
20067
 
-   </hints>
20068
 
-  </connection>
20069
 
-  <connection>
20070
 
-   <sender>followSymlinksChk</sender>
20071
 
-   <signal>toggled(bool)</signal>
20072
 
-   <receiver>wideLinksChk</receiver>
20073
 
-   <slot>setEnabled(bool)</slot>
20074
 
-   <hints>
20075
 
-    <hint type="sourcelabel" >
20076
 
-     <x>19</x>
20077
 
-     <y>47</y>
20078
 
-    </hint>
20079
 
-    <hint type="destinationlabel" >
20080
 
-     <x>19</x>
20081
 
-     <y>47</y>
20082
 
-    </hint>
20083
 
-   </hints>
20084
 
-  </connection>
20085
 
-  <connection>
20086
 
-   <sender>publicBaseChk</sender>
20087
 
-   <signal>toggled(bool)</signal>
20088
 
-   <receiver>KcmShareDlg</receiver>
20089
 
-   <slot>publicBaseChk_toggled(bool)</slot>
20090
 
-   <hints>
20091
 
-    <hint type="sourcelabel" >
20092
 
-     <x>35</x>
20093
 
-     <y>372</y>
20094
 
-    </hint>
20095
 
-    <hint type="destinationlabel" >
20096
 
-     <x>20</x>
20097
 
-     <y>20</y>
20098
 
-    </hint>
20099
 
-   </hints>
20100
 
-  </connection>
20101
 
-  <connection>
20102
 
-   <sender>pathUrlRq</sender>
20103
 
-   <signal>textChanged(QString)</signal>
20104
 
-   <receiver>KcmShareDlg</receiver>
20105
 
-   <slot>pathUrlRq_textChanged(QString)</slot>
20106
 
-   <hints>
20107
 
-    <hint type="sourcelabel" >
20108
 
-     <x>150</x>
20109
 
-     <y>92</y>
20110
 
-    </hint>
20111
 
-    <hint type="destinationlabel" >
20112
 
-     <x>20</x>
20113
 
-     <y>20</y>
20114
 
-    </hint>
20115
 
-   </hints>
20116
 
-  </connection>
20117
 
-  <connection>
20118
 
-   <sender>lockingChk</sender>
20119
 
-   <signal>toggled(bool)</signal>
20120
 
-   <receiver>KcmShareDlg</receiver>
20121
 
-   <slot>lockingChk_toggled(bool)</slot>
20122
 
-   <hints>
20123
 
-    <hint type="sourcelabel" >
20124
 
-     <x>33</x>
20125
 
-     <y>89</y>
20126
 
-    </hint>
20127
 
-    <hint type="destinationlabel" >
20128
 
-     <x>20</x>
20129
 
-     <y>20</y>
20130
 
-    </hint>
20131
 
-   </hints>
20132
 
-  </connection>
20133
 
-  <connection>
20134
 
-   <sender>vetoOplockChk</sender>
20135
 
-   <signal>stateChanged(int)</signal>
20136
 
-   <receiver>KcmShareDlg</receiver>
20137
 
-   <slot>changedSlot()</slot>
20138
 
-   <hints>
20139
 
-    <hint type="sourcelabel" >
20140
 
-     <x>460</x>
20141
 
-     <y>337</y>
20142
 
-    </hint>
20143
 
-    <hint type="destinationlabel" >
20144
 
-     <x>20</x>
20145
 
-     <y>20</y>
20146
 
-    </hint>
20147
 
-   </hints>
20148
 
-  </connection>
20149
 
-  <connection>
20150
 
-   <sender>lockingChk</sender>
20151
 
-   <signal>toggled(bool)</signal>
20152
 
-   <receiver>groupBox47</receiver>
20153
 
-   <slot>setEnabled(bool)</slot>
20154
 
-   <hints>
20155
 
-    <hint type="sourcelabel" >
20156
 
-     <x>33</x>
20157
 
-     <y>89</y>
20158
 
-    </hint>
20159
 
-    <hint type="destinationlabel" >
20160
 
-     <x>33</x>
20161
 
-     <y>116</y>
20162
 
-    </hint>
20163
 
-   </hints>
20164
 
-  </connection>
20165
 
-  <connection>
20166
 
-   <sender>oplockContentionLimitSpin</sender>
20167
 
-   <signal>valueChanged(int)</signal>
20168
 
-   <receiver>KcmShareDlg</receiver>
20169
 
-   <slot>oplockContentionLimitSpin_valueChanged(int)</slot>
20170
 
-   <hints>
20171
 
-    <hint type="sourcelabel" >
20172
 
-     <x>214</x>
20173
 
-     <y>321</y>
20174
 
-    </hint>
20175
 
-    <hint type="destinationlabel" >
20176
 
-     <x>20</x>
20177
 
-     <y>20</y>
20178
 
-    </hint>
20179
 
-   </hints>
20180
 
-  </connection>
20181
 
-  <connection>
20182
 
-   <sender>fakeOplocksChk</sender>
20183
 
-   <signal>toggled(bool)</signal>
20184
 
-   <receiver>KcmShareDlg</receiver>
20185
 
-   <slot>fakeOplocksChk_toggled(bool)</slot>
20186
 
-   <hints>
20187
 
-    <hint type="sourcelabel" >
20188
 
-     <x>39</x>
20189
 
-     <y>365</y>
20190
 
-    </hint>
20191
 
-    <hint type="destinationlabel" >
20192
 
-     <x>20</x>
20193
 
-     <y>20</y>
20194
 
-    </hint>
20195
 
-   </hints>
20196
 
-  </connection>
20197
 
-  <connection>
20198
 
-   <sender>oplocksChk</sender>
20199
 
-   <signal>toggled(bool)</signal>
20200
 
-   <receiver>groupBox59</receiver>
20201
 
-   <slot>setEnabled(bool)</slot>
20202
 
-   <hints>
20203
 
-    <hint type="sourcelabel" >
20204
 
-     <x>39</x>
20205
 
-     <y>230</y>
20206
 
-    </hint>
20207
 
-    <hint type="destinationlabel" >
20208
 
-     <x>39</x>
20209
 
-     <y>257</y>
20210
 
-    </hint>
20211
 
-   </hints>
20212
 
-  </connection>
20213
 
-  <connection>
20214
 
-   <sender>forceCreateModeBtn</sender>
20215
 
-   <signal>clicked()</signal>
20216
 
-   <receiver>KcmShareDlg</receiver>
20217
 
-   <slot>accessModifierBtnClicked()</slot>
20218
 
-   <hints>
20219
 
-    <hint type="sourcelabel" >
20220
 
-     <x>338</x>
20221
 
-     <y>437</y>
20222
 
-    </hint>
20223
 
-    <hint type="destinationlabel" >
20224
 
-     <x>20</x>
20225
 
-     <y>20</y>
20226
 
-    </hint>
20227
 
-   </hints>
20228
 
-  </connection>
20229
 
-  <connection>
20230
 
-   <sender>forceSecurityModeBtn</sender>
20231
 
-   <signal>clicked()</signal>
20232
 
-   <receiver>KcmShareDlg</receiver>
20233
 
-   <slot>accessModifierBtnClicked()</slot>
20234
 
-   <hints>
20235
 
-    <hint type="sourcelabel" >
20236
 
-     <x>338</x>
20237
 
-     <y>474</y>
20238
 
-    </hint>
20239
 
-    <hint type="destinationlabel" >
20240
 
-     <x>20</x>
20241
 
-     <y>20</y>
20242
 
-    </hint>
20243
 
-   </hints>
20244
 
-  </connection>
20245
 
-  <connection>
20246
 
-   <sender>forceDirectoryModeBtn</sender>
20247
 
-   <signal>clicked()</signal>
20248
 
-   <receiver>KcmShareDlg</receiver>
20249
 
-   <slot>accessModifierBtnClicked()</slot>
20250
 
-   <hints>
20251
 
-    <hint type="sourcelabel" >
20252
 
-     <x>338</x>
20253
 
-     <y>511</y>
20254
 
-    </hint>
20255
 
-    <hint type="destinationlabel" >
20256
 
-     <x>20</x>
20257
 
-     <y>20</y>
20258
 
-    </hint>
20259
 
-   </hints>
20260
 
-  </connection>
20261
 
-  <connection>
20262
 
-   <sender>forceDirectorySecurityModeBtn</sender>
20263
 
-   <signal>clicked()</signal>
20264
 
-   <receiver>KcmShareDlg</receiver>
20265
 
-   <slot>accessModifierBtnClicked()</slot>
20266
 
-   <hints>
20267
 
-    <hint type="sourcelabel" >
20268
 
-     <x>338</x>
20269
 
-     <y>548</y>
20270
 
-    </hint>
20271
 
-    <hint type="destinationlabel" >
20272
 
-     <x>20</x>
20273
 
-     <y>20</y>
20274
 
-    </hint>
20275
 
-   </hints>
20276
 
-  </connection>
20277
 
-  <connection>
20278
 
-   <sender>createMaskBtn</sender>
20279
 
-   <signal>clicked()</signal>
20280
 
-   <receiver>KcmShareDlg</receiver>
20281
 
-   <slot>accessModifierBtnClicked()</slot>
20282
 
-   <hints>
20283
 
-    <hint type="sourcelabel" >
20284
 
-     <x>637</x>
20285
 
-     <y>437</y>
20286
 
-    </hint>
20287
 
-    <hint type="destinationlabel" >
20288
 
-     <x>20</x>
20289
 
-     <y>20</y>
20290
 
-    </hint>
20291
 
-   </hints>
20292
 
-  </connection>
20293
 
-  <connection>
20294
 
-   <sender>securityMaskBtn</sender>
20295
 
-   <signal>clicked()</signal>
20296
 
-   <receiver>KcmShareDlg</receiver>
20297
 
-   <slot>accessModifierBtnClicked()</slot>
20298
 
-   <hints>
20299
 
-    <hint type="sourcelabel" >
20300
 
-     <x>637</x>
20301
 
-     <y>474</y>
20302
 
-    </hint>
20303
 
-    <hint type="destinationlabel" >
20304
 
-     <x>20</x>
20305
 
-     <y>20</y>
20306
 
-    </hint>
20307
 
-   </hints>
20308
 
-  </connection>
20309
 
-  <connection>
20310
 
-   <sender>directoryMaskBtn</sender>
20311
 
-   <signal>clicked()</signal>
20312
 
-   <receiver>KcmShareDlg</receiver>
20313
 
-   <slot>accessModifierBtnClicked()</slot>
20314
 
-   <hints>
20315
 
-    <hint type="sourcelabel" >
20316
 
-     <x>637</x>
20317
 
-     <y>511</y>
20318
 
-    </hint>
20319
 
-    <hint type="destinationlabel" >
20320
 
-     <x>20</x>
20321
 
-     <y>20</y>
20322
 
-    </hint>
20323
 
-   </hints>
20324
 
-  </connection>
20325
 
-  <connection>
20326
 
-   <sender>directorySecurityMaskBtn</sender>
20327
 
-   <signal>clicked()</signal>
20328
 
-   <receiver>KcmShareDlg</receiver>
20329
 
-   <slot>accessModifierBtnClicked()</slot>
20330
 
-   <hints>
20331
 
-    <hint type="sourcelabel" >
20332
 
-     <x>637</x>
20333
 
-     <y>548</y>
20334
 
-    </hint>
20335
 
-    <hint type="destinationlabel" >
20336
 
-     <x>20</x>
20337
 
-     <y>20</y>
20338
 
-    </hint>
20339
 
-   </hints>
20340
 
-  </connection>
20341
 
-  <connection>
20342
 
-   <sender>storeDosAttributesChk</sender>
20343
 
-   <signal>toggled(bool)</signal>
20344
 
-   <receiver>KcmShareDlg</receiver>
20345
 
-   <slot>storeDosAttributesChk_toggled(bool)</slot>
20346
 
-   <hints>
20347
 
-    <hint type="sourcelabel" >
20348
 
-     <x>45</x>
20349
 
-     <y>321</y>
20350
 
-    </hint>
20351
 
-    <hint type="destinationlabel" >
20352
 
-     <x>20</x>
20353
 
-     <y>20</y>
20354
 
-    </hint>
20355
 
-   </hints>
20356
 
-  </connection>
20357
 
-  <connection>
20358
 
-   <sender>buttonHelp</sender>
20359
 
-   <signal>clicked()</signal>
20360
 
-   <receiver>KcmShareDlg</receiver>
20361
 
-   <slot>buttonHelp_clicked()</slot>
20362
 
-   <hints>
20363
 
-    <hint type="sourcelabel" >
20364
 
-     <x>30</x>
20365
 
-     <y>637</y>
20366
 
-    </hint>
20367
 
-    <hint type="destinationlabel" >
20368
 
-     <x>20</x>
20369
 
-     <y>20</y>
20370
 
-    </hint>
20371
 
-   </hints>
20372
 
-  </connection>
20373
 
- </connections>
20374
 
-</ui>
20375
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/smbconfconfigwidget.cpp
20376
 
===================================================================
20377
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/smbconfconfigwidget.cpp    2011-01-19 17:21:04.000000000 -0500
20378
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
20379
 
@@ -1,92 +0,0 @@
20380
 
-/***************************************************************************
20381
 
-                          smbconfconfigwidget.cpp  -  description
20382
 
-                             -------------------
20383
 
-    begin                : Tue May 16 2003
20384
 
-    copyright            : (C) 2003 by Jan Sch�er
20385
 
-    email                : janschaefer@users.sourceforge.net
20386
 
- ***************************************************************************/
20387
 
-
20388
 
-/******************************************************************************
20389
 
- *                                                                            *
20390
 
- *  This file is part of KSambaPlugin.                                        *
20391
 
- *                                                                            *
20392
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify      *
20393
 
- *  it under the terms of the GNU General Public License as published by      *
20394
 
- *  the Free Software Foundation; either version 2 of the License, or         *
20395
 
- *  (at your option) any later version.                                       *
20396
 
- *                                                                            *
20397
 
- *  KSambaPlugin is distributed in the hope that it will be useful,           *
20398
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
20399
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
20400
 
- *  GNU General Public License for more details.                              *
20401
 
- *                                                                            *
20402
 
- *  You should have received a copy of the GNU General Public License         *
20403
 
- *  along with KSambaPlugin; if not, write to the Free Software               *
20404
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
20405
 
- *                                                                            *
20406
 
- ******************************************************************************/
20407
 
-
20408
 
-#include <qfileinfo.h> 
20409
 
-#include <qlayout.h>
20410
 
-#include <qpushbutton.h>
20411
 
-#include <qlabel.h>
20412
 
-//Added by qt3to4:
20413
 
-#include <QVBoxLayout>
20414
 
-#include <QHBoxLayout>
20415
 
20416
 
-#include <kfiledialog.h>
20417
 
-#include <klocale.h>
20418
 
-#include <kmessagebox.h>
20419
 
20420
 
-
20421
 
-#include "smbconfconfigwidget.h"
20422
 
-
20423
 
-SmbConfConfigWidget::SmbConfConfigWidget(QWidget* parent) 
20424
 
-  : QWidget(parent,"configWidget")
20425
 
-{  
20426
 
-
20427
 
-  QVBoxLayout *layout = new QVBoxLayout(this);
20428
 
-  layout->setSpacing(5);
20429
 
-
20430
 
-  QLabel *lbl = new QLabel(i18n("<p>The SAMBA configuration file <strong>'smb.conf'</strong>" \
20431
 
-                                " could not be found;</p>" \
20432
 
-                                "make sure you have SAMBA installed.\n\n"), this);
20433
 
-
20434
 
-  QHBoxLayout *hbox = new QHBoxLayout;
20435
 
-  QPushButton *btn = new QPushButton(i18n("Specify Location"), this);
20436
 
-  connect(btn, SIGNAL(pressed()), this, SLOT( btnPressed()));
20437
 
-
20438
 
-  btn->setDefault(false);
20439
 
-  btn->setAutoDefault(false);
20440
 
-
20441
 
-  hbox->addStretch();
20442
 
-  hbox->addWidget(btn);
20443
 
-
20444
 
-  layout->addWidget(lbl);
20445
 
-  layout->addLayout(hbox);
20446
 
-  layout->addStretch();
20447
 
-}
20448
 
-
20449
 
-void SmbConfConfigWidget::btnPressed() {
20450
 
-  QString smbConf = KFileDialog::getOpenFileName(KUrl("file:///"),
20451
 
-            i18n("smb.conf|Samba conf. File\n"
20452
 
-            "*|All Files"),0,i18n("Get smb.conf Location"));
20453
 
-
20454
 
-  if (smbConf.isEmpty())
20455
 
-                 return;
20456
 
-  if ( ! QFileInfo(smbConf).isReadable() ) {
20457
 
-    KMessageBox::sorry(this,i18n("<qt>The file <i>%1</i> could not be read.</qt>", smbConf),i18n("Could Not Read File"));
20458
 
-    return;
20459
 
-  }
20460
 
-
20461
 
-  KConfig config("ksambaplugin");
20462
 
-  
20463
 
-  KConfigGroup group = config.group("KSambaKonqiPlugin");
20464
 
-  group.writeEntry("smb.conf",smbConf);
20465
 
-  config.sync();
20466
 
-  
20467
 
-  emit smbConfChoosed(smbConf);
20468
 
-
20469
 
-}
20470
 
-
20471
 
-#include "smbconfconfigwidget.moc"
20472
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/smbconfconfigwidget.h
20473
 
===================================================================
20474
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/smbconfconfigwidget.h      2011-01-19 17:21:04.000000000 -0500
20475
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
20476
 
@@ -1,46 +0,0 @@
20477
 
-/***************************************************************************
20478
 
-                          smbconfconfigwidget.h  -  description
20479
 
-                             -------------------
20480
 
-    begin                : Tue May 16 2003
20481
 
-    copyright            : (C) 2003 by Jan Schäfer
20482
 
-    email                : janschaefer@users.sourceforge.net
20483
 
- ***************************************************************************/
20484
 
-
20485
 
-/******************************************************************************
20486
 
- *                                                                            *
20487
 
- *  This file is part of KSambaPlugin.                                        *
20488
 
- *                                                                            *
20489
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify      *
20490
 
- *  it under the terms of the GNU General Public License as published by      *
20491
 
- *  the Free Software Foundation; either version 2 of the License, or         *
20492
 
- *  (at your option) any later version.                                       *
20493
 
- *                                                                            *
20494
 
- *  KSambaPlugin is distributed in the hope that it will be useful,           *
20495
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
20496
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
20497
 
- *  GNU General Public License for more details.                              *
20498
 
- *                                                                            *
20499
 
- *  You should have received a copy of the GNU General Public License         *
20500
 
- *  along with KSambaPlugin; if not, write to the Free Software               *
20501
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
20502
 
- *                                                                            *
20503
 
- ******************************************************************************/
20504
 
-
20505
 
-#ifndef SMBCONFCONFIGWIDGET_H
20506
 
-#define SMBCONFCONFIGWIDGET_H
20507
 
-
20508
 
-#include <qwidget.h>
20509
 
-
20510
 
-class SmbConfConfigWidget : public QWidget {
20511
 
-Q_OBJECT
20512
 
-public:
20513
 
-  SmbConfConfigWidget(QWidget*);
20514
 
-  
20515
 
-protected slots:
20516
 
-  void btnPressed();  
20517
 
-signals:
20518
 
-  void smbConfChoosed(const QString &);  
20519
 
-};
20520
 
-
20521
 
-
20522
 
-#endif
20523
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp
20524
 
===================================================================
20525
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp  2011-01-19 17:21:04.000000000 -0500
20526
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
20527
 
@@ -1,241 +0,0 @@
20528
 
-/***************************************************************************
20529
 
-                          smbpasswdfile.cpp  -  description
20530
 
-                             -------------------
20531
 
-    begin                : Tue June 6 2002
20532
 
-    copyright            : (C) 2002 by Jan Schäfer
20533
 
-    email                : janschaefer@users.sourceforge.net
20534
 
- ***************************************************************************/
20535
 
-
20536
 
-/******************************************************************************
20537
 
- *                                                                            *
20538
 
- *  This file is part of KSambaPlugin.                                        *
20539
 
- *                                                                            *
20540
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify      *
20541
 
- *  it under the terms of the GNU General Public License as published by      *
20542
 
- *  the Free Software Foundation; either version 2 of the License, or         *
20543
 
- *  (at your option) any later version.                                       *
20544
 
- *                                                                            *
20545
 
- *  KSambaPlugin is distributed in the hope that it will be useful,           *
20546
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
20547
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
20548
 
- *  GNU General Public License for more details.                              *
20549
 
- *                                                                            *
20550
 
- *  You should have received a copy of the GNU General Public License         *
20551
 
- *  along with KSambaPlugin; if not, write to the Free Software               *
20552
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
20553
 
- *                                                                            *
20554
 
- ******************************************************************************/
20555
 
-
20556
 
-#include <qstring.h>
20557
 
-#include <qfile.h>
20558
 
-#include <qtextstream.h>
20559
 
-#include <qstringlist.h>
20560
 
-
20561
 
-#include <kurl.h>
20562
 
-#include <kdebug.h>
20563
 
-#include <kpassworddialog.h>
20564
 
-#include <klocale.h>
20565
 
-#include <k3process.h>
20566
 
-#include <kprocess.h>
20567
 
-
20568
 
-#include "sambafile.h"
20569
 
-#include "smbpasswdfile.h"
20570
 
-#include "passwd.h"
20571
 
-
20572
 
-
20573
 
-QStringList SambaUserList::getUserNames()
20574
 
-{
20575
 
-  QStringList list;
20576
 
-
20577
 
-  SambaUser *user;
20578
 
-  for ( user = first(); user; user = next() )
20579
 
-  {
20580
 
-     list.append(user->name);
20581
 
-  }
20582
 
-
20583
 
-  return list;
20584
 
-}
20585
 
-
20586
 
-
20587
 
-SmbPasswdFile::SmbPasswdFile() {
20588
 
-}
20589
 
-
20590
 
-
20591
 
-SmbPasswdFile::SmbPasswdFile(const KUrl & url)
20592
 
-{
20593
 
-  setUrl(url);
20594
 
-}
20595
 
-
20596
 
-SmbPasswdFile::~SmbPasswdFile()
20597
 
-{
20598
 
-}
20599
 
-
20600
 
-void SmbPasswdFile::setUrl(const KUrl & url) {
20601
 
-  _url = url;
20602
 
-}
20603
 
-
20604
 
-/**
20605
 
- * Returns a list of all users stored in
20606
 
- * the smbpasswd file
20607
 
- **/
20608
 
-SambaUserList SmbPasswdFile::getSambaUserList()
20609
 
-{
20610
 
-  QFile f(_url.path());
20611
 
-
20612
 
-  SambaUserList list;
20613
 
-
20614
 
-  if ( f.open(QIODevice::ReadOnly) )
20615
 
-  {
20616
 
-    QTextStream t( &f );
20617
 
-    QString s;
20618
 
-    while ( !t.atEnd() )
20619
 
-    {
20620
 
-      s = t.readLine().trimmed();
20621
 
-
20622
 
-      // Ignore comments
20623
 
-      if (s.left(1)=="#")
20624
 
-         continue;
20625
 
-
20626
 
-      QStringList l = QStringList::split(":",s);
20627
 
-
20628
 
-      SambaUser* user = new SambaUser(l[0],l[1].toInt());
20629
 
-      user->gid = getUserGID(l[0]);
20630
 
-      user->isUserAccount = l[4].contains('U');
20631
 
-      user->hasNoPassword = l[4].contains('N');;
20632
 
-      user->isDisabled = l[4].contains('D');;
20633
 
-      user->isWorkstationTrustAccount = l[4].contains('W');;
20634
 
-      list.append(user);
20635
 
-    }
20636
 
-    f.close();
20637
 
-  }
20638
 
-
20639
 
-  return list;
20640
 
-}
20641
 
-
20642
 
-bool SmbPasswdFile::executeSmbpasswd(const QStringList & args) {
20643
 
-  K3Process p;
20644
 
-  p << "smbpasswd" << args;
20645
 
-
20646
 
-  connect( &p, SIGNAL(receivedStdout(K3Process*,char*,int)),
20647
 
-           this, SLOT(smbpasswdStdOutReceived(K3Process*,char*,int)));
20648
 
-
20649
 
-  _smbpasswdOutput = "";
20650
 
-
20651
 
-  bool result = p.start(K3Process::Block,K3Process::Stdout);
20652
 
-
20653
 
-  if (result)
20654
 
-  {
20655
 
-    kDebug(5009) << _smbpasswdOutput;
20656
 
-  }
20657
 
-
20658
 
-  return result;
20659
 
-}
20660
 
-
20661
 
-/**
20662
 
- * Tries to add the passed user to the smbpasswd file
20663
 
- * returns true if successful otherwise false
20664
 
- **/
20665
 
-bool SmbPasswdFile::addUser(const SambaUser & user,const QString & password)
20666
 
-{
20667
 
-  KProcess p;
20668
 
-  p << "smbpasswd" << "-s" << "-a" << user.name;
20669
 
-
20670
 
-  //  connect( &p, SIGNAL(receivedStdout(K3Process*,char*,int)),
20671
 
-  //       this, SLOT(smbpasswdStdOutReceived(K3Process*,char*,int)));
20672
 
-
20673
 
-  _smbpasswdOutput = "";
20674
 
-  QString pw = password;
20675
 
-  pw.append("\n");
20676
 
-
20677
 
-  p.start();
20678
 
-  if (!p.waitForStarted()) {
20679
 
-    kWarning(5009) << "smbpasswd could not be started!" << endl;
20680
 
-    return false;
20681
 
-  } 
20682
 
-  
20683
 
-  kDebug(5009) << "smbpasswd started" << endl;
20684
 
-
20685
 
-  p.write(pw.toLocal8Bit());
20686
 
-  p.write(pw.toLocal8Bit());
20687
 
-
20688
 
-  p.closeWriteChannel();
20689
 
-
20690
 
-  if (!p.waitForFinished())
20691
 
-     return false;
20692
 
-
20693
 
-  kDebug(5009) << "smbpasswd finished" << endl;
20694
 
-
20695
 
-  return true;
20696
 
-}
20697
 
-
20698
 
-/**
20699
 
- * Tries to remove the passed user from the smbpasswd file
20700
 
- * returns true if successful otherwise false
20701
 
- **/
20702
 
-bool SmbPasswdFile::removeUser(const SambaUser & user)
20703
 
-{
20704
 
-  QStringList l;
20705
 
-  l << "-x" << user.name;
20706
 
-  return executeSmbpasswd(l);
20707
 
-}
20708
 
-
20709
 
-bool SmbPasswdFile::changePassword(const SambaUser & user, const QString & newPassword)
20710
 
-{
20711
 
-  return addUser(user,newPassword);
20712
 
-}
20713
 
-
20714
 
-
20715
 
-void SmbPasswdFile::smbpasswdStdOutReceived(K3Process *, char *buffer, int buflen)
20716
 
-{
20717
 
-  _smbpasswdOutput+=QString::fromLatin1(buffer,buflen);
20718
 
-}
20719
 
-
20720
 
-
20721
 
-/**
20722
 
- * Returns the Url of the smbpasswd file
20723
 
- * specified in the [global] section of
20724
 
- * the smb.conf file.
20725
 
- * If there is no entry in the [global] section
20726
 
- * it tries to guess the location.
20727
 
- **/
20728
 
-KUrl SmbPasswdFile::getUrlFromSambaFile(const SambaFile * /*file*/)
20729
 
-{
20730
 
-  kWarning() << "SmbPasswdFile::getUrlFromSambaFile unimplemeneted!";
20731
 
-  return KUrl("");
20732
 
-}
20733
 
-
20734
 
-bool SmbPasswdFile::enableUser(const SambaUser & user) {
20735
 
-  QStringList l;
20736
 
-  l << "-e" << user.name;
20737
 
-  return executeSmbpasswd(l);
20738
 
-}
20739
 
-
20740
 
-bool SmbPasswdFile::disableUser(const SambaUser & user) {
20741
 
-  QStringList l;
20742
 
-  l << "-d" << user.name;
20743
 
-  return executeSmbpasswd(l);
20744
 
-}
20745
 
-
20746
 
-bool SmbPasswdFile::setNoPassword(const SambaUser & user) {
20747
 
-  QStringList l;
20748
 
-  l << "-n" << user.name;
20749
 
-  return executeSmbpasswd(l);
20750
 
-}
20751
 
-
20752
 
-bool SmbPasswdFile::setMachineTrustAccount(const SambaUser & user) {
20753
 
-  QStringList l;
20754
 
-  l << "-m" << user.name;
20755
 
-  return executeSmbpasswd(l);
20756
 
-}
20757
 
-
20758
 
-bool SmbPasswdFile::joinADomain(const QString & domain, const QString & server,
20759
 
-      const QString & user, const QString & password) {
20760
 
-  QStringList l;
20761
 
-  l << "-j" << domain;
20762
 
-  l << "-r" << server;
20763
 
-  l << "-U" << user << "%" << password;
20764
 
-  return executeSmbpasswd(l);
20765
 
-}
20766
 
-
20767
 
-
20768
 
-#include "smbpasswdfile.moc"
20769
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/smbpasswdfile.h
20770
 
===================================================================
20771
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/smbpasswdfile.h    2011-01-19 17:21:04.000000000 -0500
20772
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
20773
 
@@ -1,143 +0,0 @@
20774
 
-/***************************************************************************
20775
 
-                          smbpasswdfile.h  -  description
20776
 
-                             -------------------
20777
 
-    begin                : Tue June 6 2002
20778
 
-    copyright            : (C) 2002 by Jan Schäfer
20779
 
-    email                : janschaefer@users.sourceforge.net
20780
 
- ***************************************************************************/
20781
 
-
20782
 
-/******************************************************************************
20783
 
- *                                                                            *
20784
 
- *  This file is part of KSambaPlugin.                                          *
20785
 
- *                                                                            *
20786
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify            *
20787
 
- *  it under the terms of the GNU General Public License as published by      *
20788
 
- *  the Free Software Foundation; either version 2 of the License, or         *
20789
 
- *  (at your option) any later version.                                       *
20790
 
- *                                                                            *
20791
 
- *  KSambaPlugin is distributed in the hope that it will be useful,                 *
20792
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
20793
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
20794
 
- *  GNU General Public License for more details.                              *
20795
 
- *                                                                            *
20796
 
- *  You should have received a copy of the GNU General Public License         *
20797
 
- *  along with KSambaPlugin; if not, write to the Free Software                     *
20798
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
20799
 
- *                                                                            *
20800
 
- ******************************************************************************/
20801
 
-
20802
 
-#ifndef SMBPASSWDFILE_H
20803
 
-#define SMBPASSWDFILE_H
20804
 
-
20805
 
-
20806
 
-/**
20807
 
-  *@author Jan Schäfer
20808
 
-  */
20809
 
-
20810
 
-#include <qstring.h>
20811
 
-//Added by qt3to4:
20812
 
-#include <Q3PtrList>
20813
 
-#include <kurl.h>
20814
 
-
20815
 
-class SambaFile;
20816
 
-class K3Process;
20817
 
-
20818
 
-/**
20819
 
- * Simple class to store a Samba User
20820
 
- **/
20821
 
-class SambaUser
20822
 
-{
20823
 
-public:
20824
 
-  SambaUser(const QString & aName = QString(), int anUid = -1) {name = aName; uid = anUid;}
20825
 
-
20826
 
-  QString name;
20827
 
-  int uid;
20828
 
-  int gid;
20829
 
-  bool isUserAccount;
20830
 
-  bool hasNoPassword;
20831
 
-  bool isDisabled;
20832
 
-  bool isWorkstationTrustAccount;
20833
 
-};
20834
 
-
20835
 
-/**
20836
 
- * A QPtrList of SambaUser
20837
 
- **/
20838
 
-class SambaUserList : public Q3PtrList<SambaUser>
20839
 
-{
20840
 
-public:
20841
 
-  QStringList getUserNames();
20842
 
-};
20843
 
-
20844
 
-/**
20845
 
- * This class represents the SAMBA smbpasswd file.
20846
 
- * It provides :
20847
 
- * - getting a list of all SAMBA users
20848
 
- * - adding a new user -> uses smbpasswd program
20849
 
- * - removing an existing user -> uses smbpasswd program
20850
 
- **/
20851
 
-class SmbPasswdFile : public QObject
20852
 
-{
20853
 
-Q_OBJECT
20854
 
-public: 
20855
 
-  SmbPasswdFile();
20856
 
-       SmbPasswdFile(const KUrl &);
20857
 
-       ~SmbPasswdFile();
20858
 
-
20859
 
-  void setUrl(const KUrl &);
20860
 
-  
20861
 
-  /**
20862
 
-   * Returns a list of all users stored in
20863
 
-   * the smbpasswd file
20864
 
-   **/
20865
 
-  SambaUserList getSambaUserList();
20866
 
-
20867
 
-  /**
20868
 
-   * Calls smbpasswd with the given arguments
20869
 
-   **/
20870
 
-  bool executeSmbpasswd(const QStringList & args);
20871
 
-  
20872
 
-  /**
20873
 
-   * Tries to add the passed user to the smbpasswd file
20874
 
-   * returns true if successful otherwise false
20875
 
-   **/
20876
 
-  bool addUser(const SambaUser &, const QString & password);
20877
 
-
20878
 
-  /**
20879
 
-   * Tries to remove the passed user from the smbpasswd file
20880
 
-   * returns true if successful otherwise false
20881
 
-   **/
20882
 
-  bool removeUser(const SambaUser &);
20883
 
-
20884
 
-  /**
20885
 
-   * Tries to change the password of the passed user
20886
 
-   * if it fails returns false otherwise true
20887
 
-   **/
20888
 
-  bool changePassword(const SambaUser &, const QString & password);
20889
 
-  
20890
 
-  bool enableUser(const SambaUser &);
20891
 
-  
20892
 
-  bool disableUser(const SambaUser &);
20893
 
-  
20894
 
-  bool setNoPassword(const SambaUser &);
20895
 
-  
20896
 
-  bool setMachineTrustAccount(const SambaUser &);
20897
 
-
20898
 
-  bool joinADomain(const QString &, const QString &, const QString &, const QString &);
20899
 
-  
20900
 
-  /**
20901
 
-   * Returns the Url of the smbpasswd file
20902
 
-   * specified in the [global] section of
20903
 
-   * the smb.conf file.
20904
 
-   * If there is no entry in the [global] section
20905
 
-   * it tries to guess the location.
20906
 
-   **/
20907
 
-  static KUrl getUrlFromSambaFile(const SambaFile *file);
20908
 
-protected:
20909
 
-  KUrl _url;
20910
 
-  QString _smbpasswdOutput;
20911
 
-
20912
 
-protected slots:
20913
 
-  void smbpasswdStdOutReceived(K3Process*,char*,int);
20914
 
-};
20915
 
-
20916
 
-#endif
20917
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/socketoptionsdlg.ui
20918
 
===================================================================
20919
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/socketoptionsdlg.ui        2011-01-19 17:21:04.000000000 -0500
20920
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
20921
 
@@ -1,331 +0,0 @@
20922
 
-<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
20923
 
-<class>SocketOptionsDlg</class>
20924
 
-<comment>
20925
 
-/******************************************************************************
20926
 
- *                                                                            *
20927
 
- *  This file is part of KSambaPlugin.                                        *
20928
 
- *                                                                            *
20929
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify      *
20930
 
- *  it under the terms of the GNU General Public License as published by      *
20931
 
- *  the Free Software Foundation; either version 2 of the License, or         *
20932
 
- *  (at your option) any later version.                                       *
20933
 
- *                                                                            *
20934
 
- *  KSambaPlugin is distributed in the hope that it will be useful,           *
20935
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
20936
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
20937
 
- *  GNU General Public License for more details.                              *
20938
 
- *                                                                            *
20939
 
- *  You should have received a copy of the GNU General Public License         *
20940
 
- *  along with KSambaPlugin; if not, write to the Free Software                     *
20941
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
20942
 
- *                                                                            *
20943
 
- ******************************************************************************/
20944
 
-</comment>
20945
 
-<widget class="QDialog">
20946
 
-    <property name="name">
20947
 
-        <cstring>SocketOptionsDlg</cstring>
20948
 
-    </property>
20949
 
-    <property name="geometry">
20950
 
-        <rect>
20951
 
-            <x>0</x>
20952
 
-            <y>0</y>
20953
 
-            <width>457</width>
20954
 
-            <height>240</height>
20955
 
-        </rect>
20956
 
-    </property>
20957
 
-    <property name="windowTitle">
20958
 
-        <string>Socket Options</string>
20959
 
-    </property>
20960
 
-    <property name="sizeGripEnabled">
20961
 
-        <bool>true</bool>
20962
 
-    </property>
20963
 
-    <vbox>
20964
 
-        <property name="name">
20965
 
-            <cstring>unnamed</cstring>
20966
 
-        </property>
20967
 
-        <property name="margin">
20968
 
-            <number>11</number>
20969
 
-        </property>
20970
 
-        <property name="spacing">
20971
 
-            <number>6</number>
20972
 
-        </property>
20973
 
-        <widget class="QLayoutWidget">
20974
 
-            <property name="name">
20975
 
-                <cstring>Layout106</cstring>
20976
 
-            </property>
20977
 
-            <grid>
20978
 
-                <property name="name">
20979
 
-                    <cstring>unnamed</cstring>
20980
 
-                </property>
20981
 
-                <property name="margin">
20982
 
-                    <number>0</number>
20983
 
-                </property>
20984
 
-                <property name="spacing">
20985
 
-                    <number>6</number>
20986
 
-                </property>
20987
 
-                <widget class="QCheckBox" row="2" column="1">
20988
 
-                    <property name="name">
20989
 
-                        <cstring>SO_SNDLOWATChk</cstring>
20990
 
-                    </property>
20991
 
-                    <property name="text">
20992
 
-                        <string>SO_SNDLOWAT:</string>
20993
 
-                    </property>
20994
 
-                </widget>
20995
 
-                <widget class="QCheckBox" row="2" column="0">
20996
 
-                    <property name="name">
20997
 
-                        <cstring>IPTOS_THROUGHPUTChk</cstring>
20998
 
-                    </property>
20999
 
-                    <property name="text">
21000
 
-                        <string>IPTOS_THROUGHPUT</string>
21001
 
-                    </property>
21002
 
-                </widget>
21003
 
-                <widget class="QCheckBox" row="0" column="1">
21004
 
-                    <property name="name">
21005
 
-                        <cstring>SO_SNDBUFChk</cstring>
21006
 
-                    </property>
21007
 
-                    <property name="text">
21008
 
-                        <string>SO_SNDBUF:</string>
21009
 
-                    </property>
21010
 
-                </widget>
21011
 
-                <widget class="QCheckBox" row="3" column="0">
21012
 
-                    <property name="name">
21013
 
-                        <cstring>SO_KEEPALIVEChk</cstring>
21014
 
-                    </property>
21015
 
-                    <property name="text">
21016
 
-                        <string>SO_KEEPALIVE</string>
21017
 
-                    </property>
21018
 
-                </widget>
21019
 
-                <widget class="QCheckBox" row="1" column="1">
21020
 
-                    <property name="name">
21021
 
-                        <cstring>SO_RCVBUFChk</cstring>
21022
 
-                    </property>
21023
 
-                    <property name="text">
21024
 
-                        <string>SO_RCVBUF:</string>
21025
 
-                    </property>
21026
 
-                </widget>
21027
 
-                <widget class="QSpinBox" row="0" column="2">
21028
 
-                    <property name="name">
21029
 
-                        <cstring>SO_SNDBUFSpin</cstring>
21030
 
-                    </property>
21031
 
-                    <property name="enabled">
21032
 
-                        <bool>false</bool>
21033
 
-                    </property>
21034
 
-                    <property name="maximum">
21035
 
-                        <number>100000</number>
21036
 
-                    </property>
21037
 
-                </widget>
21038
 
-                <widget class="QSpinBox" row="3" column="2">
21039
 
-                    <property name="name">
21040
 
-                        <cstring>SO_RCVLOWATSpin</cstring>
21041
 
-                    </property>
21042
 
-                    <property name="enabled">
21043
 
-                        <bool>false</bool>
21044
 
-                    </property>
21045
 
-                    <property name="maximum">
21046
 
-                        <number>100000</number>
21047
 
-                    </property>
21048
 
-                </widget>
21049
 
-                <widget class="QCheckBox" row="5" column="0">
21050
 
-                    <property name="name">
21051
 
-                        <cstring>SO_BROADCASTChk</cstring>
21052
 
-                    </property>
21053
 
-                    <property name="text">
21054
 
-                        <string>SO_BROADCAST</string>
21055
 
-                    </property>
21056
 
-                </widget>
21057
 
-                <widget class="QCheckBox" row="1" column="0">
21058
 
-                    <property name="name">
21059
 
-                        <cstring>IPTOS_LOWDELAYChk</cstring>
21060
 
-                    </property>
21061
 
-                    <property name="text">
21062
 
-                        <string>IPTOS_LOWDELAY</string>
21063
 
-                    </property>
21064
 
-                </widget>
21065
 
-                <widget class="QCheckBox" row="0" column="0">
21066
 
-                    <property name="name">
21067
 
-                        <cstring>TCP_NODELAYChk</cstring>
21068
 
-                    </property>
21069
 
-                    <property name="text">
21070
 
-                        <string>TCP_NODELAY</string>
21071
 
-                    </property>
21072
 
-                </widget>
21073
 
-                <widget class="QCheckBox" row="3" column="1">
21074
 
-                    <property name="name">
21075
 
-                        <cstring>SO_RCVLOWATChk</cstring>
21076
 
-                    </property>
21077
 
-                    <property name="text">
21078
 
-                        <string>SO_RCVLOWAT:</string>
21079
 
-                    </property>
21080
 
-                </widget>
21081
 
-                <widget class="QSpinBox" row="1" column="2">
21082
 
-                    <property name="name">
21083
 
-                        <cstring>SO_RCVBUFSpin</cstring>
21084
 
-                    </property>
21085
 
-                    <property name="enabled">
21086
 
-                        <bool>false</bool>
21087
 
-                    </property>
21088
 
-                    <property name="maximum">
21089
 
-                        <number>100000</number>
21090
 
-                    </property>
21091
 
-                </widget>
21092
 
-                <widget class="QSpinBox" row="2" column="2">
21093
 
-                    <property name="name">
21094
 
-                        <cstring>SO_SNDLOWATSpin</cstring>
21095
 
-                    </property>
21096
 
-                    <property name="enabled">
21097
 
-                        <bool>false</bool>
21098
 
-                    </property>
21099
 
-                    <property name="maximum">
21100
 
-                        <number>100000</number>
21101
 
-                    </property>
21102
 
-                </widget>
21103
 
-                <widget class="QCheckBox" row="4" column="0">
21104
 
-                    <property name="name">
21105
 
-                        <cstring>SO_REUSEADDRChk</cstring>
21106
 
-                    </property>
21107
 
-                    <property name="text">
21108
 
-                        <string>SO_REUSEADDR</string>
21109
 
-                    </property>
21110
 
-                </widget>
21111
 
-            </grid>
21112
 
-        </widget>
21113
 
-        <widget class="QFrame">
21114
 
-            <property name="name">
21115
 
-                <cstring>Frame8</cstring>
21116
 
-            </property>
21117
 
-            <property name="frameShape">
21118
 
-                <enum>HLine</enum>
21119
 
-            </property>
21120
 
-            <property name="frameShadow">
21121
 
-                <enum>Sunken</enum>
21122
 
-            </property>
21123
 
-        </widget>
21124
 
-        <widget class="QLayoutWidget">
21125
 
-            <property name="name">
21126
 
-                <cstring>Layout1</cstring>
21127
 
-            </property>
21128
 
-            <hbox>
21129
 
-                <property name="name">
21130
 
-                    <cstring>unnamed</cstring>
21131
 
-                </property>
21132
 
-                <property name="margin">
21133
 
-                    <number>0</number>
21134
 
-                </property>
21135
 
-                <property name="spacing">
21136
 
-                    <number>6</number>
21137
 
-                </property>
21138
 
-                <widget class="QPushButton">
21139
 
-                    <property name="name">
21140
 
-                        <cstring>buttonHelp</cstring>
21141
 
-                    </property>
21142
 
-                    <property name="text">
21143
 
-                        <string>&amp;Help</string>
21144
 
-                    </property>
21145
 
-                    <property name="accel">
21146
 
-                        <string>F1</string>
21147
 
-                    </property>
21148
 
-                    <property name="autoDefault">
21149
 
-                        <bool>true</bool>
21150
 
-                    </property>
21151
 
-                </widget>
21152
 
-                <spacer>
21153
 
-                    <property name="name">
21154
 
-                        <cstring>Qt::Horizontal Spacing2</cstring>
21155
 
-                    </property>
21156
 
-                    <property name="orientation">
21157
 
-                        <enum>Qt::Horizontal</enum>
21158
 
-                    </property>
21159
 
-                    <property name="sizeType">
21160
 
-                        <enum>Expanding</enum>
21161
 
-                    </property>
21162
 
-                    <property name="sizeHint">
21163
 
-                        <size>
21164
 
-                            <width>20</width>
21165
 
-                            <height>20</height>
21166
 
-                        </size>
21167
 
-                    </property>
21168
 
-                </spacer>
21169
 
-                <widget class="QPushButton">
21170
 
-                    <property name="name">
21171
 
-                        <cstring>buttonOk</cstring>
21172
 
-                    </property>
21173
 
-                    <property name="text">
21174
 
-                        <string>&amp;OK</string>
21175
 
-                    </property>
21176
 
-                    <property name="autoDefault">
21177
 
-                        <bool>true</bool>
21178
 
-                    </property>
21179
 
-                    <property name="default">
21180
 
-                        <bool>true</bool>
21181
 
-                    </property>
21182
 
-                </widget>
21183
 
-                <widget class="QPushButton">
21184
 
-                    <property name="name">
21185
 
-                        <cstring>buttonCancel</cstring>
21186
 
-                    </property>
21187
 
-                    <property name="text">
21188
 
-                        <string>&amp;Cancel</string>
21189
 
-                    </property>
21190
 
-                    <property name="autoDefault">
21191
 
-                        <bool>true</bool>
21192
 
-                    </property>
21193
 
-                </widget>
21194
 
-            </hbox>
21195
 
-        </widget>
21196
 
-    </vbox>
21197
 
-</widget>
21198
 
-<connections>
21199
 
-    <connection>
21200
 
-        <sender>buttonOk</sender>
21201
 
-        <signal>clicked()</signal>
21202
 
-        <receiver>SocketOptionsDlg</receiver>
21203
 
-        <slot>accept()</slot>
21204
 
-    </connection>
21205
 
-    <connection>
21206
 
-        <sender>buttonCancel</sender>
21207
 
-        <signal>clicked()</signal>
21208
 
-        <receiver>SocketOptionsDlg</receiver>
21209
 
-        <slot>reject()</slot>
21210
 
-    </connection>
21211
 
-    <connection>
21212
 
-        <sender>SO_RCVLOWATChk</sender>
21213
 
-        <signal>toggled(bool)</signal>
21214
 
-        <receiver>SO_RCVLOWATSpin</receiver>
21215
 
-        <slot>setEnabled(bool)</slot>
21216
 
-    </connection>
21217
 
-    <connection>
21218
 
-        <sender>SO_SNDLOWATChk</sender>
21219
 
-        <signal>toggled(bool)</signal>
21220
 
-        <receiver>SO_SNDLOWATSpin</receiver>
21221
 
-        <slot>setEnabled(bool)</slot>
21222
 
-    </connection>
21223
 
-    <connection>
21224
 
-        <sender>SO_RCVBUFChk</sender>
21225
 
-        <signal>toggled(bool)</signal>
21226
 
-        <receiver>SO_RCVBUFSpin</receiver>
21227
 
-        <slot>setEnabled(bool)</slot>
21228
 
-    </connection>
21229
 
-    <connection>
21230
 
-        <sender>SO_SNDBUFChk</sender>
21231
 
-        <signal>toggled(bool)</signal>
21232
 
-        <receiver>SO_SNDBUFSpin</receiver>
21233
 
-        <slot>setEnabled(bool)</slot>
21234
 
-    </connection>
21235
 
-</connections>
21236
 
-<includes>
21237
 
-    <include location="local" impldecl="in implementation">assert.h</include>
21238
 
-    <include location="local" impldecl="in implementation">sambashare.h</include>
21239
 
-    <include location="local" impldecl="in implementation">socketoptionsdlg.ui.h</include>
21240
 
-</includes>
21241
 
-<forwards>
21242
 
-    <forward>class SambaShare;</forward>
21243
 
-</forwards>
21244
 
-<variables>
21245
 
-    <variable>SambaShare* _share;</variable>
21246
 
-</variables>
21247
 
-<slots>
21248
 
-    <slot>setShare( SambaShare * share )</slot>
21249
 
-    <slot access="private" returnType="bool">getBoolValue( const QString &amp; str, const QString &amp; name )</slot>
21250
 
-    <slot access="private" returnType="int">getIntValue( const QString &amp; str, const QString &amp; name )</slot>
21251
 
-</slots>
21252
 
-</UI>
21253
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/socketoptionsdlg.ui.h
21254
 
===================================================================
21255
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/socketoptionsdlg.ui.h      2011-01-19 17:21:04.000000000 -0500
21256
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
21257
 
@@ -1,117 +0,0 @@
21258
 
-/****************************************************************************
21259
 
-** ui.h extension file, included from the uic-generated form implementation.
21260
 
-**
21261
 
-** If you wish to add, delete or rename slots use Qt Designer which will
21262
 
-** update this file, preserving your code. Create an init() slot in place of
21263
 
-** a constructor, and a destroy() slot in place of a destructor.
21264
 
-*****************************************************************************/
21265
 
-
21266
 
-/******************************************************************************
21267
 
- *                                                                            *
21268
 
- *  This file is part of KSambaPlugin.                                        *
21269
 
- *                                                                            *
21270
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify      *
21271
 
- *  it under the terms of the GNU General Public License as published by      *
21272
 
- *  the Free Software Foundation; either version 2 of the License, or         *
21273
 
- *  (at your option) any later version.                                       *
21274
 
- *                                                                            *
21275
 
- *  KSambaPlugin is distributed in the hope that it will be useful,           *
21276
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
21277
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
21278
 
- *  GNU General Public License for more details.                              *
21279
 
- *                                                                            *
21280
 
- *  You should have received a copy of the GNU General Public License         *
21281
 
- *  along with KSambaPlugin; if not, write to the Free Software                     *
21282
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
21283
 
- *                                                                            *
21284
 
- ******************************************************************************/
21285
 
-
21286
 
-#ifndef KCM_SAMBACONF_SOCKETOPTIONSDLG_UI_H
21287
 
-#define KCM_SAMBACONF_SOCKETOPTIONSDLG_UI_H
21288
 
-
21289
 
-void SocketOptionsDlg::setShare( SambaShare * share )
21290
 
-{
21291
 
-    assert(share);
21292
 
-    
21293
 
-    _share = share;
21294
 
-    
21295
 
-    QString s = _share->getValue("socket options");
21296
 
-    
21297
 
-    s = s.simplified();
21298
 
-    
21299
 
-    // The string s has now the form e.g. :
21300
 
-    // "OPTION1=1 OPTION2=0 OPTION3=2234 OPTION4"
21301
 
-    
21302
 
-SO_KEEPALIVEChk->setChecked(getBoolValue( s, "SO_KEEPALIVE") );
21303
 
-SO_REUSEADDRChk->setChecked( getBoolValue( s, "SO_REUSEADDR") );
21304
 
-SO_BROADCASTChk->setChecked( getBoolValue( s, "SO_BROADCAST") );
21305
 
-TCP_NODELAYChk->setChecked( getBoolValue( s, "TCP_NODELAY") );
21306
 
-IPTOS_LOWDELAYChk->setChecked( getBoolValue( s, "IPTOS_LOWDELAY") );
21307
 
-IPTOS_THROUGHPUTChk->setChecked( getBoolValue( s, "IPTOS_THROUGHPUT") );
21308
 
-SO_SNDBUFChk->setChecked( getBoolValue( s, "SO_SNDBUF") );
21309
 
-SO_RCVBUFChk->setChecked( getBoolValue( s, "SO_RCVBUF") );
21310
 
-SO_SNDLOWATChk->setChecked( getBoolValue( s, "SO_SNDLOWAT") );
21311
 
-SO_RCVLOWATChk->setChecked( getBoolValue( s, "SO_RCVLOWAT") );
21312
 
-
21313
 
-SO_SNDBUFSpin->setValue( getIntValue( s, "SO_SNDBUF") );
21314
 
-SO_RCVBUFSpin->setValue( getIntValue( s, "SO_RCVBUF") );
21315
 
-SO_SNDLOWATSpin->setValue( getIntValue( s, "SO_SNDLOWAT") );
21316
 
-SO_RCVLOWATSpin->setValue( getIntValue( s, "SO_RCVLOWAT") );
21317
 
-   
21318
 
-}
21319
 
-
21320
 
-
21321
 
-
21322
 
-bool SocketOptionsDlg::getBoolValue( const QString & str, const QString & name )
21323
 
-{
21324
 
-    QString s = str;
21325
 
-    int i = s.find(name ,0,false);
21326
 
-               
21327
 
-    if (i > -1)
21328
 
-    {
21329
 
-       s = s.remove(0,i+1+QString(name).length());
21330
 
-       if ( s.startsWith("=") )
21331
 
-       {
21332
 
-           s = s.remove(0,1);
21333
 
-           if ( s.startsWith("0"))
21334
 
-               return false;
21335
 
-           else
21336
 
-               return true;
21337
 
-       }
21338
 
-       else
21339
 
-           return true;
21340
 
-    }
21341
 
-    
21342
 
-    return false;
21343
 
-}
21344
 
-
21345
 
-int SocketOptionsDlg::getIntValue( const QString & str, const QString & name )
21346
 
-{
21347
 
-    QString s = str;
21348
 
-    int i = s.find(name ,0,false);
21349
 
-               
21350
 
-    if (i > -1)
21351
 
-    {
21352
 
-       s = s.remove(0,i+1+QString(name).length());
21353
 
-       if ( s.startsWith("=") )
21354
 
-       {
21355
 
-           s = s.remove(0,1);
21356
 
-           
21357
 
-           i = s.find(" ");
21358
 
-           if (i < 0)
21359
 
-               i = s.length();
21360
 
-           else
21361
 
-               i++;
21362
 
-           
21363
 
-           s = s.left( i );
21364
 
-           
21365
 
-           return s.toInt();
21366
 
-       }
21367
 
-       else
21368
 
-           return 0;
21369
 
-    }
21370
 
-    
21371
 
-    return 0;
21372
 
-}
21373
 
-
21374
 
-#endif // KCM_SAMBACONF_SOCKETOPTIONSDLG_UI_H
21375
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/TODO
21376
 
===================================================================
21377
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/TODO       2011-01-19 17:21:04.000000000 -0500
21378
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
21379
 
@@ -1,2 +0,0 @@
21380
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/userselectdlg.ui
21381
 
===================================================================
21382
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/userselectdlg.ui   2011-01-19 17:21:04.000000000 -0500
21383
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
21384
 
@@ -1,300 +0,0 @@
21385
 
-<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
21386
 
-<class>UserSelectDlg</class>
21387
 
-<widget class="QDialog">
21388
 
-    <property name="name">
21389
 
-        <cstring>UserSelectDlg</cstring>
21390
 
-    </property>
21391
 
-    <property name="geometry">
21392
 
-        <rect>
21393
 
-            <x>0</x>
21394
 
-            <y>0</y>
21395
 
-            <width>485</width>
21396
 
-            <height>269</height>
21397
 
-        </rect>
21398
 
-    </property>
21399
 
-    <property name="windowTitle">
21400
 
-        <string>Select Users</string>
21401
 
-    </property>
21402
 
-    <property name="sizeGripEnabled">
21403
 
-        <bool>true</bool>
21404
 
-    </property>
21405
 
-    <grid>
21406
 
-        <property name="name">
21407
 
-            <cstring>unnamed</cstring>
21408
 
-        </property>
21409
 
-        <property name="margin">
21410
 
-            <number>11</number>
21411
 
-        </property>
21412
 
-        <property name="spacing">
21413
 
-            <number>6</number>
21414
 
-        </property>
21415
 
-        <widget class="QGroupBox" row="0" column="0" rowspan="2" colspan="1">
21416
 
-            <property name="name">
21417
 
-                <cstring>groupBox87</cstring>
21418
 
-            </property>
21419
 
-            <property name="title">
21420
 
-                <string>Select &amp;Users</string>
21421
 
-            </property>
21422
 
-            <vbox>
21423
 
-                <property name="name">
21424
 
-                    <cstring>unnamed</cstring>
21425
 
-                </property>
21426
 
-                <property name="margin">
21427
 
-                    <number>11</number>
21428
 
-                </property>
21429
 
-                <property name="spacing">
21430
 
-                    <number>6</number>
21431
 
-                </property>
21432
 
-                <widget class="QListView">
21433
 
-                    <column>
21434
 
-                        <property name="text">
21435
 
-                            <string>Name</string>
21436
 
-                        </property>
21437
 
-                        <property name="clickable">
21438
 
-                            <bool>true</bool>
21439
 
-                        </property>
21440
 
-                        <property name="resizeable">
21441
 
-                            <bool>true</bool>
21442
 
-                        </property>
21443
 
-                    </column>
21444
 
-                    <column>
21445
 
-                        <property name="text">
21446
 
-                            <string>UID</string>
21447
 
-                        </property>
21448
 
-                        <property name="clickable">
21449
 
-                            <bool>true</bool>
21450
 
-                        </property>
21451
 
-                        <property name="resizeable">
21452
 
-                            <bool>true</bool>
21453
 
-                        </property>
21454
 
-                    </column>
21455
 
-                    <column>
21456
 
-                        <property name="text">
21457
 
-                            <string>GID</string>
21458
 
-                        </property>
21459
 
-                        <property name="clickable">
21460
 
-                            <bool>true</bool>
21461
 
-                        </property>
21462
 
-                        <property name="resizeable">
21463
 
-                            <bool>true</bool>
21464
 
-                        </property>
21465
 
-                    </column>
21466
 
-                    <property name="name">
21467
 
-                        <cstring>userListView</cstring>
21468
 
-                    </property>
21469
 
-                    <property name="selectionMode">
21470
 
-                        <enum>Extended</enum>
21471
 
-                    </property>
21472
 
-                </widget>
21473
 
-            </vbox>
21474
 
-        </widget>
21475
 
-        <widget class="QButtonGroup" row="0" column="1">
21476
 
-            <property name="name">
21477
 
-                <cstring>accessBtnGrp</cstring>
21478
 
-            </property>
21479
 
-            <property name="sizePolicy">
21480
 
-                <sizepolicy>
21481
 
-                    <hsizetype>0</hsizetype>
21482
 
-                    <vsizetype>5</vsizetype>
21483
 
-                    <horstretch>0</horstretch>
21484
 
-                    <verstretch>0</verstretch>
21485
 
-                </sizepolicy>
21486
 
-            </property>
21487
 
-            <property name="title">
21488
 
-                <string>Acc&amp;ess</string>
21489
 
-            </property>
21490
 
-            <vbox>
21491
 
-                <property name="name">
21492
 
-                    <cstring>unnamed</cstring>
21493
 
-                </property>
21494
 
-                <property name="margin">
21495
 
-                    <number>11</number>
21496
 
-                </property>
21497
 
-                <property name="spacing">
21498
 
-                    <number>6</number>
21499
 
-                </property>
21500
 
-                <widget class="QRadioButton">
21501
 
-                    <property name="name">
21502
 
-                        <cstring>defaultRadio</cstring>
21503
 
-                    </property>
21504
 
-                    <property name="text">
21505
 
-                        <string>&amp;Default</string>
21506
 
-                    </property>
21507
 
-                    <property name="accel">
21508
 
-                        <number>8388676</number>
21509
 
-                    </property>
21510
 
-                    <property name="checked">
21511
 
-                        <bool>true</bool>
21512
 
-                    </property>
21513
 
-                </widget>
21514
 
-                <widget class="QRadioButton">
21515
 
-                    <property name="name">
21516
 
-                        <cstring>readRadio</cstring>
21517
 
-                    </property>
21518
 
-                    <property name="text">
21519
 
-                        <string>&amp;Read access</string>
21520
 
-                    </property>
21521
 
-                    <property name="accel">
21522
 
-                        <number>8388690</number>
21523
 
-                    </property>
21524
 
-                </widget>
21525
 
-                <widget class="QRadioButton">
21526
 
-                    <property name="name">
21527
 
-                        <cstring>writeRadio</cstring>
21528
 
-                    </property>
21529
 
-                    <property name="text">
21530
 
-                        <string>&amp;Write access</string>
21531
 
-                    </property>
21532
 
-                    <property name="accel">
21533
 
-                        <number>8388695</number>
21534
 
-                    </property>
21535
 
-                </widget>
21536
 
-                <widget class="QRadioButton">
21537
 
-                    <property name="name">
21538
 
-                        <cstring>adminRadio</cstring>
21539
 
-                    </property>
21540
 
-                    <property name="text">
21541
 
-                        <string>&amp;Admin access</string>
21542
 
-                    </property>
21543
 
-                    <property name="accel">
21544
 
-                        <number>8388673</number>
21545
 
-                    </property>
21546
 
-                </widget>
21547
 
-                <widget class="QRadioButton">
21548
 
-                    <property name="name">
21549
 
-                        <cstring>noAccessRadio</cstring>
21550
 
-                    </property>
21551
 
-                    <property name="text">
21552
 
-                        <string>&amp;No access at all</string>
21553
 
-                    </property>
21554
 
-                    <property name="accel">
21555
 
-                        <number>8388686</number>
21556
 
-                    </property>
21557
 
-                </widget>
21558
 
-            </vbox>
21559
 
-        </widget>
21560
 
-        <spacer row="1" column="1">
21561
 
-            <property name="name">
21562
 
-                <cstring>spacer90</cstring>
21563
 
-            </property>
21564
 
-            <property name="orientation">
21565
 
-                <enum>Qt::Vertical</enum>
21566
 
-            </property>
21567
 
-            <property name="sizeType">
21568
 
-                <enum>Expanding</enum>
21569
 
-            </property>
21570
 
-            <property name="sizeHint">
21571
 
-                <size>
21572
 
-                    <width>20</width>
21573
 
-                    <height>50</height>
21574
 
-                </size>
21575
 
-            </property>
21576
 
-        </spacer>
21577
 
-        <widget class="QFrame" row="2" column="0" rowspan="1" colspan="2">
21578
 
-            <property name="name">
21579
 
-                <cstring>frame16</cstring>
21580
 
-            </property>
21581
 
-            <property name="frameShape">
21582
 
-                <enum>HLine</enum>
21583
 
-            </property>
21584
 
-            <property name="frameShadow">
21585
 
-                <enum>Raised</enum>
21586
 
-            </property>
21587
 
-        </widget>
21588
 
-        <widget class="QLayoutWidget" row="3" column="0" rowspan="1" colspan="2">
21589
 
-            <property name="name">
21590
 
-                <cstring>Layout1</cstring>
21591
 
-            </property>
21592
 
-            <hbox>
21593
 
-                <property name="name">
21594
 
-                    <cstring>unnamed</cstring>
21595
 
-                </property>
21596
 
-                <property name="margin">
21597
 
-                    <number>0</number>
21598
 
-                </property>
21599
 
-                <property name="spacing">
21600
 
-                    <number>6</number>
21601
 
-                </property>
21602
 
-                <spacer>
21603
 
-                    <property name="name">
21604
 
-                        <cstring>Qt::Horizontal Spacing2</cstring>
21605
 
-                    </property>
21606
 
-                    <property name="orientation">
21607
 
-                        <enum>Qt::Horizontal</enum>
21608
 
-                    </property>
21609
 
-                    <property name="sizeType">
21610
 
-                        <enum>Expanding</enum>
21611
 
-                    </property>
21612
 
-                    <property name="sizeHint">
21613
 
-                        <size>
21614
 
-                            <width>285</width>
21615
 
-                            <height>20</height>
21616
 
-                        </size>
21617
 
-                    </property>
21618
 
-                </spacer>
21619
 
-                <widget class="QPushButton">
21620
 
-                    <property name="name">
21621
 
-                        <cstring>buttonOk</cstring>
21622
 
-                    </property>
21623
 
-                    <property name="text">
21624
 
-                        <string>&amp;OK</string>
21625
 
-                    </property>
21626
 
-                    <property name="accel">
21627
 
-                        <number>0</number>
21628
 
-                    </property>
21629
 
-                    <property name="autoDefault">
21630
 
-                        <bool>true</bool>
21631
 
-                    </property>
21632
 
-                    <property name="default">
21633
 
-                        <bool>true</bool>
21634
 
-                    </property>
21635
 
-                </widget>
21636
 
-                <widget class="QPushButton">
21637
 
-                    <property name="name">
21638
 
-                        <cstring>buttonCancel</cstring>
21639
 
-                    </property>
21640
 
-                    <property name="text">
21641
 
-                        <string>&amp;Cancel</string>
21642
 
-                    </property>
21643
 
-                    <property name="accel">
21644
 
-                        <number>0</number>
21645
 
-                    </property>
21646
 
-                    <property name="autoDefault">
21647
 
-                        <bool>true</bool>
21648
 
-                    </property>
21649
 
-                </widget>
21650
 
-            </hbox>
21651
 
-        </widget>
21652
 
-    </grid>
21653
 
-</widget>
21654
 
-<connections>
21655
 
-    <connection>
21656
 
-        <sender>buttonOk</sender>
21657
 
-        <signal>clicked()</signal>
21658
 
-        <receiver>UserSelectDlg</receiver>
21659
 
-        <slot>accept()</slot>
21660
 
-    </connection>
21661
 
-    <connection>
21662
 
-        <sender>buttonCancel</sender>
21663
 
-        <signal>clicked()</signal>
21664
 
-        <receiver>UserSelectDlg</receiver>
21665
 
-        <slot>reject()</slot>
21666
 
-    </connection>
21667
 
-</connections>
21668
 
-<includes>
21669
 
-    <include location="local" impldecl="in declaration">sambashare.h</include>
21670
 
-    <include location="local" impldecl="in implementation">smbpasswdfile.h</include>
21671
 
-    <include location="local" impldecl="in implementation">kurl.h</include>
21672
 
-    <include location="local" impldecl="in implementation">userselectdlg.ui.h</include>
21673
 
-</includes>
21674
 
-<variables>
21675
 
-    <variable>QStringList selectedUsers;</variable>
21676
 
-    <variable>int access;</variable>
21677
 
-</variables>
21678
 
-<slots>
21679
 
-    <slot>init( const QStringList &amp; specifiedUsers, SambaShare * share )</slot>
21680
 
-    <slot access="protected">accept()</slot>
21681
 
-    <slot specifier="non virtual" returnType="QStringList">getSelectedUsers()</slot>
21682
 
-    <slot specifier="non virtual" returnType="int">getAccess()</slot>
21683
 
-</slots>
21684
 
-</UI>
21685
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/userselectdlg.ui.h
21686
 
===================================================================
21687
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/userselectdlg.ui.h 2011-01-19 17:21:04.000000000 -0500
21688
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
21689
 
@@ -1,54 +0,0 @@
21690
 
-/****************************************************************************
21691
 
-** ui.h extension file, included from the uic-generated form implementation.
21692
 
-**
21693
 
-** If you wish to add, delete or rename functions or slots use
21694
 
-** Qt Designer which will update this file, preserving your code. Create an
21695
 
-** init() function in place of a constructor, and a destroy() function in
21696
 
-** place of a destructor.
21697
 
-*****************************************************************************/
21698
 
-
21699
 
-#ifndef KCM_SAMBACONF_USERSELECTDLG_UI_H
21700
 
-#define KCM_SAMBACONF_USERSELECTDLG_UI_H
21701
 
-
21702
 
-void UserSelectDlg::init(const QStringList & specifiedUsers, SambaShare* share)
21703
 
-{
21704
 
-  SmbPasswdFile passwd( KUrl(share->getValue("smb passwd file",true,true)) );
21705
 
-  SambaUserList sambaList = passwd.getSambaUserList();
21706
 
-
21707
 
-  for (SambaUser * user = sambaList.first(); user; user = sambaList.next() )
21708
 
-  {
21709
 
-    if (! specifiedUsers.contains(user->name))
21710
 
-        new Q3ListViewItem(userListView, user->name, QString::number(user->uid), QString::number(user->gid));  
21711
 
-  }
21712
 
-
21713
 
-}
21714
 
-
21715
 
-
21716
 
-void UserSelectDlg::accept()
21717
 
-{
21718
 
-  Q3ListViewItemIterator it( userListView);
21719
 
-
21720
 
-  for ( ; it.current(); ++it ) {
21721
 
-      if ( it.current()->isSelected() )
21722
 
-         selectedUsers << it.current()->text(0);
21723
 
-  }    
21724
 
-  
21725
 
-  access = accessBtnGrp->id(accessBtnGrp->selected());
21726
 
-  
21727
 
-  QDialog::accept();
21728
 
-
21729
 
-}
21730
 
-
21731
 
-
21732
 
-QStringList UserSelectDlg::getSelectedUsers()
21733
 
-{
21734
 
-    return selectedUsers;
21735
 
-}
21736
 
-
21737
 
-
21738
 
-int UserSelectDlg::getAccess()
21739
 
-{
21740
 
-    return access;
21741
 
-}
21742
 
-
21743
 
-#endif // KCM_SAMBACONF_USERSELECTDLG_UI_H
21744
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/usertabimpl.cpp
21745
 
===================================================================
21746
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/usertabimpl.cpp    2011-01-19 17:21:04.000000000 -0500
21747
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
21748
 
@@ -1,418 +0,0 @@
21749
 
-/***************************************************************************
21750
 
-                          usertabimpl.cpp  -  description
21751
 
-                             -------------------
21752
 
-    begin                : Mon Jul 15 2002
21753
 
-    copyright            : (C) 2002 by Jan Sch�er
21754
 
-    email                : janschaefer@users.sourceforge.net
21755
 
- ***************************************************************************/
21756
 
-
21757
 
-/******************************************************************************
21758
 
- *                                                                            *
21759
 
- *  This file is part of KSambaPlugin.                                        *
21760
 
- *                                                                            *
21761
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify      *
21762
 
- *  it under the terms of the GNU General Public License as published by      *
21763
 
- *  the Free Software Foundation; either version 2 of the License, or         *
21764
 
- *  (at your option) any later version.                                       *
21765
 
- *                                                                            *
21766
 
- *  KSambaPlugin is distributed in the hope that it will be useful,           *
21767
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
21768
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
21769
 
- *  GNU General Public License for more details.                              *
21770
 
- *                                                                            *
21771
 
- *  You should have received a copy of the GNU General Public License         *
21772
 
- *  along with KSambaPlugin; if not, write to the Free Software                     *
21773
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
21774
 
- *                                                                            *
21775
 
- ******************************************************************************/
21776
 
-
21777
 
-#include <unistd.h> // for getuid
21778
 
-
21779
 
-#include <qcombobox.h>
21780
 
-#include <qstringlist.h>
21781
 
-//Added by qt3to4:
21782
 
-#include <Q3MemArray>
21783
 
-#include <passwd.h>
21784
 
-#include <qregexp.h>
21785
 
-#include <q3table.h>
21786
 
-#include <qcheckbox.h>
21787
 
-#include <qpushbutton.h>
21788
 
-#include <qlineedit.h>
21789
 
-
21790
 
-#include <k3listview.h>
21791
 
-#include <klocale.h>
21792
 
-#include <kdebug.h>
21793
 
-#include <kiconloader.h>
21794
 
-#include <kinputdialog.h>
21795
 
-
21796
 
-#include "usertabimpl.h"
21797
 
-#include "sambashare.h"
21798
 
-#include "smbpasswdfile.h"
21799
 
-#include "groupselectdlg.h"
21800
 
-#include "userselectdlg.h"
21801
 
-
21802
 
-#include <assert.h>
21803
 
-
21804
 
-/**
21805
 
- * @pre share is not null
21806
 
- * @post _share = share
21807
 
- */
21808
 
-UserTabImpl::UserTabImpl(QWidget* parent, SambaShare* share)
21809
 
-  : UserTab(parent)
21810
 
-{
21811
 
-  if (share == 0L) {
21812
 
-    kWarning() << "WARNING: UserTabImpl constructor: share parameter is null!";
21813
 
-    return;
21814
 
-  }
21815
 
-
21816
 
-  _share = share;
21817
 
-  userTable->setLeftMargin(0);
21818
 
- // userTable->setColumnStretchable ( 3, true );
21819
 
-
21820
 
-}
21821
 
-
21822
 
-UserTabImpl::~UserTabImpl()
21823
 
-{
21824
 
-}
21825
 
-
21826
 
-void UserTabImpl::load()
21827
 
-{
21828
 
-  if (_share == 0L)
21829
 
-    return;
21830
 
-
21831
 
-  loadForceCombos();
21832
 
-  loadUsers(_share->getValue("valid users"),
21833
 
-            _share->getValue("read list"),
21834
 
-            _share->getValue("write list"),
21835
 
-            _share->getValue("admin users"),
21836
 
-            _share->getValue("invalid users"));
21837
 
-}
21838
 
-
21839
 
-void UserTabImpl::loadUsers(const QString & validUsersStr,
21840
 
-                            const QString & readListStr,
21841
 
-                            const QString & writeListStr,
21842
 
-                            const QString & adminUsersStr,
21843
 
-                            const QString & invalidUsersStr)
21844
 
-{
21845
 
-  userTable->setNumRows(0);
21846
 
-  QStringList validUsers = QStringList::split(QRegExp("[,\\s]+"),validUsersStr);
21847
 
-  QStringList readList = QStringList::split(QRegExp("[,\\s]+"),readListStr);
21848
 
-  QStringList writeList = QStringList::split(QRegExp("[,\\s]+"),writeListStr);
21849
 
-  QStringList adminUsers = QStringList::split(QRegExp("[,\\s]+"),adminUsersStr);
21850
 
-  QStringList invalidUsers = QStringList::split(QRegExp("[,\\s]+"),invalidUsersStr);
21851
 
-
21852
 
-  // if the valid users list contains no entries
21853
 
-  // then all users are allowed, except those that are
21854
 
-  // in the invalid list
21855
 
-  if (validUsers.empty())
21856
 
-    allUnspecifiedUsersCombo->setCurrentItem(0);
21857
 
-  else
21858
 
-    allUnspecifiedUsersCombo->setCurrentItem(1);
21859
 
-
21860
 
-  removeDuplicates(validUsers,readList,writeList,adminUsers,invalidUsers);
21861
 
-
21862
 
-  addListToUserTable(adminUsers,3);
21863
 
-  addListToUserTable(writeList,2);
21864
 
-  addListToUserTable(readList,1);
21865
 
-  addListToUserTable(validUsers,0);
21866
 
-  addListToUserTable(invalidUsers,4);
21867
 
-
21868
 
-}
21869
 
-
21870
 
-
21871
 
-void UserTabImpl::loadForceCombos() {
21872
 
-  forceUserCombo->insertItem("");
21873
 
-  forceGroupCombo->insertItem("");
21874
 
-
21875
 
-  QStringList unixGroups = getUnixGroups();
21876
 
-
21877
 
-  forceUserCombo->insertStringList( getUnixUsers() );
21878
 
-  forceGroupCombo->insertStringList( unixGroups );
21879
 
-
21880
 
-  setComboToString(forceUserCombo, _share->getValue("force user"));
21881
 
-  setComboToString(forceGroupCombo, _share->getValue("force group"));
21882
 
-}
21883
 
-
21884
 
-/**
21885
 
- * Remove all duplicates of the different list, so that
21886
 
- * all lists are disjunct.
21887
 
- */
21888
 
-void UserTabImpl::removeDuplicates( QStringList & validUsers, QStringList & readList,
21889
 
-                       QStringList & writeList, QStringList & adminUsers,
21890
 
-                       QStringList & invalidUsers)
21891
 
-{
21892
 
-  removeAll(adminUsers, writeList);
21893
 
-
21894
 
-  removeAll(writeList, readList);
21895
 
-  removeAll(adminUsers, readList);
21896
 
-
21897
 
-  removeAll(readList, validUsers);
21898
 
-  removeAll(writeList, validUsers);
21899
 
-  removeAll(adminUsers, validUsers);
21900
 
-
21901
 
-  removeAll(invalidUsers, validUsers);
21902
 
-  removeAll(invalidUsers, readList);
21903
 
-  removeAll(invalidUsers, writeList);
21904
 
-  removeAll(invalidUsers, adminUsers);
21905
 
-}
21906
 
-
21907
 
-/**
21908
 
- * Remove all entries of entryList from the fromList
21909
 
- */
21910
 
-void UserTabImpl::removeAll(QStringList & entryList, QStringList & fromList) {
21911
 
-  for (QStringList::Iterator it = entryList.begin(); it != entryList.end(); ++it) {
21912
 
-    fromList.removeAll(*it);
21913
 
-  }
21914
 
-}
21915
 
-
21916
 
-
21917
 
-void UserTabImpl::addListToUserTable(const QStringList & list, int accessRight) {
21918
 
-
21919
 
-  for (QStringList::ConstIterator it = list.begin(); it != list.end(); ++it) {
21920
 
-    addUserToUserTable(*it,accessRight);
21921
 
-  }
21922
 
-}
21923
 
-
21924
 
-void UserTabImpl::addUserToUserTable(const QString & user, int accessRight) {
21925
 
-    int row = userTable->numRows();
21926
 
-    userTable->setNumRows(row+1);
21927
 
-    setAllowedUser(row, user);
21928
 
-
21929
 
-    Q3ComboTableItem* comboItem = static_cast<Q3ComboTableItem*>(userTable->item(row,3));
21930
 
-    comboItem->setCurrentItem(accessRight);
21931
 
-}
21932
 
-
21933
 
-QString UserTabImpl::removeQuotationMarks(const QString & name) {
21934
 
-    QString result = name;
21935
 
-    if (name.left(1) == "\"") {
21936
 
-        result = result.left(result.length()-1);
21937
 
-        result = result.right(result.length()-1);
21938
 
-    }
21939
 
-    return result;
21940
 
-}
21941
 
-
21942
 
-QString UserTabImpl::removeGroupTag(const QString & name) {
21943
 
-  QString result = name;
21944
 
-
21945
 
-
21946
 
-  if (nameIsGroup(result)) {
21947
 
-    result = result.right(result.length()-1);
21948
 
-    if (nameIsGroup(result))
21949
 
-      result = result.right(result.length()-1);
21950
 
-  }
21951
 
-
21952
 
-  return result;
21953
 
-}
21954
 
-
21955
 
-
21956
 
-bool UserTabImpl::nameIsGroup(const QString & name) {
21957
 
-  QString quoteless = removeQuotationMarks(name);
21958
 
-  if (quoteless.left(1) == "@" ||
21959
 
-      quoteless.left(1) == "+" ||
21960
 
-      quoteless.left(1) == "&")
21961
 
-      return true;
21962
 
-
21963
 
-  return false;
21964
 
-
21965
 
-}
21966
 
-
21967
 
-void UserTabImpl::setAllowedUser(int i, const QString & name)
21968
 
-{
21969
 
-    QStringList accessRights;
21970
 
-    accessRights << i18n("Default") << i18n("Read only") << i18n("Writeable") << i18n("Admin") << i18n("Reject");
21971
 
-
21972
 
-    QString uid;
21973
 
-    QString gid;
21974
 
-
21975
 
-    QString name2 = name;
21976
 
-
21977
 
-    if (nameIsGroup(name2))
21978
 
-    {
21979
 
-      QString name3 = removeGroupTag(name2);
21980
 
-      uid = "";
21981
 
-      gid = QString::number(getGroupGID(name3));
21982
 
-      _specifiedGroups << name3;
21983
 
-    }
21984
 
-    else
21985
 
-    {
21986
 
-      uid = QString::number(getUserUID(name2));
21987
 
-      gid = QString::number(getUserGID(name2));
21988
 
-      _specifiedUsers << name2;
21989
 
-    }
21990
 
-
21991
 
-    if (name2.contains(' '))
21992
 
-        name2 = "\""+name2+"\"";
21993
 
-
21994
 
-
21995
 
-    Q3TableItem* item = new Q3TableItem( userTable,Q3TableItem::Never, name2 );
21996
 
-    userTable->setItem(i,0,item);
21997
 
-
21998
 
-    item = new Q3TableItem( userTable,Q3TableItem::Never, uid );
21999
 
-    userTable->setItem(i,1,item);
22000
 
-
22001
 
-    item = new Q3TableItem( userTable,Q3TableItem::Never, gid );
22002
 
-    userTable->setItem(i,2,item);
22003
 
-
22004
 
-    Q3ComboTableItem* comboItem = new Q3ComboTableItem( userTable,accessRights);
22005
 
-    userTable->setItem(i,3,comboItem);
22006
 
-
22007
 
-}
22008
 
-
22009
 
-void UserTabImpl::addUserBtnClicked()
22010
 
-{
22011
 
-  if (getuid() == 0) {
22012
 
-    UserSelectDlg *dlg = new UserSelectDlg();
22013
 
-    dlg->init(_specifiedUsers,_share);
22014
 
-
22015
 
-    QStringList selectedUsers = dlg->getSelectedUsers();
22016
 
-
22017
 
-    if (dlg->exec()) {
22018
 
-        for (QStringList::Iterator it = selectedUsers.begin(); it != selectedUsers.end(); ++it)
22019
 
-        {
22020
 
-            addUserToUserTable(*it,dlg->getAccess());
22021
 
-        }
22022
 
-    }
22023
 
-
22024
 
-    delete dlg;
22025
 
-  } else {
22026
 
-    bool ok;
22027
 
-    QString name = KInputDialog::getText(i18n("Add User"),i18n("Name:"),
22028
 
-                                         QString(), &ok );
22029
 
-
22030
 
-    if (ok)
22031
 
-        addUserToUserTable(name,0);
22032
 
-  }
22033
 
-}
22034
 
-
22035
 
-void UserTabImpl::removeSelectedBtnClicked()
22036
 
-{
22037
 
-  Q3MemArray<int>rows;
22038
 
-
22039
 
-  int j=0;
22040
 
-
22041
 
-  for (int i=0; i<userTable->numRows(); i++)
22042
 
-  {
22043
 
-    if (userTable->isRowSelected(i))
22044
 
-    {
22045
 
-      if (nameIsGroup(userTable->item(i,0)->text())) {
22046
 
-        _specifiedGroups.removeAll( removeGroupTag(removeQuotationMarks(userTable->item(i,0)->text())));
22047
 
-      } else
22048
 
-        _specifiedUsers.removeAll(userTable->item(i,0)->text());
22049
 
-
22050
 
-      rows.resize(j+1);
22051
 
-      rows[j] = i;
22052
 
-      j++;
22053
 
-    }
22054
 
-  }
22055
 
-
22056
 
-  userTable->removeRows(rows);
22057
 
-}
22058
 
-
22059
 
-
22060
 
-void UserTabImpl::addGroupBtnClicked()
22061
 
-{
22062
 
-  GroupSelectDlg *dlg = new GroupSelectDlg();
22063
 
-  dlg->init(_specifiedGroups);
22064
 
-  QStringList selectedGroups = dlg->getSelectedGroups();
22065
 
-  if (dlg->exec()) {
22066
 
-    for (QStringList::Iterator it = selectedGroups.begin(); it != selectedGroups.end(); ++it)
22067
 
-    {
22068
 
-        kDebug(5009) << "GroupKind: " << dlg->getGroupKind();
22069
 
-        QString name = dlg->getGroupKind() + (*it);
22070
 
-        addUserToUserTable(name,dlg->getAccess());
22071
 
-    }
22072
 
-  }
22073
 
-
22074
 
-  delete dlg;
22075
 
-}
22076
 
-
22077
 
-void UserTabImpl::expertBtnClicked() {
22078
 
-    ExpertUserDlg *dlg = new ExpertUserDlg(this);
22079
 
-    QString validUsersStr;
22080
 
-    QString readListStr;
22081
 
-    QString writeListStr;
22082
 
-    QString adminUsersStr;
22083
 
-    QString invalidUsersStr;
22084
 
-
22085
 
-    saveUsers(validUsersStr,readListStr,writeListStr,adminUsersStr,invalidUsersStr);
22086
 
-
22087
 
-    dlg->validUsersEdit->setText(validUsersStr);
22088
 
-    dlg->readListEdit->setText(readListStr);
22089
 
-    dlg->writeListEdit->setText(writeListStr);
22090
 
-    dlg->adminUsersEdit->setText(adminUsersStr);
22091
 
-    dlg->invalidUsersEdit->setText(invalidUsersStr);
22092
 
-
22093
 
-    if (dlg->exec()) {
22094
 
-        loadUsers(dlg->validUsersEdit->text(),
22095
 
-                  dlg->readListEdit->text(),
22096
 
-                  dlg->writeListEdit->text(),
22097
 
-                  dlg->adminUsersEdit->text(),
22098
 
-                  dlg->invalidUsersEdit->text());
22099
 
-
22100
 
-    }
22101
 
-
22102
 
-    delete dlg;
22103
 
-}
22104
 
-
22105
 
-void UserTabImpl::save()
22106
 
-{
22107
 
-  QString validUsersStr;
22108
 
-  QString readListStr;
22109
 
-  QString writeListStr;
22110
 
-  QString adminUsersStr;
22111
 
-  QString invalidUsersStr;
22112
 
-
22113
 
-  saveUsers(validUsersStr,readListStr,writeListStr,adminUsersStr,invalidUsersStr);
22114
 
-
22115
 
-  _share->setValue("valid users",validUsersStr);
22116
 
-  _share->setValue("read list", readListStr);
22117
 
-  _share->setValue("write list", writeListStr);
22118
 
-  _share->setValue("admin users", adminUsersStr);
22119
 
-  _share->setValue("invalid users", invalidUsersStr);
22120
 
-
22121
 
-  _share->setValue("force user",forceUserCombo->currentText( ) );
22122
 
-  _share->setValue("force group",forceGroupCombo->currentText( ) );
22123
 
-}
22124
 
-
22125
 
-void UserTabImpl::saveUsers(QString & validUsersStr,
22126
 
-                            QString & readListStr,
22127
 
-                            QString & writeListStr,
22128
 
-                            QString & adminUsersStr,
22129
 
-                            QString & invalidUsersStr)
22130
 
-{
22131
 
-  QStringList validUsers;
22132
 
-  QStringList writeList;
22133
 
-  QStringList readList;
22134
 
-  QStringList adminUsers;
22135
 
-  QStringList invalidUsers;
22136
 
-
22137
 
-  bool allowAllUsers = allUnspecifiedUsersCombo->currentItem() == 0;
22138
 
-
22139
 
-  for (int i=0; i<userTable->numRows(); i++)
22140
 
-  {
22141
 
-    Q3TableItem* item = userTable->item(i,0);
22142
 
-    Q3ComboTableItem* comboItem = static_cast<Q3ComboTableItem*>(userTable->item(i,3));
22143
 
-
22144
 
-    if (! allowAllUsers && comboItem->currentItem() < 4)
22145
 
-       validUsers.append(item->text());
22146
 
-
22147
 
-    switch (comboItem->currentItem())
22148
 
-    {
22149
 
-      case 0 : break;
22150
 
-      case 1 : readList.append(item->text());break;
22151
 
-      case 2 : writeList.append(item->text());break;
22152
 
-      case 3 : adminUsers.append(item->text());break;
22153
 
-      case 4 : invalidUsers.append(item->text());break;
22154
 
-    }
22155
 
-  }
22156
 
-
22157
 
-  validUsersStr = validUsers.join(",");
22158
 
-  readListStr = readList.join(",");
22159
 
-  writeListStr = writeList.join(",");
22160
 
-  adminUsersStr = adminUsers.join(",");
22161
 
-  invalidUsersStr = invalidUsers.join(",");
22162
 
-}
22163
 
-
22164
 
-
22165
 
-
22166
 
-#include "usertabimpl.moc"
22167
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/usertabimpl.h
22168
 
===================================================================
22169
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/usertabimpl.h      2011-01-19 17:21:04.000000000 -0500
22170
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
22171
 
@@ -1,105 +0,0 @@
22172
 
-/***************************************************************************
22173
 
-                          usertabimpl.h  -  description
22174
 
-                             -------------------
22175
 
-    begin                : Mon Jul 15 2002
22176
 
-    copyright            : (C) 2002 by Jan Schäfer
22177
 
-    email                : janschaefer@users.sourceforge.net
22178
 
- ***************************************************************************/
22179
 
-
22180
 
-/******************************************************************************
22181
 
- *                                                                            *
22182
 
- *  This file is part of KSambaPlugin.                                        *
22183
 
- *                                                                            *
22184
 
- *  KSambaPlugin is free software; you can redistribute it and/or modify      *
22185
 
- *  it under the terms of the GNU General Public License as published by      *
22186
 
- *  the Free Software Foundation; either version 2 of the License, or         *
22187
 
- *  (at your option) any later version.                                       *
22188
 
- *                                                                            *
22189
 
- *  KSambaPlugin is distributed in the hope that it will be useful,           *
22190
 
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
22191
 
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
22192
 
- *  GNU General Public License for more details.                              *
22193
 
- *                                                                            *
22194
 
- *  You should have received a copy of the GNU General Public License         *
22195
 
- *  along with KSambaPlugin; if not, write to the Free Software                     *
22196
 
- *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
22197
 
- *                                                                            *
22198
 
- ******************************************************************************/
22199
 
-
22200
 
-#ifndef USERTABIMPL_H
22201
 
-#define USERTABIMPL_H
22202
 
-
22203
 
-#include "usertab.h"
22204
 
-#include "common.h"
22205
 
-#include "qstringlist.h"
22206
 
-#include "ui_expertuserdlg.h"
22207
 
-
22208
 
-/**
22209
 
-  *@author Jan Schäfer
22210
 
-  */
22211
 
-
22212
 
-class SambaShare;
22213
 
-
22214
 
-
22215
 
-class ExpertUserDlg : public QDialog, public Ui::ExpertUserDlg
22216
 
-{
22217
 
-Q_OBJECT
22218
 
-public:
22219
 
-    ExpertUserDlg( QWidget *parent ): QDialog(parent) {
22220
 
-       setupUi(this);
22221
 
-    }
22222
 
-};
22223
 
-
22224
 
-/**
22225
 
- * Implements the usertab.ui interface
22226
 
- * A Widget where you can add SambaUsers to the valid users, rejected users,
22227
 
- * write list, read list and admin list parameters of the smb.conf file
22228
 
- **/
22229
 
-class UserTabImpl : public UserTab
22230
 
-{
22231
 
-Q_OBJECT
22232
 
-public:
22233
 
-       UserTabImpl(QWidget* parent, SambaShare* share);
22234
 
-       ~UserTabImpl();
22235
 
-
22236
 
-  void load();
22237
 
-  void save();
22238
 
-private:
22239
 
-  SambaShare* _share;
22240
 
-  QStringList _specifiedUsers;
22241
 
-  QStringList _specifiedGroups;
22242
 
-
22243
 
-  void setAllowedUser(int, const QString &);
22244
 
-  void removeDuplicates( QStringList & validUsers, QStringList & readList,
22245
 
-                         QStringList & writeList, QStringList & adminUsers,
22246
 
-                         QStringList & invalidUsers);
22247
 
-
22248
 
-  void removeAll(QStringList & entryList, QStringList & fromList);
22249
 
-  void addListToUserTable(const QStringList & list, int accessRight);
22250
 
-  void loadForceCombos();
22251
 
-
22252
 
-  void loadUsers(const QString & validUsersStr,
22253
 
-                 const QString & readListStr,
22254
 
-                 const QString & writeListStr,
22255
 
-                 const QString & adminUsersStr,
22256
 
-                 const QString & invalidUsersStr);
22257
 
-
22258
 
-  void saveUsers(QString & validUsersStr,
22259
 
-                 QString & readListStr,
22260
 
-                 QString & writeListStr,
22261
 
-                 QString & adminUsersStr,
22262
 
-                 QString & invalidUsersStr);
22263
 
-
22264
 
-  bool nameIsGroup(const QString & name);
22265
 
-  QString removeGroupTag(const QString & name);
22266
 
-  QString removeQuotationMarks(const QString & name);
22267
 
-  void addUserToUserTable(const QString & user, int accessRight);
22268
 
-
22269
 
-protected slots:
22270
 
-  virtual void addUserBtnClicked();
22271
 
-  virtual void addGroupBtnClicked();
22272
 
-  virtual void removeSelectedBtnClicked();
22273
 
-  virtual void expertBtnClicked();
22274
 
-};
22275
 
-
22276
 
-#endif
22277
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/usertab.ui
22278
 
===================================================================
22279
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/usertab.ui 2011-01-19 17:21:04.000000000 -0500
22280
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
22281
 
@@ -1,351 +0,0 @@
22282
 
-<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
22283
 
-<class>UserTab</class>
22284
 
-<widget class="QWidget">
22285
 
-    <property name="name">
22286
 
-        <cstring>UserTab</cstring>
22287
 
-    </property>
22288
 
-    <property name="geometry">
22289
 
-        <rect>
22290
 
-            <x>0</x>
22291
 
-            <y>0</y>
22292
 
-            <width>548</width>
22293
 
-            <height>396</height>
22294
 
-        </rect>
22295
 
-    </property>
22296
 
-    <property name="windowTitle">
22297
 
-        <string>Users</string>
22298
 
-    </property>
22299
 
-    <vbox>
22300
 
-        <property name="name">
22301
 
-            <cstring>unnamed</cstring>
22302
 
-        </property>
22303
 
-        <widget class="QGroupBox">
22304
 
-            <property name="name">
22305
 
-                <cstring>groupBox53</cstring>
22306
 
-            </property>
22307
 
-            <property name="title">
22308
 
-                <string>All U&amp;nspecified Users</string>
22309
 
-            </property>
22310
 
-            <hbox>
22311
 
-                <property name="name">
22312
 
-                    <cstring>unnamed</cstring>
22313
 
-                </property>
22314
 
-                <widget class="QComboBox">
22315
 
-                    <item>
22316
 
-                        <property name="text">
22317
 
-                            <string>Allow</string>
22318
 
-                        </property>
22319
 
-                    </item>
22320
 
-                    <item>
22321
 
-                        <property name="text">
22322
 
-                            <string>Reject</string>
22323
 
-                        </property>
22324
 
-                    </item>
22325
 
-                    <property name="name">
22326
 
-                        <cstring>allUnspecifiedUsersCombo</cstring>
22327
 
-                    </property>
22328
 
-                </widget>
22329
 
-            </hbox>
22330
 
-        </widget>
22331
 
-        <widget class="QGroupBox">
22332
 
-            <property name="name">
22333
 
-                <cstring>groupBox77</cstring>
22334
 
-            </property>
22335
 
-            <property name="sizePolicy">
22336
 
-                <sizepolicy>
22337
 
-                    <hsizetype>7</hsizetype>
22338
 
-                    <vsizetype>7</vsizetype>
22339
 
-                    <horstretch>0</horstretch>
22340
 
-                    <verstretch>0</verstretch>
22341
 
-                </sizepolicy>
22342
 
-            </property>
22343
 
-            <property name="title">
22344
 
-                <string>Spec&amp;ified Users</string>
22345
 
-            </property>
22346
 
-            <grid>
22347
 
-                <property name="name">
22348
 
-                    <cstring>unnamed</cstring>
22349
 
-                </property>
22350
 
-                <widget class="QTable" row="0" column="0" rowspan="5" colspan="1">
22351
 
-                    <column>
22352
 
-                        <property name="text">
22353
 
-                            <string>Name</string>
22354
 
-                        </property>
22355
 
-                    </column>
22356
 
-                    <column>
22357
 
-                        <property name="text">
22358
 
-                            <string>UID</string>
22359
 
-                        </property>
22360
 
-                    </column>
22361
 
-                    <column>
22362
 
-                        <property name="text">
22363
 
-                            <string>GID</string>
22364
 
-                        </property>
22365
 
-                    </column>
22366
 
-                    <column>
22367
 
-                        <property name="text">
22368
 
-                            <string>Access Rights</string>
22369
 
-                        </property>
22370
 
-                    </column>
22371
 
-                    <property name="name">
22372
 
-                        <cstring>userTable</cstring>
22373
 
-                    </property>
22374
 
-                    <property name="sizePolicy">
22375
 
-                        <sizepolicy>
22376
 
-                            <hsizetype>7</hsizetype>
22377
 
-                            <vsizetype>7</vsizetype>
22378
 
-                            <horstretch>100</horstretch>
22379
 
-                            <verstretch>50</verstretch>
22380
 
-                        </sizepolicy>
22381
 
-                    </property>
22382
 
-                    <property name="numRows">
22383
 
-                        <number>0</number>
22384
 
-                    </property>
22385
 
-                    <property name="numCols">
22386
 
-                        <number>4</number>
22387
 
-                    </property>
22388
 
-                    <property name="showGrid">
22389
 
-                        <bool>false</bool>
22390
 
-                    </property>
22391
 
-                    <property name="columnMovingEnabled">
22392
 
-                        <bool>true</bool>
22393
 
-                    </property>
22394
 
-                    <property name="selectionMode">
22395
 
-                        <enum>MultiRow</enum>
22396
 
-                    </property>
22397
 
-                    <property name="focusStyle">
22398
 
-                        <enum>FollowStyle</enum>
22399
 
-                    </property>
22400
 
-                </widget>
22401
 
-                <widget class="QPushButton" row="0" column="1">
22402
 
-                    <property name="name">
22403
 
-                        <cstring>addUserBtn</cstring>
22404
 
-                    </property>
22405
 
-                    <property name="text">
22406
 
-                        <string>A&amp;dd User...</string>
22407
 
-                    </property>
22408
 
-                </widget>
22409
 
-                <widget class="QPushButton" row="4" column="1">
22410
 
-                    <property name="name">
22411
 
-                        <cstring>expertBtn</cstring>
22412
 
-                    </property>
22413
 
-                    <property name="text">
22414
 
-                        <string>E&amp;xpert</string>
22415
 
-                    </property>
22416
 
-                </widget>
22417
 
-                <widget class="QPushButton" row="1" column="1">
22418
 
-                    <property name="name">
22419
 
-                        <cstring>addGroupBtn</cstring>
22420
 
-                    </property>
22421
 
-                    <property name="text">
22422
 
-                        <string>Add &amp;Group...</string>
22423
 
-                    </property>
22424
 
-                </widget>
22425
 
-                <widget class="QPushButton" row="2" column="1">
22426
 
-                    <property name="name">
22427
 
-                        <cstring>removeSelectedBtn</cstring>
22428
 
-                    </property>
22429
 
-                    <property name="text">
22430
 
-                        <string>Remo&amp;ve Selected</string>
22431
 
-                    </property>
22432
 
-                </widget>
22433
 
-                <spacer row="3" column="1">
22434
 
-                    <property name="name">
22435
 
-                        <cstring>spacer88</cstring>
22436
 
-                    </property>
22437
 
-                    <property name="orientation">
22438
 
-                        <enum>Qt::Vertical</enum>
22439
 
-                    </property>
22440
 
-                    <property name="sizeType">
22441
 
-                        <enum>Expanding</enum>
22442
 
-                    </property>
22443
 
-                    <property name="sizeHint">
22444
 
-                        <size>
22445
 
-                            <width>20</width>
22446
 
-                            <height>100</height>
22447
 
-                        </size>
22448
 
-                    </property>
22449
 
-                </spacer>
22450
 
-            </grid>
22451
 
-        </widget>
22452
 
-        <widget class="QGroupBox">
22453
 
-            <property name="name">
22454
 
-                <cstring>groupBox35</cstring>
22455
 
-            </property>
22456
 
-            <property name="sizePolicy">
22457
 
-                <sizepolicy>
22458
 
-                    <hsizetype>1</hsizetype>
22459
 
-                    <vsizetype>1</vsizetype>
22460
 
-                    <horstretch>0</horstretch>
22461
 
-                    <verstretch>0</verstretch>
22462
 
-                </sizepolicy>
22463
 
-            </property>
22464
 
-            <property name="title">
22465
 
-                <string>All Users Should be Forced to the Follo&amp;wing User/Group</string>
22466
 
-            </property>
22467
 
-            <hbox>
22468
 
-                <property name="name">
22469
 
-                    <cstring>unnamed</cstring>
22470
 
-                </property>
22471
 
-                <widget class="QLabel">
22472
 
-                    <property name="name">
22473
 
-                        <cstring>TextLabel12</cstring>
22474
 
-                    </property>
22475
 
-                    <property name="sizePolicy">
22476
 
-                        <sizepolicy>
22477
 
-                            <hsizetype>1</hsizetype>
22478
 
-                            <vsizetype>5</vsizetype>
22479
 
-                            <horstretch>0</horstretch>
22480
 
-                            <verstretch>0</verstretch>
22481
 
-                        </sizepolicy>
22482
 
-                    </property>
22483
 
-                    <property name="text">
22484
 
-                        <string>Forc&amp;e user:</string>
22485
 
-                    </property>
22486
 
-                    <property name="buddy" stdset="0">
22487
 
-                        <cstring>forceUserCombo</cstring>
22488
 
-                    </property>
22489
 
-                </widget>
22490
 
-                <widget class="QComboBox">
22491
 
-                    <property name="name">
22492
 
-                        <cstring>forceUserCombo</cstring>
22493
 
-                    </property>
22494
 
-                    <property name="sizePolicy">
22495
 
-                        <sizepolicy>
22496
 
-                            <hsizetype>7</hsizetype>
22497
 
-                            <vsizetype>0</vsizetype>
22498
 
-                            <horstretch>0</horstretch>
22499
 
-                            <verstretch>0</verstretch>
22500
 
-                        </sizepolicy>
22501
 
-                    </property>
22502
 
-                </widget>
22503
 
-                <widget class="QLabel">
22504
 
-                    <property name="name">
22505
 
-                        <cstring>TextLabel13</cstring>
22506
 
-                    </property>
22507
 
-                    <property name="sizePolicy">
22508
 
-                        <sizepolicy>
22509
 
-                            <hsizetype>1</hsizetype>
22510
 
-                            <vsizetype>5</vsizetype>
22511
 
-                            <horstretch>0</horstretch>
22512
 
-                            <verstretch>0</verstretch>
22513
 
-                        </sizepolicy>
22514
 
-                    </property>
22515
 
-                    <property name="text">
22516
 
-                        <string>Fo&amp;rce group:</string>
22517
 
-                    </property>
22518
 
-                    <property name="buddy" stdset="0">
22519
 
-                        <cstring>forceGroupCombo</cstring>
22520
 
-                    </property>
22521
 
-                </widget>
22522
 
-                <widget class="QComboBox">
22523
 
-                    <property name="name">
22524
 
-                        <cstring>forceGroupCombo</cstring>
22525
 
-                    </property>
22526
 
-                    <property name="sizePolicy">
22527
 
-                        <sizepolicy>
22528
 
-                            <hsizetype>7</hsizetype>
22529
 
-                            <vsizetype>0</vsizetype>
22530
 
-                            <horstretch>0</horstretch>
22531
 
-                            <verstretch>0</verstretch>
22532
 
-                        </sizepolicy>
22533
 
-                    </property>
22534
 
-                </widget>
22535
 
-            </hbox>
22536
 
-        </widget>
22537
 
-    </vbox>
22538
 
-</widget>
22539
 
-<connections>
22540
 
-    <connection>
22541
 
-        <sender>addUserBtn</sender>
22542
 
-        <signal>clicked()</signal>
22543
 
-        <receiver>UserTab</receiver>
22544
 
-        <slot>addUserBtnClicked()</slot>
22545
 
-    </connection>
22546
 
-    <connection>
22547
 
-        <sender>addGroupBtn</sender>
22548
 
-        <signal>clicked()</signal>
22549
 
-        <receiver>UserTab</receiver>
22550
 
-        <slot>addGroupBtnClicked()</slot>
22551
 
-    </connection>
22552
 
-    <connection>
22553
 
-        <sender>removeSelectedBtn</sender>
22554
 
-        <signal>clicked()</signal>
22555
 
-        <receiver>UserTab</receiver>
22556
 
-        <slot>removeSelectedBtnClicked()</slot>
22557
 
-    </connection>
22558
 
-    <connection>
22559
 
-        <sender>expertBtn</sender>
22560
 
-        <signal>clicked()</signal>
22561
 
-        <receiver>UserTab</receiver>
22562
 
-        <slot>expertBtnClicked()</slot>
22563
 
-    </connection>
22564
 
-    <connection>
22565
 
-        <sender>allUnspecifiedUsersCombo</sender>
22566
 
-        <signal>textChanged(const QString&amp;)</signal>
22567
 
-        <receiver>UserTab</receiver>
22568
 
-        <slot>changedSlot()</slot>
22569
 
-    </connection>
22570
 
-    <connection>
22571
 
-        <sender>addUserBtn</sender>
22572
 
-        <signal>clicked()</signal>
22573
 
-        <receiver>UserTab</receiver>
22574
 
-        <slot>changedSlot()</slot>
22575
 
-    </connection>
22576
 
-    <connection>
22577
 
-        <sender>addGroupBtn</sender>
22578
 
-        <signal>clicked()</signal>
22579
 
-        <receiver>UserTab</receiver>
22580
 
-        <slot>changedSlot()</slot>
22581
 
-    </connection>
22582
 
-    <connection>
22583
 
-        <sender>removeSelectedBtn</sender>
22584
 
-        <signal>clicked()</signal>
22585
 
-        <receiver>UserTab</receiver>
22586
 
-        <slot>changedSlot()</slot>
22587
 
-    </connection>
22588
 
-    <connection>
22589
 
-        <sender>expertBtn</sender>
22590
 
-        <signal>clicked()</signal>
22591
 
-        <receiver>UserTab</receiver>
22592
 
-        <slot>changedSlot()</slot>
22593
 
-    </connection>
22594
 
-    <connection>
22595
 
-        <sender>forceUserCombo</sender>
22596
 
-        <signal>textChanged(const QString&amp;)</signal>
22597
 
-        <receiver>UserTab</receiver>
22598
 
-        <slot>changedSlot()</slot>
22599
 
-    </connection>
22600
 
-    <connection>
22601
 
-        <sender>forceGroupCombo</sender>
22602
 
-        <signal>textChanged(const QString&amp;)</signal>
22603
 
-        <receiver>UserTab</receiver>
22604
 
-        <slot>changedSlot()</slot>
22605
 
-    </connection>
22606
 
-</connections>
22607
 
-<tabstops>
22608
 
-    <tabstop>allUnspecifiedUsersCombo</tabstop>
22609
 
-    <tabstop>userTable</tabstop>
22610
 
-    <tabstop>addUserBtn</tabstop>
22611
 
-    <tabstop>addGroupBtn</tabstop>
22612
 
-    <tabstop>removeSelectedBtn</tabstop>
22613
 
-    <tabstop>expertBtn</tabstop>
22614
 
-    <tabstop>forceUserCombo</tabstop>
22615
 
-    <tabstop>forceGroupCombo</tabstop>
22616
 
-</tabstops>
22617
 
-<includes>
22618
 
-    <include location="local" impldecl="in implementation">userselectdlg.h</include>
22619
 
-    <include location="local" impldecl="in implementation">groupselectdlg.h</include>
22620
 
-    <include location="local" impldecl="in implementation">usertab.ui.h</include>
22621
 
-</includes>
22622
 
-<signals>
22623
 
-    <signal>changed()</signal>
22624
 
-</signals>
22625
 
-<slots>
22626
 
-    <slot>addUserBtnClicked()</slot>
22627
 
-    <slot>removeSelectedBtnClicked()</slot>
22628
 
-    <slot>addGroupBtnClicked()</slot>
22629
 
-    <slot>expertBtnClicked()</slot>
22630
 
-    <slot>changedSlot()</slot>
22631
 
-</slots>
22632
 
-</UI>
22633
 
Index: kdenetwork-4.6.3/filesharing/advanced/kcm_sambaconf/usertab.ui.h
22634
 
===================================================================
22635
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/kcm_sambaconf/usertab.ui.h       2011-01-19 17:21:04.000000000 -0500
22636
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
22637
 
@@ -1,43 +0,0 @@
22638
 
-/****************************************************************************
22639
 
-** ui.h extension file, included from the uic-generated form implementation.
22640
 
-**
22641
 
-** If you wish to add, delete or rename functions or slots use
22642
 
-** Qt Designer which will update this file, preserving your code. Create an
22643
 
-** init() function in place of a constructor, and a destroy() function in
22644
 
-** place of a destructor.
22645
 
-*****************************************************************************/
22646
 
-
22647
 
-#ifndef KCM_SAMBACONF_USERTAAB_UI_H
22648
 
-#define KCM_SAMBACONF_USERTAAB_UI_H
22649
 
-
22650
 
-void UserTab::addUserBtnClicked()
22651
 
-{
22652
 
-
22653
 
-}
22654
 
-
22655
 
-
22656
 
-void UserTab::removeSelectedBtnClicked()
22657
 
-{
22658
 
-
22659
 
-}
22660
 
-
22661
 
-
22662
 
-void UserTab::addGroupBtnClicked()
22663
 
-{
22664
 
-
22665
 
-}
22666
 
-
22667
 
-
22668
 
-
22669
 
-void UserTab::expertBtnClicked()
22670
 
-{
22671
 
-
22672
 
-}
22673
 
-
22674
 
-
22675
 
-void UserTab::changedSlot()
22676
 
-{
22677
 
-    emit changed();
22678
 
-}
22679
 
-
22680
 
-#endif // KCM_SAMBACONF_USERTAAB_UI_H
22681
 
Index: kdenetwork-4.6.3/filesharing/advanced/nfs/hostprops.ui
22682
 
===================================================================
22683
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/nfs/hostprops.ui 2011-01-19 17:21:04.000000000 -0500
22684
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
22685
 
@@ -1,557 +0,0 @@
22686
 
-<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
22687
 
-<class>HostProps</class>
22688
 
-<widget class="QWidget">
22689
 
-    <property name="name">
22690
 
-        <cstring>HostProps</cstring>
22691
 
-    </property>
22692
 
-    <property name="geometry">
22693
 
-        <rect>
22694
 
-            <x>0</x>
22695
 
-            <y>0</y>
22696
 
-            <width>333</width>
22697
 
-            <height>332</height>
22698
 
-        </rect>
22699
 
-    </property>
22700
 
-    <grid>
22701
 
-        <property name="name">
22702
 
-            <cstring>unnamed</cstring>
22703
 
-        </property>
22704
 
-        <property name="margin">
22705
 
-            <number>0</number>
22706
 
-        </property>
22707
 
-        <property name="spacing">
22708
 
-            <number>6</number>
22709
 
-        </property>
22710
 
-        <widget class="QGroupBox" row="0" column="0" rowspan="1" colspan="2">
22711
 
-            <property name="name">
22712
 
-                <cstring>propertiesGrp</cstring>
22713
 
-            </property>
22714
 
-            <property name="sizePolicy">
22715
 
-                <sizepolicy>
22716
 
-                    <hsizetype>5</hsizetype>
22717
 
-                    <vsizetype>0</vsizetype>
22718
 
-                    <horstretch>0</horstretch>
22719
 
-                    <verstretch>0</verstretch>
22720
 
-                </sizepolicy>
22721
 
-            </property>
22722
 
-            <property name="minimumSize">
22723
 
-                <size>
22724
 
-                    <width>180</width>
22725
 
-                    <height>0</height>
22726
 
-                </size>
22727
 
-            </property>
22728
 
-            <property name="frameShape">
22729
 
-                <enum>Box</enum>
22730
 
-            </property>
22731
 
-            <property name="frameShadow">
22732
 
-                <enum>Sunken</enum>
22733
 
-            </property>
22734
 
-            <property name="title">
22735
 
-                <string>Host Properties</string>
22736
 
-            </property>
22737
 
-            <vbox>
22738
 
-                <property name="name">
22739
 
-                    <cstring>unnamed</cstring>
22740
 
-                </property>
22741
 
-                <property name="margin">
22742
 
-                    <number>11</number>
22743
 
-                </property>
22744
 
-                <property name="spacing">
22745
 
-                    <number>6</number>
22746
 
-                </property>
22747
 
-                <widget class="QLabel">
22748
 
-                    <property name="name">
22749
 
-                        <cstring>TextLabel1</cstring>
22750
 
-                    </property>
22751
 
-                    <property name="text">
22752
 
-                        <string>&amp;Name/address:</string>
22753
 
-                    </property>
22754
 
-                    <property name="buddy" stdset="0">
22755
 
-                        <cstring>nameEdit</cstring>
22756
 
-                    </property>
22757
 
-                </widget>
22758
 
-                <widget class="QLineEdit">
22759
 
-                    <property name="name">
22760
 
-                        <cstring>nameEdit</cstring>
22761
 
-                    </property>
22762
 
-                    <property name="frameShape">
22763
 
-                        <enum>LineEditPanel</enum>
22764
 
-                    </property>
22765
 
-                    <property name="frameShadow">
22766
 
-                        <enum>Sunken</enum>
22767
 
-                    </property>
22768
 
-                    <property name="whatsThis" stdset="0">
22769
 
-                        <string>&lt;b&gt;Name / Address field&lt;/b&gt;
22770
 
-&lt;p&gt;
22771
 
-Here you can enter the host name or address.&lt;br&gt;
22772
 
-The host may be specified in a number of ways:
22773
 
-&lt;p&gt;
22774
 
-&lt;i&gt;single host&lt;/i&gt;
22775
 
-&lt;p&gt;
22776
 
- This is the most common format. You may specify a host either by an abbreviated name recognized by the resolver, the fully qualified domain name, or an IP address.
22777
 
-&lt;/p&gt;
22778
 
-
22779
 
-&lt;i&gt;netgroups&lt;/i&gt;
22780
 
-&lt;p&gt;
22781
 
- NIS netgroups may be given as @group. Only the host part of each netgroup members is consider in checking for membership. Empty host parts or those containing a single dash (-) are ignored.
22782
 
-&lt;/p&gt;
22783
 
-
22784
 
-&lt;i&gt;wildcards&lt;/i&gt;
22785
 
-&lt;p&gt;
22786
 
- Machine names may contain the wildcard characters * and ?. This can be used to make the exports file more compact; for instance, *.cs.foo.edu matches all hosts in the domain cs.foo.edu. However, these wildcard characters do not match the dots in a domain name, so the above pattern does not include hosts such as a.b.cs.foo.edu.
22787
 
-&lt;/p&gt;
22788
 
-
22789
 
-&lt;i&gt;IP networks&lt;/i&gt;
22790
 
-&lt;p&gt;
22791
 
- You can also export directories to all hosts on an IP (sub-) network simultaneously. This is done by specifying an IP address and netmask pair as address/netmask where the netmask can be specified in dotted-decimal format, or as a contiguous mask length (for example, either `/255.255.252.0' or `/22' appended to the network base address result in identical subnetworks with 10 bits of host).
22792
 
-&lt;/p&gt;</string>
22793
 
-                    </property>
22794
 
-                </widget>
22795
 
-                <widget class="QCheckBox">
22796
 
-                    <property name="name">
22797
 
-                        <cstring>publicChk</cstring>
22798
 
-                    </property>
22799
 
-                    <property name="text">
22800
 
-                        <string>&amp;Public access</string>
22801
 
-                    </property>
22802
 
-                    <property name="whatsThis" stdset="0">
22803
 
-                        <string>&lt;b&gt;Public access&lt;/b&gt;
22804
 
-&lt;p&gt;
22805
 
-If you check this, the host address will be a single wildcard , which means public access.
22806
 
-This is just the same as if you would enter a wildcard in the address field.
22807
 
-&lt;/p&gt;</string>
22808
 
-                    </property>
22809
 
-                </widget>
22810
 
-            </vbox>
22811
 
-        </widget>
22812
 
-        <widget class="QGroupBox" row="1" column="0">
22813
 
-            <property name="name">
22814
 
-                <cstring>GroupBox7</cstring>
22815
 
-            </property>
22816
 
-            <property name="sizePolicy">
22817
 
-                <sizepolicy>
22818
 
-                    <hsizetype>5</hsizetype>
22819
 
-                    <vsizetype>5</vsizetype>
22820
 
-                    <horstretch>0</horstretch>
22821
 
-                    <verstretch>0</verstretch>
22822
 
-                </sizepolicy>
22823
 
-            </property>
22824
 
-            <property name="title">
22825
 
-                <string>Options</string>
22826
 
-            </property>
22827
 
-            <grid>
22828
 
-                <property name="name">
22829
 
-                    <cstring>unnamed</cstring>
22830
 
-                </property>
22831
 
-                <property name="margin">
22832
 
-                    <number>11</number>
22833
 
-                </property>
22834
 
-                <property name="spacing">
22835
 
-                    <number>6</number>
22836
 
-                </property>
22837
 
-                <widget class="QCheckBox" row="0" column="0">
22838
 
-                    <property name="name">
22839
 
-                        <cstring>readOnlyChk</cstring>
22840
 
-                    </property>
22841
 
-                    <property name="text">
22842
 
-                        <string>&amp;Writable</string>
22843
 
-                    </property>
22844
 
-                    <property name="whatsThis" stdset="0">
22845
 
-                        <string>&lt;b&gt;Writable&lt;/b&gt;
22846
 
-&lt;p&gt;
22847
 
-Allow both read and write requests on this NFS volume.
22848
 
-&lt;/p&gt;
22849
 
-&lt;p&gt;
22850
 
-The default is to disallow any request which changes the filesystem
22851
 
-&lt;/p&gt;</string>
22852
 
-                    </property>
22853
 
-                </widget>
22854
 
-                <widget class="QCheckBox" row="1" column="0">
22855
 
-                    <property name="name">
22856
 
-                        <cstring>secureChk</cstring>
22857
 
-                    </property>
22858
 
-                    <property name="text">
22859
 
-                        <string>&amp;Insecure</string>
22860
 
-                    </property>
22861
 
-                    <property name="whatsThis" stdset="0">
22862
 
-                        <string>&lt;b&gt;Insecure&lt;/b&gt;
22863
 
-&lt;p&gt;
22864
 
-If this option is checked, it is not required that requests originate on an internet port less than IPPORT_RESERVED (1024).
22865
 
-&lt;/p&gt;
22866
 
-&lt;p&gt;
22867
 
-If unsure leave it unchecked.
22868
 
-&lt;/p&gt;</string>
22869
 
-                    </property>
22870
 
-                </widget>
22871
 
-                <widget class="QCheckBox" row="2" column="0">
22872
 
-                    <property name="name">
22873
 
-                        <cstring>syncChk</cstring>
22874
 
-                    </property>
22875
 
-                    <property name="text">
22876
 
-                        <string>&amp;Sync</string>
22877
 
-                    </property>
22878
 
-                    <property name="whatsThis" stdset="0">
22879
 
-                        <string>&lt;b&gt;Sync&lt;/b&gt;
22880
 
-&lt;p&gt;
22881
 
-This option requests that all file writes be committed to disk before the write request completes. This is required for complete safety of data in the face of a server crash, but incurs a performance hit.
22882
 
-&lt;/p&gt;
22883
 
-&lt;p&gt;
22884
 
-The default is to allow the server to write the data out whenever it is ready.
22885
 
-&lt;/p&gt;</string>
22886
 
-                    </property>
22887
 
-                </widget>
22888
 
-                <widget class="QCheckBox" row="3" column="0">
22889
 
-                    <property name="name">
22890
 
-                        <cstring>wdelayChk</cstring>
22891
 
-                    </property>
22892
 
-                    <property name="enabled">
22893
 
-                        <bool>false</bool>
22894
 
-                    </property>
22895
 
-                    <property name="text">
22896
 
-                        <string>No w&amp;delay</string>
22897
 
-                    </property>
22898
 
-                    <property name="whatsThis" stdset="0">
22899
 
-                        <string>&lt;b&gt;No wdelay&lt;/b&gt;
22900
 
-&lt;p&gt;
22901
 
-This option only has effect if sync is also set. The NFS server will normally delay committing a write request to disk slightly if it suspects that another related write request may be in progress or may arrive soon. This allows multiple write requests to be committed to disk with the one operation which can improve performance. If an NFS server received mainly small unrelated requests, this behavior could actually reduce performance, so no wdelay is available to turn it off. &lt;/p&gt;</string>
22902
 
-                    </property>
22903
 
-                </widget>
22904
 
-                <widget class="QCheckBox" row="4" column="0">
22905
 
-                    <property name="name">
22906
 
-                        <cstring>hideChk</cstring>
22907
 
-                    </property>
22908
 
-                    <property name="text">
22909
 
-                        <string>No &amp;hide</string>
22910
 
-                    </property>
22911
 
-                    <property name="whatsThis" stdset="0">
22912
 
-                        <string>&lt;b&gt;No hide&lt;/b&gt;
22913
 
-&lt;p&gt;
22914
 
-This option is based on the option of the same name provided in IRIX NFS. Normally, if a server exports two filesystems one of which is mounted on the other, then the client will have to mount both filesystems explicitly to get access to them. If it just mounts the parent, it will see an empty directory at the place where the other filesystem is mounted. That filesystem is "hidden".
22915
 
-&lt;/p&gt;
22916
 
-&lt;p&gt;
22917
 
-Setting the nohide option on a filesystem causes it not to be hidden, and an appropriately authorized client will be able to move from the parent to that filesystem without noticing the change.
22918
 
-&lt;/p&gt;
22919
 
-&lt;p&gt;
22920
 
-However, some NFS clients do not cope well with this situation as, for instance, it is then possible for two files in the one apparent filesystem to have the same inode number.
22921
 
-&lt;/p&gt;
22922
 
-&lt;p&gt;
22923
 
-The nohide option is currently only effective on single host exports. It does not work reliably with netgroup, subnet, or wildcard exports.
22924
 
-&lt;/p&gt;
22925
 
-&lt;p&gt;
22926
 
-This option can be very useful in some situations, but it should be used with due care, and only after confirming that the client system copes with the situation effectively.
22927
 
-&lt;/p&gt;</string>
22928
 
-                    </property>
22929
 
-                </widget>
22930
 
-                <widget class="QCheckBox" row="5" column="0">
22931
 
-                    <property name="name">
22932
 
-                        <cstring>subtreeChk</cstring>
22933
 
-                    </property>
22934
 
-                    <property name="text">
22935
 
-                        <string>No su&amp;btree check</string>
22936
 
-                    </property>
22937
 
-                    <property name="whatsThis" stdset="0">
22938
 
-                        <string>&lt;b&gt;No subtree check&lt;/b&gt;
22939
 
-&lt;p&gt;
22940
 
-This option disables subtree checking, which has mild security implications, but can improve reliability is some circumstances.
22941
 
-&lt;/p&gt;
22942
 
-&lt;p&gt;
22943
 
-If a subdirectory of a filesystem is exported, but the whole filesystem is not, then whenever a NFS request arrives, the server must check not only that the accessed file is in the appropriate filesystem (which is easy) but also that it is in the exported tree (which is harder). This check is called the subtree_check.
22944
 
-&lt;/p&gt;
22945
 
-&lt;p&gt;
22946
 
-In order to perform this check, the server must include some information about the location of the file in the "filehandle" that is given to the client. This can cause problems with accessing files that are renamed while a client has them open (though in many simple cases it will still work).
22947
 
-&lt;/p&gt;
22948
 
-&lt;p&gt;
22949
 
-subtree checking is also used to make sure that files inside directories to which only root has access can only be accessed if the filesystem is exported with no_root_squash (see below), even the file itself allows more general access.
22950
 
-&lt;/p&gt;
22951
 
-&lt;p&gt;
22952
 
-As a general guide, a home directory filesystem, which is normally exported at the root and may see lots of file renames, should be exported with subtree checking disabled. A filesystem which is mostly read-only, and at least does not see many file renames (e.g. /usr or /var) and for which subdirectories may be exported, should probably be exported with subtree checks enabled.
22953
 
-&lt;/p&gt;</string>
22954
 
-                    </property>
22955
 
-                </widget>
22956
 
-                <widget class="QCheckBox" row="6" column="0">
22957
 
-                    <property name="name">
22958
 
-                        <cstring>secureLocksChk</cstring>
22959
 
-                    </property>
22960
 
-                    <property name="text">
22961
 
-                        <string>Insecure loc&amp;ks</string>
22962
 
-                    </property>
22963
 
-                    <property name="whatsThis" stdset="0">
22964
 
-                        <string>&lt;b&gt;Insecure locks&lt;/b&gt;
22965
 
-&lt;p&gt;
22966
 
-This option tells the NFS server not to require authentication of locking requests (i.e. requests which use the NLM protocol). Normally the NFS server will require a lock request to hold a credential for a user who has read access to the file. With this flag no access checks will be performed.
22967
 
-&lt;/p&gt;
22968
 
-&lt;p&gt;
22969
 
-Early NFS client implementations did not send credentials with lock requests, and many current NFS clients still exist which are based on the old implementations. Use this flag if you find that you can only lock files which are world readable.
22970
 
-&lt;/p&gt;</string>
22971
 
-                    </property>
22972
 
-                </widget>
22973
 
-            </grid>
22974
 
-        </widget>
22975
 
-        <widget class="QGroupBox" row="1" column="1">
22976
 
-            <property name="name">
22977
 
-                <cstring>GroupBox3</cstring>
22978
 
-            </property>
22979
 
-            <property name="sizePolicy">
22980
 
-                <sizepolicy>
22981
 
-                    <hsizetype>5</hsizetype>
22982
 
-                    <vsizetype>7</vsizetype>
22983
 
-                    <horstretch>0</horstretch>
22984
 
-                    <verstretch>0</verstretch>
22985
 
-                </sizepolicy>
22986
 
-            </property>
22987
 
-            <property name="title">
22988
 
-                <string>User Mapping</string>
22989
 
-            </property>
22990
 
-            <property name="alignment">
22991
 
-                <set>AlignAuto</set>
22992
 
-            </property>
22993
 
-            <vbox>
22994
 
-                <property name="name">
22995
 
-                    <cstring>unnamed</cstring>
22996
 
-                </property>
22997
 
-                <property name="margin">
22998
 
-                    <number>11</number>
22999
 
-                </property>
23000
 
-                <property name="spacing">
23001
 
-                    <number>6</number>
23002
 
-                </property>
23003
 
-                <widget class="QCheckBox">
23004
 
-                    <property name="name">
23005
 
-                        <cstring>allSquashChk</cstring>
23006
 
-                    </property>
23007
 
-                    <property name="text">
23008
 
-                        <string>All s&amp;quash</string>
23009
 
-                    </property>
23010
 
-                    <property name="whatsThis" stdset="0">
23011
 
-                        <string>&lt;b&gt;All squash&lt;/b&gt;
23012
 
-&lt;p&gt;
23013
 
-Map all uids and gids to the anonymous user. Useful for NFS-exported public FTP directories, news spool directories, etc. &lt;/p&gt;</string>
23014
 
-                    </property>
23015
 
-                </widget>
23016
 
-                <widget class="QCheckBox">
23017
 
-                    <property name="name">
23018
 
-                        <cstring>rootSquashChk</cstring>
23019
 
-                    </property>
23020
 
-                    <property name="text">
23021
 
-                        <string>No &amp;root squash</string>
23022
 
-                    </property>
23023
 
-                    <property name="whatsThis" stdset="0">
23024
 
-                        <string>&lt;b&gt;No root squash&lt;/b&gt;
23025
 
-&lt;p&gt;
23026
 
-Turn of root squashing. This option is mainly useful for diskless clients.
23027
 
-&lt;/p&gt;
23028
 
-&lt;i&gt;root squashing&lt;/i&gt;
23029
 
-&lt;p&gt;
23030
 
-Map requests from uid/gid 0 to the anonymous uid/gid. Note that this does not apply to any other uids that might be equally sensitive, such as user bin.
23031
 
-&lt;/p&gt;</string>
23032
 
-                    </property>
23033
 
-                </widget>
23034
 
-                <widget class="QLayoutWidget">
23035
 
-                    <property name="name">
23036
 
-                        <cstring>layout15</cstring>
23037
 
-                    </property>
23038
 
-                    <hbox>
23039
 
-                        <property name="name">
23040
 
-                            <cstring>unnamed</cstring>
23041
 
-                        </property>
23042
 
-                        <widget class="QLabel">
23043
 
-                            <property name="name">
23044
 
-                                <cstring>TextLabel1_2</cstring>
23045
 
-                            </property>
23046
 
-                            <property name="text">
23047
 
-                                <string>Anonym. &amp;UID:</string>
23048
 
-                            </property>
23049
 
-                            <property name="buddy" stdset="0">
23050
 
-                                <cstring>anonuidEdit</cstring>
23051
 
-                            </property>
23052
 
-                            <property name="whatsThis" stdset="0">
23053
 
-                                <string>&lt;b&gt;Anonym. UID/GID&lt;/b&gt; &lt;p&gt; These options explicitly set the uid and gid of the anonymous account. This option is primarily useful for PC/NFS clients, where you might want all requests appear to be from one user. &lt;/p&gt;</string>
23054
 
-                            </property>
23055
 
-                        </widget>
23056
 
-                        <widget class="QLineEdit">
23057
 
-                            <property name="name">
23058
 
-                                <cstring>anonuidEdit</cstring>
23059
 
-                            </property>
23060
 
-                            <property name="sizePolicy">
23061
 
-                                <sizepolicy>
23062
 
-                                    <hsizetype>5</hsizetype>
23063
 
-                                    <vsizetype>0</vsizetype>
23064
 
-                                    <horstretch>100</horstretch>
23065
 
-                                    <verstretch>0</verstretch>
23066
 
-                                </sizepolicy>
23067
 
-                            </property>
23068
 
-                            <property name="minimumSize">
23069
 
-                                <size>
23070
 
-                                    <width>50</width>
23071
 
-                                    <height>0</height>
23072
 
-                                </size>
23073
 
-                            </property>
23074
 
-                            <property name="text">
23075
 
-                                <string>FF</string>
23076
 
-                            </property>
23077
 
-                        </widget>
23078
 
-                    </hbox>
23079
 
-                </widget>
23080
 
-                <widget class="QLayoutWidget">
23081
 
-                    <property name="name">
23082
 
-                        <cstring>layout16</cstring>
23083
 
-                    </property>
23084
 
-                    <hbox>
23085
 
-                        <property name="name">
23086
 
-                            <cstring>unnamed</cstring>
23087
 
-                        </property>
23088
 
-                        <widget class="QLabel">
23089
 
-                            <property name="name">
23090
 
-                                <cstring>TextLabel2</cstring>
23091
 
-                            </property>
23092
 
-                            <property name="text">
23093
 
-                                <string>Anonym. &amp;GID:</string>
23094
 
-                            </property>
23095
 
-                            <property name="buddy" stdset="0">
23096
 
-                                <cstring>anongidEdit</cstring>
23097
 
-                            </property>
23098
 
-                            <property name="whatsThis" stdset="0">
23099
 
-                                <string>&lt;b&gt;Anonym. UID/GID&lt;/b&gt; &lt;p&gt; These options explicitly set the uid and gid of the anonymous account. This option is primarily useful for PC/NFS clients, where you might want all requests appear to be from one user. &lt;/p&gt;</string>
23100
 
-                            </property>
23101
 
-                        </widget>
23102
 
-                        <widget class="QLineEdit">
23103
 
-                            <property name="name">
23104
 
-                                <cstring>anongidEdit</cstring>
23105
 
-                            </property>
23106
 
-                            <property name="sizePolicy">
23107
 
-                                <sizepolicy>
23108
 
-                                    <hsizetype>4</hsizetype>
23109
 
-                                    <vsizetype>0</vsizetype>
23110
 
-                                    <horstretch>0</horstretch>
23111
 
-                                    <verstretch>0</verstretch>
23112
 
-                                </sizepolicy>
23113
 
-                            </property>
23114
 
-                            <property name="minimumSize">
23115
 
-                                <size>
23116
 
-                                    <width>50</width>
23117
 
-                                    <height>0</height>
23118
 
-                                </size>
23119
 
-                            </property>
23120
 
-                            <property name="text">
23121
 
-                                <string>FF</string>
23122
 
-                            </property>
23123
 
-                        </widget>
23124
 
-                    </hbox>
23125
 
-                </widget>
23126
 
-            </vbox>
23127
 
-        </widget>
23128
 
-        <spacer row="2" column="0">
23129
 
-            <property name="name">
23130
 
-                <cstring>spacer3</cstring>
23131
 
-            </property>
23132
 
-            <property name="orientation">
23133
 
-                <enum>Vertical</enum>
23134
 
-            </property>
23135
 
-            <property name="sizeType">
23136
 
-                <enum>Expanding</enum>
23137
 
-            </property>
23138
 
-            <property name="sizeHint">
23139
 
-                <size>
23140
 
-                    <width>20</width>
23141
 
-                    <height>16</height>
23142
 
-                </size>
23143
 
-            </property>
23144
 
-        </spacer>
23145
 
-    </grid>
23146
 
-</widget>
23147
 
-<connections>
23148
 
-    <connection>
23149
 
-        <sender>publicChk</sender>
23150
 
-        <signal>toggled(bool)</signal>
23151
 
-        <receiver>nameEdit</receiver>
23152
 
-        <slot>setDisabled(bool)</slot>
23153
 
-    </connection>
23154
 
-    <connection>
23155
 
-        <sender>readOnlyChk</sender>
23156
 
-        <signal>clicked()</signal>
23157
 
-        <receiver>HostProps</receiver>
23158
 
-        <slot>setModified()</slot>
23159
 
-    </connection>
23160
 
-    <connection>
23161
 
-        <sender>secureChk</sender>
23162
 
-        <signal>clicked()</signal>
23163
 
-        <receiver>HostProps</receiver>
23164
 
-        <slot>setModified()</slot>
23165
 
-    </connection>
23166
 
-    <connection>
23167
 
-        <sender>syncChk</sender>
23168
 
-        <signal>clicked()</signal>
23169
 
-        <receiver>HostProps</receiver>
23170
 
-        <slot>setModified()</slot>
23171
 
-    </connection>
23172
 
-    <connection>
23173
 
-        <sender>wdelayChk</sender>
23174
 
-        <signal>pressed()</signal>
23175
 
-        <receiver>HostProps</receiver>
23176
 
-        <slot>setModified()</slot>
23177
 
-    </connection>
23178
 
-    <connection>
23179
 
-        <sender>subtreeChk</sender>
23180
 
-        <signal>pressed()</signal>
23181
 
-        <receiver>HostProps</receiver>
23182
 
-        <slot>setModified()</slot>
23183
 
-    </connection>
23184
 
-    <connection>
23185
 
-        <sender>secureLocksChk</sender>
23186
 
-        <signal>pressed()</signal>
23187
 
-        <receiver>HostProps</receiver>
23188
 
-        <slot>setModified()</slot>
23189
 
-    </connection>
23190
 
-    <connection>
23191
 
-        <sender>allSquashChk</sender>
23192
 
-        <signal>pressed()</signal>
23193
 
-        <receiver>HostProps</receiver>
23194
 
-        <slot>setModified()</slot>
23195
 
-    </connection>
23196
 
-    <connection>
23197
 
-        <sender>rootSquashChk</sender>
23198
 
-        <signal>pressed()</signal>
23199
 
-        <receiver>HostProps</receiver>
23200
 
-        <slot>setModified()</slot>
23201
 
-    </connection>
23202
 
-    <connection>
23203
 
-        <sender>nameEdit</sender>
23204
 
-        <signal>textChanged(const QString&amp;)</signal>
23205
 
-        <receiver>HostProps</receiver>
23206
 
-        <slot>setModified()</slot>
23207
 
-    </connection>
23208
 
-    <connection>
23209
 
-        <sender>hideChk</sender>
23210
 
-        <signal>clicked()</signal>
23211
 
-        <receiver>HostProps</receiver>
23212
 
-        <slot>setModified()</slot>
23213
 
-    </connection>
23214
 
-    <connection>
23215
 
-        <sender>syncChk</sender>
23216
 
-        <signal>toggled(bool)</signal>
23217
 
-        <receiver>wdelayChk</receiver>
23218
 
-        <slot>setEnabled(bool)</slot>
23219
 
-    </connection>
23220
 
-    <connection>
23221
 
-        <sender>anonuidEdit</sender>
23222
 
-        <signal>textChanged(const QString&amp;)</signal>
23223
 
-        <receiver>HostProps</receiver>
23224
 
-        <slot>setModified()</slot>
23225
 
-    </connection>
23226
 
-    <connection>
23227
 
-        <sender>anongidEdit</sender>
23228
 
-        <signal>textChanged(const QString&amp;)</signal>
23229
 
-        <receiver>HostProps</receiver>
23230
 
-        <slot>setModified()</slot>
23231
 
-    </connection>
23232
 
-</connections>
23233
 
-<includes>
23234
 
-    <include location="local" impldecl="in implementation">hostprops.ui.h</include>
23235
 
-</includes>
23236
 
-<signals>
23237
 
-    <signal>modified()</signal>
23238
 
-</signals>
23239
 
-<slots>
23240
 
-    <slot>setModified()</slot>
23241
 
-</slots>
23242
 
-</UI>
23243
 
Index: kdenetwork-4.6.3/filesharing/advanced/nfs/hostprops.ui.h
23244
 
===================================================================
23245
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/nfs/hostprops.ui.h       2011-01-19 17:21:04.000000000 -0500
23246
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
23247
 
@@ -1,17 +0,0 @@
23248
 
-/****************************************************************************
23249
 
-** ui.h extension file, included from the uic-generated form implementation.
23250
 
-**
23251
 
-** If you wish to add, delete or rename slots use Qt Designer which will
23252
 
-** update this file, preserving your code. Create an init() slot in place of
23253
 
-** a constructor, and a destroy() slot in place of a destructor.
23254
 
-*****************************************************************************/
23255
 
-
23256
 
-#ifndef NFS_HOSTPROPS_UI_H
23257
 
-#define NFS_HOSTPROPS_UI_H
23258
 
-
23259
 
-void HostProps::setModified()
23260
 
-{
23261
 
-    emit modified();
23262
 
-}
23263
 
-
23264
 
-#endif // NFS_HOSTPROPS_UI_H
23265
 
Index: kdenetwork-4.6.3/filesharing/advanced/nfs/nfsdialog.cpp
23266
 
===================================================================
23267
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/nfs/nfsdialog.cpp        2011-01-19 17:21:04.000000000 -0500
23268
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
23269
 
@@ -1,236 +0,0 @@
23270
 
-/*
23271
 
-  Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
23272
 
-
23273
 
-  This program is free software; you can redistribute it and/or modify
23274
 
-  it under the terms of the GNU General Public License as published by
23275
 
-  the Free Software Foundation; either version 2 of the License, or
23276
 
-  (at your option) any later version.
23277
 
-
23278
 
-  This program is distributed in the hope that it will be useful,
23279
 
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
23280
 
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23281
 
-  GNU General Public License for more details.
23282
 
-
23283
 
-  You should have received a copy of the GNU General Public License
23284
 
-  along with this program; if not, write to the Free Software
23285
 
-  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
23286
 
-
23287
 
-*/
23288
 
-
23289
 
-
23290
 
-#include <qradiobutton.h>
23291
 
-#include <qpushbutton.h>
23292
 
-#include <q3groupbox.h>
23293
 
-#include <qlineedit.h>
23294
 
-#include <q3buttongroup.h>
23295
 
-#include <qlayout.h>
23296
 
-//Added by qt3to4:
23297
 
-#include <QVBoxLayout>
23298
 
-#include <Q3PtrList>
23299
 
-
23300
 
-#include <kdebug.h>
23301
 
-#include <kmessagebox.h>
23302
 
-#include <kfiledialog.h>
23303
 
-#include <klocale.h>
23304
 
-#include <k3listview.h>
23305
 
-
23306
 
-
23307
 
-#include "nfsdialog.h"
23308
 
-#include "nfsentry.h"
23309
 
-#include "nfshostdlg.h"
23310
 
-#include "nfsfile.h"
23311
 
-
23312
 
-
23313
 
-NFSDialogGUI::NFSDialogGUI( QWidget *parent )
23314
 
-    : QWidget( parent )
23315
 
-{
23316
 
-    setupUi( this );
23317
 
-    connect( listView, SIGNAL( selectionChanged() ), this, SLOT( listView_selectionChanged() ) );
23318
 
-}
23319
 
-
23320
 
-void NFSDialogGUI::listView_selectionChanged()
23321
 
-{
23322
 
-    bool empty = listView->selectedItems().isEmpty();
23323
 
-    modifyHostBtn->setDisabled(empty);
23324
 
-    removeHostBtn->setDisabled(empty);
23325
 
-}
23326
 
-
23327
 
-
23328
 
-NFSDialog::NFSDialog(QWidget * parent, NFSEntry* entry)
23329
 
- : KDialog(parent),
23330
 
-   m_nfsEntry(entry),
23331
 
-   m_modified(false)
23332
 
-{
23333
 
-  setCaption(i18n("NFS Options"));
23334
 
-  setButtons(Ok|Cancel);
23335
 
-  setDefaultButton(Ok);
23336
 
-  if (m_nfsEntry)
23337
 
-      m_workEntry = m_nfsEntry->copy();
23338
 
-  else
23339
 
-      kWarning() << "NFSDialog::NFSDialog: entry is null!";
23340
 
-
23341
 
-  initGUI();
23342
 
-  initSlots();
23343
 
-  initListView();
23344
 
-  connect(this,SIGNAL(okClicked()),this,SLOT(slotOk()));
23345
 
-}
23346
 
-
23347
 
-NFSDialog::~NFSDialog()
23348
 
-{
23349
 
-  delete m_workEntry;
23350
 
-}
23351
 
-
23352
 
-void NFSDialog::initGUI() {
23353
 
-  QWidget* page = new QWidget(this);
23354
 
-  setMainWidget(page);
23355
 
-  m_gui = new NFSDialogGUI(page);
23356
 
-
23357
 
-  QVBoxLayout *layout = new QVBoxLayout( page );
23358
 
-  layout->addWidget( m_gui );
23359
 
-#ifdef __GNUC__
23360
 
-#warning "kde4 port it"
23361
 
-#endif
23362
 
-  //KAccel* accel = new KAccel( m_gui->listView );
23363
 
-  //accel->insert( "Delete", Qt::Key_Delete, this, SLOT(slotRemoveHost()));
23364
 
-}
23365
 
-
23366
 
-void NFSDialog::initSlots()
23367
 
-{
23368
 
-  connect( m_gui->removeHostBtn, SIGNAL(clicked()), this, SLOT( slotRemoveHost()));
23369
 
-  connect( m_gui->addHostBtn, SIGNAL(clicked()), this, SLOT( slotAddHost()));
23370
 
-  connect( m_gui->modifyHostBtn, SIGNAL(clicked()), this, SLOT( slotModifyHost()));
23371
 
-  connect( m_gui->listView, SIGNAL(doubleClicked(Q3ListViewItem*)),
23372
 
-           this, SLOT( slotModifyHost()));
23373
 
-
23374
 
-}
23375
 
-
23376
 
-void NFSDialog::initListView()
23377
 
-{
23378
 
-  if (m_workEntry) {
23379
 
-    HostIterator it = m_workEntry->getHosts();
23380
 
-
23381
 
-    NFSHost* host;
23382
 
-    while ( (host = it.current()) != 0 ) {
23383
 
-       ++it;
23384
 
-       createItemFromHost(host);
23385
 
-    }
23386
 
-  }
23387
 
-}
23388
 
-
23389
 
-Q3ListViewItem* NFSDialog::createItemFromHost(NFSHost* host)
23390
 
-{
23391
 
-  if (!host)
23392
 
-    return 0;
23393
 
-
23394
 
-  Q3ListViewItem* item = new Q3ListViewItem(m_gui->listView);
23395
 
-  updateItem(item, host);
23396
 
-  return item;
23397
 
-}
23398
 
-
23399
 
-void NFSDialog::updateItem(Q3ListViewItem* item, NFSHost* host)
23400
 
-{
23401
 
-  item->setText(0,host->name);
23402
 
-  item->setText(1,host->paramString());
23403
 
-}
23404
 
-
23405
 
-void NFSDialog::slotAddHost()
23406
 
-{
23407
 
-  NFSHost *host = new NFSHost();
23408
 
-
23409
 
-  // Set some secure parameters
23410
 
-  //host->allSquash=true;
23411
 
-  host->readonly=true;
23412
 
-
23413
 
-  HostList hostList;
23414
 
-  hostList.append(host);
23415
 
-
23416
 
-  NFSHostDlg *dlg = new NFSHostDlg(this, &hostList, m_workEntry);
23417
 
-  dlg->exec();
23418
 
-
23419
 
-
23420
 
-  if (dlg->result()==QDialog::Accepted) {
23421
 
-    m_workEntry->addHost(host);
23422
 
-    createItemFromHost(host);
23423
 
-    setModified();
23424
 
-  } else {
23425
 
-    delete host;
23426
 
-  }
23427
 
-
23428
 
-  delete dlg;
23429
 
-}
23430
 
-
23431
 
-void NFSDialog::slotOk() {
23432
 
-  if (m_modified) {
23433
 
-    m_nfsEntry->copyFrom(m_workEntry);
23434
 
-  }
23435
 
-  KDialog::accept();
23436
 
-}
23437
 
-
23438
 
-void NFSDialog::slotRemoveHost()
23439
 
-{
23440
 
-  QList<Q3ListViewItem *> items = m_gui->listView->selectedItems();
23441
 
-  if (items.count()==0)
23442
 
-      return;
23443
 
-  foreach ( Q3ListViewItem* item, items ) {
23444
 
-    QString name = item->text(0);
23445
 
-    m_gui->listView->takeItem(item);
23446
 
-
23447
 
-    NFSHost* host = m_workEntry->getHostByName(name);
23448
 
-    if (host) {
23449
 
-      m_workEntry->removeHost(host);
23450
 
-    } else {
23451
 
-      kWarning() << "NFSDialog::slotRemoveHost: no host "
23452
 
-                  << name << " << found!" << endl;
23453
 
-    }
23454
 
-
23455
 
-  }
23456
 
-
23457
 
-  m_gui->modifyHostBtn->setDisabled(true);
23458
 
-  m_gui->removeHostBtn->setDisabled(true);
23459
 
-  setModified();
23460
 
-}
23461
 
-
23462
 
-void NFSDialog::slotModifyHost()
23463
 
-{
23464
 
-  QList<Q3ListViewItem*> items = m_gui->listView->selectedItems();
23465
 
-  if (items.count()==0)
23466
 
-      return;
23467
 
-
23468
 
-  HostList hostList;
23469
 
-  foreach ( Q3ListViewItem* item, items ) {
23470
 
-    NFSHost* host = m_workEntry->getHostByName(item->text(0));
23471
 
-    if (host)
23472
 
-      hostList.append(host);
23473
 
-    else
23474
 
-      kWarning() << "NFSDialog::slogModifyHost: host "
23475
 
-                  << item->text(0) << " is null!" << endl;
23476
 
-  }
23477
 
-
23478
 
-  NFSHostDlg *dlg = new NFSHostDlg(this, &hostList, m_workEntry);
23479
 
-  if (dlg->exec() == QDialog::Accepted &&
23480
 
-      dlg->isModified())
23481
 
-  {
23482
 
-      setModified();
23483
 
-  }
23484
 
-
23485
 
-  delete dlg;
23486
 
-
23487
 
-  NFSHost* host = hostList.first();
23488
 
-  foreach ( Q3ListViewItem* item, items ) {
23489
 
-      if (item && host)
23490
 
-          updateItem( item,host);
23491
 
-      host = hostList.next();
23492
 
-  }
23493
 
-}
23494
 
-
23495
 
-void NFSDialog::setModified()
23496
 
-{
23497
 
-  m_modified = true;
23498
 
-}
23499
 
-
23500
 
-bool NFSDialog::modified() {
23501
 
-  return m_modified;
23502
 
-}
23503
 
-
23504
 
-#include "nfsdialog.moc"
23505
 
-
23506
 
Index: kdenetwork-4.6.3/filesharing/advanced/nfs/nfsdialoggui.ui
23507
 
===================================================================
23508
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/nfs/nfsdialoggui.ui      2011-01-19 17:21:04.000000000 -0500
23509
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
23510
 
@@ -1,141 +0,0 @@
23511
 
-<ui version="4.0" stdsetdef="1" >
23512
 
-  <class>NFSDialogGUI</class>
23513
 
-  <widget class="QWidget" name="NFSDialogGUI" >
23514
 
-    <property name="geometry" >
23515
 
-      <rect>
23516
 
-        <x>0</x>
23517
 
-        <y>0</y>
23518
 
-        <width>466</width>
23519
 
-        <height>338</height>
23520
 
-      </rect>
23521
 
-    </property>
23522
 
-    <layout class="QVBoxLayout" >
23523
 
-      <property name="margin" >
23524
 
-        <number>0</number>
23525
 
-      </property>
23526
 
-      <property name="spacing" >
23527
 
-        <number>6</number>
23528
 
-      </property>
23529
 
-      <item>
23530
 
-        <widget class="Q3GroupBox" name="groupBox" >
23531
 
-          <property name="enabled" >
23532
 
-            <bool>true</bool>
23533
 
-          </property>
23534
 
-          <property name="title" >
23535
 
-            <string>Allowed &amp;Hosts</string>
23536
 
-          </property>
23537
 
-          <property name="toolTip" stdset="0" >
23538
 
-            <string>A list of allowed hosts</string>
23539
 
-          </property>
23540
 
-          <property name="whatsThis" stdset="0" >
23541
 
-            <string>Here you can see a list of hosts which are allowed to access this directory via NFS.
23542
 
-The first column shows the name or address of the host, the second column shows the access parameters. The name '*' donates public access.</string>
23543
 
-          </property>
23544
 
-          <layout class="QGridLayout" >
23545
 
-            <property name="margin" >
23546
 
-              <number>11</number>
23547
 
-            </property>
23548
 
-            <property name="spacing" >
23549
 
-              <number>6</number>
23550
 
-            </property>
23551
 
-            <item row="0" column="1" >
23552
 
-              <widget class="QPushButton" name="addHostBtn" >
23553
 
-                <property name="text" >
23554
 
-                  <string>&amp;Add Host...</string>
23555
 
-                </property>
23556
 
-              </widget>
23557
 
-            </item>
23558
 
-            <item row="1" column="1" >
23559
 
-              <widget class="QPushButton" name="modifyHostBtn" >
23560
 
-                <property name="enabled" >
23561
 
-                  <bool>false</bool>
23562
 
-                </property>
23563
 
-                <property name="text" >
23564
 
-                  <string>Mo&amp;dify Host...</string>
23565
 
-                </property>
23566
 
-              </widget>
23567
 
-            </item>
23568
 
-            <item row="2" column="1" >
23569
 
-              <widget class="QPushButton" name="removeHostBtn" >
23570
 
-                <property name="enabled" >
23571
 
-                  <bool>false</bool>
23572
 
-                </property>
23573
 
-                <property name="text" >
23574
 
-                  <string>&amp;Remove Host</string>
23575
 
-                </property>
23576
 
-              </widget>
23577
 
-            </item>
23578
 
-            <item row="3" column="1" >
23579
 
-              <spacer name="spacer3" >
23580
 
-                <property name="sizeHint" >
23581
 
-                  <size>
23582
 
-                    <width>20</width>
23583
 
-                    <height>40</height>
23584
 
-                  </size>
23585
 
-                </property>
23586
 
-                <property name="sizeType" >
23587
 
-                  <enum>QSizePolicy::Expanding</enum>
23588
 
-                </property>
23589
 
-                <property name="orientation" >
23590
 
-                  <enum>Qt::Vertical</enum>
23591
 
-                </property>
23592
 
-              </spacer>
23593
 
-            </item>
23594
 
-            <item rowspan="4" row="0" column="0" colspan="1" >
23595
 
-              <widget class="K3ListView" name="listView" >
23596
 
-                <property name="selectionMode" stdset="0" >
23597
 
-                  <enum>Extended</enum>
23598
 
-                </property>
23599
 
-                <property name="fullWidth" >
23600
 
-                  <bool>true</bool>
23601
 
-                </property>
23602
 
-                <column>
23603
 
-                  <property name="text" >
23604
 
-                    <string>Name/Address</string>
23605
 
-                  </property>
23606
 
-                  <property name="clickable" >
23607
 
-                    <bool>true</bool>
23608
 
-                  </property>
23609
 
-                  <property name="resizable" >
23610
 
-                    <bool>true</bool>
23611
 
-                  </property>
23612
 
-                </column>
23613
 
-                <column>
23614
 
-                  <property name="text" >
23615
 
-                    <string>Parameters</string>
23616
 
-                  </property>
23617
 
-                  <property name="clickable" >
23618
 
-                    <bool>true</bool>
23619
 
-                  </property>
23620
 
-                  <property name="resizable" >
23621
 
-                    <bool>true</bool>
23622
 
-                  </property>
23623
 
-                </column>
23624
 
-              </widget>
23625
 
-            </item>
23626
 
-          </layout>
23627
 
-        </widget>
23628
 
-      </item>
23629
 
-    </layout>
23630
 
-  </widget>
23631
 
-    <customwidgets>
23632
 
-    <customwidget>
23633
 
-      <class>K3ListView</class>
23634
 
-      <extends>Q3ListView</extends>
23635
 
-      <header location="global" >k3listview.h</header>
23636
 
-    </customwidget>
23637
 
-  </customwidgets>
23638
 
-  <tabstops>
23639
 
-    <tabstop>addHostBtn</tabstop>
23640
 
-    <tabstop>modifyHostBtn</tabstop>
23641
 
-    <tabstop>removeHostBtn</tabstop>
23642
 
-  </tabstops>
23643
 
-  <connections>
23644
 
-    <connection>
23645
 
-      <sender>listView</sender>
23646
 
-      <signal>selectionChanged()</signal>
23647
 
-      <receiver>NFSDialogGUI</receiver>
23648
 
-      <slot>listView_selectionChanged()</slot>
23649
 
-    </connection>
23650
 
-  </connections>
23651
 
-</ui>
23652
 
Index: kdenetwork-4.6.3/filesharing/advanced/nfs/nfsdialog.h
23653
 
===================================================================
23654
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/nfs/nfsdialog.h  2011-01-19 17:21:04.000000000 -0500
23655
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
23656
 
@@ -1,68 +0,0 @@
23657
 
-/*
23658
 
-  Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
23659
 
-
23660
 
-  This program is free software; you can redistribute it and/or modify
23661
 
-  it under the terms of the GNU General Public License as published by
23662
 
-  the Free Software Foundation; either version 2 of the License, or
23663
 
-  (at your option) any later version.
23664
 
-
23665
 
-  This program is distributed in the hope that it will be useful,
23666
 
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
23667
 
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23668
 
-  GNU General Public License for more details.
23669
 
-
23670
 
-  You should have received a copy of the GNU General Public License
23671
 
-  along with this program; if not, write to the Free Software
23672
 
-  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
23673
 
-
23674
 
-*/
23675
 
-
23676
 
-#ifndef NFSDIALOG_H
23677
 
-#define NFSDIALOG_H
23678
 
-
23679
 
-#include <kdialog.h>
23680
 
-#include "ui_nfsdialoggui.h"
23681
 
-
23682
 
-class NFSEntry;
23683
 
-class NFSHost;
23684
 
-class Q3ListViewItem;
23685
 
-
23686
 
-class NFSDialogGUI : public QWidget, public Ui::NFSDialogGUI
23687
 
-{
23688
 
-    Q_OBJECT
23689
 
-public:
23690
 
-    NFSDialogGUI( QWidget *parent );
23691
 
-
23692
 
-public slots:
23693
 
-    void listView_selectionChanged();
23694
 
-};
23695
 
-
23696
 
-
23697
 
-class NFSDialog : public KDialog
23698
 
-{
23699
 
-Q_OBJECT
23700
 
-public:
23701
 
-  NFSDialog(QWidget * parent, NFSEntry* entry);
23702
 
-  ~NFSDialog();
23703
 
-  bool modified();
23704
 
-protected:
23705
 
-  NFSEntry * m_nfsEntry;
23706
 
-  NFSEntry * m_workEntry;
23707
 
-  NFSDialogGUI* m_gui;
23708
 
-
23709
 
-  bool m_modified;
23710
 
-  Q3ListViewItem* createItemFromHost(NFSHost* host);
23711
 
-  void updateItem(Q3ListViewItem* item, NFSHost* host);
23712
 
-  void initGUI();
23713
 
-  void initListView();
23714
 
-  void initSlots();
23715
 
-  void initWorkEntry();
23716
 
-protected slots:
23717
 
-  void slotAddHost();
23718
 
-  void slotRemoveHost();
23719
 
-  void slotModifyHost();
23720
 
-  virtual void slotOk();
23721
 
-  void setModified();
23722
 
-};
23723
 
-
23724
 
-#endif
23725
 
Index: kdenetwork-4.6.3/filesharing/advanced/nfs/nfsentry.cpp
23726
 
===================================================================
23727
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/nfs/nfsentry.cpp 2011-01-19 17:21:04.000000000 -0500
23728
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
23729
 
@@ -1,381 +0,0 @@
23730
 
-/*
23731
 
-  Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
23732
 
-
23733
 
-  This program is free software; you can redistribute it and/or modify
23734
 
-  it under the terms of the GNU General Public License as published by
23735
 
-  the Free Software Foundation; either version 2 of the License, or
23736
 
-  (at your option) any later version.
23737
 
-
23738
 
-  This program is distributed in the hope that it will be useful,
23739
 
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
23740
 
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23741
 
-  GNU General Public License for more details.
23742
 
-
23743
 
-  You should have received a copy of the GNU General Public License
23744
 
-  along with this program; if not, write to the Free Software
23745
 
-  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
23746
 
-
23747
 
-*/
23748
 
-
23749
 
-#include <kdebug.h>
23750
 
-
23751
 
-#include "nfsentry.h"
23752
 
-
23753
 
-NFSHost::NFSHost(const QString & hostString)
23754
 
-{
23755
 
-  readonly = true;
23756
 
-
23757
 
-  QString s = hostString;
23758
 
-
23759
 
-  int l = s.indexOf('(');
23760
 
-  int r = s.indexOf(')');
23761
 
-
23762
 
-  initParams();
23763
 
-
23764
 
-  // get hostname
23765
 
-  if (l>=0)
23766
 
-    name = s.left(l);
23767
 
-  else
23768
 
-    name = s;
23769
 
-
23770
 
-  kDebug(5009) << "NFSHost: name='" << name << "'";
23771
 
-
23772
 
-  if (l>=0 && r>=0)
23773
 
-  {
23774
 
-    QString params = s.mid(l+1,r-l-1);
23775
 
-
23776
 
-    parseParamsString(params);
23777
 
-  }
23778
 
-}
23779
 
-
23780
 
-NFSHost::NFSHost() {
23781
 
-  initParams();
23782
 
-  name="";
23783
 
-}
23784
 
-
23785
 
-NFSHost::~NFSHost()
23786
 
-{
23787
 
-}
23788
 
-
23789
 
-/**
23790
 
- * Set the parameters to their default values
23791
 
- */
23792
 
-void NFSHost::initParams()
23793
 
-{
23794
 
-  readonly = true;
23795
 
-  sync = false;
23796
 
-  secure = true;
23797
 
-  wdelay = true;
23798
 
-  hide = true;
23799
 
-  subtreeCheck = true;
23800
 
-  secureLocks = true;
23801
 
-  allSquash = false;
23802
 
-  rootSquash = true;
23803
 
-
23804
 
-  anonuid = 65534;
23805
 
-  anongid = 65534;
23806
 
-}
23807
 
-
23808
 
-
23809
 
-void NFSHost::parseParamsString(const QString & s)
23810
 
-{
23811
 
-
23812
 
-  if (s.isEmpty())
23813
 
-      return;
23814
 
-
23815
 
-  int i;
23816
 
-
23817
 
-  QString rest = s;
23818
 
-  QString p;
23819
 
-
23820
 
-  do
23821
 
-  {
23822
 
-    i = rest.indexOf(",",0);
23823
 
-
23824
 
-    if (i==-1)
23825
 
-      p = rest;
23826
 
-    else
23827
 
-    {
23828
 
-      p = rest.left( i );
23829
 
-      rest = rest.mid(i+1);
23830
 
-    }
23831
 
-
23832
 
-    setParam(p);
23833
 
-  }
23834
 
-  while (i>-1);
23835
 
-
23836
 
-}
23837
 
-
23838
 
-QString NFSHost::paramString() const
23839
 
-{
23840
 
-  QString s;
23841
 
-
23842
 
-  if (!readonly) s+="rw,";
23843
 
-  if (!rootSquash) s+="no_root_squash,";
23844
 
-  if (!secure) s+="insecure,";
23845
 
-  if (!secureLocks) s+="insecure_locks,";
23846
 
-  if (!subtreeCheck) s+="no_subtree_check,";
23847
 
-  if (sync)
23848
 
-    s+="sync,";
23849
 
-  else
23850
 
-    s+="async,";
23851
 
-
23852
 
-  if (!wdelay) s+="wdelay,";
23853
 
-  if (allSquash) s+="all_squash,";
23854
 
-  if (!hide) s+="nohide,";
23855
 
-
23856
 
-  if (anongid!=65534)
23857
 
-     s+=QString("anongid=%1,").arg(anongid);
23858
 
-
23859
 
-  if (anonuid!=65534)
23860
 
-     s+=QString("anonuid=%1,").arg(anonuid);
23861
 
-
23862
 
-  // get rid of the last ','
23863
 
-  s.truncate(s.length()-1);
23864
 
-
23865
 
-  return s;
23866
 
-}
23867
 
-
23868
 
-QString NFSHost::toString() const
23869
 
-{
23870
 
-  QString s = name;
23871
 
-
23872
 
-  s+='(';
23873
 
-  s+=paramString();
23874
 
-  s+=')';
23875
 
-
23876
 
-  return s;
23877
 
-
23878
 
-}
23879
 
-
23880
 
-NFSHost* NFSHost::copy() const {
23881
 
-  NFSHost* result = new NFSHost();
23882
 
-
23883
 
-  result->name = name;
23884
 
-
23885
 
-  result->readonly = readonly;
23886
 
-  result->sync = sync;
23887
 
-  result->secure = secure;
23888
 
-  result->wdelay = wdelay;
23889
 
-  result->hide = hide;
23890
 
-  result->subtreeCheck = subtreeCheck;
23891
 
-  result->secureLocks = secureLocks;
23892
 
-  result->allSquash = allSquash;
23893
 
-  result->rootSquash = rootSquash;
23894
 
-
23895
 
-  result->anonuid = anonuid;
23896
 
-  result->anongid = anongid;
23897
 
-
23898
 
-  return result;
23899
 
-}
23900
 
-
23901
 
-bool NFSHost::isPublic() const {
23902
 
-  return name == "*";
23903
 
-}
23904
 
-
23905
 
-void NFSHost::setParam(const QString & s)
23906
 
-{
23907
 
-  QString p = s.toLower();
23908
 
-
23909
 
-  if (p=="ro") {
23910
 
-     readonly = true;
23911
 
-     return; }
23912
 
-
23913
 
-  if (p=="rw") {
23914
 
-     readonly = false;
23915
 
-     return; }
23916
 
-
23917
 
-  if (p=="sync") {
23918
 
-     sync = true;
23919
 
-     return; }
23920
 
-
23921
 
-  if (p=="async") {
23922
 
-     sync = false;
23923
 
-     return; }
23924
 
-
23925
 
-  if (p=="secure") {
23926
 
-     secure = true;
23927
 
-     return; }
23928
 
-
23929
 
-  if (p=="insecure") {
23930
 
-     secure = false;
23931
 
-     return; }
23932
 
-
23933
 
-  if (p=="wdelay") {
23934
 
-     wdelay = true;
23935
 
-     return; }
23936
 
-
23937
 
-  if (p=="no_wdelay") {
23938
 
-     wdelay = false;
23939
 
-     return; }
23940
 
-
23941
 
-  if (p=="hide") {
23942
 
-     hide = true;
23943
 
-     return; }
23944
 
-
23945
 
-  if (p=="nohide") {
23946
 
-     hide = false;
23947
 
-     return; }
23948
 
-
23949
 
-  if (p=="subtree_check") {
23950
 
-     subtreeCheck = true;
23951
 
-     return; }
23952
 
-
23953
 
-  if (p=="no_subtree_check") {
23954
 
-     subtreeCheck = false;
23955
 
-     return; }
23956
 
-
23957
 
-  if (p=="secure_locks" ||
23958
 
-      p=="auth_nlm") {
23959
 
-     secureLocks = true;
23960
 
-     return; }
23961
 
-
23962
 
-  if (p=="insecure_locks" ||
23963
 
-      p=="no_auth_nlm" ) {
23964
 
-     secureLocks = true;
23965
 
-     return; }
23966
 
-
23967
 
-  if (p=="all_squash") {
23968
 
-     allSquash = true;
23969
 
-     return; }
23970
 
-
23971
 
-  if (p=="no_all_squash") {
23972
 
-     allSquash = false;
23973
 
-     return; }
23974
 
-
23975
 
-  if (p=="root_squash") {
23976
 
-     rootSquash = true;
23977
 
-     return; }
23978
 
-
23979
 
-  if (p=="no_root_squash") {
23980
 
-     rootSquash = false;
23981
 
-     return; }
23982
 
-
23983
 
-  int i = p.indexOf('=',0);
23984
 
-
23985
 
-  // get anongid or anonuid
23986
 
-  if (i>-1)
23987
 
-  {
23988
 
-     QString name = p.left(i).toLower();
23989
 
-     kDebug(5009) << name;
23990
 
-
23991
 
-     QString value = p.mid(i+1);
23992
 
-     kDebug(5009) << value;
23993
 
-
23994
 
-    if (name=="anongid")
23995
 
-       anongid = value.toInt();
23996
 
-
23997
 
-    if (name=="anonuid")
23998
 
-       anonuid = value.toInt();
23999
 
-  }
24000
 
-
24001
 
-}
24002
 
-
24003
 
-NFSEntry::NFSEntry(const QString & path)
24004
 
-{
24005
 
-  _hosts.setAutoDelete(true);
24006
 
-  setPath(path);
24007
 
-}
24008
 
-
24009
 
-NFSEntry::~NFSEntry()
24010
 
-{
24011
 
-}
24012
 
-
24013
 
-void NFSEntry::clear() {
24014
 
-  _hosts.clear();
24015
 
-}
24016
 
-
24017
 
-NFSEntry* NFSEntry::copy() {
24018
 
-  NFSEntry* result = new NFSEntry(path());
24019
 
-  result->copyFrom(this);
24020
 
-  return result;
24021
 
-}
24022
 
-
24023
 
-void NFSEntry::copyFrom(NFSEntry* entry) {
24024
 
-  clear();
24025
 
-  HostIterator it = entry->getHosts();
24026
 
-
24027
 
-  NFSHost* host;
24028
 
-  while ( (host = it.current()) != 0 )  {
24029
 
-    ++it;
24030
 
-    addHost(host->copy());
24031
 
-  }
24032
 
-}
24033
 
-
24034
 
-QString NFSEntry::toString() const
24035
 
-{
24036
 
-  QString s = _path.trimmed();
24037
 
-
24038
 
-  if (_path.contains(' ')) {
24039
 
-    s = '"'+s+'"';
24040
 
-  }
24041
 
-
24042
 
-  s += ' ';
24043
 
-
24044
 
-  HostIterator it = getHosts();
24045
 
-
24046
 
-  NFSHost* host;
24047
 
-
24048
 
-  while ( (host = it.current()) != 0 )
24049
 
-  {
24050
 
-    ++it;
24051
 
-    s+= host->toString() ;
24052
 
-    if (it.current())
24053
 
-        s+= " \\\n\t ";
24054
 
-  }
24055
 
-
24056
 
-
24057
 
-  return s;
24058
 
-}
24059
 
-
24060
 
-void NFSEntry::addHost(NFSHost * host)
24061
 
-{
24062
 
-  _hosts.append(host);
24063
 
-}
24064
 
-
24065
 
-void NFSEntry::removeHost(NFSHost * host)
24066
 
-{
24067
 
-  _hosts.remove(host);
24068
 
-}
24069
 
-
24070
 
-NFSHost* NFSEntry::getHostByName(const QString & name) const
24071
 
-{
24072
 
-  HostIterator it = getHosts();
24073
 
-  NFSHost* host;
24074
 
-
24075
 
-  while ( (host = it.current()) != 0 )
24076
 
-  {
24077
 
-    ++it;
24078
 
-
24079
 
-    if (host->name==name)
24080
 
-      return host;
24081
 
-  }
24082
 
-
24083
 
-  return 0;
24084
 
-}
24085
 
-
24086
 
-NFSHost* NFSEntry::getPublicHost() const
24087
 
-{
24088
 
-  NFSHost* result = getHostByName("*");
24089
 
-  if (result)
24090
 
-      return result;
24091
 
-
24092
 
-  return getHostByName(QString::null); //krazy:exclude=nullstrassign for old broken gcc
24093
 
-}
24094
 
-
24095
 
-
24096
 
-HostIterator NFSEntry::getHosts() const
24097
 
-{
24098
 
-  return HostIterator(_hosts);
24099
 
-}
24100
 
-
24101
 
-QString NFSEntry::path() const
24102
 
-{
24103
 
-  return _path;
24104
 
-}
24105
 
-
24106
 
-void NFSEntry::setPath(const QString & path)
24107
 
-{
24108
 
-  _path = path;
24109
 
-}
24110
 
-
24111
 
Index: kdenetwork-4.6.3/filesharing/advanced/nfs/nfsentry.h
24112
 
===================================================================
24113
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/nfs/nfsentry.h   2011-01-19 17:21:04.000000000 -0500
24114
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
24115
 
@@ -1,121 +0,0 @@
24116
 
-/*
24117
 
-  Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
24118
 
-
24119
 
-  This program is free software; you can redistribute it and/or modify
24120
 
-  it under the terms of the GNU General Public License as published by
24121
 
-  the Free Software Foundation; either version 2 of the License, or
24122
 
-  (at your option) any later version.
24123
 
-
24124
 
-  This program is distributed in the hope that it will be useful,
24125
 
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
24126
 
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24127
 
-  GNU General Public License for more details.
24128
 
-
24129
 
-  You should have received a copy of the GNU General Public License
24130
 
-  along with this program; if not, write to the Free Software
24131
 
-  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
24132
 
-
24133
 
-*/
24134
 
-
24135
 
-#ifndef NFSENTRY_H
24136
 
-#define NFSENTRY_H
24137
 
-
24138
 
-
24139
 
-#include <qstring.h>
24140
 
-#include <q3ptrlist.h>
24141
 
-
24142
 
-
24143
 
-class NFSHost
24144
 
-{
24145
 
-public:
24146
 
-  NFSHost(const QString & hostString);
24147
 
-  ~NFSHost();
24148
 
-  NFSHost();
24149
 
-
24150
 
-  bool readonly;
24151
 
-  bool sync;
24152
 
-  bool secure;
24153
 
-  bool wdelay;
24154
 
-  bool hide;
24155
 
-  bool subtreeCheck;
24156
 
-  bool secureLocks;
24157
 
-  bool allSquash;
24158
 
-  bool rootSquash;
24159
 
-
24160
 
-  int anonuid;
24161
 
-  int anongid;
24162
 
-
24163
 
-  QString name;
24164
 
-
24165
 
-  QString paramString() const;
24166
 
-  QString toString() const;
24167
 
-  bool isPublic() const;
24168
 
-  
24169
 
-  /** returns a copy of this host */
24170
 
-  NFSHost* copy() const;
24171
 
-protected:
24172
 
-  void parseParamsString(const QString &);
24173
 
-  void setParam(const QString &);
24174
 
-  void initParams();
24175
 
-};
24176
 
-
24177
 
-
24178
 
-
24179
 
-typedef Q3PtrList<NFSHost> HostList;
24180
 
-typedef Q3PtrListIterator<NFSHost> HostIterator;
24181
 
-
24182
 
-class NFSLine {
24183
 
-public: 
24184
 
-  virtual ~NFSLine(){}
24185
 
-  virtual QString toString() const = 0;
24186
 
-};
24187
 
-
24188
 
-typedef Q3PtrList<NFSLine> NFSLineList;
24189
 
-typedef Q3PtrListIterator<NFSLine> NFSLineIterator;
24190
 
-
24191
 
-class NFSEmptyLine : public NFSLine {
24192
 
-public:
24193
 
-  virtual QString toString() const { return QString::fromLatin1("\n"); }
24194
 
-  virtual ~NFSEmptyLine() {}
24195
 
-};
24196
 
-
24197
 
-class NFSComment : public NFSLine {
24198
 
-public:
24199
 
-  NFSComment(const QString & s) { comment = s; }
24200
 
-  virtual ~NFSComment() {}
24201
 
-  QString comment;
24202
 
-  virtual QString toString() const { return comment; }
24203
 
-};
24204
 
-
24205
 
-class NFSEntry : public NFSLine {
24206
 
-public:
24207
 
-  NFSEntry(const QString & path);
24208
 
-  virtual ~NFSEntry();
24209
 
-
24210
 
-  void addHost(NFSHost * host);
24211
 
-  void removeHost(NFSHost * host);
24212
 
-  NFSHost* getHostByName(const QString & name) const;
24213
 
-  NFSHost* getPublicHost() const;
24214
 
-  HostIterator getHosts() const;
24215
 
-  
24216
 
-  /** Creates a deep copy of this entry */
24217
 
-  NFSEntry * copy();
24218
 
-  
24219
 
-  /** clears all hosts and makes a deep copy of 
24220
 
-   *  the given entry
24221
 
-   */
24222
 
-  void copyFrom(NFSEntry* entry);
24223
 
-  
24224
 
-  /** removes all hosts */
24225
 
-  void clear();
24226
 
-  QString path() const;
24227
 
-  void setPath(const QString &);
24228
 
-
24229
 
-  virtual QString toString() const;
24230
 
-
24231
 
-protected:
24232
 
-  HostList _hosts;
24233
 
-  QString _path;
24234
 
-};
24235
 
-
24236
 
-#endif
24237
 
Index: kdenetwork-4.6.3/filesharing/advanced/nfs/nfsfile.cpp
24238
 
===================================================================
24239
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/nfs/nfsfile.cpp  2011-01-19 17:21:04.000000000 -0500
24240
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
24241
 
@@ -1,264 +0,0 @@
24242
 
-/*
24243
 
-  Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
24244
 
-
24245
 
-  This program is free software; you can redistribute it and/or modify
24246
 
-  it under the terms of the GNU General Public License as published by
24247
 
-  the Free Software Foundation; either version 2 of the License, or
24248
 
-  (at your option) any later version.
24249
 
-
24250
 
-  This program is distributed in the hope that it will be useful,
24251
 
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
24252
 
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24253
 
-  GNU General Public License for more details.
24254
 
-
24255
 
-  You should have received a copy of the GNU General Public License
24256
 
-  along with this program; if not, write to the Free Software
24257
 
-  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
24258
 
-
24259
 
-*/
24260
 
-
24261
 
-#include <pwd.h>
24262
 
-#include <time.h>
24263
 
-#include <unistd.h>
24264
 
-
24265
 
-#include <qfileinfo.h>
24266
 
-#include <qfile.h>
24267
 
-#include <qtextstream.h>
24268
 
-#include <qstringlist.h>
24269
 
-#include <KStandardDirs>
24270
 
-#include <kdebug.h>
24271
 
-#include <kmessagebox.h>
24272
 
-#include <klocale.h>
24273
 
-#include <knfsshare.h>
24274
 
-#include <ktemporaryfile.h>
24275
 
-#include <kprocess.h>
24276
 
-#include <kshell.h>
24277
 
-#include "nfsfile.h"
24278
 
-
24279
 
-NFSFile::NFSFile(const KUrl & url, bool readonly)
24280
 
-{
24281
 
-  _lines.setAutoDelete(true);
24282
 
-  _entries.setAutoDelete(false);
24283
 
-  _url = url;
24284
 
-  _readonly = readonly;
24285
 
-}
24286
 
-
24287
 
-NFSFile::~NFSFile()
24288
 
-{
24289
 
-}
24290
 
-
24291
 
-void NFSFile::addEntry(NFSEntry *entry)
24292
 
-{
24293
 
-  _lines.append(entry);
24294
 
-  _entries.append(entry);
24295
 
-}
24296
 
-
24297
 
-void NFSFile::removeEntry(NFSEntry *entry)
24298
 
-{
24299
 
-  _entries.remove(entry);
24300
 
-  _lines.remove(entry);
24301
 
-}
24302
 
-
24303
 
-bool NFSFile::hasEntry(NFSEntry *entry)
24304
 
-{
24305
 
-  return 0 < _entries.contains(entry);
24306
 
-}
24307
 
-
24308
 
-
24309
 
-NFSEntry* NFSFile::getEntryByPath(const QString & path)
24310
 
-{
24311
 
-  if( path.isEmpty())
24312
 
-     return 0L;
24313
 
-
24314
 
-  QString testPath = path.trimmed();
24315
 
-  if ( !testPath.endsWith('/') )
24316
 
-       testPath += '/';
24317
 
-
24318
 
-  for (NFSEntry* entry = _entries.first(); entry; entry = _entries.next())
24319
 
-  {
24320
 
-    if (entry->path()==testPath)
24321
 
-       return entry;
24322
 
-  }
24323
 
-
24324
 
-  return 0L;
24325
 
-}
24326
 
-
24327
 
-bool NFSFile::removeEntryByPath(const QString & path) {
24328
 
-  NFSEntry* entry = getEntryByPath(path);
24329
 
-  if (!entry)
24330
 
-      return false;
24331
 
-
24332
 
-  removeEntry(entry);
24333
 
-  return true;
24334
 
-}
24335
 
-
24336
 
-EntryIterator NFSFile::getEntries()
24337
 
-{
24338
 
-  return EntryIterator(_entries);
24339
 
-}
24340
 
-
24341
 
-
24342
 
-
24343
 
-
24344
 
-bool NFSFile::load()
24345
 
-{
24346
 
-  QFile f(_url.path());
24347
 
-
24348
 
-  if ( !f.open(QIODevice::ReadOnly) ) {
24349
 
-    kError() << "NFSFile::load: Could not open " << _url.path() << endl;
24350
 
-    return false;
24351
 
-  }
24352
 
-
24353
 
-  _entries.clear();
24354
 
-  _lines.clear();
24355
 
-
24356
 
-  QTextStream s( &f );
24357
 
-
24358
 
-  bool continuedLine = false; // is true if the line before ended with a backslash
24359
 
-  QString completeLine;
24360
 
-
24361
 
-  while ( !s.atEnd() )
24362
 
-  {
24363
 
-    QString currentLine = s.readLine().trimmed();
24364
 
-
24365
 
-    if (continuedLine) {
24366
 
-      completeLine += currentLine;
24367
 
-      continuedLine = false;
24368
 
-    }
24369
 
-    else
24370
 
-      completeLine = currentLine;
24371
 
-
24372
 
-    // is the line continued in the next line ?
24373
 
-    if ( completeLine.endsWith('\\') )
24374
 
-    {
24375
 
-      continuedLine = true;
24376
 
-      // remove the ending backslash
24377
 
-      completeLine.truncate( completeLine.length()-1 );
24378
 
-      continue;
24379
 
-    }
24380
 
-
24381
 
-    // empty lines
24382
 
-    if (completeLine.isEmpty()) {
24383
 
-      _lines.append(new NFSEmptyLine());
24384
 
-      continue;
24385
 
-    }
24386
 
-
24387
 
-    // comments
24388
 
-    if (completeLine.startsWith('#') ) {
24389
 
-      _lines.append(new NFSComment(completeLine));
24390
 
-      continue;
24391
 
-    }
24392
 
-
24393
 
-    QString path;
24394
 
-    QString hosts;
24395
 
-
24396
 
-    // Handle quotation marks
24397
 
-    if ( completeLine.startsWith('"') ) {
24398
 
-      int i = completeLine.indexOf('"',1);
24399
 
-      if (i == -1) {
24400
 
-        kError() << "NFSFile: Parse error: Missing quotation mark: "
24401
 
-                  << completeLine << endl;
24402
 
-        continue;
24403
 
-      }
24404
 
-      path = completeLine.mid(1,i-1);
24405
 
-      hosts = completeLine.mid(i+1);
24406
 
-
24407
 
-    } else { // no quotation marks
24408
 
-      int i = completeLine.indexOf(' ');
24409
 
-      if (i == -1)
24410
 
-          i = completeLine.indexOf('\t');
24411
 
-
24412
 
-      if (i == -1)
24413
 
-        path = completeLine;
24414
 
-      else {
24415
 
-        path = completeLine.left(i);
24416
 
-        hosts = completeLine.mid(i+1).trimmed();
24417
 
-      }
24418
 
-    }
24419
 
-
24420
 
-    // normalize path
24421
 
-    if ( !path.endsWith('/') )
24422
 
-            path += '/';
24423
 
-
24424
 
-    kDebug(5009) << "KNFSShare: Found path: '" << path << "'";
24425
 
-    NFSEntry *entry = new NFSEntry(path);
24426
 
-    QStringList hostList = QStringList::split(' ', hosts);
24427
 
-
24428
 
-    if (hostList.isEmpty()) {
24429
 
-        NFSHost* host = new NFSHost("*");
24430
 
-        entry->addHost(host);
24431
 
-    } else {
24432
 
-      QStringList::iterator it;
24433
 
-      for ( it = hostList.begin(); it != hostList.end(); ++it ) {
24434
 
-         NFSHost* host = new NFSHost((*it).trimmed());
24435
 
-         entry->addHost(host);
24436
 
-         kDebug(5009) << "KNFSShare: Found host: " << (*it) << " name='"
24437
 
-                  << host->name << "'" << endl;
24438
 
-      }
24439
 
-    }
24440
 
-
24441
 
-    kDebug(5009) << "KNFSShare: Found hosts: " << hosts << "'";
24442
 
-    this->addEntry(entry);
24443
 
-  }
24444
 
-
24445
 
-  f.close();
24446
 
-
24447
 
-
24448
 
-  return true;
24449
 
-
24450
 
-}
24451
 
-
24452
 
-void NFSFile::saveTo(QTextStream * stream) {
24453
 
-  Q3PtrListIterator<NFSLine> it(_lines);
24454
 
-
24455
 
-  NFSLine *line;
24456
 
-  while ( (line = it.current()) != 0 ) {
24457
 
-    ++it;
24458
 
-    *stream << line->toString() << endl;
24459
 
-  }
24460
 
-}
24461
 
-
24462
 
-bool NFSFile::saveTo(const QString& fileName) {
24463
 
-    QFile file(fileName);
24464
 
-    if (!file.open(QIODevice::WriteOnly))
24465
 
-        return false;
24466
 
-
24467
 
-    QTextStream stream(&file);
24468
 
-    saveTo(&stream);
24469
 
-    file.close();
24470
 
-    return true;
24471
 
-}
24472
 
-
24473
 
-bool NFSFile::save()
24474
 
-{
24475
 
-  if (QFileInfo(_url.path()).isWritable() ) {
24476
 
-    saveTo(_url.path());
24477
 
-  } else
24478
 
-  {
24479
 
-
24480
 
-    KTemporaryFile tempFile;
24481
 
-    tempFile.open();
24482
 
-    saveTo(tempFile.fileName());
24483
 
-
24484
 
-    QString command = QString("cp %1 %2")
24485
 
-        .arg(KShell::quoteArg( tempFile.fileName() ),
24486
 
-             KShell::quoteArg( _url.path() ));
24487
 
-
24488
 
-    if (restartNFSServer)
24489
 
-      command +=" && exportfs -ra";
24490
 
-
24491
 
-    KProcess proc;
24492
 
-    if (!QFileInfo(_url.path()).isWritable() || restartNFSServer)
24493
 
-      proc<<KStandardDirs::findExe("kdesu") << "-d" << "-c"<<command;
24494
 
-    else
24495
 
-      proc.setShellCommand(command);
24496
 
-
24497
 
-    if (proc.execute()) {
24498
 
-      return false;
24499
 
-    }
24500
 
-
24501
 
-
24502
 
-  }
24503
 
-  return true;
24504
 
-}
24505
 
-
24506
 
Index: kdenetwork-4.6.3/filesharing/advanced/nfs/nfsfile.h
24507
 
===================================================================
24508
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/nfs/nfsfile.h    2011-01-19 17:21:04.000000000 -0500
24509
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
24510
 
@@ -1,62 +0,0 @@
24511
 
-/*
24512
 
-  Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
24513
 
-
24514
 
-  This program is free software; you can redistribute it and/or modify
24515
 
-  it under the terms of the GNU General Public License as published by
24516
 
-  the Free Software Foundation; either version 2 of the License, or
24517
 
-  (at your option) any later version.
24518
 
-
24519
 
-  This program is distributed in the hope that it will be useful,
24520
 
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
24521
 
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24522
 
-  GNU General Public License for more details.
24523
 
-
24524
 
-  You should have received a copy of the GNU General Public License
24525
 
-  along with this program; if not, write to the Free Software
24526
 
-  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
24527
 
-
24528
 
-*/
24529
 
-
24530
 
-#ifndef NFSFILE_H
24531
 
-#define NFSFILE_H
24532
 
-
24533
 
-
24534
 
-#include <kurl.h>
24535
 
-#include "nfsentry.h"
24536
 
-//Added by qt3to4:
24537
 
-#include <QTextStream>
24538
 
-#include <Q3PtrList>
24539
 
-
24540
 
-typedef Q3PtrList<NFSEntry> EntryList;
24541
 
-typedef Q3PtrListIterator<NFSEntry> EntryIterator;
24542
 
-
24543
 
-class QTextStream;
24544
 
-
24545
 
-class NFSFile {
24546
 
-public:
24547
 
-  NFSFile(const KUrl & , bool readonly = true);
24548
 
-  ~NFSFile();
24549
 
-
24550
 
-  void addEntry(NFSEntry *);
24551
 
-  void removeEntry(NFSEntry *);
24552
 
-  bool hasEntry(NFSEntry *);
24553
 
-  NFSEntry* getEntryByPath(const QString &);
24554
 
-  bool removeEntryByPath(const QString &);
24555
 
-  EntryIterator getEntries();
24556
 
-
24557
 
-  bool save();
24558
 
-  bool saveTo(const QString& fileName);
24559
 
-  void saveTo(QTextStream * stream);  
24560
 
-  bool load();
24561
 
-
24562
 
-  bool restartNFSServer;
24563
 
-
24564
 
-
24565
 
-protected:
24566
 
-  KUrl _url;
24567
 
-  bool _readonly;
24568
 
-  EntryList _entries;
24569
 
-  NFSLineList _lines;
24570
 
-};
24571
 
-
24572
 
-#endif
24573
 
Index: kdenetwork-4.6.3/filesharing/advanced/nfs/nfshostdlg.cpp
24574
 
===================================================================
24575
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/nfs/nfshostdlg.cpp       2011-01-19 17:21:04.000000000 -0500
24576
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
24577
 
@@ -1,233 +0,0 @@
24578
 
-/***************************************************************************
24579
 
-                          nfshostdlg.cpp  -  description
24580
 
-                             -------------------
24581
 
-    begin                : Mon Apr 29 2002
24582
 
-    copyright            : (C) 2002 by Jan Sch�er
24583
 
-    email                : janschaefer@users.sourceforge.net
24584
 
- ***************************************************************************/
24585
 
-
24586
 
-/***************************************************************************
24587
 
- *                                                                         *
24588
 
- *   This program is free software; you can redistribute it and/or modify  *
24589
 
- *   it under the terms of the GNU General Public License as published by  *
24590
 
- *   the Free Software Foundation; either version 2 of the License, or     *
24591
 
- *   (at your option) any later version.                                   *
24592
 
- *                                                                         *
24593
 
- ***************************************************************************/
24594
 
-
24595
 
-#include <qcheckbox.h>
24596
 
-#include <qlayout.h>
24597
 
-#include <qlineedit.h>
24598
 
-#include <q3whatsthis.h>
24599
 
-#include <q3groupbox.h>
24600
 
-//Added by qt3to4:
24601
 
-#include <QVBoxLayout>
24602
 
-#include <klocale.h>
24603
 
-#include <kdebug.h>
24604
 
-#include <kmessagebox.h>
24605
 
-
24606
 
-#include <assert.h>
24607
 
-
24608
 
-#include "nfshostdlg.h"
24609
 
-#include "hostprops.h"
24610
 
-#include "nfsentry.h"
24611
 
-
24612
 
-
24613
 
-NFSHostDlg::NFSHostDlg(QWidget* parent, HostList* hosts, NFSEntry* entry)
24614
 
-  : KDialog(parent),
24615
 
-  m_hosts(hosts), m_nfsEntry(entry), m_modified(false)
24616
 
-{
24617
 
-  setCaption(i18n("Host Properties"));
24618
 
-  setButtons(Ok|Cancel);
24619
 
-  setDefaultButton(Ok);
24620
 
-  
24621
 
-  QWidget* page = new QWidget(this);
24622
 
-  setMainWidget(page);
24623
 
-
24624
 
-  m_gui = new HostProps(page);
24625
 
-
24626
 
-  QVBoxLayout *layout = new QVBoxLayout( page );
24627
 
-  layout->setSpacing( 6 );
24628
 
-  layout->setMargin( 0 );
24629
 
-  layout->addWidget( m_gui );
24630
 
-
24631
 
-  connect( m_gui, SIGNAL(modified()), this, SLOT(setModified()));
24632
 
-  connect(this,SIGNAL(okClicked()),this,SLOT(slotOk()));
24633
 
-  init();
24634
 
-
24635
 
-}
24636
 
-
24637
 
-NFSHostDlg::~NFSHostDlg()
24638
 
-{
24639
 
-}
24640
 
-
24641
 
-void NFSHostDlg::init()
24642
 
-{  
24643
 
-  if (m_hosts->count()==1) {
24644
 
-    NFSHost* host = m_hosts->first();
24645
 
-    assert(host);
24646
 
-    m_gui->nameEdit->setText(host->name);
24647
 
-    m_gui->publicChk->setChecked(host->isPublic());
24648
 
-
24649
 
-    setHostValues(host);  
24650
 
-    
24651
 
-    m_gui->nameEdit->setFocus();
24652
 
-  } else {
24653
 
-    m_gui->nameEdit->setDisabled(true);
24654
 
-    m_gui->publicChk->setDisabled(true);
24655
 
-    
24656
 
-    m_gui->readOnlyChk->setTristate();
24657
 
-    m_gui->allSquashChk->setTristate();
24658
 
-    m_gui->rootSquashChk->setTristate();
24659
 
-    m_gui->hideChk->setTristate();
24660
 
-    m_gui->secureChk->setTristate();
24661
 
-    m_gui->secureLocksChk->setTristate();
24662
 
-    m_gui->subtreeChk->setTristate();
24663
 
-    m_gui->syncChk->setTristate();
24664
 
-    m_gui->wdelayChk->setTristate();
24665
 
-    
24666
 
-    for (NFSHost* host = m_hosts->first(); host; host = m_hosts->next()) {
24667
 
-         setHostValues(host);
24668
 
-    }
24669
 
-  }   
24670
 
-}
24671
 
-
24672
 
-void NFSHostDlg::setHostValues(NFSHost* host) {
24673
 
-    setCheckBoxValue(m_gui->readOnlyChk, ! host->readonly);
24674
 
-    setCheckBoxValue(m_gui->allSquashChk, host->allSquash);
24675
 
-    setCheckBoxValue(m_gui->rootSquashChk, ! host->rootSquash);
24676
 
-    setCheckBoxValue(m_gui->hideChk, ! host->hide);
24677
 
-    setCheckBoxValue(m_gui->secureChk, ! host->secure);
24678
 
-    setCheckBoxValue(m_gui->secureLocksChk, ! host->secureLocks);
24679
 
-    setCheckBoxValue(m_gui->subtreeChk, ! host->subtreeCheck);
24680
 
-    setCheckBoxValue(m_gui->syncChk, host->sync);
24681
 
-    setCheckBoxValue(m_gui->wdelayChk, ! host->wdelay);
24682
 
-
24683
 
-    setEditValue(m_gui->anonuidEdit,QString::number(host->anonuid));
24684
 
-    setEditValue(m_gui->anongidEdit,QString::number(host->anongid));
24685
 
-}
24686
 
-
24687
 
-void NFSHostDlg::setEditValue(QLineEdit* edit, const QString & value) {
24688
 
-  if (edit->text().isEmpty()) 
24689
 
-      return;
24690
 
-      
24691
 
-  if (edit->text() == "FF")      
24692
 
-      edit->setText(value);
24693
 
-  else 
24694
 
-  if (edit->text() != value)
24695
 
-      edit->clear();
24696
 
-}
24697
 
-
24698
 
-void NFSHostDlg::setCheckBoxValue(QCheckBox* chk, bool value) {
24699
 
-  if (chk->checkState() == Qt::PartiallyChecked)
24700
 
-      return;
24701
 
-      
24702
 
-  if (chk->isChecked()) {
24703
 
-    if (! value)
24704
 
-      chk->setCheckState(Qt::PartiallyChecked);       
24705
 
-  } else {
24706
 
-    if (value)
24707
 
-      chk->setChecked(true);
24708
 
-  }
24709
 
-}
24710
 
-
24711
 
-
24712
 
-void NFSHostDlg::slotOk()
24713
 
-{
24714
 
-  if (m_hosts->count()==1) {
24715
 
-    NFSHost* host = m_hosts->first();
24716
 
-    if (! saveName(host))
24717
 
-      return;
24718
 
-
24719
 
-    saveValues(host);            
24720
 
-  } else {
24721
 
-    for (NFSHost* host = m_hosts->first(); host; host = m_hosts->next()) {
24722
 
-        saveValues(host);
24723
 
-    }
24724
 
-  }    
24725
 
-  
24726
 
-  KDialog::accept();
24727
 
-}
24728
 
-
24729
 
-bool NFSHostDlg::saveName(NFSHost* host) {
24730
 
-  if (m_gui->publicChk->isChecked()) {
24731
 
-     NFSHost* publicHost = m_nfsEntry->getPublicHost();
24732
 
-     if (publicHost && publicHost != host) {
24733
 
-       KMessageBox::sorry(this,i18n("There already exists a public entry."),
24734
 
-                          i18n("Host Already Exists"));
24735
 
-       m_gui->publicChk->setChecked(false);
24736
 
-       return false;
24737
 
-     }
24738
 
-     host->name="*";
24739
 
-  } else {   
24740
 
-    QString name = m_gui->nameEdit->text().trimmed();
24741
 
-    if (name.isEmpty()) {
24742
 
-      KMessageBox::sorry(this,
24743
 
-              i18n("Please enter a hostname or an IP address."),
24744
 
-              i18n("No Hostname/IP-Address"));
24745
 
-      m_gui->nameEdit->setFocus();
24746
 
-      return false;
24747
 
-    } else {
24748
 
-      NFSHost* host2 = m_nfsEntry->getHostByName(name);
24749
 
-      if (host2 && host2 != host) {
24750
 
-        KMessageBox::sorry(this,i18n("The host '%1' already exists.", name),
24751
 
-                          i18n("Host Already Exists"));
24752
 
-        m_gui->nameEdit->setFocus();
24753
 
-        return false;
24754
 
-      }
24755
 
-    }      
24756
 
-    host->name=name;
24757
 
-  }
24758
 
-
24759
 
-  return true;
24760
 
-}
24761
 
-
24762
 
-
24763
 
-void NFSHostDlg::saveValues(NFSHost* host) {
24764
 
-  
24765
 
-  saveCheckBoxValue(host->readonly,m_gui->readOnlyChk,true);
24766
 
-  saveCheckBoxValue(host->allSquash,m_gui->allSquashChk,false);
24767
 
-  saveCheckBoxValue(host->rootSquash,m_gui->rootSquashChk,true);
24768
 
-  saveCheckBoxValue(host->hide,m_gui->hideChk,true);
24769
 
-  saveCheckBoxValue(host->secure,m_gui->secureChk,true);
24770
 
-  saveCheckBoxValue(host->secureLocks,m_gui->secureLocksChk,true);
24771
 
-  saveCheckBoxValue(host->subtreeCheck,m_gui->subtreeChk,true);
24772
 
-  saveCheckBoxValue(host->sync,m_gui->syncChk,false);
24773
 
-  saveCheckBoxValue(host->wdelay,m_gui->wdelayChk,true);
24774
 
-
24775
 
-  saveEditValue(host->anonuid,m_gui->anonuidEdit);
24776
 
-  saveEditValue(host->anongid,m_gui->anongidEdit);
24777
 
-}
24778
 
-
24779
 
-void NFSHostDlg::saveEditValue(int & value, QLineEdit* edit) {
24780
 
-  if ( edit->text().isEmpty())
24781
 
-      return;
24782
 
-  
24783
 
-  value = edit->text().toInt();
24784
 
-}
24785
 
-
24786
 
-void NFSHostDlg::saveCheckBoxValue(bool & value, QCheckBox* chk, bool neg) {
24787
 
-  if (chk->checkState() == Qt::PartiallyChecked)
24788
 
-    return;
24789
 
-  
24790
 
-  if (neg)      
24791
 
-    value = ! chk->isChecked();    
24792
 
-  else
24793
 
-    value = chk->isChecked();            
24794
 
-}
24795
 
24796
 
-
24797
 
-
24798
 
-bool NFSHostDlg::isModified() {
24799
 
-  return m_modified;
24800
 
-}
24801
 
-
24802
 
-
24803
 
-void NFSHostDlg::setModified()
24804
 
-{
24805
 
-  m_modified = true;
24806
 
-}
24807
 
-
24808
 
-#include "nfshostdlg.moc"
24809
 
-
24810
 
-
24811
 
Index: kdenetwork-4.6.3/filesharing/advanced/nfs/nfshostdlg.h
24812
 
===================================================================
24813
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/nfs/nfshostdlg.h 2011-01-19 17:21:04.000000000 -0500
24814
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
24815
 
@@ -1,59 +0,0 @@
24816
 
-/***************************************************************************
24817
 
-                          nfshostdlg.h  -  description
24818
 
-                             -------------------
24819
 
-    begin                : Mon Apr 29 2002
24820
 
-    copyright            : (C) 2002 by Jan Schäfer
24821
 
-    email                : janschaefer@users.sourceforge.net
24822
 
- ***************************************************************************/
24823
 
-
24824
 
-/***************************************************************************
24825
 
- *                                                                         *
24826
 
- *   This program is free software; you can redistribute it and/or modify  *
24827
 
- *   it under the terms of the GNU General Public License as published by  *
24828
 
- *   the Free Software Foundation; either version 2 of the License, or     *
24829
 
- *   (at your option) any later version.                                   *
24830
 
- *                                                                         *
24831
 
- ***************************************************************************/
24832
 
-
24833
 
-#ifndef NFSHOSTDLG_H
24834
 
-#define NFSHOSTDLG_H
24835
 
-
24836
 
-#include <kdialog.h>
24837
 
-#include "nfsentry.h"
24838
 
-
24839
 
-class NFSHost;
24840
 
-class HostProps;
24841
 
-class NFSEntry;
24842
 
-class QCheckBox;
24843
 
-class QLineEdit;
24844
 
-
24845
 
-
24846
 
-class NFSHostDlg : public KDialog
24847
 
-{
24848
 
-Q_OBJECT
24849
 
-public: 
24850
 
-       NFSHostDlg(QWidget* parent, HostList* hosts, NFSEntry* entry);
24851
 
-       virtual ~NFSHostDlg();
24852
 
-    bool isModified();
24853
 
-protected:
24854
 
-  HostList* m_hosts;
24855
 
-  NFSEntry* m_nfsEntry;
24856
 
-  HostProps* m_gui;
24857
 
-  bool m_modified;
24858
 
-  
24859
 
-  void init();
24860
 
-protected slots:
24861
 
-  virtual void slotOk();
24862
 
-  void setModified();
24863
 
-  
24864
 
-private:
24865
 
-  void setHostValues(NFSHost* host);
24866
 
-  void setEditValue(QLineEdit* edit, const QString & value);
24867
 
-  void setCheckBoxValue(QCheckBox* chk, bool value);
24868
 
-  bool saveName(NFSHost* host);
24869
 
-  void saveValues(NFSHost* host);
24870
 
-  void saveEditValue(int & value, QLineEdit* edit);
24871
 
-  void saveCheckBoxValue(bool & value, QCheckBox* chk, bool neg);
24872
 
-};
24873
 
-
24874
 
-#endif
24875
 
Index: kdenetwork-4.6.3/filesharing/advanced/propsdlgplugin/CMakeLists.txt
24876
 
===================================================================
24877
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/propsdlgplugin/CMakeLists.txt    2011-01-19 17:21:04.000000000 -0500
24878
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
24879
 
@@ -1,32 +0,0 @@
24880
 
-include_directories(${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/ ${CMAKE_SOURCE_DIR}/filesharing/advanced/nfs/)
24881
 
-
24882
 
-########### next target ###############
24883
 
-
24884
 
-set(fileshare_propsdlgplugin_PART_SRCS propsdlgshareplugin.cpp ${libpropsdlgplugin_common_SRCS} ${libfilesharesamba_SRCS} ${libfilesharenfs_SRCS})
24885
 
-
24886
 
-kde4_add_ui3_files(fileshare_propsdlgplugin_PART_SRCS
24887
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/nfs/hostprops.ui
24888
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/socketoptionsdlg.ui
24889
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/userselectdlg.ui
24890
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/groupselectdlg.ui
24891
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/usertab.ui
24892
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/filemodedlg.ui
24893
 
-)
24894
 
-
24895
 
-kde4_add_ui_files(fileshare_propsdlgplugin_PART_SRCS
24896
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/share.ui
24897
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/expertuserdlg.ui
24898
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/nfs/nfsdialoggui.ui
24899
 
-    propertiespagegui.ui
24900
 
-)
24901
 
-
24902
 
-
24903
 
-kde4_add_plugin(fileshare_propsdlgplugin ${fileshare_propsdlgplugin_PART_SRCS})
24904
 
-
24905
 
-target_link_libraries(fileshare_propsdlgplugin ${KDE4_KIO_LIBS} ${KDE4_KDE3SUPPORT_LIBS})
24906
 
-
24907
 
-install(TARGETS fileshare_propsdlgplugin DESTINATION ${PLUGIN_INSTALL_DIR})
24908
 
-
24909
 
-########### install files ###############
24910
 
-
24911
 
-install(FILES fileshare_propsdlgplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR})
24912
 
Index: kdenetwork-4.6.3/filesharing/advanced/propsdlgplugin/fileshare_propsdlgplugin.desktop
24913
 
===================================================================
24914
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/propsdlgplugin/fileshare_propsdlgplugin.desktop  2011-02-25 16:47:35.000000000 -0500
24915
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
24916
 
@@ -1,133 +0,0 @@
24917
 
-[Desktop Entry]
24918
 
-Type=Service
24919
 
-Icon=preferences-system-network-share-windows
24920
 
-Name=Fileshare Konqueror Directory Properties Page
24921
 
-Name[ar]=صفحة دليل خصائص مشاركة ملفات كونكيورر 
24922
 
-Name[ast]=Páxina de propiedaes del direutoriu pa compartir ficheros de Konqueror
24923
 
-Name[bg]=Настройки за приставката за браузъра за споделяна на файлове
24924
 
-Name[bn]=ফাইল ভাগাভাগি কনকরার ডিরেক্টরী বৈশিষ্ট্যাবলী পাতা
24925
 
-Name[ca]=Pàgina de propietats del directori de compartició de fitxers del Konqueror
24926
 
-Name[ca@valencia]=Pàgina de propietats del directori de compartició de fitxers del Konqueror
24927
 
-Name[cs]=Stránka vlastností adresáře sdílení Konqueroru
24928
 
-Name[da]=Fileshare Konqueror-mappens side med egenskaber
24929
 
-Name[de]=Ordnerfreigabe-Eigenschaftenseite für Konqueror
24930
 
-Name[el]=Σελίδα ιδιοτήτων κοινόχρηστου καταλόγου του Konqueror
24931
 
-Name[en_GB]=Fileshare Konqueror Directory Properties Page
24932
 
-Name[eo]=Paĝo de ecoj de la komunaj dosierujoj de Konkeranto
24933
 
-Name[es]=Página de propiedades del directorio para compartir archivos de Konqueror
24934
 
-Name[et]=Failijagamise Konquerori kataloogi omaduste lehekülg
24935
 
-Name[eu]=Fitxategiak partekatzeko Konqueror direktorioaren propietateen orria
24936
 
-Name[fa]=صفحۀ ویژگیهای فهرست راهنمای اشتراک پروندۀ Konqueror
24937
 
-Name[fi]=Konquerorin tiedostojakojen ominaisuussivu
24938
 
-Name[fr]=Page des propriétés d'un dossier de partage de Konqueror
24939
 
-Name[ga]=Leathanach Airíonna Konqueror: Comhroinnt Comhadlainne
24940
 
-Name[gl]=Páxina coas propiedades do directorio de ficheiros compartidos de Konqueror
24941
 
-Name[he]=דף מאפייני ספרית קבצים משותפת של Konqueror
24942
 
-Name[hi]=फ़ाइलशेयर कॉन्करर डिरेक्ट्रीज़ गुण पृष्ठ
24943
 
-Name[hne]=फाइलसेयर कान्करर डिरेक्टरीज गुन पेज
24944
 
-Name[hr]=Stranica sa postavkama svojstava Konqueror Directoryja za dijeljenje datoteka
24945
 
-Name[hu]=Fájlmegosztási lap a Konqueror könyvtártulajdonságainál
24946
 
-Name[ia]=Pagina de proprietates de directorio de Konqueror pro compartir de file
24947
 
-Name[is]=Skráastjóraeiginleikar Konqueror
24948
 
-Name[it]=Pagina delle proprietà di Konqueror per la condivisione
24949
 
-Name[ja]=Konqueror でファイル共有するディレクトリのプロパティのページ
24950
 
-Name[kk]=Konqueror файлдарын ортақтастыру каталогының қасиеттер беті
24951
 
-Name[km]=ទំព័រ​លក្ខណៈ​សម្បត្តិ​ថត Konqueror សម្រាប់​ការ​ចែក​រំលែក
24952
 
-Name[ko]=Konqueror 디렉터리 속성 페이지의 파일 공유 탭
24953
 
-Name[lt]=Failų dalinimosi Konqueror aplanko nustatymų puslapis
24954
 
-Name[lv]=Konqueror mapes koplietošanas īpašību lapa
24955
 
-Name[mk]=Страница со параметри за делен именик во Konqueror
24956
 
-Name[ml]=ഫയല്‍ഷെയര്‍ കോണ്‍ക്വറര്‍ തട്ടിന്റെ ഗുണവിശേഷങ്ങളുടെ താള്‍
24957
 
-Name[nb]=Fildeler – Side i Konquerors mappegenskaper
24958
 
-Name[nds]=Konqueror Ornerfreegaav-Egenschappensiet
24959
 
-Name[ne]=फाइल साझेदारी कन्क्वेरर डाइरेक्टरी विशेषता पृष्ठ
24960
 
-Name[nl]=Configuratiepagina Konqueror bestanden delen
24961
 
-Name[nn]=Side for katalogeigenskapar til fildeling i Konqueror
24962
 
-Name[pa]=ਫਾਇਲ ਸਾਂਝ ਕੋਨਕਿਊਰੋਰ ਡਾਇਰੈਕਟਰੀ ਵਿਸ਼ੇਸ਼ਤਾ ਪੇਜ਼
24963
 
-Name[pl]=Strona współdzielenia we właściwościach katalogu w Konquerorze
24964
 
-Name[pt]=Página de Propriedades da Pasta de Partilha do Konqueror
24965
 
-Name[pt_BR]=Página de propriedades da pasta de compartilhamento de arquivos do Konqueror
24966
 
-Name[ru]=Общий доступ к файлам - диалог Konqueror
24967
 
-Name[sk]=Zdieľanie adresárov pre Konqueror
24968
 
-Name[sl]=Stran z lastnostmi za souporabo mape
24969
 
-Name[sr]=Страница К‑освајача са својствима фасцикле за дељење фајлова
24970
 
-Name[sr@ijekavian]=Страница К‑освајача са својствима фасцикле за дељење фајлова
24971
 
-Name[sr@ijekavianlatin]=Stranica K‑osvajača sa svojstvima fascikle za deljenje fajlova
24972
 
-Name[sr@latin]=Stranica K‑osvajača sa svojstvima fascikle za deljenje fajlova
24973
 
-Name[sv]=Konquerors fildelningssida med katalogegenskaper
24974
 
-Name[ta]=Fileshare Konqueror அடைவு பண்புகளின் பக்கம்
24975
 
-Name[tg]=Саҳифаи Феҳристи Хусусиятҳо оиди Konqueror Истифодабарии Муштараки Файлҳо
24976
 
-Name[tr]=Dosya Paylaşımı Konqueror Dizin Özellikleri Sayfası
24977
 
-Name[uk]=Сторінка властивостей каталогу для спільного доступу
24978
 
-Name[vi]=Trang thuộc tính của chia sẻ thư mục Konqueror
24979
 
-Name[x-test]=xxFileshare Konqueror Directory Properties Pagexx
24980
 
-Name[zh_CN]=Konqueror 文件共享目录属性页
24981
 
-Name[zh_HK]=檔案分享 Konqueror 目錄屬性頁
24982
 
-Name[zh_TW]=Konqueror 檔案分享目錄屬性頁
24983
 
-Comment=Konqueror properties dialog plugin to share a directory with the local network
24984
 
-Comment[ar]=خصائص حوار إضافة كونكيورر لمشاركة مسار مع الشبكة المحلية
24985
 
-Comment[ast]=Complementu de diálogu de propiedaes de Konqueror pa compartir un direutoriu cola rede llocal
24986
 
-Comment[bg]=Настройка на приставката за браузъра Konqueror за споделяна на директории в локалната мрежа
24987
 
-Comment[bn]=স্থানীয় নেটওয়ার্কের সঙ্গে একটি ডিরেক্টরী ভাগাভাগি করতে কনকরার বৈশিষ্ট্যাবলী ডায়ালগ প্লাগিন
24988
 
-Comment[ca]=Diàleg de propietats del connector del Konqueror per compartir un directori amb la xarxa local
24989
 
-Comment[ca@valencia]=Diàleg de propietats del connector del Konqueror per compartir un directori amb la xarxa local
24990
 
-Comment[cs]=Modul dialogu vlastností Konqueroru pro sdílení adresářů v lokální síti
24991
 
-Comment[da]=Konqueror egenskaber-dialog plugin til at dele en mappe med det lokale netværk
24992
 
-Comment[de]=Modul für den Konqueror-Eigenschaftendialog zur Freigabe eines Ordners im Netzwerk
24993
 
-Comment[el]=Πρόσθετος διάλογος ρυθμίσεων του Konqueror για την κοινή χρήση ενός καταλόγου με το τοπικό δίκτυο
24994
 
-Comment[en_GB]=Konqueror properties dialogue plugin to share a directory with the local network
24995
 
-Comment[eo]=Kromaĵo de Konkeranto por komunigi dosierujon sur la loka reto
24996
 
-Comment[es]=Complemento de diálogo de propiedades de Konqueror para compartir un directorio con la red local
24997
 
-Comment[et]=Konquerori omaduste dialoogi plugin kataloogi jagamiseks kohtvõrgus
24998
 
-Comment[eu]=Konqueror-en propietateen elkarrizketa-koadro plugina direktorio bat sare lokalean partekatzeko
24999
 
-Comment[fa]=ویژگیهای وصلۀ محاورۀ Konqueror برای اشتراک فهرست راهنما با شبکۀ محلی
25000
 
-Comment[fi]=Konquerorin liitännäinen, jolla voi jakaa kansioita lähiverkossa
25001
 
-Comment[fr]=Module de Konqueror pour le partage d'un dossier sur le réseau local
25002
 
-Comment[ga]=Breiseán dialóige airíonna Konqueror lenar féidir comhadlann a chomhroinnt leis an líonra logánta
25003
 
-Comment[gl]=Diálogo de propiedades do engadido de Konqueror para compartir un directorio pola rede local
25004
 
-Comment[he]=תוסף מאפייני דו-שיח של Konqueror כדי לשתף סיפריה עם רשת מקומית
25005
 
-Comment[hi]=स्थानीय नेटवर्क के साथ डिरेक्ट्री साझा करने के लिए कॉन्करर गुण संवाद प्लगइन
25006
 
-Comment[hne]=लोकल नेटवर्क के साथ डिरेक्टरी साझा करे बर कान्करर गुन गोठ प्लगइन
25007
 
-Comment[hr]=Dijalogni priključak postavki za Konqueror za dijeljenje direktorija na lokalnoj mreži
25008
 
-Comment[hu]=Konqueror párbeszédablak könyvtár megosztásához a helyi hálózaton
25009
 
-Comment[ia]=Plug-in de dialogo de proprietate de Konqueror pro compartir un directorio con le rete local
25010
 
-Comment[is]=Konqueror properties dialog plugin to share a directory with the local network
25011
 
-Comment[it]=Estensione delle proprietà di Konqueror per condividere una cartella con la rete locale
25012
 
-Comment[ja]=ローカルネットワークでディレクトリを共有する Konqueror プロパティダイアログのプラグイン
25013
 
-Comment[kk]=Каталогты жергілікті желімен ортақтастыратын Konqueror қасиеттер диалогының плагині
25014
 
-Comment[km]=ប្រអប់​លក្ខណៈ​សម្បត្តិ Konqueror ដើម្បី​ចែក​រំលែក​ថត​នៅ​ក្នុង​បណ្ដាញ​មូលដ្ឋាន
25015
 
-Comment[ko]=로컬 네트워크에서 파일을 공유하기 위한 Konqueror 속성 대화 상자 플러그인
25016
 
-Comment[lt]=Konqueror nustatymų dialogo įskiepis, skirtas dalintis aplanku vietiniame tinkle
25017
 
-Comment[lv]=Konqueror īpašību dialoga spraudnis mapes publicēšanai koplietošanai lokālajā tīklā
25018
 
-Comment[mk]=Приклучок со дијалог за својства во Konqueror за делење на датотеки со локалната мрежа
25019
 
-Comment[ml]=കോണ്‍ക്വററിലെ പ്രാദേശിക ശൃഖലയുമായി തട്ടു് പങ്കുവെക്കാനുള്ള സംയോജകത്തിന്റെ ഗുണവിശേഷങ്ങളുടെ സംവാദജാലകം
25020
 
-Comment[nb]=Programtillegg for Konquerors egenskapsdialog for å dele en mappe på lokalnettet
25021
 
-Comment[nds]=Moduul för en Konqueror-Egenschappendialoog för't Freegeven vun Ornern in't lokale Nettwark
25022
 
-Comment[ne]=स्थानीय सञ्जालसँग डाइरेक्टरी साझेदार गर्न कन्क्वेरर विशेषता संवाद प्लगइन
25023
 
-Comment[nl]=Konqueror-plugin met instellingen om bestanden te delen via het lokale netwerk
25024
 
-Comment[nn]=Konqueror-vising av eigenskapar til ein delt katalog i det lokale nettverket
25025
 
-Comment[pa]=ਕੋਨਕਿਉਰੋਰ ਵਿਸ਼ੇਸ਼ਤਾ ਡਾਈਲਾਗ ਪਲੱਗਇਨ ਜੋ ਲੋਕਲ ਨੈੱਟਵਰਕ ਨਾਲ ਡਾਇਰੈਕਟਰੀ ਸਾਂਝੀ ਕਰਦੀ ਹੈ
25026
 
-Comment[pl]=Wtyczka właściwości dla Konquerora umożliwiająca współdzielenie katalogu w sieci lokalnej
25027
 
-Comment[pt]='Plugin' de janela de propriedades do Konqueror para partilhar uma pasta na rede local
25028
 
-Comment[pt_BR]=Plug-in de diálogo de propriedades do Konqueror para o compartilhamento de uma pasta em uma rede local
25029
 
-Comment[ro]=Modul pentru dialogul de proprietăți Konqueror pentru a partaja un director cu rețeaua locală
25030
 
-Comment[ru]=Модуль свойств Konqueror для организации общего доступа к каталогу по локальной сети
25031
 
-Comment[sk]=Modul Konquerora pre zdieľanie adresára v lokálnej sieti
25032
 
-Comment[sl]=Vstavek za Konqueror s pogovornim oknom za lastnosti za souporabo mape v krajevnem omrežju
25033
 
-Comment[sr]=Прикључак дијалога К‑освајача за својства дељења фасцикли у локалној мрежи
25034
 
-Comment[sr@ijekavian]=Прикључак дијалога К‑освајача за својства дијељења фасцикли у локалној мрежи
25035
 
-Comment[sr@ijekavianlatin]=Priključak dijaloga K‑osvajača za svojstva dijeljenja fascikli u lokalnoj mreži
25036
 
-Comment[sr@latin]=Priključak dijaloga K‑osvajača za svojstva deljenja fascikli u lokalnoj mreži
25037
 
-Comment[sv]=Konqueror-insticksprogram med egenskapsdialogruta för att dela en katalog i det lokala nätverket
25038
 
-Comment[ta]=Konqueror பண்புகளின் உரையாடல் செருகுகள் அடைவை சம்பா சேவையகத்துடன் பகிரவேண்டிய செருகுகள்
25039
 
-Comment[tg]=Модули муколамаи хусусиятҳои Konqueror барои истифодабарии муштараки феҳрист бо шабакаи маҳалллӣ
25040
 
-Comment[tr]=Yerel ağ ile dizin paylaşımı için Konqueror iletişim eklentisi özellikleri
25041
 
-Comment[uk]=Додаток діалогового вікна властивостей Konqueror для уможливлення спільного доступу до каталогу з локальної мережі
25042
 
-Comment[vi]=Phần bổ sung hộp thoại thuộc tính Konqueror dùng để chia sẻ một thư mục trên mạng nội bộ
25043
 
-Comment[x-test]=xxKonqueror properties dialog plugin to share a directory with the local networkxx
25044
 
-Comment[zh_CN]=可将目录与局域网共享的 Konqueror 属性页对话框插件
25045
 
-Comment[zh_HK]=用於與本地網絡分享目錄的 Konqueror 屬性對話盒插件
25046
 
-Comment[zh_TW]=Konqueror 屬性對話框外掛程式,用於在本地端網路上分享目錄
25047
 
-X-KDE-Library=fileshare_propsdlgplugin
25048
 
-X-KDE-Protocol=file
25049
 
-X-KDE-ServiceTypes=KPropertiesDialog/Plugin,inode/directory
25050
 
Index: kdenetwork-4.6.3/filesharing/advanced/propsdlgplugin/propertiespage.cpp
25051
 
===================================================================
25052
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/propsdlgplugin/propertiespage.cpp        2011-01-19 17:21:04.000000000 -0500
25053
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
25054
 
@@ -1,659 +0,0 @@
25055
 
-/*
25056
 
-  Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
25057
 
-
25058
 
-  This program is free software; you can redistribute it and/or modify
25059
 
-  it under the terms of the GNU General Public License as published by
25060
 
-  the Free Software Foundation; either version 2 of the License, or
25061
 
-  (at your option) any later version.
25062
 
-
25063
 
-  This program is distributed in the hope that it will be useful,
25064
 
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
25065
 
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25066
 
-  GNU General Public License for more details.
25067
 
-
25068
 
-  You should have received a copy of the GNU General Public License
25069
 
-  along with this program; if not, write to the Free Software
25070
 
-  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
25071
 
-
25072
 
-*/
25073
 
-
25074
 
-#include <qcheckbox.h>
25075
 
-#include <qbuttongroup.h>
25076
 
-#include <qfileinfo.h>
25077
 
-#include <qlabel.h>
25078
 
-#include <kpushbutton.h>
25079
 
-#include <qtimer.h>
25080
 
-
25081
 
-#include <kfileshare.h>
25082
 
-#include <knfsshare.h>
25083
 
-#include <ksambashare.h>
25084
 
-#include <klocale.h>
25085
 
-#include <kurl.h>
25086
 
-#include <kdebug.h>
25087
 
-#include <kfile.h>
25088
 
-#include <kurlrequester.h>
25089
 
-#include <kmessagebox.h>
25090
 
-#include <klineedit.h>
25091
 
-#include <kprocess.h>
25092
 
-#include <ktemporaryfile.h>
25093
 
-#include <kshell.h>
25094
 
-#include <KStandardDirs>
25095
 
-// NFS related
25096
 
-#include "../nfs/nfsfile.h"
25097
 
-#include "../nfs/nfsentry.h"
25098
 
-#include "../nfs/nfsdialog.h"
25099
 
-
25100
 
-// Samba related
25101
 
-#include "../kcm_sambaconf/sambafile.h"
25102
 
-#include "../kcm_sambaconf/sambashare.h"
25103
 
-#include "../kcm_sambaconf/sharedlgimpl.h"
25104
 
-
25105
 
-#include "propertiespage.h"
25106
 
-
25107
 
-#define FILESHARE_DEBUG 5009
25108
 
-
25109
 
-PropertiesPageGUI::PropertiesPageGUI( QWidget *parent )
25110
 
-    : QWidget( parent )
25111
 
-{
25112
 
-    setupUi( this );
25113
 
-}
25114
 
-
25115
 
-void PropertiesPageGUI::changedSlot()
25116
 
-{
25117
 
-    m_hasChanged = true;
25118
 
-    emit changed();
25119
 
-}
25120
 
-
25121
 
-void PropertiesPageGUI::moreNFSBtn_clicked()
25122
 
-{
25123
 
-
25124
 
-}
25125
 
-
25126
 
-bool PropertiesPageGUI::hasChanged() const
25127
 
-{
25128
 
-    return m_hasChanged;
25129
 
-}
25130
 
-
25131
 
-
25132
 
-void PropertiesPageGUI::sambaChkToggled( bool )
25133
 
-{
25134
 
-
25135
 
-}
25136
 
-
25137
 
-void PropertiesPageGUI::publicSambaChkToggled( bool b)
25138
 
-{
25139
 
-    if (!b) {
25140
 
-       writableSambaChk->setChecked(false);
25141
 
-    }
25142
 
-}
25143
 
-
25144
 
-void PropertiesPageGUI::publicNFSChkToggled( bool b)
25145
 
-{
25146
 
-    if (!b) {
25147
 
-       writableNFSChk->setChecked(false);
25148
 
-    }
25149
 
-
25150
 
-}
25151
 
-
25152
 
-void PropertiesPageGUI::moreSambaBtnClicked()
25153
 
-{
25154
 
-
25155
 
-}
25156
 
-
25157
 
-PropertiesPage::PropertiesPage(QWidget* parent, const KFileItemList &items,bool enterUrl)
25158
 
-  : PropertiesPageGUI(parent),
25159
 
-  m_enterUrl(enterUrl),
25160
 
-  m_items(items),
25161
 
-  m_nfsFile(0),
25162
 
-  m_nfsEntry(0),
25163
 
-  m_sambaFile(0),
25164
 
-  m_sambaShare(0),
25165
 
-  m_sambaChanged(false),
25166
 
-  m_nfsChanged(false),
25167
 
-  m_loaded(false)
25168
 
-{
25169
 
-  if (m_items.isEmpty()) {
25170
 
-    shareFrame->setDisabled(true);
25171
 
-  } else {
25172
 
-    shareFrame->setEnabled(true);
25173
 
-    // currently only one dir is allowed
25174
 
-    m_path = m_items.first().url().path(KUrl::AddTrailingSlash);
25175
 
-  }
25176
 
-
25177
 
-  if (m_enterUrl) {
25178
 
-    shareChk->hide();
25179
 
-    urlRq->setMode(KFile::Directory |
25180
 
-                   KFile::ExistingOnly |
25181
 
-                   KFile::LocalOnly );
25182
 
-    urlRq->setUrl(m_path);
25183
 
-    connect( urlRq, SIGNAL(textChanged(const QString&)),
25184
 
-             this, SLOT(urlRqTextChanged(const QString&)));
25185
 
-  } else {
25186
 
-    urlRq->hide();
25187
 
-    folderLbl->hide();
25188
 
-  }
25189
 
-
25190
 
-
25191
 
-  enableSamba(false,i18n("Reading Samba configuration file ..."));
25192
 
-  enableNFS(false,i18n("Reading NFS configuration file ..."));
25193
 
-
25194
 
-
25195
 
-  //QTimer::singleShot(1, this, SLOT(load));
25196
 
-  load();
25197
 
-}
25198
 
-
25199
 
-PropertiesPage::~PropertiesPage()
25200
 
-{
25201
 
-  delete m_nfsFile;
25202
 
-  delete m_sambaFile;
25203
 
-}
25204
 
-
25205
 
-void PropertiesPage::urlRqTextChanged(const QString&) {
25206
 
-  if (!m_enterUrl)
25207
 
-      return;
25208
 
-
25209
 
-  KUrl url(urlRq->url());
25210
 
-  if (url.isLocalFile()) {
25211
 
-      QFileInfo info(url.path(KUrl::AddTrailingSlash));
25212
 
-      if (info.exists() &&
25213
 
-          info.isDir())
25214
 
-      {
25215
 
-         shareFrame->setEnabled(true);
25216
 
-         return;
25217
 
-      }
25218
 
-  }
25219
 
-
25220
 
-  shareFrame->setDisabled(true);
25221
 
-}
25222
 
-
25223
 
-void PropertiesPage::load() {
25224
 
-  loadNFS();
25225
 
-  loadSamba();
25226
 
-
25227
 
-  bool nfsShared = KNFSShare::instance()->isDirectoryShared(m_path);
25228
 
-  bool sambaShared = KSambaShare::instance()->isDirectoryShared(m_path);
25229
 
-
25230
 
-  nfsChk->setChecked(nfsShared);
25231
 
-  sambaChk->setChecked(sambaShared);
25232
 
-
25233
 
-  if (!m_enterUrl)
25234
 
-      shareChk->setChecked(nfsShared || sambaShared);
25235
 
-
25236
 
-  m_loaded = true;
25237
 
-}
25238
 
-
25239
 
-void PropertiesPage::enableNFS(bool b, const QString & message) {
25240
 
-   nfsChk->setEnabled(b);
25241
 
-   nfsGrp->setEnabled(b);
25242
 
-   nfsChk->setToolTip(message);
25243
 
-   nfsGrp->setToolTip(message);
25244
 
-}
25245
 
-
25246
 
-void PropertiesPage::enableSamba(bool b, const QString & message) {
25247
 
-   sambaChk->setEnabled(b);
25248
 
-   sambaGrp->setEnabled(b);
25249
 
-   sambaChk->setToolTip(message);
25250
 
-   sambaGrp->setToolTip(message);
25251
 
-}
25252
 
-
25253
 
-
25254
 
-bool PropertiesPage::save() {
25255
 
-  if (!hasChanged()) {
25256
 
-      kDebug(FILESHARE_DEBUG) << "PropertiesPage::save: nothing changed.";
25257
 
-      return true;
25258
 
-  }
25259
 
-
25260
 
-  if (!checkURL()) {
25261
 
-      kDebug(FILESHARE_DEBUG) << "PropertiesPage::save: url check failed.";
25262
 
-      return false;
25263
 
-  }
25264
 
-
25265
 
-  updateNFSEntry();
25266
 
-  if (!updateSambaShare()) {
25267
 
-      kDebug(FILESHARE_DEBUG) << "PropertiesPage::save: updateSambaShare failed!";
25268
 
-      return false;
25269
 
-  }
25270
 
-
25271
 
-  return save(m_nfsFile, m_sambaFile, m_nfsChanged, m_sambaChanged);
25272
 
-}
25273
 
-
25274
 
-bool PropertiesPage::save(NFSFile* nfsFile, SambaFile* sambaFile, bool nfs, bool samba)
25275
 
-{
25276
 
-  QString nfsFileName = KNFSShare::instance()->exportsPath();
25277
 
-  bool nfsNeedsKDEsu = false;
25278
 
-
25279
 
-  if (nfs) {
25280
 
-      if (QFileInfo(nfsFileName).isWritable()) {
25281
 
-          nfsFile->saveTo(nfsFileName);
25282
 
-      } else {
25283
 
-          nfsNeedsKDEsu = true;
25284
 
-          kDebug(FILESHARE_DEBUG) << "PropertiesPage::save: nfs needs kdesu.";
25285
 
-      }
25286
 
-  } else
25287
 
-    kDebug(FILESHARE_DEBUG) << "PropertiesPage::save: nfs has not changed.";
25288
 
-
25289
 
-
25290
 
-  QString sambaFileName = KSambaShare::instance()->smbConfPath();
25291
 
-  bool sambaNeedsKDEsu = false;
25292
 
-  if (samba) {
25293
 
-      if (QFileInfo(sambaFileName).isWritable()) {
25294
 
-          sambaFile->saveTo(sambaFileName);
25295
 
-      } else {
25296
 
-          sambaNeedsKDEsu = true;
25297
 
-          kDebug(FILESHARE_DEBUG) << "PropertiesPage::save: samba needs kdesu.";
25298
 
-      }
25299
 
-  } else
25300
 
-    kDebug(FILESHARE_DEBUG) << "PropertiesPage::save: samba has not changed.";
25301
 
-
25302
 
-
25303
 
-  if (nfsNeedsKDEsu || sambaNeedsKDEsu) {
25304
 
-     KTemporaryFile nfsTempFile;
25305
 
-     nfsTempFile.open();
25306
 
-     KTemporaryFile sambaTempFile;
25307
 
-     sambaTempFile.open();
25308
 
-
25309
 
-     KProcess proc;
25310
 
-
25311
 
-     QString command;
25312
 
-
25313
 
-     if (nfsNeedsKDEsu) {
25314
 
-         nfsFile->saveTo(nfsTempFile.fileName());
25315
 
-         command += QString("cp %1 %2;exportfs -ra;")
25316
 
-        .arg(KShell::quoteArg( nfsTempFile.fileName() ),
25317
 
-             KShell::quoteArg( nfsFileName ));
25318
 
-     }
25319
 
-
25320
 
-     if (sambaNeedsKDEsu) {
25321
 
-         sambaFile->saveTo(sambaTempFile.fileName());
25322
 
-         command += QString("cp %1 %2;")
25323
 
-        .arg(KShell::quoteArg( sambaTempFile.fileName() ),
25324
 
-             KShell::quoteArg( sambaFileName ));
25325
 
-     }
25326
 
-
25327
 
-     proc<<KStandardDirs::findExe("kdesu") << "-d" << "-c"<<command;
25328
 
-
25329
 
-     if (proc.execute()) {
25330
 
-       kDebug(FILESHARE_DEBUG) << "PropertiesPage::save: kdesu command failed";
25331
 
-       return false;
25332
 
-     }
25333
 
-  }
25334
 
-
25335
 
-  kDebug(FILESHARE_DEBUG) << "PropertiesPage::save: Saving successful.";
25336
 
-  return true;
25337
 
-}
25338
 
-
25339
 
-bool PropertiesPage::saveSamba() {
25340
 
-  if (!updateSambaShare()) {
25341
 
-    return false;
25342
 
-  }
25343
 
-
25344
 
-  if (m_sambaChanged) {
25345
 
-      kDebug(FILESHARE_DEBUG) << "PropertiesPage::saveSamba: saving...";
25346
 
-      return m_sambaFile->save();
25347
 
-  }
25348
 
-
25349
 
-  kDebug(FILESHARE_DEBUG) << "PropertiesPage::saveSamba: samba has not changed.";
25350
 
-  return true;
25351
 
-}
25352
 
-
25353
 
-bool PropertiesPage::saveNFS() {
25354
 
-  updateNFSEntry();
25355
 
-  if (!m_nfsChanged) {
25356
 
-      kDebug(FILESHARE_DEBUG) << "PropertiesPage::saveNFS: NFS did not change.";
25357
 
-      return true;
25358
 
-  }
25359
 
-
25360
 
-  kDebug(FILESHARE_DEBUG) << "PropertiesPage::saveNFS: saving...";
25361
 
-  return m_nfsFile->save();
25362
 
-}
25363
 
-
25364
 
-
25365
 
-
25366
 
-
25367
 
-bool PropertiesPage::checkURL() {
25368
 
-
25369
 
-  kDebug(FILESHARE_DEBUG) << "PropertiesPage::checkURL";
25370
 
-
25371
 
-  if (!m_enterUrl)
25372
 
-      return true;
25373
 
-
25374
 
-  kDebug(FILESHARE_DEBUG) << "PropertiesPage::checkURL: enterUrl=true";
25375
 
-
25376
 
-  KUrl url(urlRq->url());
25377
 
-  QString path = url.path(KUrl::AddTrailingSlash);
25378
 
-
25379
 
-  kDebug(FILESHARE_DEBUG) << "PropertiesPage::checkURL: m_path='"
25380
 
-        << m_path << "'" << endl;
25381
 
-
25382
 
-  kDebug(FILESHARE_DEBUG) << "PropertiesPage::checkURL: path='"
25383
 
-        << path << "'" << endl;
25384
 
-
25385
 
-  if (m_path == path) {
25386
 
-    kDebug(FILESHARE_DEBUG) << "PropertiesPage::checkURL: paths are equal";
25387
 
-    return true;
25388
 
-  }
25389
 
-
25390
 
-  kDebug(FILESHARE_DEBUG) << "PropertiesPage::checkURL: different path";
25391
 
-
25392
 
-
25393
 
-  if (!url.isValid()) {
25394
 
-      KMessageBox::sorry(this,i18n("Please enter a valid path."));
25395
 
-      urlRq->setFocus();
25396
 
-      urlRq->lineEdit()->selectAll();
25397
 
-      return false;
25398
 
-  }
25399
 
-
25400
 
-  kDebug(FILESHARE_DEBUG) << "PropertiesPage::checkURL: url is valid";
25401
 
-
25402
 
-  if (!url.isLocalFile()) {
25403
 
-      KMessageBox::sorry(this,i18n("Only local folders can be shared."));
25404
 
-      urlRq->setFocus();
25405
 
-      urlRq->lineEdit()->selectAll();
25406
 
-      return false;
25407
 
-  }
25408
 
-
25409
 
-  kDebug(FILESHARE_DEBUG) << "PropertiesPage::checkURL: url is local file";
25410
 
-
25411
 
-  QFileInfo info(path);
25412
 
-
25413
 
-  if (!info.exists())
25414
 
-  {
25415
 
-      KMessageBox::sorry(this,i18n("The folder does not exists."));
25416
 
-      urlRq->setFocus();
25417
 
-      urlRq->lineEdit()->selectAll();
25418
 
-      return false;
25419
 
-  }
25420
 
-
25421
 
-  kDebug(FILESHARE_DEBUG) << "PropertiesPage::checkURL: folder exits";
25422
 
-
25423
 
-
25424
 
-  if (!info.isDir())
25425
 
-  {
25426
 
-      KMessageBox::sorry(this,i18n("Only folders can be shared."));
25427
 
-      urlRq->setFocus();
25428
 
-      urlRq->lineEdit()->selectAll();
25429
 
-      return false;
25430
 
-  }
25431
 
-
25432
 
-  kDebug(FILESHARE_DEBUG) << "PropertiesPage::checkURL: path is dir";
25433
 
-
25434
 
-  if (KSambaShare::instance()->isDirectoryShared(path) ||
25435
 
-      KNFSShare::instance()->isDirectoryShared(path))
25436
 
-  {
25437
 
-      KMessageBox::sorry(this,i18n("The folder is already shared."));
25438
 
-      urlRq->setFocus();
25439
 
-      urlRq->lineEdit()->selectAll();
25440
 
-      return false;
25441
 
-  }
25442
 
-
25443
 
-  kDebug(FILESHARE_DEBUG) << "PropertiesPage::checkURL: folder not shared yet";
25444
 
-  m_path = path;
25445
 
-
25446
 
-  return true;
25447
 
-}
25448
 
-
25449
 
-bool PropertiesPage::loadNFS() {
25450
 
-  if (!KFileShare::nfsEnabled()) {
25451
 
-      enableNFS(false,i18n("The administrator does not allow sharing with NFS."));
25452
 
-      return false;
25453
 
-  }
25454
 
-
25455
 
-  delete m_nfsFile;
25456
 
-  m_nfsFile = new NFSFile(KNFSShare::instance()->exportsPath());
25457
 
-
25458
 
-  if (!m_nfsFile->load()) {
25459
 
-      enableNFS(false,i18n("Error: could not read NFS configuration file."));
25460
 
-      return false;
25461
 
-  }
25462
 
-
25463
 
-  enableNFS(true,"");
25464
 
-
25465
 
-  loadNFSEntry();
25466
 
-  return true;
25467
 
-}
25468
 
-
25469
 
-void PropertiesPage::loadNFSEntry() {
25470
 
-  m_nfsEntry = m_nfsFile->getEntryByPath(m_path);
25471
 
-  m_nfsChanged = false;
25472
 
-
25473
 
-  if (!m_nfsEntry) {
25474
 
-    nfsChk->setChecked(false);
25475
 
-    return;
25476
 
-  }
25477
 
-
25478
 
-
25479
 
-  NFSHost* publicHost = m_nfsEntry->getPublicHost();
25480
 
-
25481
 
-  if (publicHost) {
25482
 
-    publicNFSChk->setChecked(true);
25483
 
-    writableNFSChk->setChecked(!publicHost->readonly);
25484
 
-  } else
25485
 
-    publicNFSChk->setChecked(false);
25486
 
-}
25487
 
-
25488
 
-void PropertiesPage::updateNFSEntry() {
25489
 
-  if (shareChk->isChecked() &&
25490
 
-      nfsChk->isChecked())
25491
 
-  {
25492
 
-    if (!m_nfsEntry) {
25493
 
-        m_nfsEntry = new NFSEntry(m_path);
25494
 
-        m_nfsFile->addEntry(m_nfsEntry);
25495
 
-        m_nfsChanged = true;
25496
 
-    }
25497
 
-
25498
 
-    NFSHost* publicHost = m_nfsEntry->getPublicHost();
25499
 
-
25500
 
-    if (publicNFSChk->isChecked()) {
25501
 
-      if (!publicHost) {
25502
 
-          publicHost = new NFSHost("*");
25503
 
-          publicHost->allSquash=true;
25504
 
-          m_nfsEntry->addHost(publicHost);
25505
 
-          m_nfsChanged = true;
25506
 
-      }
25507
 
-
25508
 
-      if (publicHost->readonly != !writableNFSChk->isChecked()) {
25509
 
-          publicHost->readonly  = !writableNFSChk->isChecked();
25510
 
-          m_nfsChanged = true;
25511
 
-      }
25512
 
-    } else {
25513
 
-      if (publicHost) {
25514
 
-          m_nfsEntry->removeHost(publicHost);
25515
 
-          m_nfsChanged = true;
25516
 
-      }
25517
 
-    }
25518
 
-  } else { // unshare
25519
 
-    if (m_nfsEntry) {
25520
 
-      m_nfsFile->removeEntry(m_nfsEntry);
25521
 
-      m_nfsEntry = 0;
25522
 
-      m_nfsChanged = true;
25523
 
-    }
25524
 
-  }
25525
 
-}
25526
 
-
25527
 
-void PropertiesPage::moreNFSBtn_clicked() {
25528
 
-  updateNFSEntry();
25529
 
-  NFSDialog* dlg = new NFSDialog(this,m_nfsEntry);
25530
 
-  if (dlg->exec()==QDialog::Accepted &&
25531
 
-      dlg->modified())
25532
 
-  {
25533
 
-    kDebug(FILESHARE_DEBUG) << "NFSDialog::ok";
25534
 
-    loadNFSEntry();
25535
 
-    m_nfsChanged = true;
25536
 
-    emit changed();
25537
 
-  }
25538
 
-  delete dlg;
25539
 
-}
25540
 
-
25541
 
-bool PropertiesPage::loadSamba() {
25542
 
-  if (!KFileShare::sambaEnabled()) {
25543
 
-      enableSamba(false,i18n("The administrator does not allow sharing with Samba."));
25544
 
-      return false;
25545
 
-  }
25546
 
-
25547
 
-  delete m_sambaFile;
25548
 
-  m_sambaFile = new SambaFile(KSambaShare::instance()->smbConfPath(), false);
25549
 
-  if (! m_sambaFile->load()) {
25550
 
-      enableSamba(false,i18n("Error: could not read Samba configuration file."));
25551
 
-      return false;
25552
 
-  }
25553
 
-
25554
 
-  enableSamba(true,"");
25555
 
-  QString shareName = m_sambaFile->findShareByPath(m_path);
25556
 
-  if (shareName.isNull()) {
25557
 
-      sambaChk->setChecked(false);
25558
 
-      kDebug(FILESHARE_DEBUG) << "PropertiesPage::loadSamba: shareName is null!"
25559
 
-          << endl;
25560
 
-      return false;
25561
 
-  }
25562
 
-
25563
 
-  kDebug(FILESHARE_DEBUG) << "PropertiesPage::loadSamba: shareName="
25564
 
-        << shareName << endl;
25565
 
-
25566
 
-  m_sambaShare = m_sambaFile->getShare(shareName);
25567
 
-
25568
 
-  loadSambaShare();
25569
 
-  return true;
25570
 
-}
25571
 
-
25572
 
-
25573
 
-void PropertiesPage::loadSambaShare() {
25574
 
-  if (! m_sambaShare) {
25575
 
-      sambaChk->setChecked(false);
25576
 
-      kDebug(FILESHARE_DEBUG) << "PropertiesPage::loadSambaShare: m_sambaShare is null" << endl;
25577
 
-      return;
25578
 
-  }
25579
 
-
25580
 
-  if (m_sambaShare->getBoolValue("public")) {
25581
 
-    publicSambaChk->setChecked(true);
25582
 
-    writableSambaChk->setChecked(m_sambaShare->getBoolValue("writable"));
25583
 
-  } else
25584
 
-    publicSambaChk->setChecked(false);
25585
 
-
25586
 
-
25587
 
-  sambaNameEdit->setText(m_sambaShare->getName() );
25588
 
-}
25589
 
-
25590
 
-void PropertiesPage::sambaChkToggled( bool b ) {
25591
 
-  if (!m_loaded)
25592
 
-      return;
25593
 
-
25594
 
-  if (sambaNameEdit->text().isEmpty())
25595
 
-      sambaNameEdit->setText(getNewSambaName());
25596
 
-}
25597
 
-
25598
 
-bool PropertiesPage::updateSambaShare() {
25599
 
-  kDebug(FILESHARE_DEBUG) << "PropertiesPage::updateSambaShare";
25600
 
-
25601
 
-  if (shareChk->isChecked() &&
25602
 
-      sambaChk->isChecked())
25603
 
-  {
25604
 
-    if (m_enterUrl) {
25605
 
-      if (m_path != urlRq->url().path()) {
25606
 
-        m_path = urlRq->url().path();
25607
 
-      }
25608
 
-    }
25609
 
-
25610
 
-    kDebug(FILESHARE_DEBUG) << "PropertiesPage::updateSambaShare: m_path"
25611
 
-          << m_path << endl;
25612
 
-
25613
 
-    if (!m_sambaShare) {
25614
 
-      createNewSambaShare();
25615
 
-      m_sambaChanged = true;
25616
 
-    }
25617
 
-
25618
 
-    setSambaShareBoolValue("public", publicSambaChk);
25619
 
-    setSambaShareBoolValue("writable", writableSambaChk);
25620
 
-
25621
 
-    if (sambaNameEdit->text().isEmpty()) {
25622
 
-        KMessageBox::sorry(this, i18n("You have to enter a name for the Samba share."));
25623
 
-        sambaNameEdit->setFocus();
25624
 
-        return false;
25625
 
-    }
25626
 
-
25627
 
-    if (sambaNameEdit->text() != m_sambaShare->getName()) {
25628
 
-      SambaShare* otherShare = m_sambaFile->getShare(sambaNameEdit->text());
25629
 
-      if (otherShare && otherShare != m_sambaShare) {
25630
 
-        // There is another Share with the same name
25631
 
-        KMessageBox::sorry(this, i18n("<qt>There is already a share with the name <strong>%1</strong>.<br /> Please choose another name.</qt>", sambaNameEdit->text()));
25632
 
-        sambaNameEdit->selectAll();
25633
 
-        sambaNameEdit->setFocus();
25634
 
-        return false;
25635
 
-      }
25636
 
-      m_sambaShare->setName(sambaNameEdit->text());
25637
 
-      m_sambaChanged = true;
25638
 
-    }
25639
 
-
25640
 
-    if (m_sambaShare->getValue("path") != m_path) {
25641
 
-      m_sambaShare->setValue("path", m_path);
25642
 
-      m_sambaChanged = true;
25643
 
-    }
25644
 
-
25645
 
-  } else {
25646
 
-    if (m_sambaShare) {
25647
 
-      kDebug(FILESHARE_DEBUG) << "PropertiesPage::updateSambaShare: removing share";
25648
 
-      m_sambaFile->removeShare(m_sambaShare);
25649
 
-      m_sambaShare = 0;
25650
 
-      m_sambaChanged = true;
25651
 
-    }
25652
 
-  }
25653
 
-  return true;
25654
 
-}
25655
 
-
25656
 
-void PropertiesPage::setSambaShareBoolValue(const QString & value,
25657
 
-                          QCheckBox* chk)
25658
 
-{
25659
 
-  bool v = m_sambaShare->getBoolValue(value);
25660
 
-  if (v == chk->isChecked())
25661
 
-      return;
25662
 
-
25663
 
-  m_sambaShare->setValue(value,chk->isChecked());
25664
 
-  m_sambaChanged = true;
25665
 
-}
25666
 
-
25667
 
-QString PropertiesPage::getNewSambaName() {
25668
 
-  QString path = m_path;
25669
 
-  if (path.isNull() && m_enterUrl) {
25670
 
-    path = urlRq->url().path();
25671
 
-  }
25672
 
-
25673
 
-  QString shareName = KUrl(path).fileName();
25674
 
-
25675
 
-  if (!sambaNameEdit->text().isEmpty())
25676
 
-      shareName = sambaNameEdit->text();
25677
 
-
25678
 
-  // Windows could have problems with longer names
25679
 
-  shareName = shareName.left(12).toUpper();
25680
 
-
25681
 
-  if ( m_sambaFile->getShare(shareName) )
25682
 
-      shareName = m_sambaFile->getUnusedName(shareName);
25683
 
-
25684
 
-  return shareName;
25685
 
-}
25686
 
-
25687
 
-void PropertiesPage::createNewSambaShare() {
25688
 
-
25689
 
-  m_sambaShare = m_sambaFile->newShare(getNewSambaName(),m_path);
25690
 
-
25691
 
-  kDebug(FILESHARE_DEBUG) << "PropertiesPage::createNewSambaShare: "
25692
 
-              << m_sambaShare->getName() << endl;
25693
 
-
25694
 
-}
25695
 
-
25696
 
-
25697
 
-void PropertiesPage::moreSambaBtnClicked() {
25698
 
-  kDebug(FILESHARE_DEBUG) << "PropertiesPage::moreSambaBtnClicked()";
25699
 
-  updateSambaShare();
25700
 
-  ShareDlgImpl* dlg = new ShareDlgImpl(this,m_sambaShare);
25701
 
-  dlg->directoryGrp->hide();
25702
 
-  dlg->pixmapFrame->hide();
25703
 
-  if (dlg->exec() == QDialog::Accepted &&
25704
 
-      dlg->hasChanged()) {
25705
 
-      m_sambaChanged = true;
25706
 
-      changedSlot();
25707
 
-      loadSambaShare();
25708
 
-  }
25709
 
-  delete dlg;
25710
 
-}
25711
 
-
25712
 
-#include "propertiespage.moc"
25713
 
-
25714
 
Index: kdenetwork-4.6.3/filesharing/advanced/propsdlgplugin/propertiespagegui.ui
25715
 
===================================================================
25716
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/propsdlgplugin/propertiespagegui.ui      2011-01-19 17:21:04.000000000 -0500
25717
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
25718
 
@@ -1,385 +0,0 @@
25719
 
-<ui version="4.0" stdsetdef="1" >
25720
 
-  <class>PropertiesPageGUI</class>
25721
 
-  <widget class="QWidget" name="PropertiesPageGUI" >
25722
 
-    <property name="geometry" >
25723
 
-      <rect>
25724
 
-        <x>0</x>
25725
 
-        <y>0</y>
25726
 
-        <width>433</width>
25727
 
-        <height>348</height>
25728
 
-      </rect>
25729
 
-    </property>
25730
 
-    <layout class="QVBoxLayout" >
25731
 
-      <property name="margin" >
25732
 
-        <number>0</number>
25733
 
-      </property>
25734
 
-      <item>
25735
 
-        <layout class="QHBoxLayout" >
25736
 
-          <item>
25737
 
-            <widget class="QLabel" name="folderLbl" >
25738
 
-              <property name="text" >
25739
 
-                <string>Folder:</string>
25740
 
-              </property>
25741
 
-              <property name="wordWrap" >
25742
 
-                <bool>false</bool>
25743
 
-              </property>
25744
 
-            </widget>
25745
 
-          </item>
25746
 
-          <item>
25747
 
-            <widget class="KUrlRequester" name="urlRq" />
25748
 
-          </item>
25749
 
-        </layout>
25750
 
-      </item>
25751
 
-      <item>
25752
 
-        <widget class="QCheckBox" name="shareChk" >
25753
 
-          <property name="text" >
25754
 
-            <string>S&amp;hare this folder in the local network</string>
25755
 
-          </property>
25756
 
-          <property name="checked" >
25757
 
-            <bool>true</bool>
25758
 
-          </property>
25759
 
-        </widget>
25760
 
-      </item>
25761
 
-      <item>
25762
 
-        <widget class="Line" name="line1" >
25763
 
-          <property name="frameShape" >
25764
 
-            <enum>QFrame::HLine</enum>
25765
 
-          </property>
25766
 
-          <property name="frameShadow" >
25767
 
-            <enum>QFrame::Sunken</enum>
25768
 
-          </property>
25769
 
-        </widget>
25770
 
-      </item>
25771
 
-      <item>
25772
 
-        <widget class="Q3Frame" name="shareFrame" >
25773
 
-          <property name="frameShape" >
25774
 
-            <enum>NoFrame</enum>
25775
 
-          </property>
25776
 
-          <property name="frameShadow" >
25777
 
-            <enum>Raised</enum>
25778
 
-          </property>
25779
 
-          <layout class="QVBoxLayout" >
25780
 
-            <property name="margin" >
25781
 
-              <number>0</number>
25782
 
-            </property>
25783
 
-            <item>
25784
 
-              <widget class="QCheckBox" name="nfsChk" >
25785
 
-                <property name="text" >
25786
 
-                  <string>Share with &amp;NFS (Linux/UNIX)</string>
25787
 
-                </property>
25788
 
-                <property name="checked" >
25789
 
-                  <bool>true</bool>
25790
 
-                </property>
25791
 
-              </widget>
25792
 
-            </item>
25793
 
-            <item>
25794
 
-              <widget class="Q3GroupBox" name="nfsGrp" >
25795
 
-                <property name="title" >
25796
 
-                  <string>NFS Options</string>
25797
 
-                </property>
25798
 
-                <layout class="QVBoxLayout" >
25799
 
-                  <item>
25800
 
-                    <layout class="QHBoxLayout" >
25801
 
-                      <item>
25802
 
-                        <widget class="QCheckBox" name="publicNFSChk" >
25803
 
-                          <property name="text" >
25804
 
-                            <string>Pu&amp;blic</string>
25805
 
-                          </property>
25806
 
-                          <property name="checked" >
25807
 
-                            <bool>true</bool>
25808
 
-                          </property>
25809
 
-                        </widget>
25810
 
-                      </item>
25811
 
-                      <item>
25812
 
-                        <widget class="QCheckBox" name="writableNFSChk" >
25813
 
-                          <property name="text" >
25814
 
-                            <string>W&amp;ritable</string>
25815
 
-                          </property>
25816
 
-                          <property name="checked" >
25817
 
-                            <bool>false</bool>
25818
 
-                          </property>
25819
 
-                        </widget>
25820
 
-                      </item>
25821
 
-                      <item>
25822
 
-                        <spacer name="spacer5" >
25823
 
-                          <property name="sizeHint" >
25824
 
-                            <size>
25825
 
-                              <width>40</width>
25826
 
-                              <height>20</height>
25827
 
-                            </size>
25828
 
-                          </property>
25829
 
-                          <property name="sizeType" >
25830
 
-                            <enum>QSizePolicy::Expanding</enum>
25831
 
-                          </property>
25832
 
-                          <property name="orientation" >
25833
 
-                            <enum>Qt::Horizontal</enum>
25834
 
-                          </property>
25835
 
-                        </spacer>
25836
 
-                      </item>
25837
 
-                    </layout>
25838
 
-                  </item>
25839
 
-                  <item>
25840
 
-                    <layout class="QHBoxLayout" >
25841
 
-                      <item>
25842
 
-                        <widget class="KPushButton" name="moreNFSBtn" >
25843
 
-                          <property name="text" >
25844
 
-                            <string>More NFS Op&amp;tions</string>
25845
 
-                          </property>
25846
 
-                        </widget>
25847
 
-                      </item>
25848
 
-                      <item>
25849
 
-                        <spacer name="spacer3" >
25850
 
-                          <property name="sizeHint" >
25851
 
-                            <size>
25852
 
-                              <width>156</width>
25853
 
-                              <height>20</height>
25854
 
-                            </size>
25855
 
-                          </property>
25856
 
-                          <property name="sizeType" >
25857
 
-                            <enum>QSizePolicy::Expanding</enum>
25858
 
-                          </property>
25859
 
-                          <property name="orientation" >
25860
 
-                            <enum>Qt::Horizontal</enum>
25861
 
-                          </property>
25862
 
-                        </spacer>
25863
 
-                      </item>
25864
 
-                    </layout>
25865
 
-                  </item>
25866
 
-                </layout>
25867
 
-              </widget>
25868
 
-            </item>
25869
 
-            <item>
25870
 
-              <widget class="QCheckBox" name="sambaChk" >
25871
 
-                <property name="text" >
25872
 
-                  <string>Share with S&amp;amba (Microsoft(R) Windows(R))</string>
25873
 
-                </property>
25874
 
-                <property name="checked" >
25875
 
-                  <bool>true</bool>
25876
 
-                </property>
25877
 
-              </widget>
25878
 
-            </item>
25879
 
-            <item>
25880
 
-              <widget class="Q3GroupBox" name="sambaGrp" >
25881
 
-                <property name="title" >
25882
 
-                  <string>Samba Options</string>
25883
 
-                </property>
25884
 
-                <layout class="QVBoxLayout" >
25885
 
-                  <item>
25886
 
-                    <layout class="QHBoxLayout" >
25887
 
-                      <item>
25888
 
-                        <widget class="QLabel" name="textLabel1" >
25889
 
-                          <property name="text" >
25890
 
-                            <string>Name:</string>
25891
 
-                          </property>
25892
 
-                          <property name="wordWrap" >
25893
 
-                            <bool>false</bool>
25894
 
-                          </property>
25895
 
-                        </widget>
25896
 
-                      </item>
25897
 
-                      <item>
25898
 
-                        <widget class="KLineEdit" name="sambaNameEdit" />
25899
 
-                      </item>
25900
 
-                    </layout>
25901
 
-                  </item>
25902
 
-                  <item>
25903
 
-                    <layout class="QHBoxLayout" >
25904
 
-                      <item>
25905
 
-                        <widget class="QCheckBox" name="publicSambaChk" >
25906
 
-                          <property name="text" >
25907
 
-                            <string>P&amp;ublic</string>
25908
 
-                          </property>
25909
 
-                          <property name="checked" >
25910
 
-                            <bool>true</bool>
25911
 
-                          </property>
25912
 
-                        </widget>
25913
 
-                      </item>
25914
 
-                      <item>
25915
 
-                        <widget class="QCheckBox" name="writableSambaChk" >
25916
 
-                          <property name="text" >
25917
 
-                            <string>&amp;Writable</string>
25918
 
-                          </property>
25919
 
-                          <property name="checked" >
25920
 
-                            <bool>false</bool>
25921
 
-                          </property>
25922
 
-                        </widget>
25923
 
-                      </item>
25924
 
-                      <item>
25925
 
-                        <spacer name="spacer4_3" >
25926
 
-                          <property name="sizeHint" >
25927
 
-                            <size>
25928
 
-                              <width>40</width>
25929
 
-                              <height>20</height>
25930
 
-                            </size>
25931
 
-                          </property>
25932
 
-                          <property name="sizeType" >
25933
 
-                            <enum>QSizePolicy::Expanding</enum>
25934
 
-                          </property>
25935
 
-                          <property name="orientation" >
25936
 
-                            <enum>Qt::Horizontal</enum>
25937
 
-                          </property>
25938
 
-                        </spacer>
25939
 
-                      </item>
25940
 
-                    </layout>
25941
 
-                  </item>
25942
 
-                  <item>
25943
 
-                    <layout class="QHBoxLayout" >
25944
 
-                      <item>
25945
 
-                        <widget class="KPushButton" name="moreSambaBtn" >
25946
 
-                          <property name="text" >
25947
 
-                            <string>Mor&amp;e Samba Options</string>
25948
 
-                          </property>
25949
 
-                        </widget>
25950
 
-                      </item>
25951
 
-                      <item>
25952
 
-                        <spacer name="spacer4_2" >
25953
 
-                          <property name="sizeHint" >
25954
 
-                            <size>
25955
 
-                              <width>40</width>
25956
 
-                              <height>20</height>
25957
 
-                            </size>
25958
 
-                          </property>
25959
 
-                          <property name="sizeType" >
25960
 
-                            <enum>QSizePolicy::Expanding</enum>
25961
 
-                          </property>
25962
 
-                          <property name="orientation" >
25963
 
-                            <enum>Qt::Horizontal</enum>
25964
 
-                          </property>
25965
 
-                        </spacer>
25966
 
-                      </item>
25967
 
-                    </layout>
25968
 
-                  </item>
25969
 
-                </layout>
25970
 
-              </widget>
25971
 
-            </item>
25972
 
-          </layout>
25973
 
-        </widget>
25974
 
-      </item>
25975
 
-      <item>
25976
 
-        <spacer name="spacer4" >
25977
 
-          <property name="sizeHint" >
25978
 
-            <size>
25979
 
-              <width>20</width>
25980
 
-              <height>1</height>
25981
 
-            </size>
25982
 
-          </property>
25983
 
-          <property name="sizeType" >
25984
 
-            <enum>QSizePolicy::Expanding</enum>
25985
 
-          </property>
25986
 
-          <property name="orientation" >
25987
 
-            <enum>Qt::Vertical</enum>
25988
 
-          </property>
25989
 
-        </spacer>
25990
 
-      </item>
25991
 
-    </layout>
25992
 
-  </widget>
25993
 
-    <connections>
25994
 
-    <connection>
25995
 
-      <sender>sambaChk</sender>
25996
 
-      <signal>toggled(bool)</signal>
25997
 
-      <receiver>sambaGrp</receiver>
25998
 
-      <slot>setEnabled(bool)</slot>
25999
 
-    </connection>
26000
 
-    <connection>
26001
 
-      <sender>nfsChk</sender>
26002
 
-      <signal>toggled(bool)</signal>
26003
 
-      <receiver>nfsGrp</receiver>
26004
 
-      <slot>setEnabled(bool)</slot>
26005
 
-    </connection>
26006
 
-    <connection>
26007
 
-      <sender>publicSambaChk</sender>
26008
 
-      <signal>toggled(bool)</signal>
26009
 
-      <receiver>writableSambaChk</receiver>
26010
 
-      <slot>setEnabled(bool)</slot>
26011
 
-    </connection>
26012
 
-    <connection>
26013
 
-      <sender>publicNFSChk</sender>
26014
 
-      <signal>toggled(bool)</signal>
26015
 
-      <receiver>writableNFSChk</receiver>
26016
 
-      <slot>setEnabled(bool)</slot>
26017
 
-    </connection>
26018
 
-    <connection>
26019
 
-      <sender>shareChk</sender>
26020
 
-      <signal>toggled(bool)</signal>
26021
 
-      <receiver>shareFrame</receiver>
26022
 
-      <slot>setEnabled(bool)</slot>
26023
 
-    </connection>
26024
 
-    <connection>
26025
 
-      <sender>shareChk</sender>
26026
 
-      <signal>clicked()</signal>
26027
 
-      <receiver>PropertiesPageGUI</receiver>
26028
 
-      <slot>changedSlot()</slot>
26029
 
-    </connection>
26030
 
-    <connection>
26031
 
-      <sender>sambaChk</sender>
26032
 
-      <signal>clicked()</signal>
26033
 
-      <receiver>PropertiesPageGUI</receiver>
26034
 
-      <slot>changedSlot()</slot>
26035
 
-    </connection>
26036
 
-    <connection>
26037
 
-      <sender>publicSambaChk</sender>
26038
 
-      <signal>clicked()</signal>
26039
 
-      <receiver>PropertiesPageGUI</receiver>
26040
 
-      <slot>changedSlot()</slot>
26041
 
-    </connection>
26042
 
-    <connection>
26043
 
-      <sender>writableSambaChk</sender>
26044
 
-      <signal>clicked()</signal>
26045
 
-      <receiver>PropertiesPageGUI</receiver>
26046
 
-      <slot>changedSlot()</slot>
26047
 
-    </connection>
26048
 
-    <connection>
26049
 
-      <sender>nfsChk</sender>
26050
 
-      <signal>clicked()</signal>
26051
 
-      <receiver>PropertiesPageGUI</receiver>
26052
 
-      <slot>changedSlot()</slot>
26053
 
-    </connection>
26054
 
-    <connection>
26055
 
-      <sender>publicNFSChk</sender>
26056
 
-      <signal>clicked()</signal>
26057
 
-      <receiver>PropertiesPageGUI</receiver>
26058
 
-      <slot>changedSlot()</slot>
26059
 
-    </connection>
26060
 
-    <connection>
26061
 
-      <sender>writableNFSChk</sender>
26062
 
-      <signal>clicked()</signal>
26063
 
-      <receiver>PropertiesPageGUI</receiver>
26064
 
-      <slot>changedSlot()</slot>
26065
 
-    </connection>
26066
 
-    <connection>
26067
 
-      <sender>moreNFSBtn</sender>
26068
 
-      <signal>clicked()</signal>
26069
 
-      <receiver>PropertiesPageGUI</receiver>
26070
 
-      <slot>moreNFSBtn_clicked()</slot>
26071
 
-    </connection>
26072
 
-    <connection>
26073
 
-      <sender>sambaChk</sender>
26074
 
-      <signal>toggled(bool)</signal>
26075
 
-      <receiver>PropertiesPageGUI</receiver>
26076
 
-      <slot>sambaChkToggled(bool)</slot>
26077
 
-    </connection>
26078
 
-    <connection>
26079
 
-      <sender>sambaNameEdit</sender>
26080
 
-      <signal>textChanged(QString)</signal>
26081
 
-      <receiver>PropertiesPageGUI</receiver>
26082
 
-      <slot>changedSlot()</slot>
26083
 
-    </connection>
26084
 
-    <connection>
26085
 
-      <sender>publicSambaChk</sender>
26086
 
-      <signal>toggled(bool)</signal>
26087
 
-      <receiver>PropertiesPageGUI</receiver>
26088
 
-      <slot>publicSambaChkToggled(bool)</slot>
26089
 
-    </connection>
26090
 
-    <connection>
26091
 
-      <sender>publicNFSChk</sender>
26092
 
-      <signal>toggled(bool)</signal>
26093
 
-      <receiver>PropertiesPageGUI</receiver>
26094
 
-      <slot>publicNFSChkToggled(bool)</slot>
26095
 
-    </connection>
26096
 
-    <connection>
26097
 
-      <sender>moreSambaBtn</sender>
26098
 
-      <signal>clicked()</signal>
26099
 
-      <receiver>PropertiesPageGUI</receiver>
26100
 
-      <slot>moreSambaBtnClicked()</slot>
26101
 
-    </connection>
26102
 
-  </connections>
26103
 
-</ui>
26104
 
Index: kdenetwork-4.6.3/filesharing/advanced/propsdlgplugin/propertiespage.h
26105
 
===================================================================
26106
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/propsdlgplugin/propertiespage.h  2011-01-19 17:21:04.000000000 -0500
26107
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
26108
 
@@ -1,108 +0,0 @@
26109
 
-/*
26110
 
-  Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
26111
 
-
26112
 
-  This program is free software; you can redistribute it and/or modify
26113
 
-  it under the terms of the GNU General Public License as published by
26114
 
-  the Free Software Foundation; either version 2 of the License, or
26115
 
-  (at your option) any later version.
26116
 
-
26117
 
-  This program is distributed in the hope that it will be useful,
26118
 
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
26119
 
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26120
 
-  GNU General Public License for more details.
26121
 
-
26122
 
-  You should have received a copy of the GNU General Public License
26123
 
-  along with this program; if not, write to the Free Software
26124
 
-  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
26125
 
-
26126
 
-*/
26127
 
-
26128
 
-#ifndef PROPERTIESPAGE_H
26129
 
-#define PROPERTIESPAGE_H
26130
 
-
26131
 
-#include <kfileitem.h>
26132
 
-#include "ui_propertiespagegui.h"
26133
 
-
26134
 
-class NFSFile;
26135
 
-class NFSEntry;
26136
 
-class SambaFile;
26137
 
-class SambaShare;
26138
 
-class QCheckBox;
26139
 
-
26140
 
-class PropertiesPageGUI : public QWidget, public Ui::PropertiesPageGUI
26141
 
-{
26142
 
-Q_OBJECT
26143
 
-public:
26144
 
-    PropertiesPageGUI( QWidget *parent );
26145
 
-    bool hasChanged() const ;
26146
 
-public slots:
26147
 
-    void changedSlot();
26148
 
-    virtual void moreNFSBtn_clicked();
26149
 
-    virtual void sambaChkToggled( bool );
26150
 
-    void publicSambaChkToggled( bool b );
26151
 
-    void publicNFSChkToggled( bool b );
26152
 
-    virtual void moreSambaBtnClicked();
26153
 
-signals:
26154
 
-    void changed();
26155
 
-private:
26156
 
-    bool m_hasChanged;
26157
 
-};
26158
 
-
26159
 
-
26160
 
-
26161
 
-class PropertiesPage : public PropertiesPageGUI
26162
 
-{
26163
 
-Q_OBJECT
26164
 
-public:
26165
 
-  PropertiesPage(QWidget* parent, const KFileItemList &items, bool enterUrl=false);
26166
 
-  virtual ~PropertiesPage();
26167
 
-
26168
 
-  bool save();
26169
 
-
26170
 
-  static bool save(NFSFile* nfsFile, SambaFile* sambFile, bool nfs, bool samba);
26171
 
-public slots:
26172
 
-  void load();
26173
 
-
26174
 
-protected:
26175
 
-
26176
 
-  bool m_enterUrl;
26177
 
-  QString m_path;
26178
 
-  KFileItemList m_items;
26179
 
-  NFSFile *m_nfsFile;
26180
 
-  NFSEntry *m_nfsEntry;
26181
 
-
26182
 
-  SambaFile *m_sambaFile;
26183
 
-  SambaShare *m_sambaShare;
26184
 
-  bool m_sambaChanged;
26185
 
-  bool m_nfsChanged;
26186
 
-  bool m_loaded;
26187
 
-
26188
 
-protected slots:
26189
 
-  // inherited from PropertiesPageGUI
26190
 
-  virtual void moreNFSBtn_clicked();
26191
 
-  virtual void moreSambaBtnClicked();
26192
 
-  virtual void sambaChkToggled( bool b );
26193
 
-  virtual void urlRqTextChanged(const QString&);
26194
 
-
26195
 
-private:
26196
 
-  bool loadNFS();
26197
 
-  void loadNFSEntry();
26198
 
-  void updateNFSEntry();
26199
 
-  bool saveNFS();
26200
 
-
26201
 
-  bool loadSamba();
26202
 
-  void loadSambaShare();
26203
 
-  bool updateSambaShare();
26204
 
-  bool saveSamba();
26205
 
-
26206
 
-  bool checkURL();
26207
 
-  void setSambaShareBoolValue(const QString & value, QCheckBox* chk);
26208
 
-  void createNewSambaShare();
26209
 
-  QString getNewSambaName();
26210
 
-
26211
 
-  void enableNFS(bool b,const QString & message);
26212
 
-  void enableSamba(bool b,const QString & message);
26213
 
-
26214
 
-};
26215
 
-
26216
 
-#endif
26217
 
Index: kdenetwork-4.6.3/filesharing/advanced/propsdlgplugin/propsdlgshareplugin.cpp
26218
 
===================================================================
26219
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/propsdlgplugin/propsdlgshareplugin.cpp   2011-01-19 17:21:04.000000000 -0500
26220
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
26221
 
@@ -1,126 +0,0 @@
26222
 
-/*
26223
 
-  Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
26224
 
-
26225
 
-  This program is free software; you can redistribute it and/or modify
26226
 
-  it under the terms of the GNU General Public License as published by
26227
 
-  the Free Software Foundation; either version 2 of the License, or
26228
 
-  (at your option) any later version.
26229
 
-
26230
 
-  This program is distributed in the hope that it will be useful,
26231
 
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
26232
 
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26233
 
-  GNU General Public License for more details.
26234
 
-
26235
 
-  You should have received a copy of the GNU General Public License
26236
 
-  along with this program; if not, write to the Free Software
26237
 
-  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
26238
 
-
26239
 
-*/
26240
 
-#include <qstring.h>
26241
 
-#include <kvbox.h>
26242
 
-#include <qlayout.h>
26243
 
-#include <qlabel.h>
26244
 
-#include <QProcess>
26245
 
-
26246
 
-#include <kgenericfactory.h>
26247
 
-#include <kdebug.h>
26248
 
-#include <kpushbutton.h>
26249
 
-#include <kfileshare.h>
26250
 
-#include <kmessagebox.h>
26251
 
-#include <kstandarddirs.h>
26252
 
-#include <kdialog.h>
26253
 
-#include <kglobal.h>
26254
 
-
26255
 
-#include "propertiespage.h"
26256
 
-#include "propsdlgshareplugin.h"
26257
 
-
26258
 
-typedef KGenericFactory<PropsDlgSharePlugin, KPropertiesDialog> PropsDlgSharePluginFactory;
26259
 
-
26260
 
-K_EXPORT_COMPONENT_FACTORY( fileshare_propsdlgplugin,
26261
 
-                            PropsDlgSharePluginFactory("fileshare_propsdlgplugin") )
26262
 
-
26263
 
-class PropsDlgSharePlugin::Private                            
26264
 
-{
26265
 
-  public:
26266
 
-    PropertiesPage* page; 
26267
 
-};
26268
 
-                            
26269
 
-PropsDlgSharePlugin::PropsDlgSharePlugin( KPropertiesDialog *dlg,
26270
 
-                    const QStringList & )
26271
 
-  : KPropertiesDialogPlugin(dlg), d(0)
26272
 
-{
26273
 
-  KGlobal::locale()->insertCatalog("kfileshare");                            
26274
 
-                            
26275
 
-  if (KFileShare::shareMode() == KFileShare::Simple) {     
26276
 
-      kDebug(5009) << "PropsDlgSharePlugin: Sharing mode is simple. Aborting.";
26277
 
-      return;
26278
 
-  }
26279
 
-
26280
 
-  KVBox *vbox = new KVBox();
26281
 
-  properties->addPage(vbox, i18n("&Share"));
26282
 
-  properties->setFileSharingPage(vbox);
26283
 
-
26284
 
-  if (KFileShare::authorization() == KFileShare::UserNotAllowed) {
26285
 
-  
26286
 
-        QWidget* widget = new QWidget( vbox );
26287
 
-        QVBoxLayout * vLayout = new QVBoxLayout( widget );
26288
 
-        vLayout->setSpacing( KDialog::spacingHint() );
26289
 
-        vLayout->setMargin( 0 );
26290
 
-        
26291
 
-        
26292
 
-        if (KFileShare::sharingEnabled()) {
26293
 
-          vLayout->addWidget(
26294
 
-              new QLabel( i18n("You need to be authorized to share directories."), 
26295
 
-                          widget ));
26296
 
-        } else {
26297
 
-          vLayout->addWidget(
26298
 
-              new QLabel( i18n("File sharing is disabled."), widget));
26299
 
-        }                    
26300
 
-                    
26301
 
-        KPushButton* btn = new KPushButton( i18n("Configure File Sharing..."), widget );
26302
 
-        connect( btn, SIGNAL( clicked() ), SLOT( slotConfigureFileSharing() ) );
26303
 
-        btn->setDefault(false);
26304
 
-        QHBoxLayout* hBox = new QHBoxLayout( (QWidget *)0L );
26305
 
-        hBox->addWidget( btn, 0, Qt::AlignLeft );
26306
 
-        vLayout->addLayout(hBox);
26307
 
-        vLayout->addStretch( 10 ); // align items on top
26308
 
-        return;
26309
 
-  }                    
26310
 
-       
26311
 
-
26312
 
-  d = new Private();
26313
 
-  
26314
 
-  d->page = new PropertiesPage(vbox, properties->items(),false);
26315
 
-  connect(d->page, SIGNAL(changed()), 
26316
 
-          this, SIGNAL(changed()));
26317
 
-  
26318
 
-  kDebug(5009) << "Fileshare properties dialog plugin loaded";
26319
 
-  
26320
 
-}                            
26321
 
-
26322
 
-void PropsDlgSharePlugin::slotConfigureFileSharing()
26323
 
-{
26324
 
-    QStringList lst;
26325
 
-    lst<<"kcmshell4" << "fileshare";
26326
 
-    QProcess::startDetached(KStandardDirs::findExe("kdesu"),lst);
26327
 
-}
26328
 
-
26329
 
-
26330
 
-PropsDlgSharePlugin::~PropsDlgSharePlugin()
26331
 
-{
26332
 
-  delete d;
26333
 
-}
26334
 
-
26335
 
-void PropsDlgSharePlugin::applyChanges() 
26336
 
-{
26337
 
-  if (!d->page->save()) {
26338
 
-//    KMessageBox::sorry(d->page,
26339
 
-//                i18n("Saving the changes failed"));
26340
 
-
26341
 
-    properties->abortApplying();
26342
 
-  }
26343
 
-}
26344
 
-
26345
 
-
26346
 
-#include "propsdlgshareplugin.moc"
26347
 
-
26348
 
Index: kdenetwork-4.6.3/filesharing/advanced/propsdlgplugin/propsdlgshareplugin.h
26349
 
===================================================================
26350
 
--- kdenetwork-4.6.3.orig/filesharing/advanced/propsdlgplugin/propsdlgshareplugin.h     2011-01-19 17:21:04.000000000 -0500
26351
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
26352
 
@@ -1,42 +0,0 @@
26353
 
-/*
26354
 
-  Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
26355
 
-
26356
 
-  This program is free software; you can redistribute it and/or modify
26357
 
-  it under the terms of the GNU General Public License as published by
26358
 
-  the Free Software Foundation; either version 2 of the License, or
26359
 
-  (at your option) any later version.
26360
 
-
26361
 
-  This program is distributed in the hope that it will be useful,
26362
 
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
26363
 
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26364
 
-  GNU General Public License for more details.
26365
 
-
26366
 
-  You should have received a copy of the GNU General Public License
26367
 
-  along with this program; if not, write to the Free Software
26368
 
-  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
26369
 
-
26370
 
-*/
26371
 
-
26372
 
-#ifndef PROPSDLGPLUGIN_PROPSDLGSHAREPLUGIN_H
26373
 
-#define PROPSDLGPLUGIN_PROPSDLGSHAREPLUGIN_H
26374
 
-
26375
 
-#include <kpropertiesdialog.h>
26376
 
-
26377
 
-class PropsDlgSharePlugin : public KPropertiesDialogPlugin
26378
 
-{
26379
 
-Q_OBJECT
26380
 
-public:
26381
 
-  PropsDlgSharePlugin( KPropertiesDialog *dlg, const QStringList & );
26382
 
-  virtual ~PropsDlgSharePlugin();
26383
 
-  virtual void applyChanges();
26384
 
-
26385
 
-protected slots:
26386
 
-    void slotConfigureFileSharing();
26387
 
-  
26388
 
-private:
26389
 
-  class Private;
26390
 
-  Private *d;
26391
 
-    
26392
 
-};
26393
 
-
26394
 
-#endif // PROPSDLGPLUGIN_PROPSDLGSHAREPLUGIN_H
26395
 
Index: kdenetwork-4.6.3/filesharing/CMakeLists.txt
26396
 
===================================================================
26397
 
--- kdenetwork-4.6.3.orig/filesharing/CMakeLists.txt    2011-01-19 17:21:04.000000000 -0500
26398
 
+++ kdenetwork-4.6.3/filesharing/CMakeLists.txt 2011-05-30 12:32:04.785538054 -0400
26399
 
@@ -1,45 +1 @@
26400
 
-add_definitions ( -DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS)
26401
 
-
26402
 
-include_directories(
26403
 
-               ${CMAKE_SOURCE_DIR}/filesharing/advanced/propsdlgplugin/
26404
 
-               ${CMAKE_SOURCE_DIR}/filesharing/advanced/nfs/
26405
 
-               ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/
26406
 
-                ${CMAKE_BINARY_DIR}/filesharing/simple/
26407
 
-                ${CMAKE_BINARY_DIR}/advanced/propsdlgplugin/
26408
 
-               )
26409
 
-
26410
 
-set(libfilesharesamba_SRCS
26411
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/sambafile.cpp
26412
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/sharedlgimpl.cpp
26413
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/sambashare.cpp
26414
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/common.cpp
26415
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/usertabimpl.cpp
26416
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/filemodedlgimpl.cpp
26417
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp
26418
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/passwd.cpp
26419
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/hiddenfileview.cpp
26420
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/dictmanager.cpp
26421
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/qmultichecklistitem.cpp
26422
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/smbconfconfigwidget.cpp
26423
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/linuxpermissionchecker.cpp
26424
 
-)
26425
 
-
26426
 
-set(libfilesharenfs_SRCS
26427
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/nfs/nfsdialog.cpp
26428
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/nfs/nfshostdlg.cpp
26429
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/nfs/nfsfile.cpp
26430
 
-    ${CMAKE_SOURCE_DIR}/filesharing/advanced/nfs/nfsentry.cpp
26431
 
-    )
26432
 
-
26433
 
-set(fileshare_propsdlgplugin_SRCS
26434
 
-       ${CMAKE_SOURCE_DIR}/filesharing/advanced/propsdlgplugin/propsdlgshareplugin.cpp
26435
 
-       )
26436
 
-
26437
 
-set(libpropsdlgplugin_common_SRCS 
26438
 
-                   ${CMAKE_SOURCE_DIR}/filesharing/advanced/propsdlgplugin/propertiespage.cpp)
26439
 
-
26440
 
-
26441
 
-add_subdirectory( advanced ) 
26442
 
-add_subdirectory( simple ) 
26443
 
-
26444
 
-
26445
 
+add_subdirectory(samba)
26446
 
Index: kdenetwork-4.6.3/filesharing/samba/CMakeLists.txt
26447
 
===================================================================
26448
 
--- /dev/null   1970-01-01 00:00:00.000000000 +0000
26449
 
+++ kdenetwork-4.6.3/filesharing/samba/CMakeLists.txt   2011-05-30 12:32:04.785538054 -0400
26450
 
@@ -0,0 +1 @@
26451
 
+add_subdirectory(filepropertiesplugin)
26452
 
Index: kdenetwork-4.6.3/filesharing/samba/filepropertiesplugin/CMakeLists.txt
26453
 
===================================================================
26454
 
--- /dev/null   1970-01-01 00:00:00.000000000 +0000
26455
 
+++ kdenetwork-4.6.3/filesharing/samba/filepropertiesplugin/CMakeLists.txt      2011-05-30 12:32:04.793538075 -0400
26456
 
@@ -0,0 +1,16 @@
26457
 
+########### next target ###############
26458
 
+
26459
 
+set(sambausershareplugin_PART_SRCS sambausershareplugin.cpp delegate.cpp model.cpp)
26460
 
+
26461
 
+kde4_add_ui_files(sambausershareplugin_PART_SRCS sambausershareplugin.ui)
26462
 
+
26463
 
+
26464
 
+kde4_add_plugin(sambausershareplugin ${sambausershareplugin_PART_SRCS})
26465
 
+
26466
 
+target_link_libraries(sambausershareplugin ${KDE4_KIO_LIBS})
26467
 
+
26468
 
+install(TARGETS sambausershareplugin DESTINATION ${PLUGIN_INSTALL_DIR})
26469
 
+
26470
 
+########### install files ###############
26471
 
+
26472
 
+install(FILES sambausershareplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR})
26473
 
Index: kdenetwork-4.6.3/filesharing/samba/filepropertiesplugin/delegate.cpp
26474
 
===================================================================
26475
 
--- /dev/null   1970-01-01 00:00:00.000000000 +0000
26476
 
+++ kdenetwork-4.6.3/filesharing/samba/filepropertiesplugin/delegate.cpp        2011-05-30 12:32:04.793538075 -0400
26477
 
@@ -0,0 +1,80 @@
26478
 
+/*
26479
 
+ * Copyright 2011  Rodrigo Belem <rclbelem@gmail.com>
26480
 
+ *
26481
 
+ * This program is free software; you can redistribute it and/or
26482
 
+ * modify it under the terms of the GNU General Public License as
26483
 
+ * published by the Free Software Foundation; either version 2 of
26484
 
+ * the License or (at your option) version 3 or any later version
26485
 
+ * accepted by the membership of KDE e.V. (or its successor approved
26486
 
+ * by the membership of KDE e.V.), which shall act as a proxy
26487
 
+ * defined in Section 14 of version 3 of the license.
26488
 
+ *
26489
 
+ * This program is distributed in the hope that it will be useful,
26490
 
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
26491
 
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26492
 
+ * GNU General Public License for more details.
26493
 
+ *
26494
 
+ * You should have received a copy of the GNU General Public License
26495
 
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
26496
 
+ */
26497
 
+
26498
 
+#include <QComboBox>
26499
 
+#include <klocale.h>
26500
 
+
26501
 
+#include "delegate.h"
26502
 
+
26503
 
+UserPermissionDelegate::UserPermissionDelegate(QObject *parent)
26504
 
+    : QItemDelegate(parent)
26505
 
+{
26506
 
+}
26507
 
+
26508
 
+QWidget *UserPermissionDelegate::createEditor(QWidget *parent,
26509
 
+        const QStyleOptionViewItem & /* option */,
26510
 
+        const QModelIndex &index) const
26511
 
+{
26512
 
+    if (index.column() != 1) {
26513
 
+        return 0;
26514
 
+    }
26515
 
+
26516
 
+    QComboBox *comboBox = new QComboBox(parent);
26517
 
+    comboBox->addItem(i18n("---"));
26518
 
+    comboBox->addItem(i18n("Full Control"), QLatin1String("F"));
26519
 
+    comboBox->addItem(i18n("Read Only"), QLatin1String("R"));
26520
 
+    comboBox->addItem(i18n("Deny"), QLatin1String("D"));
26521
 
+
26522
 
+    connect(comboBox, SIGNAL(activated(int)), this, SLOT(emitCommitData()));
26523
 
+
26524
 
+    return comboBox;
26525
 
+}
26526
 
+
26527
 
+void UserPermissionDelegate::setEditorData(QWidget *editor,
26528
 
+        const QModelIndex &index) const
26529
 
+{
26530
 
+    QComboBox *comboBox = qobject_cast<QComboBox *>(editor);
26531
 
+    if (!comboBox || (index.column() != 1)) {
26532
 
+        return;
26533
 
+    }
26534
 
+
26535
 
+    int pos = comboBox->findData(index.model()->data(index, Qt::EditRole));
26536
 
+    if (pos == -1) {
26537
 
+        pos = 0;
26538
 
+    }
26539
 
+
26540
 
+    comboBox->setCurrentIndex(pos);
26541
 
+}
26542
 
+
26543
 
+void UserPermissionDelegate::setModelData(QWidget *editor, QAbstractItemModel *model,
26544
 
+        const QModelIndex &index) const
26545
 
+{
26546
 
+    QComboBox *comboBox = qobject_cast<QComboBox *>(editor);
26547
 
+    if (!comboBox || (index.column() != 1)) {
26548
 
+        return;
26549
 
+    }
26550
 
+
26551
 
+    model->setData(index, comboBox->itemData(comboBox->currentIndex()));
26552
 
+}
26553
 
+
26554
 
+void UserPermissionDelegate::emitCommitData()
26555
 
+{
26556
 
+    emit commitData(qobject_cast<QWidget *>(sender()));
26557
 
+}
26558
 
Index: kdenetwork-4.6.3/filesharing/samba/filepropertiesplugin/delegate.h
26559
 
===================================================================
26560
 
--- /dev/null   1970-01-01 00:00:00.000000000 +0000
26561
 
+++ kdenetwork-4.6.3/filesharing/samba/filepropertiesplugin/delegate.h  2011-05-30 12:32:04.793538075 -0400
26562
 
@@ -0,0 +1,44 @@
26563
 
+/*
26564
 
+ * Copyright 2011  Rodrigo Belem <rclbelem@gmail.com>
26565
 
+ *
26566
 
+ * This program is free software; you can redistribute it and/or
26567
 
+ * modify it under the terms of the GNU General Public License as
26568
 
+ * published by the Free Software Foundation; either version 2 of
26569
 
+ * the License or (at your option) version 3 or any later version
26570
 
+ * accepted by the membership of KDE e.V. (or its successor approved
26571
 
+ * by the membership of KDE e.V.), which shall act as a proxy
26572
 
+ * defined in Section 14 of version 3 of the license.
26573
 
+ *
26574
 
+ * This program is distributed in the hope that it will be useful,
26575
 
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
26576
 
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26577
 
+ * GNU General Public License for more details.
26578
 
+ *
26579
 
+ * You should have received a copy of the GNU General Public License
26580
 
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
26581
 
+ */
26582
 
+
26583
 
+#ifndef delegate_h
26584
 
+#define delegate_h
26585
 
+
26586
 
+#include <QItemDelegate>
26587
 
+
26588
 
+
26589
 
+class UserPermissionDelegate : public QItemDelegate
26590
 
+{
26591
 
+    Q_OBJECT
26592
 
+
26593
 
+public:
26594
 
+    UserPermissionDelegate(QObject *parent = 0);
26595
 
+
26596
 
+    QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
26597
 
+                          const QModelIndex &index) const;
26598
 
+    void setEditorData(QWidget *editor, const QModelIndex &index) const;
26599
 
+    void setModelData(QWidget *editor, QAbstractItemModel *model,
26600
 
+                      const QModelIndex &index) const;
26601
 
+
26602
 
+private slots:
26603
 
+    void emitCommitData();
26604
 
+};
26605
 
+
26606
 
+#endif
26607
 
Index: kdenetwork-4.6.3/filesharing/samba/filepropertiesplugin/model.cpp
26608
 
===================================================================
26609
 
--- /dev/null   1970-01-01 00:00:00.000000000 +0000
26610
 
+++ kdenetwork-4.6.3/filesharing/samba/filepropertiesplugin/model.cpp   2011-05-30 12:32:04.797538094 -0400
26611
 
@@ -0,0 +1,178 @@
26612
 
+/*
26613
 
+ * Copyright 2011  Rodrigo Belem <rclbelem@gmail.com>
26614
 
+ *
26615
 
+ * This program is free software; you can redistribute it and/or
26616
 
+ * modify it under the terms of the GNU General Public License as
26617
 
+ * published by the Free Software Foundation; either version 2 of
26618
 
+ * the License or (at your option) version 3 or any later version
26619
 
+ * accepted by the membership of KDE e.V. (or its successor approved
26620
 
+ * by the membership of KDE e.V.), which shall act as a proxy
26621
 
+ * defined in Section 14 of version 3 of the license.
26622
 
+ *
26623
 
+ * This program is distributed in the hope that it will be useful,
26624
 
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
26625
 
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26626
 
+ * GNU General Public License for more details.
26627
 
+ *
26628
 
+ * You should have received a copy of the GNU General Public License
26629
 
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
26630
 
+ */
26631
 
+
26632
 
+#include <kuser.h>
26633
 
+
26634
 
+#include <sys/stat.h>
26635
 
+
26636
 
+#include "model.h"
26637
 
+
26638
 
+UserPermissionModel::UserPermissionModel(KSambaShareData &shareData, QObject *parent)
26639
 
+    : QAbstractTableModel(parent)
26640
 
+    , userList(getUsersList())
26641
 
+    , shareData(shareData)
26642
 
+    , usersAcl()
26643
 
+{
26644
 
+    setupData();
26645
 
+}
26646
 
+
26647
 
+void UserPermissionModel::setupData()
26648
 
+{
26649
 
+    QStringList acl = shareData.acl().split(",", QString::SkipEmptyParts);
26650
 
+
26651
 
+    QList<QString>::const_iterator itr;
26652
 
+    for (itr = acl.constBegin(); itr != acl.constEnd(); ++itr) {
26653
 
+        QStringList userInfo = (*itr).trimmed().split(":");
26654
 
+        usersAcl.insert(userInfo.at(0), QVariant(userInfo.at(1)));
26655
 
+    }
26656
 
+    if (usersAcl.isEmpty()) {
26657
 
+        usersAcl.insert("Everyone", QVariant("R"));
26658
 
+    }
26659
 
+}
26660
 
+
26661
 
+QStringList UserPermissionModel::getUsersList() const
26662
 
+{
26663
 
+    unsigned int defminuid;
26664
 
+    unsigned int defmaxuid;
26665
 
+
26666
 
+#ifdef __linux__
26667
 
+    struct stat st;
26668
 
+    if (!stat("/etc/debian_version", &st)) { /* debian */
26669
 
+        defminuid = 1000;
26670
 
+        defmaxuid = 29999;
26671
 
+    } else if (!stat("/usr/portage", &st)) { /* gentoo */
26672
 
+        defminuid = 1000;
26673
 
+        defmaxuid = 65000;
26674
 
+    } else if (!stat("/etc/mandrake-release", &st)) { /* mandrake - check before redhat! */
26675
 
+        defminuid = 500;
26676
 
+        defmaxuid = 65000;
26677
 
+    } else if (!stat("/etc/redhat-release", &st)) { /* redhat */
26678
 
+        defminuid = 100;
26679
 
+        defmaxuid = 65000;
26680
 
+    } else /* if (!stat("/etc/SuSE-release", &st)) */ { /* suse */
26681
 
+        defminuid = 500;
26682
 
+        defmaxuid = 65000;
26683
 
+    }
26684
 
+#else
26685
 
+    defminuid = 1000;
26686
 
+    defmaxuid = 65000;
26687
 
+#endif
26688
 
+
26689
 
+    QStringList userList;
26690
 
+    userList.append("Everyone");
26691
 
+    foreach (const QString &username, KUser::allUserNames()) {
26692
 
+        if (username == "nobody") {
26693
 
+            continue;
26694
 
+        }
26695
 
+        KUser user(username);
26696
 
+        if (user.uid() >= defminuid) {
26697
 
+            userList << username;
26698
 
+        }
26699
 
+    }
26700
 
+
26701
 
+    return userList;
26702
 
+}
26703
 
+
26704
 
+int UserPermissionModel::rowCount(const QModelIndex &parent) const
26705
 
+{
26706
 
+    return userList.count();
26707
 
+}
26708
 
+
26709
 
+int UserPermissionModel::columnCount(const QModelIndex &parent) const
26710
 
+{
26711
 
+    return 2;
26712
 
+}
26713
 
+
26714
 
+QVariant UserPermissionModel::data(const QModelIndex &index, int role) const
26715
 
+{
26716
 
+    if ((role == Qt::DisplayRole) && (index.column() == 0)) {
26717
 
+        return QVariant(userList.at(index.row()));
26718
 
+    }
26719
 
+
26720
 
+    if ((role == Qt::DisplayRole || role == Qt::EditRole) && (index.column() == 1)) {
26721
 
+        QMap<QString, QVariant>::ConstIterator itr;
26722
 
+        for (itr = usersAcl.constBegin(); itr != usersAcl.constEnd(); ++itr) {
26723
 
+            if (itr.key().endsWith(userList.at(index.row()))) {
26724
 
+                return itr.value();
26725
 
+            }
26726
 
+        }
26727
 
+    }
26728
 
+
26729
 
+    return QVariant();
26730
 
+}
26731
 
+
26732
 
+Qt::ItemFlags UserPermissionModel::flags(const QModelIndex &index) const
26733
 
+{
26734
 
+    if (index.column() == 0) {
26735
 
+        return Qt::ItemIsSelectable;
26736
 
+    }
26737
 
+
26738
 
+    if (index.column() == 1) {
26739
 
+        return (Qt::ItemIsEnabled | Qt::ItemIsEditable);
26740
 
+    }
26741
 
+
26742
 
+    return Qt::NoItemFlags;
26743
 
+}
26744
 
+
26745
 
+bool UserPermissionModel::setData(const QModelIndex &index, const QVariant &value, int role)
26746
 
+{
26747
 
+    if ((role != Qt::EditRole) || (index.column() != 1)) {
26748
 
+        return false;
26749
 
+    }
26750
 
+
26751
 
+    QString key("");
26752
 
+    QMap<QString, QVariant>::ConstIterator itr;
26753
 
+    for (itr = usersAcl.constBegin(); itr != usersAcl.constEnd(); ++itr) {
26754
 
+        if (itr.key().endsWith(userList.at(index.row()))) {
26755
 
+            key = itr.key();
26756
 
+            break;
26757
 
+        }
26758
 
+    }
26759
 
+
26760
 
+    if (key.isEmpty()) {
26761
 
+        key = userList.at(index.row());
26762
 
+    }
26763
 
+
26764
 
+    if (value.isNull()) {
26765
 
+        usersAcl.take(key);
26766
 
+    } else {
26767
 
+        usersAcl.insert(key, value);
26768
 
+    }
26769
 
+
26770
 
+    emit dataChanged(index, index);
26771
 
+    return true;
26772
 
+}
26773
 
+
26774
 
+QString UserPermissionModel::getAcl() const
26775
 
+{
26776
 
+    QString result("");
26777
 
+
26778
 
+    QMap<QString, QVariant>::ConstIterator itr;
26779
 
+    for (itr = usersAcl.constBegin(); itr != usersAcl.constEnd(); ++itr) {
26780
 
+        if (!itr.value().toString().isEmpty()) {
26781
 
+            result.append(itr.key() + ":" + itr.value().toString().toLower());
26782
 
+            if (itr != (usersAcl.constEnd() - 1)) {
26783
 
+                result.append(",");
26784
 
+            }
26785
 
+        }
26786
 
+    }
26787
 
+
26788
 
+    return result;
26789
 
+}
26790
 
Index: kdenetwork-4.6.3/filesharing/samba/filepropertiesplugin/model.h
26791
 
===================================================================
26792
 
--- /dev/null   1970-01-01 00:00:00.000000000 +0000
26793
 
+++ kdenetwork-4.6.3/filesharing/samba/filepropertiesplugin/model.h     2011-05-30 12:32:04.797538094 -0400
26794
 
@@ -0,0 +1,56 @@
26795
 
+/*
26796
 
+ * Copyright 2011  Rodrigo Belem <rclbelem@gmail.com>
26797
 
+ *
26798
 
+ * This program is free software; you can redistribute it and/or
26799
 
+ * modify it under the terms of the GNU General Public License as
26800
 
+ * published by the Free Software Foundation; either version 2 of
26801
 
+ * the License or (at your option) version 3 or any later version
26802
 
+ * accepted by the membership of KDE e.V. (or its successor approved
26803
 
+ * by the membership of KDE e.V.), which shall act as a proxy
26804
 
+ * defined in Section 14 of version 3 of the license.
26805
 
+ *
26806
 
+ * This program is distributed in the hope that it will be useful,
26807
 
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
26808
 
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26809
 
+ * GNU General Public License for more details.
26810
 
+ *
26811
 
+ * You should have received a copy of the GNU General Public License
26812
 
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
26813
 
+ */
26814
 
+
26815
 
+#ifndef model_h
26816
 
+#define model_h
26817
 
+
26818
 
+#include <QStringList>
26819
 
+#include <QAbstractTableModel>
26820
 
+#include <ksambasharedata.h>
26821
 
+
26822
 
+class KSambaShareData;
26823
 
+
26824
 
+class UserPermissionModel : public QAbstractTableModel
26825
 
+{
26826
 
+    Q_OBJECT
26827
 
+
26828
 
+public:
26829
 
+    UserPermissionModel(KSambaShareData &shareData, QObject *parent = 0);
26830
 
+
26831
 
+    int rowCount(const QModelIndex &parent = QModelIndex()) const;
26832
 
+    int columnCount(const QModelIndex &parent = QModelIndex()) const;
26833
 
+
26834
 
+    QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
26835
 
+
26836
 
+    Qt::ItemFlags flags(const QModelIndex & index) const;
26837
 
+    bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole);
26838
 
+
26839
 
+    QString getAcl() const;
26840
 
+
26841
 
+private:
26842
 
+    QStringList userList;
26843
 
+    KSambaShareData shareData;
26844
 
+    QVariantMap usersAcl;
26845
 
+
26846
 
+    void setupData();
26847
 
+    QStringList getUsersList() const;
26848
 
+};
26849
 
+
26850
 
+#endif
26851
 
Index: kdenetwork-4.6.3/filesharing/samba/filepropertiesplugin/sambausershareplugin.cpp
26852
 
===================================================================
26853
 
--- /dev/null   1970-01-01 00:00:00.000000000 +0000
26854
 
+++ kdenetwork-4.6.3/filesharing/samba/filepropertiesplugin/sambausershareplugin.cpp    2011-05-30 12:44:57.229368400 -0400
26855
 
@@ -0,0 +1,226 @@
26856
 
+/*
26857
 
+  Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
26858
 
+  Copyright (c) 2011 Rodrigo Belem <rclbelem@gmail.com>
26859
 
+
26860
 
+  This program is free software; you can redistribute it and/or modify
26861
 
+  it under the terms of the GNU General Public License as published by
26862
 
+  the Free Software Foundation; either version 2 of the License, or
26863
 
+  (at your option) any later version.
26864
 
+
26865
 
+  This program is distributed in the hope that it will be useful,
26866
 
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
26867
 
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26868
 
+  GNU General Public License for more details.
26869
 
+
26870
 
+  You should have received a copy of the GNU General Public License
26871
 
+  along with this program; if not, write to the Free Software
26872
 
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
26873
 
+
26874
 
+*/
26875
 
+
26876
 
+#include <QFileInfo>
26877
 
+#include <QStringList>
26878
 
+#include <QStandardItemModel>
26879
 
+#include <QProcess>
26880
 
+
26881
 
+#include <kvbox.h>
26882
 
+#include <kuser.h>
26883
 
+#include <kdebug.h>
26884
 
+#include <kpushbutton.h>
26885
 
+#include <ksambashare.h>
26886
 
+#include <ksambasharedata.h>
26887
 
+#include <kmessagebox.h>
26888
 
+#include <KDE/KPluginFactory>
26889
 
+#include <KDE/KPluginLoader>
26890
 
+
26891
 
+#include "sambausershareplugin.h"
26892
 
+#include "model.h"
26893
 
+#include "delegate.h"
26894
 
+
26895
 
+K_PLUGIN_FACTORY(SambaUserSharePluginFactory, registerPlugin<SambaUserSharePlugin>();)
26896
 
+K_EXPORT_PLUGIN(SambaUserSharePluginFactory("fileshare_propsdlgplugin"))
26897
 
+
26898
 
+SambaUserSharePlugin::SambaUserSharePlugin(QObject *parent, const QList<QVariant> &args)
26899
 
+    : KPropertiesDialogPlugin(qobject_cast<KPropertiesDialog *>(parent))
26900
 
+    , url()
26901
 
+    , shareData()
26902
 
+{
26903
 
+    url = properties->kurl().path(KUrl::RemoveTrailingSlash);
26904
 
+    if (url.isEmpty()) {
26905
 
+        return;
26906
 
+    }
26907
 
+
26908
 
+    QFileInfo pathInfo(url);
26909
 
+    if (!pathInfo.permission(QFile::ReadUser | QFile::WriteUser)) {
26910
 
+        return;
26911
 
+    }
26912
 
+
26913
 
+    KGlobal::locale()->insertCatalog("kfileshare");
26914
 
+
26915
 
+    KVBox *vbox = new KVBox();
26916
 
+    properties->addPage(vbox, i18n("&Share"));
26917
 
+    properties->setFileSharingPage(vbox);
26918
 
+
26919
 
+    if (!QFile::exists("/usr/sbin/smbd")
26920
 
+        && !QFile::exists("/usr/local/sbin/smbd")) {
26921
 
+
26922
 
+        QWidget *widget = new QWidget(vbox);
26923
 
+        QVBoxLayout *vLayout = new QVBoxLayout(widget);
26924
 
+        vLayout->setAlignment(Qt::AlignJustify);
26925
 
+        vLayout->setSpacing(KDialog::spacingHint());
26926
 
+        vLayout->setMargin(0);
26927
 
+
26928
 
+        vLayout->addWidget(new QLabel(i18n("Samba is not installed on your system."), widget));
26929
 
+
26930
 
+#ifdef SAMBA_INSTALL
26931
 
+        KPushButton *btn = new KPushButton(i18n("Install Samba..."), widget);
26932
 
+        btn->setDefault(false);
26933
 
+        vLayout->addWidget(btn);
26934
 
+        connect(btn, SIGNAL(clicked()), SLOT(installSamba()));
26935
 
+#endif
26936
 
+
26937
 
+        // align items on top
26938
 
+        vLayout->addStretch();
26939
 
+
26940
 
+        return;
26941
 
+    }
26942
 
+
26943
 
+    QWidget *widget = new QWidget(vbox);
26944
 
+    propertiesUi.setupUi(widget);
26945
 
+
26946
 
+    QList<KSambaShareData> shareList = KSambaShare::instance()->getSharesByPath(url);
26947
 
+
26948
 
+    if (!shareList.isEmpty()) {
26949
 
+        shareData = shareList.at(0); // FIXME: using just the first in the list for a while
26950
 
+    }
26951
 
+
26952
 
+    setupModel();
26953
 
+    setupViews();
26954
 
+    load();
26955
 
+
26956
 
+    connect(propertiesUi.sambaChk, SIGNAL(toggled(bool)), this, SLOT(toggleShareStatus(bool)));
26957
 
+    connect(propertiesUi.sambaChk, SIGNAL(toggled(bool)), this, SIGNAL(changed()));
26958
 
+    connect(propertiesUi.sambaNameEdit, SIGNAL(textChanged(QString)), this, SIGNAL(changed()));
26959
 
+    connect(propertiesUi.sambaNameEdit, SIGNAL(textChanged(QString)), this, SLOT(checkShareName(const QString &)));
26960
 
+    connect(propertiesUi.sambaAllowGuestChk, SIGNAL(toggled(bool)), this, SIGNAL(changed()));
26961
 
+    connect(model, SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)), this, SIGNAL(changed()));
26962
 
+
26963
 
+    for (int i = 0; i < model->rowCount(); ++i) {
26964
 
+        propertiesUi.tableView->openPersistentEditor(model->index(i, 1, QModelIndex()));
26965
 
+    }
26966
 
+}
26967
 
+
26968
 
+SambaUserSharePlugin::~SambaUserSharePlugin()
26969
 
+{
26970
 
+}
26971
 
+
26972
 
+void SambaUserSharePlugin::installSamba()
26973
 
+{
26974
 
+    QProcess *installProcess = new QProcess(this);
26975
 
+    installProcess->start("qapt-batch", QStringList() << "--install" << SAMBA_PACKAGE_NAME);
26976
 
+}
26977
 
+
26978
 
+void SambaUserSharePlugin::setupModel()
26979
 
+{
26980
 
+    model = new UserPermissionModel(shareData, this);
26981
 
+}
26982
 
+
26983
 
+void SambaUserSharePlugin::setupViews()
26984
 
+{
26985
 
+    propertiesUi.tableView->setModel(model);
26986
 
+    propertiesUi.tableView->setSelectionMode(QAbstractItemView::NoSelection);
26987
 
+    propertiesUi.tableView->setItemDelegate(new UserPermissionDelegate(this));
26988
 
+}
26989
 
+
26990
 
+void SambaUserSharePlugin::load()
26991
 
+{
26992
 
+    bool guestAllowed = false;
26993
 
+    bool sambaShared = KSambaShare::instance()->isDirectoryShared(url);
26994
 
+
26995
 
+    propertiesUi.sambaChk->setChecked(sambaShared);
26996
 
+    toggleShareStatus(sambaShared);
26997
 
+    if (sambaShared) {
26998
 
+        guestAllowed = (bool) shareData.guestPermission();
26999
 
+    }
27000
 
+    propertiesUi.sambaAllowGuestChk->setChecked(guestAllowed);
27001
 
+
27002
 
+    propertiesUi.sambaNameEdit->setText(shareData.name());
27003
 
+}
27004
 
+
27005
 
+void SambaUserSharePlugin::applyChanges()
27006
 
+{
27007
 
+    KSambaShareData::UserShareError result;
27008
 
+
27009
 
+    if (propertiesUi.sambaChk->isChecked()) {
27010
 
+        if (shareData.setAcl(model->getAcl()) != KSambaShareData::UserShareAclOk) {
27011
 
+            return;
27012
 
+        }
27013
 
+
27014
 
+        shareData.setName(propertiesUi.sambaNameEdit->text());
27015
 
+
27016
 
+        shareData.setPath(url);
27017
 
+
27018
 
+        KSambaShareData::GuestPermission guestOk(shareData.guestPermission());
27019
 
+
27020
 
+        guestOk = (propertiesUi.sambaAllowGuestChk->isChecked() == false)
27021
 
+                  ? KSambaShareData::GuestsNotAllowed : KSambaShareData::GuestsAllowed;
27022
 
+
27023
 
+        shareData.setGuestPermission(guestOk);
27024
 
+
27025
 
+        result = shareData.save();
27026
 
+    } else if (KSambaShare::instance()->isDirectoryShared(url)) {
27027
 
+        result = shareData.remove();
27028
 
+    }
27029
 
+}
27030
 
+
27031
 
+void SambaUserSharePlugin::toggleShareStatus(bool checked)
27032
 
+{
27033
 
+    propertiesUi.sambaNameEdit->setEnabled(checked);
27034
 
+    propertiesUi.sambaAllowGuestChk->setCheckable(checked);
27035
 
+    propertiesUi.tableView->setEnabled(checked);
27036
 
+    if (checked && propertiesUi.sambaNameEdit->text().isEmpty()) {
27037
 
+        propertiesUi.sambaNameEdit->setText(getNewShareName());
27038
 
+    }
27039
 
+}
27040
 
+
27041
 
+void SambaUserSharePlugin::checkShareName(const QString &name)
27042
 
+{
27043
 
+    bool disableButton = false;
27044
 
+
27045
 
+    if (name.isEmpty()) {
27046
 
+        disableButton = true;
27047
 
+    } else if (!KSambaShare::instance()->isShareNameAvailable(name)) {
27048
 
+        // There is another Share with the same name
27049
 
+        KMessageBox::sorry(qobject_cast<KPropertiesDialog *>(this),
27050
 
+                i18n("<qt>There is already a share with the name <strong>%1</strong>.<br /> Please choose another name.</qt>",
27051
 
+                    propertiesUi.sambaNameEdit->text()));
27052
 
+        propertiesUi.sambaNameEdit->selectAll();
27053
 
+        disableButton = true;
27054
 
+    }
27055
 
+
27056
 
+    if (disableButton) {
27057
 
+        properties->enableButtonOk(false);
27058
 
+        propertiesUi.sambaNameEdit->setFocus();
27059
 
+        return;
27060
 
+    }
27061
 
+
27062
 
+    if (!properties->isButtonEnabled(KPropertiesDialog::Ok)) {
27063
 
+        properties->enableButtonOk(true);
27064
 
+    }
27065
 
+}
27066
 
+
27067
 
+QString SambaUserSharePlugin::getNewShareName()
27068
 
+{
27069
 
+    QString shareName = KUrl(url).fileName();
27070
 
+
27071
 
+    if (!propertiesUi.sambaNameEdit->text().isEmpty()) {
27072
 
+        shareName = propertiesUi.sambaNameEdit->text();
27073
 
+    }
27074
 
+
27075
 
+    // Windows could have problems with longer names
27076
 
+    shareName = shareName.left(12);
27077
 
+
27078
 
+    return shareName;
27079
 
+}
27080
 
+
27081
 
+#include "moc_sambausershareplugin.cpp"
27082
 
Index: kdenetwork-4.6.3/filesharing/samba/filepropertiesplugin/sambausershareplugin.desktop
27083
 
===================================================================
27084
 
--- /dev/null   1970-01-01 00:00:00.000000000 +0000
27085
 
+++ kdenetwork-4.6.3/filesharing/samba/filepropertiesplugin/sambausershareplugin.desktop        2011-05-30 12:32:04.797538094 -0400
27086
 
@@ -0,0 +1,133 @@
27087
 
+[Desktop Entry]
27088
 
+Type=Service
27089
 
+Icon=preferences-system-network-share-windows
27090
 
+Name=Fileshare Konqueror Directory Properties Page
27091
 
+Name[ar]=صفحة دليل خصائص مشاركة ملفات كونكيورر 
27092
 
+Name[ast]=Páxina de propiedaes del direutoriu pa compartir ficheros de Konqueror
27093
 
+Name[bg]=Настройки за приставката за браузъра за споделяна на файлове
27094
 
+Name[bn]=ফাইল ভাগাভাগি কনকরার ডিরেক্টরী বৈশিষ্ট্যাবলী পাতা
27095
 
+Name[ca]=Pàgina de propietats del directori de compartició de fitxers del Konqueror
27096
 
+Name[ca@valencia]=Pàgina de propietats del directori de compartició de fitxers del Konqueror
27097
 
+Name[cs]=Stránka vlastností adresáře sdílení Konqueroru
27098
 
+Name[da]=Fileshare Konqueror-mappens side med egenskaber
27099
 
+Name[de]=Ordnerfreigabe-Eigenschaftenseite für Konqueror
27100
 
+Name[el]=Σελίδα ιδιοτήτων κοινόχρηστου καταλόγου του Konqueror
27101
 
+Name[en_GB]=Fileshare Konqueror Directory Properties Page
27102
 
+Name[eo]=Paĝo de ecoj de la komunaj dosierujoj de Konkeranto
27103
 
+Name[es]=Página de propiedades del directorio para compartir archivos de Konqueror
27104
 
+Name[et]=Failijagamise Konquerori kataloogi omaduste lehekülg
27105
 
+Name[eu]=Fitxategiak partekatzeko Konqueror direktorioaren propietateen orria
27106
 
+Name[fa]=صفحۀ ویژگیهای فهرست راهنمای اشتراک پروندۀ Konqueror
27107
 
+Name[fi]=Konquerorin tiedostojakojen ominaisuussivu
27108
 
+Name[fr]=Page des propriétés d'un dossier de partage de Konqueror
27109
 
+Name[ga]=Leathanach Airíonna Konqueror: Comhroinnt Comhadlainne
27110
 
+Name[gl]=Páxina coas propiedades do directorio de ficheiros compartidos de Konqueror
27111
 
+Name[he]=דף מאפייני ספרית קבצים משותפת של Konqueror
27112
 
+Name[hi]=फ़ाइलशेयर कॉन्करर डिरेक्ट्रीज़ गुण पृष्ठ
27113
 
+Name[hne]=फाइलसेयर कान्करर डिरेक्टरीज गुन पेज
27114
 
+Name[hr]=Stranica sa postavkama svojstava Konqueror Directoryja za dijeljenje datoteka
27115
 
+Name[hu]=Fájlmegosztási lap a Konqueror könyvtártulajdonságainál
27116
 
+Name[ia]=Pagina de proprietates de directorio de Konqueror pro compartir de file
27117
 
+Name[is]=Skráastjóraeiginleikar Konqueror
27118
 
+Name[it]=Pagina delle proprietà di Konqueror per la condivisione
27119
 
+Name[ja]=Konqueror でファイル共有するディレクトリのプロパティのページ
27120
 
+Name[kk]=Konqueror файлдарын ортақтастыру каталогының қасиеттер беті
27121
 
+Name[km]=ទំព័រ​លក្ខណៈ​សម្បត្តិ​ថត Konqueror សម្រាប់​ការ​ចែក​រំលែក
27122
 
+Name[ko]=Konqueror 디렉터리 속성 페이지의 파일 공유 탭
27123
 
+Name[lt]=Failų dalinimosi Konqueror aplanko nustatymų puslapis
27124
 
+Name[lv]=Konqueror mapes koplietošanas īpašību lapa
27125
 
+Name[mk]=Страница со параметри за делен именик во Konqueror
27126
 
+Name[ml]=ഫയല്‍ഷെയര്‍ കോണ്‍ക്വറര്‍ തട്ടിന്റെ ഗുണവിശേഷങ്ങളുടെ താള്‍
27127
 
+Name[nb]=Fildeler – Side i Konquerors mappegenskaper
27128
 
+Name[nds]=Konqueror Ornerfreegaav-Egenschappensiet
27129
 
+Name[ne]=फाइल साझेदारी कन्क्वेरर डाइरेक्टरी विशेषता पृष्ठ
27130
 
+Name[nl]=Configuratiepagina Konqueror bestanden delen
27131
 
+Name[nn]=Side for katalogeigenskapar til fildeling i Konqueror
27132
 
+Name[pa]=ਫਾਇਲ ਸਾਂਝ ਕੋਨਕਿਊਰੋਰ ਡਾਇਰੈਕਟਰੀ ਵਿਸ਼ੇਸ਼ਤਾ ਪੇਜ਼
27133
 
+Name[pl]=Strona współdzielenia we właściwościach katalogu w Konquerorze
27134
 
+Name[pt]=Página de Propriedades da Pasta de Partilha do Konqueror
27135
 
+Name[pt_BR]=Página de propriedades da pasta de compartilhamento de arquivos do Konqueror
27136
 
+Name[ru]=Общий доступ к файлам - диалог Konqueror
27137
 
+Name[sk]=Zdieľanie adresárov pre Konqueror
27138
 
+Name[sl]=Stran z lastnostmi za souporabo mape
27139
 
+Name[sr]=Страница К‑освајача са својствима фасцикле за дељење фајлова
27140
 
+Name[sr@ijekavian]=Страница К‑освајача са својствима фасцикле за дељење фајлова
27141
 
+Name[sr@ijekavianlatin]=Stranica K‑osvajača sa svojstvima fascikle za deljenje fajlova
27142
 
+Name[sr@latin]=Stranica K‑osvajača sa svojstvima fascikle za deljenje fajlova
27143
 
+Name[sv]=Konquerors fildelningssida med katalogegenskaper
27144
 
+Name[ta]=Fileshare Konqueror அடைவு பண்புகளின் பக்கம்
27145
 
+Name[tg]=Саҳифаи Феҳристи Хусусиятҳо оиди Konqueror Истифодабарии Муштараки Файлҳо
27146
 
+Name[tr]=Dosya Paylaşımı Konqueror Dizin Özellikleri Sayfası
27147
 
+Name[uk]=Сторінка властивостей каталогу для спільного доступу
27148
 
+Name[vi]=Trang thuộc tính của chia sẻ thư mục Konqueror
27149
 
+Name[x-test]=xxFileshare Konqueror Directory Properties Pagexx
27150
 
+Name[zh_CN]=Konqueror 文件共享目录属性页
27151
 
+Name[zh_HK]=檔案分享 Konqueror 目錄屬性頁
27152
 
+Name[zh_TW]=Konqueror 檔案分享目錄屬性頁
27153
 
+Comment=Konqueror properties dialog plugin to share a directory with the local network
27154
 
+Comment[ar]=خصائص حوار إضافة كونكيورر لمشاركة مسار مع الشبكة المحلية
27155
 
+Comment[ast]=Complementu de diálogu de propiedaes de Konqueror pa compartir un direutoriu cola rede llocal
27156
 
+Comment[bg]=Настройка на приставката за браузъра Konqueror за споделяна на директории в локалната мрежа
27157
 
+Comment[bn]=স্থানীয় নেটওয়ার্কের সঙ্গে একটি ডিরেক্টরী ভাগাভাগি করতে কনকরার বৈশিষ্ট্যাবলী ডায়ালগ প্লাগিন
27158
 
+Comment[ca]=Diàleg de propietats del connector del Konqueror per compartir un directori amb la xarxa local
27159
 
+Comment[ca@valencia]=Diàleg de propietats del connector del Konqueror per compartir un directori amb la xarxa local
27160
 
+Comment[cs]=Modul dialogu vlastností Konqueroru pro sdílení adresářů v lokální síti
27161
 
+Comment[da]=Konqueror egenskaber-dialog plugin til at dele en mappe med det lokale netværk
27162
 
+Comment[de]=Modul für den Konqueror-Eigenschaftendialog zur Freigabe eines Ordners im Netzwerk
27163
 
+Comment[el]=Πρόσθετος διάλογος ρυθμίσεων του Konqueror για την κοινή χρήση ενός καταλόγου με το τοπικό δίκτυο
27164
 
+Comment[en_GB]=Konqueror properties dialogue plugin to share a directory with the local network
27165
 
+Comment[eo]=Kromaĵo de Konkeranto por komunigi dosierujon sur la loka reto
27166
 
+Comment[es]=Complemento de diálogo de propiedades de Konqueror para compartir un directorio con la red local
27167
 
+Comment[et]=Konquerori omaduste dialoogi plugin kataloogi jagamiseks kohtvõrgus
27168
 
+Comment[eu]=Konqueror-en propietateen elkarrizketa-koadro plugina direktorio bat sare lokalean partekatzeko
27169
 
+Comment[fa]=ویژگیهای وصلۀ محاورۀ Konqueror برای اشتراک فهرست راهنما با شبکۀ محلی
27170
 
+Comment[fi]=Konquerorin liitännäinen, jolla voi jakaa kansioita lähiverkossa
27171
 
+Comment[fr]=Module de Konqueror pour le partage d'un dossier sur le réseau local
27172
 
+Comment[ga]=Breiseán dialóige airíonna Konqueror lenar féidir comhadlann a chomhroinnt leis an líonra logánta
27173
 
+Comment[gl]=Diálogo de propiedades do engadido de Konqueror para compartir un directorio pola rede local
27174
 
+Comment[he]=תוסף מאפייני דו-שיח של Konqueror כדי לשתף סיפריה עם רשת מקומית
27175
 
+Comment[hi]=स्थानीय नेटवर्क के साथ डिरेक्ट्री साझा करने के लिए कॉन्करर गुण संवाद प्लगइन
27176
 
+Comment[hne]=लोकल नेटवर्क के साथ डिरेक्टरी साझा करे बर कान्करर गुन गोठ प्लगइन
27177
 
+Comment[hr]=Dijalogni priključak postavki za Konqueror za dijeljenje direktorija na lokalnoj mreži
27178
 
+Comment[hu]=Konqueror párbeszédablak könyvtár megosztásához a helyi hálózaton
27179
 
+Comment[ia]=Plug-in de dialogo de proprietate de Konqueror pro compartir un directorio con le rete local
27180
 
+Comment[is]=Konqueror properties dialog plugin to share a directory with the local network
27181
 
+Comment[it]=Estensione delle proprietà di Konqueror per condividere una cartella con la rete locale
27182
 
+Comment[ja]=ローカルネットワークでディレクトリを共有する Konqueror プロパティダイアログのプラグイン
27183
 
+Comment[kk]=Каталогты жергілікті желімен ортақтастыратын Konqueror қасиеттер диалогының плагині
27184
 
+Comment[km]=ប្រអប់​លក្ខណៈ​សម្បត្តិ Konqueror ដើម្បី​ចែក​រំលែក​ថត​នៅ​ក្នុង​បណ្ដាញ​មូលដ្ឋាន
27185
 
+Comment[ko]=로컬 네트워크에서 파일을 공유하기 위한 Konqueror 속성 대화 상자 플러그인
27186
 
+Comment[lt]=Konqueror nustatymų dialogo įskiepis, skirtas dalintis aplanku vietiniame tinkle
27187
 
+Comment[lv]=Konqueror īpašību dialoga spraudnis mapes publicēšanai koplietošanai lokālajā tīklā
27188
 
+Comment[mk]=Приклучок со дијалог за својства во Konqueror за делење на датотеки со локалната мрежа
27189
 
+Comment[ml]=കോണ്‍ക്വററിലെ പ്രാദേശിക ശൃഖലയുമായി തട്ടു് പങ്കുവെക്കാനുള്ള സംയോജകത്തിന്റെ ഗുണവിശേഷങ്ങളുടെ സംവാദജാലകം
27190
 
+Comment[nb]=Programtillegg for Konquerors egenskapsdialog for å dele en mappe på lokalnettet
27191
 
+Comment[nds]=Moduul för en Konqueror-Egenschappendialoog för't Freegeven vun Ornern in't lokale Nettwark
27192
 
+Comment[ne]=स्थानीय सञ्जालसँग डाइरेक्टरी साझेदार गर्न कन्क्वेरर विशेषता संवाद प्लगइन
27193
 
+Comment[nl]=Konqueror-plugin met instellingen om bestanden te delen via het lokale netwerk
27194
 
+Comment[nn]=Konqueror-vising av eigenskapar til ein delt katalog i det lokale nettverket
27195
 
+Comment[pa]=ਕੋਨਕਿਉਰੋਰ ਵਿਸ਼ੇਸ਼ਤਾ ਡਾਈਲਾਗ ਪਲੱਗਇਨ ਜੋ ਲੋਕਲ ਨੈੱਟਵਰਕ ਨਾਲ ਡਾਇਰੈਕਟਰੀ ਸਾਂਝੀ ਕਰਦੀ ਹੈ
27196
 
+Comment[pl]=Wtyczka właściwości dla Konquerora umożliwiająca współdzielenie katalogu w sieci lokalnej
27197
 
+Comment[pt]='Plugin' de janela de propriedades do Konqueror para partilhar uma pasta na rede local
27198
 
+Comment[pt_BR]=Plug-in de diálogo de propriedades do Konqueror para o compartilhamento de uma pasta em uma rede local
27199
 
+Comment[ro]=Modul pentru dialogul de proprietăți Konqueror pentru a partaja un director cu rețeaua locală
27200
 
+Comment[ru]=Модуль свойств Konqueror для организации общего доступа к каталогу по локальной сети
27201
 
+Comment[sk]=Modul Konquerora pre zdieľanie adresára v lokálnej sieti
27202
 
+Comment[sl]=Vstavek za Konqueror s pogovornim oknom za lastnosti za souporabo mape v krajevnem omrežju
27203
 
+Comment[sr]=Прикључак дијалога К‑освајача за својства дељења фасцикли у локалној мрежи
27204
 
+Comment[sr@ijekavian]=Прикључак дијалога К‑освајача за својства дијељења фасцикли у локалној мрежи
27205
 
+Comment[sr@ijekavianlatin]=Priključak dijaloga K‑osvajača za svojstva dijeljenja fascikli u lokalnoj mreži
27206
 
+Comment[sr@latin]=Priključak dijaloga K‑osvajača za svojstva deljenja fascikli u lokalnoj mreži
27207
 
+Comment[sv]=Konqueror-insticksprogram med egenskapsdialogruta för att dela en katalog i det lokala nätverket
27208
 
+Comment[ta]=Konqueror பண்புகளின் உரையாடல் செருகுகள் அடைவை சம்பா சேவையகத்துடன் பகிரவேண்டிய செருகுகள்
27209
 
+Comment[tg]=Модули муколамаи хусусиятҳои Konqueror барои истифодабарии муштараки феҳрист бо шабакаи маҳалллӣ
27210
 
+Comment[tr]=Yerel ağ ile dizin paylaşımı için Konqueror iletişim eklentisi özellikleri
27211
 
+Comment[uk]=Додаток діалогового вікна властивостей Konqueror для уможливлення спільного доступу до каталогу з локальної мережі
27212
 
+Comment[vi]=Phần bổ sung hộp thoại thuộc tính Konqueror dùng để chia sẻ một thư mục trên mạng nội bộ
27213
 
+Comment[x-test]=xxKonqueror properties dialog plugin to share a directory with the local networkxx
27214
 
+Comment[zh_CN]=可将目录与局域网共享的 Konqueror 属性页对话框插件
27215
 
+Comment[zh_HK]=用於與本地網絡分享目錄的 Konqueror 屬性對話盒插件
27216
 
+Comment[zh_TW]=Konqueror 屬性對話框外掛程式,用於在本地端網路上分享目錄
27217
 
+X-KDE-Library=sambausershareplugin
27218
 
+X-KDE-Protocol=file
27219
 
+X-KDE-ServiceTypes=KPropertiesDialog/Plugin,inode/directory
27220
 
Index: kdenetwork-4.6.3/filesharing/samba/filepropertiesplugin/sambausershareplugin.h
27221
 
===================================================================
27222
 
--- /dev/null   1970-01-01 00:00:00.000000000 +0000
27223
 
+++ kdenetwork-4.6.3/filesharing/samba/filepropertiesplugin/sambausershareplugin.h      2011-05-30 12:32:04.797538094 -0400
27224
 
@@ -0,0 +1,60 @@
27225
 
+/*
27226
 
+  Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
27227
 
+  Copyright (c) 2011 Rodrigo Belem <rclbelem@gmail.com>
27228
 
+
27229
 
+  This program is free software; you can redistribute it and/or modify
27230
 
+  it under the terms of the GNU General Public License as published by
27231
 
+  the Free Software Foundation; either version 2 of the License, or
27232
 
+  (at your option) any later version.
27233
 
+
27234
 
+  This program is distributed in the hope that it will be useful,
27235
 
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
27236
 
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27237
 
+  GNU General Public License for more details.
27238
 
+
27239
 
+  You should have received a copy of the GNU General Public License
27240
 
+  along with this program; if not, write to the Free Software
27241
 
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
27242
 
+
27243
 
+*/
27244
 
+
27245
 
+#ifndef SAMBAUSERSHAREPLUGIN_H
27246
 
+#define SAMBAUSERSHAREPLUGIN_H
27247
 
+
27248
 
+#include <QVariant>
27249
 
+#include <QComboBox>
27250
 
+
27251
 
+#include <kpropertiesdialog.h>
27252
 
+
27253
 
+#include "ui_sambausershareplugin.h"
27254
 
+
27255
 
+class UserPermissionModel;
27256
 
+
27257
 
+class SambaUserSharePlugin : public KPropertiesDialogPlugin
27258
 
+{
27259
 
+    Q_OBJECT
27260
 
+
27261
 
+public:
27262
 
+    SambaUserSharePlugin(QObject *parent, const QList<QVariant> &args);
27263
 
+    virtual ~SambaUserSharePlugin();
27264
 
+    virtual void applyChanges();
27265
 
+
27266
 
+private Q_SLOTS:
27267
 
+    void load();
27268
 
+    void toggleShareStatus(bool checked);
27269
 
+    void installSamba();
27270
 
+    void checkShareName(const QString &name);
27271
 
+
27272
 
+private:
27273
 
+    QString url;
27274
 
+    KSambaShareData shareData;
27275
 
+    UserPermissionModel *model;
27276
 
+    Ui::PropertiesPageGUI propertiesUi;
27277
 
+
27278
 
+    void setupModel();
27279
 
+    void setupViews();
27280
 
+    QStringList getUsersList();
27281
 
+    QString getNewShareName();
27282
 
+};
27283
 
+
27284
 
+#endif // SAMBAUSERSHAREPLUGIN_H
27285
 
Index: kdenetwork-4.6.3/filesharing/samba/filepropertiesplugin/sambausershareplugin.ui
27286
 
===================================================================
27287
 
--- /dev/null   1970-01-01 00:00:00.000000000 +0000
27288
 
+++ kdenetwork-4.6.3/filesharing/samba/filepropertiesplugin/sambausershareplugin.ui     2011-05-30 12:32:04.797538094 -0400
27289
 
@@ -0,0 +1,114 @@
27290
 
+<?xml version="1.0" encoding="UTF-8"?>
27291
 
+<ui version="4.0">
27292
 
+ <class>PropertiesPageGUI</class>
27293
 
+ <widget class="QWidget" name="PropertiesPageGUI">
27294
 
+  <property name="geometry">
27295
 
+   <rect>
27296
 
+    <x>0</x>
27297
 
+    <y>0</y>
27298
 
+    <width>433</width>
27299
 
+    <height>353</height>
27300
 
+   </rect>
27301
 
+  </property>
27302
 
+  <layout class="QVBoxLayout" name="verticalLayout_3">
27303
 
+   <item>
27304
 
+    <layout class="QVBoxLayout" name="verticalLayout">
27305
 
+     <item>
27306
 
+      <widget class="QCheckBox" name="sambaChk">
27307
 
+       <property name="text">
27308
 
+        <string>Share with S&amp;amba (Microsoft Windows)</string>
27309
 
+       </property>
27310
 
+       <property name="checked">
27311
 
+        <bool>true</bool>
27312
 
+       </property>
27313
 
+      </widget>
27314
 
+     </item>
27315
 
+    </layout>
27316
 
+   </item>
27317
 
+   <item>
27318
 
+    <layout class="QFormLayout" name="formLayout">
27319
 
+     <property name="fieldGrowthPolicy">
27320
 
+      <enum>QFormLayout::ExpandingFieldsGrow</enum>
27321
 
+     </property>
27322
 
+     <item row="0" column="0">
27323
 
+      <widget class="QLabel" name="textLabel1">
27324
 
+       <property name="text">
27325
 
+        <string>Name:</string>
27326
 
+       </property>
27327
 
+       <property name="wordWrap">
27328
 
+        <bool>false</bool>
27329
 
+       </property>
27330
 
+      </widget>
27331
 
+     </item>
27332
 
+     <item row="0" column="1">
27333
 
+      <widget class="KLineEdit" name="sambaNameEdit"/>
27334
 
+     </item>
27335
 
+    </layout>
27336
 
+   </item>
27337
 
+   <item>
27338
 
+    <layout class="QHBoxLayout">
27339
 
+     <item>
27340
 
+      <widget class="QCheckBox" name="sambaAllowGuestChk">
27341
 
+       <property name="enabled">
27342
 
+        <bool>true</bool>
27343
 
+       </property>
27344
 
+       <property name="text">
27345
 
+        <string>Allow Guests</string>
27346
 
+       </property>
27347
 
+       <property name="checked">
27348
 
+        <bool>false</bool>
27349
 
+       </property>
27350
 
+      </widget>
27351
 
+     </item>
27352
 
+     <item>
27353
 
+      <spacer name="spacer1">
27354
 
+       <property name="orientation">
27355
 
+        <enum>Qt::Horizontal</enum>
27356
 
+       </property>
27357
 
+       <property name="sizeType">
27358
 
+        <enum>QSizePolicy::Expanding</enum>
27359
 
+       </property>
27360
 
+       <property name="sizeHint" stdset="0">
27361
 
+        <size>
27362
 
+         <width>40</width>
27363
 
+         <height>20</height>
27364
 
+        </size>
27365
 
+       </property>
27366
 
+      </spacer>
27367
 
+     </item>
27368
 
+    </layout>
27369
 
+   </item>
27370
 
+   <item>
27371
 
+    <widget class="QTableView" name="tableView">
27372
 
+     <property name="selectionMode">
27373
 
+      <enum>QAbstractItemView::NoSelection</enum>
27374
 
+     </property>
27375
 
+     <property name="showGrid">
27376
 
+      <bool>false</bool>
27377
 
+     </property>
27378
 
+     <attribute name="horizontalHeaderVisible">
27379
 
+      <bool>false</bool>
27380
 
+     </attribute>
27381
 
+     <attribute name="horizontalHeaderHighlightSections">
27382
 
+      <bool>false</bool>
27383
 
+     </attribute>
27384
 
+     <attribute name="verticalHeaderVisible">
27385
 
+      <bool>false</bool>
27386
 
+     </attribute>
27387
 
+     <attribute name="verticalHeaderHighlightSections">
27388
 
+      <bool>false</bool>
27389
 
+     </attribute>
27390
 
+    </widget>
27391
 
+   </item>
27392
 
+  </layout>
27393
 
+ </widget>
27394
 
+ <customwidgets>
27395
 
+  <customwidget>
27396
 
+   <class>KLineEdit</class>
27397
 
+   <extends>QLineEdit</extends>
27398
 
+   <header>klineedit.h</header>
27399
 
+  </customwidget>
27400
 
+ </customwidgets>
27401
 
+ <resources/>
27402
 
+ <connections/>
27403
 
+</ui>
27404
 
Index: kdenetwork-4.6.3/filesharing/simple/CMakeLists.txt
27405
 
===================================================================
27406
 
--- kdenetwork-4.6.3.orig/filesharing/simple/CMakeLists.txt     2011-01-19 17:21:04.000000000 -0500
27407
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
27408
 
@@ -1,43 +0,0 @@
27409
 
-
27410
 
-
27411
 
-
27412
 
-
27413
 
-########### next target ###############
27414
 
-
27415
 
-set(kcm_fileshare_PART_SRCS fileshare.cpp groupconfigdlg.cpp krichtextlabel.cpp ${libfilesharesamba_SRCS} ${libfilesharenfs_SRCS} ${fileshare_propsdlgplugin_SRCS} ${libpropsdlgplugin_common_SRCS})
27416
 
-
27417
 
-
27418
 
-
27419
 
-kde4_add_ui3_files(kcm_fileshare_PART_SRCS 
27420
 
-               ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/socketoptionsdlg.ui
27421
 
-               ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/userselectdlg.ui
27422
 
-               ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/groupselectdlg.ui
27423
 
-               ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/usertab.ui
27424
 
-               ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/filemodedlg.ui
27425
 
-               ${CMAKE_SOURCE_DIR}/filesharing/advanced/nfs/hostprops.ui
27426
 
-               )
27427
 
-
27428
 
-kde4_add_ui_files(kcm_fileshare_PART_SRCS
27429
 
-       ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/share.ui
27430
 
-        groupconfiggui.ui
27431
 
-        ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/expertuserdlg.ui
27432
 
-       ${CMAKE_SOURCE_DIR}/filesharing/advanced/nfs/nfsdialoggui.ui
27433
 
-        controlcenter.ui
27434
 
-        ${CMAKE_SOURCE_DIR}/filesharing/advanced/propsdlgplugin/propertiespagegui.ui
27435
 
-)
27436
 
-
27437
 
-
27438
 
-kde4_add_plugin(kcm_fileshare ${kcm_fileshare_PART_SRCS})
27439
 
-
27440
 
-
27441
 
-target_link_libraries(kcm_fileshare  ${KDE4_KIO_LIBS} ${KDE4_KDE3SUPPORT_LIBS})
27442
 
-
27443
 
-install(TARGETS kcm_fileshare  DESTINATION ${PLUGIN_INSTALL_DIR})
27444
 
-
27445
 
-
27446
 
-########### install files ###############
27447
 
-
27448
 
-install( FILES fileshare.desktop DESTINATION  ${SERVICES_INSTALL_DIR} )
27449
 
-
27450
 
-
27451
 
-
27452
 
Index: kdenetwork-4.6.3/filesharing/simple/controlcenter.ui
27453
 
===================================================================
27454
 
--- kdenetwork-4.6.3.orig/filesharing/simple/controlcenter.ui   2011-01-19 17:21:04.000000000 -0500
27455
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
27456
 
@@ -1,429 +0,0 @@
27457
 
-<ui version="4.0" stdsetdef="1" >
27458
 
-  <class>ControlCenterGUI</class>
27459
 
-  <widget class="QWidget" name="ControlCenterGUI" >
27460
 
-    <property name="geometry" >
27461
 
-      <rect>
27462
 
-        <x>0</x>
27463
 
-        <y>0</y>
27464
 
-        <width>525</width>
27465
 
-        <height>535</height>
27466
 
-      </rect>
27467
 
-    </property>
27468
 
-    <layout class="QVBoxLayout" >
27469
 
-      <property name="margin" >
27470
 
-        <number>0</number>
27471
 
-      </property>
27472
 
-      <item>
27473
 
-        <widget class="KRichTextLabel" name="infoLbl" >
27474
 
-          <property name="margin" >
27475
 
-            <number>11</number>
27476
 
-          </property>
27477
 
-          <property name="text" >
27478
 
-            <string>SMB and NFS servers are not installed on this machine, to enable this module the servers must be installed.</string>
27479
 
-          </property>
27480
 
-          <property name="alignment" >
27481
 
-            <set>Qt::AlignVCenter</set>
27482
 
-          </property>
27483
 
-          <property name="wordWrap" >
27484
 
-            <bool>true</bool>
27485
 
-          </property>
27486
 
-        </widget>
27487
 
-      </item>
27488
 
-      <item>
27489
 
-        <widget class="Q3ButtonGroup" name="shareGrp" >
27490
 
-          <property name="title" >
27491
 
-            <string>Enable Local Networ&amp;k File Sharing</string>
27492
 
-          </property>
27493
 
-          <property name="checkable" >
27494
 
-            <bool>true</bool>
27495
 
-          </property>
27496
 
-          <property name="checked" >
27497
 
-            <bool>true</bool>
27498
 
-          </property>
27499
 
-          <layout class="QVBoxLayout" >
27500
 
-            <item>
27501
 
-              <widget class="QRadioButton" name="simpleRadio" >
27502
 
-                <property name="text" >
27503
 
-                  <string>Si&amp;mple sharing</string>
27504
 
-                </property>
27505
 
-                <property name="checked" >
27506
 
-                  <bool>true</bool>
27507
 
-                </property>
27508
 
-                <property name="buttonGroupId" >
27509
 
-                  <number>1</number>
27510
 
-                </property>
27511
 
-              </widget>
27512
 
-            </item>
27513
 
-            <item>
27514
 
-              <layout class="QHBoxLayout" >
27515
 
-                <item>
27516
 
-                  <widget class="Q3Frame" name="frame4_2" >
27517
 
-                    <property name="sizePolicy" >
27518
 
-                      <sizepolicy>
27519
 
-                        <hsizetype>0</hsizetype>
27520
 
-                        <vsizetype>5</vsizetype>
27521
 
-                        <horstretch>0</horstretch>
27522
 
-                        <verstretch>0</verstretch>
27523
 
-                      </sizepolicy>
27524
 
-                    </property>
27525
 
-                    <property name="minimumSize" >
27526
 
-                      <size>
27527
 
-                        <width>11</width>
27528
 
-                        <height>0</height>
27529
 
-                      </size>
27530
 
-                    </property>
27531
 
-                    <property name="frameShape" >
27532
 
-                      <enum>NoFrame</enum>
27533
 
-                    </property>
27534
 
-                    <property name="frameShadow" >
27535
 
-                      <enum>Raised</enum>
27536
 
-                    </property>
27537
 
-                    <property name="margin" >
27538
 
-                      <number>0</number>
27539
 
-                    </property>
27540
 
-                  </widget>
27541
 
-                </item>
27542
 
-                <item>
27543
 
-                  <widget class="KRichTextLabel" name="textLabel1" >
27544
 
-                    <property name="font" >
27545
 
-                      <font>
27546
 
-                        <italic>true</italic>
27547
 
-                      </font>
27548
 
-                    </property>
27549
 
-                    <property name="text" >
27550
 
-                      <string>Enable simple sharing to allow users to share folders from their HOME folder, without knowing the root password.</string>
27551
 
-                    </property>
27552
 
-                    <property name="alignment" >
27553
 
-                      <set>Qt::AlignVCenter</set>
27554
 
-                    </property>
27555
 
-                    <property name="wordWrap" >
27556
 
-                      <bool>true</bool>
27557
 
-                    </property>
27558
 
-                  </widget>
27559
 
-                </item>
27560
 
-              </layout>
27561
 
-            </item>
27562
 
-            <item>
27563
 
-              <widget class="QRadioButton" name="advancedRadio" >
27564
 
-                <property name="text" >
27565
 
-                  <string>Advanced sharin&amp;g</string>
27566
 
-                </property>
27567
 
-                <property name="buttonGroupId" >
27568
 
-                  <number>1</number>
27569
 
-                </property>
27570
 
-              </widget>
27571
 
-            </item>
27572
 
-            <item>
27573
 
-              <layout class="QHBoxLayout" >
27574
 
-                <item>
27575
 
-                  <widget class="Q3Frame" name="frame4_2_2" >
27576
 
-                    <property name="sizePolicy" >
27577
 
-                      <sizepolicy>
27578
 
-                        <hsizetype>0</hsizetype>
27579
 
-                        <vsizetype>5</vsizetype>
27580
 
-                        <horstretch>0</horstretch>
27581
 
-                        <verstretch>0</verstretch>
27582
 
-                      </sizepolicy>
27583
 
-                    </property>
27584
 
-                    <property name="minimumSize" >
27585
 
-                      <size>
27586
 
-                        <width>11</width>
27587
 
-                        <height>0</height>
27588
 
-                      </size>
27589
 
-                    </property>
27590
 
-                    <property name="frameShape" >
27591
 
-                      <enum>NoFrame</enum>
27592
 
-                    </property>
27593
 
-                    <property name="frameShadow" >
27594
 
-                      <enum>Raised</enum>
27595
 
-                    </property>
27596
 
-                    <property name="margin" >
27597
 
-                      <number>0</number>
27598
 
-                    </property>
27599
 
-                  </widget>
27600
 
-                </item>
27601
 
-                <item>
27602
 
-                  <widget class="KRichTextLabel" name="textLabel1_2" >
27603
 
-                    <property name="font" >
27604
 
-                      <font>
27605
 
-                        <italic>true</italic>
27606
 
-                      </font>
27607
 
-                    </property>
27608
 
-                    <property name="text" >
27609
 
-                      <string>Enable advanced sharing to allow users to share any folders, as long as they have write access to the needed configuration files, or they know the root password.</string>
27610
 
-                    </property>
27611
 
-                    <property name="alignment" >
27612
 
-                      <set>Qt::AlignVCenter</set>
27613
 
-                    </property>
27614
 
-                    <property name="wordWrap" >
27615
 
-                      <bool>true</bool>
27616
 
-                    </property>
27617
 
-                  </widget>
27618
 
-                </item>
27619
 
-              </layout>
27620
 
-            </item>
27621
 
-            <item>
27622
 
-              <layout class="QGridLayout" >
27623
 
-                <item rowspan="2" row="0" column="0" colspan="1" >
27624
 
-                  <widget class="Q3Frame" name="frame4" >
27625
 
-                    <property name="sizePolicy" >
27626
 
-                      <sizepolicy>
27627
 
-                        <hsizetype>0</hsizetype>
27628
 
-                        <vsizetype>5</vsizetype>
27629
 
-                        <horstretch>0</horstretch>
27630
 
-                        <verstretch>0</verstretch>
27631
 
-                      </sizepolicy>
27632
 
-                    </property>
27633
 
-                    <property name="minimumSize" >
27634
 
-                      <size>
27635
 
-                        <width>11</width>
27636
 
-                        <height>0</height>
27637
 
-                      </size>
27638
 
-                    </property>
27639
 
-                    <property name="frameShape" >
27640
 
-                      <enum>NoFrame</enum>
27641
 
-                    </property>
27642
 
-                    <property name="frameShadow" >
27643
 
-                      <enum>Raised</enum>
27644
 
-                    </property>
27645
 
-                    <property name="margin" >
27646
 
-                      <number>0</number>
27647
 
-                    </property>
27648
 
-                  </widget>
27649
 
-                </item>
27650
 
-                <item row="1" column="1" >
27651
 
-                  <widget class="QCheckBox" name="nfsChk" >
27652
 
-                    <property name="enabled" >
27653
 
-                      <bool>false</bool>
27654
 
-                    </property>
27655
 
-                    <property name="text" >
27656
 
-                      <string>Use &amp;NFS (Linux/UNIX)</string>
27657
 
-                    </property>
27658
 
-                    <property name="checked" >
27659
 
-                      <bool>true</bool>
27660
 
-                    </property>
27661
 
-                  </widget>
27662
 
-                </item>
27663
 
-                <item row="0" column="1" >
27664
 
-                  <widget class="QCheckBox" name="sambaChk" >
27665
 
-                    <property name="enabled" >
27666
 
-                      <bool>false</bool>
27667
 
-                    </property>
27668
 
-                    <property name="text" >
27669
 
-                      <string>Use Sam&amp;ba (Microsoft(R) Windows(R))</string>
27670
 
-                    </property>
27671
 
-                    <property name="checked" >
27672
 
-                      <bool>true</bool>
27673
 
-                    </property>
27674
 
-                  </widget>
27675
 
-                </item>
27676
 
-              </layout>
27677
 
-            </item>
27678
 
-            <item>
27679
 
-              <layout class="QHBoxLayout" >
27680
 
-                <item>
27681
 
-                  <widget class="KPushButton" name="allowedUsersBtn" >
27682
 
-                    <property name="text" >
27683
 
-                      <string>Allo&amp;wed Users</string>
27684
 
-                    </property>
27685
 
-                  </widget>
27686
 
-                </item>
27687
 
-                <item>
27688
 
-                  <spacer name="spacer9" >
27689
 
-                    <property name="sizeHint" >
27690
 
-                      <size>
27691
 
-                        <width>40</width>
27692
 
-                        <height>20</height>
27693
 
-                      </size>
27694
 
-                    </property>
27695
 
-                    <property name="sizeType" >
27696
 
-                      <enum>QSizePolicy::Expanding</enum>
27697
 
-                    </property>
27698
 
-                    <property name="orientation" >
27699
 
-                      <enum>Qt::Horizontal</enum>
27700
 
-                    </property>
27701
 
-                  </spacer>
27702
 
-                </item>
27703
 
-              </layout>
27704
 
-            </item>
27705
 
-          </layout>
27706
 
-        </widget>
27707
 
-      </item>
27708
 
-      <item>
27709
 
-        <widget class="Q3GroupBox" name="sharedFoldersGroupBox" >
27710
 
-          <property name="title" >
27711
 
-            <string>Shared Folders</string>
27712
 
-          </property>
27713
 
-          <layout class="QHBoxLayout" >
27714
 
-            <item>
27715
 
-              <widget class="K3ListView" name="listView" >
27716
 
-                <property name="selectionMode" stdset="0" >
27717
 
-                  <enum>NoSelection</enum>
27718
 
-                </property>
27719
 
-                <column>
27720
 
-                  <property name="text" >
27721
 
-                    <string>Path</string>
27722
 
-                  </property>
27723
 
-                  <property name="clickable" >
27724
 
-                    <bool>true</bool>
27725
 
-                  </property>
27726
 
-                  <property name="resizable" >
27727
 
-                    <bool>true</bool>
27728
 
-                  </property>
27729
 
-                </column>
27730
 
-                <column>
27731
 
-                  <property name="text" >
27732
 
-                    <string>Samba</string>
27733
 
-                  </property>
27734
 
-                  <property name="clickable" >
27735
 
-                    <bool>true</bool>
27736
 
-                  </property>
27737
 
-                  <property name="resizable" >
27738
 
-                    <bool>true</bool>
27739
 
-                  </property>
27740
 
-                </column>
27741
 
-                <column>
27742
 
-                  <property name="text" >
27743
 
-                    <string>NFS</string>
27744
 
-                  </property>
27745
 
-                  <property name="clickable" >
27746
 
-                    <bool>true</bool>
27747
 
-                  </property>
27748
 
-                  <property name="resizable" >
27749
 
-                    <bool>true</bool>
27750
 
-                  </property>
27751
 
-                </column>
27752
 
-              </widget>
27753
 
-            </item>
27754
 
-            <item>
27755
 
-              <widget class="Q3Frame" name="shareBtnPnl" >
27756
 
-                <property name="enabled" >
27757
 
-                  <bool>false</bool>
27758
 
-                </property>
27759
 
-                <property name="frameShape" >
27760
 
-                  <enum>NoFrame</enum>
27761
 
-                </property>
27762
 
-                <property name="frameShadow" >
27763
 
-                  <enum>Plain</enum>
27764
 
-                </property>
27765
 
-                <layout class="QVBoxLayout" >
27766
 
-                  <property name="margin" >
27767
 
-                    <number>0</number>
27768
 
-                  </property>
27769
 
-                  <item>
27770
 
-                    <widget class="KPushButton" name="addShareBtn" >
27771
 
-                      <property name="text" >
27772
 
-                        <string>A&amp;dd...</string>
27773
 
-                      </property>
27774
 
-                    </widget>
27775
 
-                  </item>
27776
 
-                  <item>
27777
 
-                    <widget class="KPushButton" name="changeShareBtn" >
27778
 
-                      <property name="enabled" >
27779
 
-                        <bool>false</bool>
27780
 
-                      </property>
27781
 
-                      <property name="text" >
27782
 
-                        <string>Chang&amp;e...</string>
27783
 
-                      </property>
27784
 
-                    </widget>
27785
 
-                  </item>
27786
 
-                  <item>
27787
 
-                    <widget class="KPushButton" name="removeShareBtn" >
27788
 
-                      <property name="enabled" >
27789
 
-                        <bool>false</bool>
27790
 
-                      </property>
27791
 
-                      <property name="text" >
27792
 
-                        <string>Rem&amp;ove</string>
27793
 
-                      </property>
27794
 
-                    </widget>
27795
 
-                  </item>
27796
 
-                  <item>
27797
 
-                    <spacer name="spacer2" >
27798
 
-                      <property name="sizeHint" >
27799
 
-                        <size>
27800
 
-                          <width>20</width>
27801
 
-                          <height>20</height>
27802
 
-                        </size>
27803
 
-                      </property>
27804
 
-                      <property name="sizeType" >
27805
 
-                        <enum>QSizePolicy::Expanding</enum>
27806
 
-                      </property>
27807
 
-                      <property name="orientation" >
27808
 
-                        <enum>Qt::Vertical</enum>
27809
 
-                      </property>
27810
 
-                    </spacer>
27811
 
-                  </item>
27812
 
-                </layout>
27813
 
-              </widget>
27814
 
-            </item>
27815
 
-          </layout>
27816
 
-        </widget>
27817
 
-      </item>
27818
 
-    </layout>
27819
 
-  </widget>
27820
 
-    <customwidgets>
27821
 
-    <customwidget>
27822
 
-      <class>K3ListView</class>
27823
 
-      <extends>Q3ListView</extends>
27824
 
-      <header location="global" >k3listview.h</header>
27825
 
-    </customwidget>
27826
 
-  </customwidgets>
27827
 
-  <tabstops>
27828
 
-    <tabstop>sambaChk</tabstop>
27829
 
-    <tabstop>nfsChk</tabstop>
27830
 
-    <tabstop>listView</tabstop>
27831
 
-  </tabstops>
27832
 
-  <includes>
27833
 
-    <include location="local" >krichtextlabel.h</include>
27834
 
-  </includes>
27835
 
-  <connections>
27836
 
-    <connection>
27837
 
-      <sender>advancedRadio</sender>
27838
 
-      <signal>toggled(bool)</signal>
27839
 
-      <receiver>nfsChk</receiver>
27840
 
-      <slot>setEnabled(bool)</slot>
27841
 
-    </connection>
27842
 
-    <connection>
27843
 
-      <sender>advancedRadio</sender>
27844
 
-      <signal>toggled(bool)</signal>
27845
 
-      <receiver>sambaChk</receiver>
27846
 
-      <slot>setEnabled(bool)</slot>
27847
 
-    </connection>
27848
 
-    <connection>
27849
 
-      <sender>shareGrp</sender>
27850
 
-      <signal>clicked(int)</signal>
27851
 
-      <receiver>ControlCenterGUI</receiver>
27852
 
-      <slot>changedSlot()</slot>
27853
 
-    </connection>
27854
 
-    <connection>
27855
 
-      <sender>simpleRadio</sender>
27856
 
-      <signal>clicked()</signal>
27857
 
-      <receiver>ControlCenterGUI</receiver>
27858
 
-      <slot>changedSlot()</slot>
27859
 
-    </connection>
27860
 
-    <connection>
27861
 
-      <sender>advancedRadio</sender>
27862
 
-      <signal>clicked()</signal>
27863
 
-      <receiver>ControlCenterGUI</receiver>
27864
 
-      <slot>changedSlot()</slot>
27865
 
-    </connection>
27866
 
-    <connection>
27867
 
-      <sender>sambaChk</sender>
27868
 
-      <signal>clicked()</signal>
27869
 
-      <receiver>ControlCenterGUI</receiver>
27870
 
-      <slot>changedSlot()</slot>
27871
 
-    </connection>
27872
 
-    <connection>
27873
 
-      <sender>nfsChk</sender>
27874
 
-      <signal>clicked()</signal>
27875
 
-      <receiver>ControlCenterGUI</receiver>
27876
 
-      <slot>changedSlot()</slot>
27877
 
-    </connection>
27878
 
-    <connection>
27879
 
-      <sender>listView</sender>
27880
 
-      <signal>selectionChanged()</signal>
27881
 
-      <receiver>ControlCenterGUI</receiver>
27882
 
-      <slot>listView_selectionChanged()</slot>
27883
 
-    </connection>
27884
 
-  </connections>
27885
 
-</ui>
27886
 
Index: kdenetwork-4.6.3/filesharing/simple/fileshare.cpp
27887
 
===================================================================
27888
 
--- kdenetwork-4.6.3.orig/filesharing/simple/fileshare.cpp      2011-01-19 17:21:04.000000000 -0500
27889
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
27890
 
@@ -1,473 +0,0 @@
27891
 
-/*
27892
 
-  Copyright (c) 2002 Laurent Montel <montel@kde.org>
27893
 
-  This program is free software; you can redistribute it and/or modify
27894
 
-  it under the terms of the GNU General Public License as published by
27895
 
-  the Free Software Foundation; either version 2 of the License, or
27896
 
-  (at your option) any later version.
27897
 
-
27898
 
-  This program is distributed in the hope that it will be useful,
27899
 
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
27900
 
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27901
 
-  GNU General Public License for more details.
27902
 
-
27903
 
-  You should have received a copy of the GNU General Public License
27904
 
-  along with this program; if not, write to the Free Software
27905
 
-  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
27906
 
-*/
27907
 
-#include <unistd.h>
27908
 
-
27909
 
-#include <qlayout.h>
27910
 
-#include <qlabel.h>
27911
 
-#include <qdir.h>
27912
 
-#include <qradiobutton.h>
27913
 
-#include <qcheckbox.h>
27914
 
-
27915
 
-//Added by qt3to4:
27916
 
-#include <QPixmap>
27917
 
-#include <QVBoxLayout>
27918
 
-#include <QTextStream>
27919
 
-#include <QBoxLayout>
27920
 
-
27921
 
-#include <kpushbutton.h>
27922
 
-#include <kdebug.h>
27923
 
-#include <kdialog.h>
27924
 
-#include <kgenericfactory.h>
27925
 
-#include <k3listview.h>
27926
 
-#include <kiconloader.h>
27927
 
-#include <knfsshare.h>
27928
 
-#include <ksambashare.h>
27929
 
-#include <kfileshare.h>
27930
 
-#include <kstandarddirs.h>
27931
 
-#include <kconfig.h>
27932
 
-#include <kmessagebox.h>
27933
 
-#include <kuser.h>
27934
 
-#include <kurl.h>
27935
 
-#include <kprocess.h>
27936
 
-#include <krichtextlabel.h>
27937
 
-#include <KVBox>
27938
 
-
27939
 
-#include "propertiespage.h"
27940
 
-#include "nfsfile.h"
27941
 
-#include "sambafile.h"
27942
 
-
27943
 
-#include "fileshare.h"
27944
 
-#include "groupconfigdlg.h"
27945
 
-
27946
 
-
27947
 
-K_PLUGIN_FACTORY(ShareFactory, registerPlugin<KFileShareConfig>();)
27948
 
-K_EXPORT_PLUGIN(ShareFactory("kcmfileshare"))
27949
 
-
27950
 
-
27951
 
-#define FILESHARECONF "/etc/security/fileshare.conf"
27952
 
-#define FILESHARE_DEBUG 5009
27953
 
-
27954
 
-
27955
 
-ControlCenterGUI::ControlCenterGUI( QWidget *parent )
27956
 
-    :QWidget( parent )
27957
 
-{
27958
 
-    setupUi( this );
27959
 
-    connect( listView, SIGNAL( selectionChanged() ), this, SLOT(listView_selectionChanged() ) );
27960
 
-    connect( shareGrp, SIGNAL(clicked(int) ),this,SLOT(  changedSlot() ) );
27961
 
-    connect( simpleRadio, SIGNAL(clicked() ),this,SLOT(  changedSlot() ) );
27962
 
-    connect( advancedRadio, SIGNAL(clicked() ),this,SLOT(  changedSlot() ) );
27963
 
-    connect( sambaChk, SIGNAL(clicked() ),this,SLOT(  changedSlot() ) );
27964
 
-    connect( nfsChk, SIGNAL(clicked() ),this,SLOT(  changedSlot() ) );
27965
 
-}
27966
 
-
27967
 
-void ControlCenterGUI::changedSlot()
27968
 
-{
27969
 
-    emit changed();
27970
 
-}
27971
 
-
27972
 
-void ControlCenterGUI::listView_selectionChanged()
27973
 
-{
27974
 
-    bool empty = listView->selectedItems ().isEmpty();
27975
 
-    changeShareBtn->setDisabled(empty );
27976
 
-    removeShareBtn->setDisabled(empty );
27977
 
-}
27978
 
-
27979
 
-
27980
 
-KFileShareConfig::KFileShareConfig(QWidget *parent, const QVariantList &):
27981
 
-    KCModule(ShareFactory::componentData(), parent/*, name*/)
27982
 
-{
27983
 
-  KGlobal::locale()->insertCatalog("kfileshare");
27984
 
-
27985
 
-  QBoxLayout* layout = new QVBoxLayout(this,0,
27986
 
-                                      KDialog::spacingHint());
27987
 
-
27988
 
-/*
27989
 
-  QVButtonGroup *box = new QVButtonGroup( i18n("File Sharing"), this );
27990
 
-  box->layout()->setSpacing( KDialog::spacingHint() );
27991
 
-  layout->addWidget(box);
27992
 
-  noSharing=new QRadioButton( i18n("Do &not allow users to share files"), box );
27993
 
-  sharing=new QRadioButton( i18n("&Allow users to share files from their HOME folder"),  box);
27994
 
-*/
27995
 
-  m_ccgui = new ControlCenterGUI(this);
27996
 
-  connect( m_ccgui, SIGNAL( changed()), this, SLOT(configChanged()));
27997
 
-  connect( m_ccgui->allowedUsersBtn, SIGNAL( clicked()),
27998
 
-           this, SLOT(allowedUsersBtnClicked()));
27999
 
-
28000
 
-  QString path = QString::fromLocal8Bit( getenv( "PATH" ) );
28001
 
-  path += QString::fromLatin1( ":/usr/sbin" );
28002
 
-  QString sambaExec = KStandardDirs::findExe( QString::fromLatin1("smbd"), path );
28003
 
-  QString nfsExec = KStandardDirs::findExe( QString::fromLatin1("rpc.nfsd"), path );
28004
 
-
28005
 
-  if ( nfsExec.isEmpty() && sambaExec.isEmpty())
28006
 
-  {
28007
 
-      m_ccgui->shareGrp->setDisabled(true);
28008
 
-      m_ccgui->sharedFoldersGroupBox->setDisabled(true);
28009
 
-  }
28010
 
-  else
28011
 
-  {
28012
 
-      if (nfsExec.isEmpty()) {
28013
 
-        m_ccgui->nfsChk->setDisabled(true);
28014
 
-        m_ccgui->nfsChk->setChecked(false);
28015
 
-        m_ccgui->nfsChk->setToolTip(i18n("No NFS server installed on this system"));
28016
 
-      }
28017
 
-
28018
 
-      if (sambaExec.isEmpty()) {
28019
 
-        m_ccgui->sambaChk->setDisabled(true);
28020
 
-        m_ccgui->sambaChk->setChecked(false);
28021
 
-        m_ccgui->sambaChk->setToolTip(i18n("No Samba server installed on this system"));
28022
 
-      }
28023
 
-
28024
 
-      m_ccgui->infoLbl->hide();
28025
 
-      layout->addWidget(m_ccgui);
28026
 
-      updateShareListView();
28027
 
-      connect( KNFSShare::instance(), SIGNAL( changed()),
28028
 
-               this, SLOT(updateShareListView()));
28029
 
-      connect( KSambaShare::instance(), SIGNAL( changed()),
28030
 
-               this, SLOT(updateShareListView()));
28031
 
-
28032
 
-
28033
 
-  }
28034
 
-
28035
 
-  if((getuid() == 0) ||
28036
 
-     ((KFileShare::shareMode() == KFileShare::Advanced) &&
28037
 
-      (KFileShare::authorization() == KFileShare::Authorized)))
28038
 
-  {
28039
 
-      connect( m_ccgui->addShareBtn, SIGNAL(clicked()),
28040
 
-               this, SLOT(addShareBtnClicked()));
28041
 
-      connect( m_ccgui->changeShareBtn, SIGNAL(clicked()),
28042
 
-               this, SLOT(changeShareBtnClicked()));
28043
 
-      connect( m_ccgui->removeShareBtn, SIGNAL(clicked()),
28044
 
-               this, SLOT(removeShareBtnClicked()));
28045
 
-      m_ccgui->listView->setSelectionMode(Q3ListView::Extended);
28046
 
-      m_ccgui->shareBtnPnl->setEnabled(true);
28047
 
-  }
28048
 
-
28049
 
-
28050
 
-  if (getuid()==0) {
28051
 
-      setButtons(Help|Apply);
28052
 
-  } else {
28053
 
-      setButtons(Help);
28054
 
-      m_ccgui->shareGrp->setDisabled( true );
28055
 
-  }
28056
 
-
28057
 
-}
28058
 
-
28059
 
-void KFileShareConfig::updateShareListView()
28060
 
-{
28061
 
-      m_ccgui->listView->clear();
28062
 
-      KNFSShare* nfs = KNFSShare::instance();
28063
 
-      KSambaShare* samba = KSambaShare::instance();
28064
 
-
28065
 
-      QStringList dirs = nfs->sharedDirectories();
28066
 
-      const QStringList sambaDirs = samba->sharedDirectories();
28067
 
-
28068
 
-      for ( QStringList::ConstIterator it = sambaDirs.constBegin(); it != sambaDirs.constEnd(); ++it ) {
28069
 
-        // Do not insert duplicates
28070
 
-        if (nfs->isDirectoryShared(*it))
28071
 
-            continue;
28072
 
-
28073
 
-        dirs += *it;
28074
 
-      }
28075
 
-
28076
 
-      QPixmap folderPix = SmallIcon("folder", 0, KIconLoader::DefaultState, QStringList());
28077
 
-      QPixmap okPix = SmallIcon("dialog-ok");
28078
 
-      QPixmap cancelPix = SmallIcon("dialog-cancel");
28079
 
-
28080
 
-      for ( QStringList::ConstIterator it = dirs.constBegin(); it != dirs.constEnd(); ++it ) {
28081
 
-        K3ListViewItem* item = new K3ListViewItem(m_ccgui->listView);
28082
 
-        item->setText(0,*it);
28083
 
-        item->setPixmap(0, folderPix);
28084
 
-
28085
 
-        if (samba->isDirectoryShared(*it))
28086
 
-          item->setPixmap(1,okPix);
28087
 
-        else
28088
 
-          item->setPixmap(1,cancelPix);
28089
 
-
28090
 
-        if (nfs->isDirectoryShared(*it))
28091
 
-          item->setPixmap(2,okPix);
28092
 
-        else
28093
 
-          item->setPixmap(2,cancelPix);
28094
 
-
28095
 
-      }
28096
 
-
28097
 
-}
28098
 
-
28099
 
-void KFileShareConfig::allowedUsersBtnClicked() {
28100
 
-  GroupConfigDlg dlg(this,m_fileShareGroup,m_restricted,m_rootPassNeeded,
28101
 
-                     m_ccgui->simpleRadio->isChecked());
28102
 
-  if (dlg.exec() == QDialog::Accepted) {
28103
 
-      m_fileShareGroup = dlg.fileShareGroup().name();
28104
 
-      m_restricted = dlg.restricted();
28105
 
-      m_rootPassNeeded = dlg.rootPassNeeded();
28106
 
-      configChanged();
28107
 
-  }
28108
 
-
28109
 
-}
28110
 
-
28111
 
-
28112
 
-void KFileShareConfig::load()
28113
 
-{
28114
 
-    KConfig config(QString::fromLatin1(FILESHARECONF), KConfig::SimpleConfig);
28115
 
-
28116
 
-    m_ccgui->shareGrp->setChecked( config.group("").readEntry("FILESHARING", "yes") == "yes" );
28117
 
-
28118
 
-    m_restricted = config.group("").readEntry("RESTRICT", "yes") == "yes";
28119
 
-
28120
 
-    if (config.group("").readEntry("SHARINGMODE", "simple") == "simple")
28121
 
-        m_ccgui->simpleRadio->setChecked(true);
28122
 
-    else
28123
 
-        m_ccgui->advancedRadio->setChecked(true);
28124
 
-
28125
 
-    m_fileShareGroup = config.group("").readEntry("FILESHAREGROUP", "fileshare");
28126
 
-
28127
 
-    m_ccgui->sambaChk->setChecked(
28128
 
-          config.group("").readEntry("SAMBA", "yes") == "yes");
28129
 
-
28130
 
-    m_ccgui->nfsChk->setChecked(
28131
 
-          config.group("").readEntry("NFS", "yes") == "yes");
28132
 
-
28133
 
-    m_rootPassNeeded = config.group("").readEntry("ROOTPASSNEEDED", "yes") == "yes";
28134
 
-
28135
 
-    m_smbConf = KSambaShare::instance()->smbConfPath();
28136
 
-}
28137
 
-
28138
 
-bool KFileShareConfig::addGroupAccessesToFile(const QString & file) {
28139
 
-  KProcess chgrp;
28140
 
-  chgrp << "chgrp" << m_fileShareGroup << file;
28141
 
-  KProcess chmod;
28142
 
-  chmod << "chmod" << "g=rw" << file;
28143
 
-
28144
 
-  if (chgrp.execute()) {
28145
 
-      kDebug(FILESHARE_DEBUG) << "KFileShareConfig::addGroupAccessesToFile: chgrp failed";
28146
 
-      return false;
28147
 
-
28148
 
-  }
28149
 
-
28150
 
-  if(chmod.execute()) {
28151
 
-      kDebug(FILESHARE_DEBUG) << "KFileShareConfig::addGroupAccessesToFile: chmod failed";
28152
 
-      return false;
28153
 
-  }
28154
 
-
28155
 
-  return true;
28156
 
-
28157
 
-}
28158
 
-
28159
 
-bool KFileShareConfig::removeGroupAccessesFromFile(const QString & file) {
28160
 
-  KProcess chgrp;
28161
 
-  chgrp << "chgrp" << "root" << file;
28162
 
-  KProcess chmod;
28163
 
-  chmod << "chmod" << "g=r" << file;
28164
 
-
28165
 
-  if (chgrp.execute()) {
28166
 
-      kDebug(FILESHARE_DEBUG) << "KFileShareConfig::removeGroupAccessesFromFile: chgrp failed";
28167
 
-      return false;
28168
 
-
28169
 
-  }
28170
 
-
28171
 
-  if(chmod.execute()) {
28172
 
-      kDebug(FILESHARE_DEBUG) << "KFileShareConfig::removeGroupAccessesFromFile: chmod failed";
28173
 
-      return false;
28174
 
-  }
28175
 
-
28176
 
-  return true;
28177
 
-}
28178
 
-
28179
 
-
28180
 
-bool KFileShareConfig::setGroupAccesses() {
28181
 
-  if (m_rootPassNeeded || ! m_ccgui->sambaChk->isChecked()) {
28182
 
-      if (!removeGroupAccessesFromFile(KSambaShare::instance()->smbConfPath()))
28183
 
-          return false;
28184
 
-  }
28185
 
-
28186
 
-  if (m_rootPassNeeded || ! m_ccgui->nfsChk->isChecked()) {
28187
 
-      if (!removeGroupAccessesFromFile(KNFSShare::instance()->exportsPath()))
28188
 
-          return false;
28189
 
-  }
28190
 
-
28191
 
-  if (! m_rootPassNeeded && m_ccgui->sambaChk->isChecked()) {
28192
 
-      if (!addGroupAccessesToFile(KSambaShare::instance()->smbConfPath()))
28193
 
-          return false;
28194
 
-  }
28195
 
-
28196
 
-  if (! m_rootPassNeeded && m_ccgui->nfsChk->isChecked()) {
28197
 
-      if (!addGroupAccessesToFile(KNFSShare::instance()->exportsPath()))
28198
 
-          return false;
28199
 
-  }
28200
 
-
28201
 
-
28202
 
-  return true;
28203
 
-}
28204
 
-
28205
 
-void KFileShareConfig::save()
28206
 
-{
28207
 
-    setGroupAccesses();
28208
 
-
28209
 
-    QDir dir("/etc/security");
28210
 
-    if ( !dir.exists())
28211
 
-        dir.mkdir("/etc/security");
28212
 
-
28213
 
-    QFile file(FILESHARECONF);
28214
 
-    if ( ! file.open(QIODevice::WriteOnly)) {
28215
 
-        KMessageBox::detailedError(this,
28216
 
-            i18n("Could not save settings."),
28217
 
-            i18n("Could not open file '%1' for writing: %2", QString(FILESHARECONF),
28218
 
-             file.errorString() ),
28219
 
-            i18n("Saving Failed"));
28220
 
-        return;
28221
 
-    }
28222
 
-
28223
 
-
28224
 
-    QTextStream stream(&file);
28225
 
-
28226
 
-    stream << "FILESHARING=";
28227
 
-    stream << (m_ccgui->shareGrp->isChecked() ? "yes" : "no");
28228
 
-
28229
 
-    stream << "\nRESTRICT=";
28230
 
-    stream << (m_restricted ? "yes" : "no");
28231
 
-
28232
 
-    stream << "\nSHARINGMODE=";
28233
 
-    stream << (m_ccgui->simpleRadio->isChecked() ? "simple" : "advanced");
28234
 
-
28235
 
-    stream << "\nFILESHAREGROUP=";
28236
 
-    stream << m_fileShareGroup;
28237
 
-
28238
 
-    stream << "\nSAMBA=";
28239
 
-    stream << (m_ccgui->sambaChk->isChecked() ? "yes" : "no");
28240
 
-
28241
 
-    stream << "\nNFS=";
28242
 
-    stream << (m_ccgui->nfsChk->isChecked() ? "yes" : "no");
28243
 
-
28244
 
-    stream << "\nROOTPASSNEEDED=";
28245
 
-    stream << (m_rootPassNeeded ? "yes" : "no");
28246
 
-
28247
 
-    stream << "\nSMBCONF=";
28248
 
-    stream << m_smbConf;
28249
 
-
28250
 
-    file.close();
28251
 
-}
28252
 
-
28253
 
-void KFileShareConfig::defaults()
28254
 
-{
28255
 
-    m_ccgui->shareGrp->setChecked( false );
28256
 
-}
28257
 
-
28258
 
-QString KFileShareConfig::quickHelp() const
28259
 
-{
28260
 
-    return i18n("<h1>File Sharing</h1><p>This module can be used "
28261
 
-                   "to enable file sharing over the network using "
28262
 
-                               "the \"Network File System\" (NFS) or SMB in Konqueror. "
28263
 
-                               "The latter enables you to share your files with Windows(R) "
28264
 
-                               "computers on your network.</p>");
28265
 
-}
28266
 
-
28267
 
-void KFileShareConfig::addShareBtnClicked() {
28268
 
-  showShareDialog(KFileItemList());
28269
 
-}
28270
 
-
28271
 
-
28272
 
-PropertiesPageDlg::PropertiesPageDlg(QWidget*parent, KFileItemList files)
28273
 
-  : KDialog(parent)
28274
 
-{
28275
 
-  setObjectName("sharedlg");
28276
 
-  setModal(true);
28277
 
-  setButtons(Ok|Cancel);
28278
 
-  setDefaultButton(Ok);
28279
 
-  setCaption(i18n("Share Folder"));
28280
 
-  showButtonSeparator(true);
28281
 
-  KVBox* vbox = new KVBox(this);
28282
 
-  setMainWidget(vbox);
28283
 
-
28284
 
-  m_page = new PropertiesPage(vbox,files,true);
28285
 
-  connect(this,SIGNAL(okClicked()),this,SLOT(slotOk()));
28286
 
-}
28287
 
-
28288
 
-bool PropertiesPageDlg::hasChanged() {
28289
 
-  return m_page->hasChanged();
28290
 
-}
28291
 
-
28292
 
-void PropertiesPageDlg::slotOk() {
28293
 
-  if (hasChanged()) {
28294
 
-    if (!m_page->save())
28295
 
-        return;
28296
 
-  }
28297
 
-
28298
 
-  KDialog::accept();
28299
 
-}
28300
 
-
28301
 
-
28302
 
-
28303
 
-void KFileShareConfig::showShareDialog(const KFileItemList & files) {
28304
 
-  PropertiesPageDlg* dlg = new PropertiesPageDlg(this,files);
28305
 
-  if (dlg->exec() == QDialog::Accepted) {
28306
 
-    if ( dlg->hasChanged() ) {
28307
 
-         updateShareListView();
28308
 
-    }
28309
 
-  }
28310
 
-  delete dlg;
28311
 
-}
28312
 
-
28313
 
-void KFileShareConfig::changeShareBtnClicked() {
28314
 
-  KFileItemList files;
28315
 
-  QList<Q3ListViewItem *> items = m_ccgui->listView->selectedItems();
28316
 
-
28317
 
-  foreach ( Q3ListViewItem* item, items ) {
28318
 
-      files.append(KFileItem(KUrl(item->text(0)),"",0));
28319
 
-  }
28320
 
-
28321
 
-  showShareDialog(files);
28322
 
-}
28323
 
-
28324
 
-void KFileShareConfig::removeShareBtnClicked() {
28325
 
-
28326
 
-  QList<Q3ListViewItem*> items = m_ccgui->listView->selectedItems();
28327
 
-
28328
 
-  bool nfs = false;
28329
 
-  bool samba = false;
28330
 
-
28331
 
-  foreach ( Q3ListViewItem*item, items ) {
28332
 
-
28333
 
-      if (KNFSShare::instance()->isDirectoryShared(item->text(0)))
28334
 
-          nfs = true;
28335
 
-
28336
 
-      if (KSambaShare::instance()->isDirectoryShared(item->text(0)))
28337
 
-          samba = true;
28338
 
-  }
28339
 
-
28340
 
-  NFSFile nfsFile(KNFSShare::instance()->exportsPath());
28341
 
-  if (nfs) {
28342
 
-    kDebug(FILESHARE_DEBUG) << "KFileShareConfig::removeShareBtnClicked: nfs = true";
28343
 
-    nfsFile.load();
28344
 
-       foreach ( Q3ListViewItem*item, items ) {
28345
 
-        nfsFile.removeEntryByPath(item->text(0));
28346
 
-    }
28347
 
-  }
28348
 
-
28349
 
-  SambaFile smbFile(KSambaShare::instance()->smbConfPath(),false);
28350
 
-  if (samba) {
28351
 
-    kDebug(FILESHARE_DEBUG) << "KFileShareConfig::removeShareBtnClicked: samba = true";
28352
 
-    smbFile.load();
28353
 
-       foreach ( Q3ListViewItem*item, items ) {
28354
 
-        smbFile.removeShareByPath(item->text(0));
28355
 
-    }
28356
 
-  }
28357
 
-
28358
 
-  PropertiesPage::save(&nfsFile, &smbFile, nfs,samba);
28359
 
-
28360
 
-  updateShareListView();
28361
 
-}
28362
 
-
28363
 
-#include "fileshare.moc"
28364
 
Index: kdenetwork-4.6.3/filesharing/simple/fileshare.desktop
28365
 
===================================================================
28366
 
--- kdenetwork-4.6.3.orig/filesharing/simple/fileshare.desktop  2011-02-25 16:47:36.000000000 -0500
28367
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
28368
 
@@ -1,197 +0,0 @@
28369
 
-[Desktop Entry]
28370
 
-Exec=kcmshell4 fileshare
28371
 
-Icon=preferences-system-network-sharing
28372
 
-Type=Service
28373
 
-X-KDE-ServiceTypes=KCModule
28374
 
-
28375
 
-X-KDE-Library=kcm_fileshare
28376
 
-X-KDE-ParentApp=kcontrol
28377
 
-X-KDE-RootOnly=true
28378
 
-
28379
 
-Name=File Sharing
28380
 
-Name[ar]=مشاركة الملفات
28381
 
-Name[ast]=Compartir ficheros
28382
 
-Name[bg]=Споделяне на файлове
28383
 
-Name[bn]=ফাইল ভাগাভাগি
28384
 
-Name[br]=Rannañ restroù
28385
 
-Name[ca]=Compartició de fitxers
28386
 
-Name[ca@valencia]=Compartició de fitxers
28387
 
-Name[cs]=Sdílení souborů
28388
 
-Name[cy]=Rhannu Ffeiliau
28389
 
-Name[da]=Fildeling
28390
 
-Name[de]=Dateifreigabe
28391
 
-Name[el]=Κοινή χρήση αρχείων
28392
 
-Name[en_GB]=File Sharing
28393
 
-Name[eo]=Dosiera komunigado
28394
 
-Name[es]=Compartir archivos
28395
 
-Name[et]=Failijagamine
28396
 
-Name[eu]=Fitxategiak partekatzea
28397
 
-Name[fa]=اشتراک پرونده
28398
 
-Name[fi]=Tiedostojen jako
28399
 
-Name[fr]=Partage de fichiers
28400
 
-Name[ga]=Roinnt na gComhad
28401
 
-Name[gl]=Compartimento de ficheiros
28402
 
-Name[he]=שיתוף קבצים
28403
 
-Name[hi]=फ़ाइल साझा
28404
 
-Name[hne]=फाइल साझा
28405
 
-Name[hr]=Dijeljenje datoteka
28406
 
-Name[hu]=Fájlmegosztás
28407
 
-Name[ia]=Compartir de file
28408
 
-Name[is]=Deila skrám
28409
 
-Name[it]=Condivisione di file
28410
 
-Name[ja]=ファイル共有
28411
 
-Name[kk]=Файлдарды ортақтастыру
28412
 
-Name[km]=ការ​ចែក​រំលែក​ឯកសារ
28413
 
-Name[ko]=파일 공유
28414
 
-Name[lt]=Dalinimasis failais
28415
 
-Name[lv]=Failu koplietošana
28416
 
-Name[mk]=Делење на датотеки
28417
 
-Name[ml]=ഫയല്‍ പങ്കിടല്‍
28418
 
-Name[nb]=Fildeling
28419
 
-Name[nds]=Dateifreegaav
28420
 
-Name[ne]=फाइल साझेदारी
28421
 
-Name[nl]=Bestanden delen
28422
 
-Name[nn]=Fildeling
28423
 
-Name[pa]=ਫਾਇਲ ਸਾਂਝ
28424
 
-Name[pl]=Współdzielenie plików
28425
 
-Name[pt]=Partilha de Ficheiros
28426
 
-Name[pt_BR]=Compartilhamento de arquivos
28427
 
-Name[ro]=Partajare fișiere
28428
 
-Name[ru]=Общий доступ к файлам
28429
 
-Name[se]=Fiilajuohkkin
28430
 
-Name[sk]=Zdieľanie súborov
28431
 
-Name[sl]=Souporaba datotek
28432
 
-Name[sr]=Дељење фајлова
28433
 
-Name[sr@ijekavian]=Дељење фајлова
28434
 
-Name[sr@ijekavianlatin]=Deljenje fajlova
28435
 
-Name[sr@latin]=Deljenje fajlova
28436
 
-Name[sv]=Filutdelning
28437
 
-Name[ta]=கோப்பு பகிர்வு
28438
 
-Name[tg]=Истифодабарии муштараки файлҳо
28439
 
-Name[th]=ใช้แฟ้มร่วมกัน
28440
 
-Name[tr]=Dosya Paylaşımı
28441
 
-Name[uk]=Спільний доступ до файлів
28442
 
-Name[uz]=Fayl bilan boʻlishish
28443
 
-Name[uz@cyrillic]=Файл билан бўлишиш
28444
 
-Name[vi]=Chia sẻ tập tin
28445
 
-Name[wa]=Pårtaedje di fitchîs
28446
 
-Name[x-test]=xxFile Sharingxx
28447
 
-Name[zh_CN]=文件共享
28448
 
-Name[zh_HK]=檔案分享
28449
 
-Name[zh_TW]=檔案分享
28450
 
-
28451
 
-Comment=Enable or disable file sharing
28452
 
-Comment[ar]=فعل أو عطل مشاركة الملف
28453
 
-Comment[ast]=Activar o desactivar compartir ficheros
28454
 
-Comment[bg]=Настройване споделянето на файлове
28455
 
-Comment[bn]=ফাইল ভাগাভাগি সক্রিয় অথবা নিষ্ক্রিয় করুন
28456
 
-Comment[ca]=Habilita o deshabilita la compartició de fitxers
28457
 
-Comment[ca@valencia]=Habilita o deshabilita la compartició de fitxers
28458
 
-Comment[cs]=Povolit nebo zakázat sdílení souborů
28459
 
-Comment[da]=Aktivér eller deaktivér fildeling
28460
 
-Comment[de]=Dateifreigabe aktivieren/deaktivieren
28461
 
-Comment[el]=Ενεργοποίηση ή απενεργοποίηση της κοινής χρήσης αρχείων
28462
 
-Comment[en_GB]=Enable or disable file sharing
28463
 
-Comment[eo]=Ŝalti aŭ malŝalti la dosieran komunigadon
28464
 
-Comment[es]=Habilitar o deshabilitar el compartir archivos
28465
 
-Comment[et]=Failide jagamise lubamine või keelamine
28466
 
-Comment[eu]=Gaitu edo desgaitu fitxategiak partekatzea
28467
 
-Comment[fa]=فعال یا غیرفعال‌سازی اشتراک پرونده
28468
 
-Comment[fi]=Ota tiedostojako käyttöön tai poista se käytöstä
28469
 
-Comment[fr]=Activer ou désactiver le partage de fichiers
28470
 
-Comment[ga]=Cumasaigh nó díchumasaigh comhroinnt comhad
28471
 
-Comment[gl]=Activar ou desactivar o compartición de ficheiros
28472
 
-Comment[he]=אפשר או מנע שיתוף קבצים
28473
 
-Comment[hi]=फ़ाइल साझेदारी सक्षम या अक्षम करें
28474
 
-Comment[hne]=फाइल साझेदारी सक्छम या अक्छम करव
28475
 
-Comment[hr]=Omogući ili onemogući dijeljenje datoteka
28476
 
-Comment[hu]=Engedélyezi vagy letiltja a fájlmegosztást
28477
 
-Comment[ia]=habilita o dishabilita le compartir de file
28478
 
-Comment[is]=Virkja eða slökkva á skráardeilingu um net
28479
 
-Comment[it]=Abilita o disabilita la condivisione dei file
28480
 
-Comment[ja]=ファイル共有を有効または無効にします
28481
 
-Comment[kk]=Файл ортақтастыруды рұқсат ету/етпеу
28482
 
-Comment[km]=អនុញ្ញាត ឬ​មិន​អនុញ្ញាត​ការ​ចែក​រំ​លែក​ឯកសារ
28483
 
-Comment[ko]=파일 공유 켜거나 끄기
28484
 
-Comment[lt]=Įjungti ar išjungti failų dalinimąsi
28485
 
-Comment[lv]=Ieslēgt vai izslēgt failu koplietošanu
28486
 
-Comment[mk]=Овозможува или оневозможува делење на датотеки
28487
 
-Comment[ml]=ഫയല്‍ പങ്കിടല്‍ പ്രാവര്‍ത്തികമാക്കുക അല്ലെങ്കില്‍ പ്രാവര്‍ത്തനരഹിതമാക്കുക
28488
 
-Comment[nb]=Slå på og av fildeling
28489
 
-Comment[nds]=Dateifreegaven an- oder utmaken
28490
 
-Comment[ne]=फाइल साझेदारी सक्षम वा अक्षम पार्नुहोस्
28491
 
-Comment[nl]=Bestanden delen in- en uitschakelen
28492
 
-Comment[nn]=Slå på eller av fildeling
28493
 
-Comment[pa]=ਫਾਇਲ ਸ਼ੇਅਰਿੰਗ ਯੋਗ ਜਾਂ ਆਯੋਗ ਕਰੋ
28494
 
-Comment[pl]=Włącza lub wyłącza współdzielenie plików
28495
 
-Comment[pt]=Activa ou desactiva a partilha de ficheiros
28496
 
-Comment[pt_BR]=Habilita ou desabilita o compartilhamento de arquivos
28497
 
-Comment[ro]=Activează sau dezactivează partajarea de fișiere
28498
 
-Comment[ru]=Включить или выключить общий доступ к файлам
28499
 
-Comment[se]=Suova dahje ale suova fiilajuohkkima
28500
 
-Comment[sk]=Povolenie alebo zakázanie zdieľania súborov
28501
 
-Comment[sl]=Omogoči ali onemogoči souporabo datotek
28502
 
-Comment[sr]=Укључи или искључи дељење фајлова
28503
 
-Comment[sr@ijekavian]=Укључи или искључи дељење фајлова
28504
 
-Comment[sr@ijekavianlatin]=Uključi ili isključi deljenje fajlova
28505
 
-Comment[sr@latin]=Uključi ili isključi deljenje fajlova
28506
 
-Comment[sv]=Aktivera eller inaktivera filutdelning
28507
 
-Comment[ta]=கோப்பு பகிர்வை செயல்படுத்து அல்லது செயல்நீக்கு
28508
 
-Comment[tg]=Фаъол сохтан ё хомӯш кардани истифобадарии муштараки файлҳо
28509
 
-Comment[th]=เปิดหรือปิดการใช้งานแฟ้มร่วมกัน
28510
 
-Comment[tr]=Dosya paylaşımını etkinleştir/kapat
28511
 
-Comment[uk]=Увімкнення або вимикання спільного доступу до файлів
28512
 
-Comment[vi]=Bật hoặc tắt chia sẻ tập tin
28513
 
-Comment[x-test]=xxEnable or disable file sharingxx
28514
 
-Comment[zh_CN]=启用或禁用文件共享
28515
 
-Comment[zh_HK]=啟用或停用檔案分享
28516
 
-Comment[zh_TW]=開啟或關閉檔案分享
28517
 
-
28518
 
-X-KDE-Keywords=Share
28519
 
-X-KDE-Keywords[bg]=Share,споделяне
28520
 
-X-KDE-Keywords[br]=Rannañ
28521
 
-X-KDE-Keywords[ca]=Compartit
28522
 
-X-KDE-Keywords[cs]=sdílení
28523
 
-X-KDE-Keywords[da]=Del
28524
 
-X-KDE-Keywords[de]=Freigabe
28525
 
-X-KDE-Keywords[el]=Κοινόχρηστο
28526
 
-X-KDE-Keywords[es]=Compartir
28527
 
-X-KDE-Keywords[et]=Jagamine
28528
 
-X-KDE-Keywords[fa]=مشترک
28529
 
-X-KDE-Keywords[fi]=Jakaminen,Jako
28530
 
-X-KDE-Keywords[fr]=partage
28531
 
-X-KDE-Keywords[gl]=Compartir
28532
 
-X-KDE-Keywords[he]=שיתוף, share
28533
 
-X-KDE-Keywords[hu]=Megosztás
28534
 
-X-KDE-Keywords[is]=Deild
28535
 
-X-KDE-Keywords[it]=Condivisione
28536
 
-X-KDE-Keywords[ja]=共有
28537
 
-X-KDE-Keywords[km]=ការ​ចែក​រំ​លែក
28538
 
-X-KDE-Keywords[ko]=공유
28539
 
-X-KDE-Keywords[lt]=Share,dalinimasis,dalintis,pasidalinti
28540
 
-X-KDE-Keywords[mk]=Делена
28541
 
-X-KDE-Keywords[nb]=Dele
28542
 
-X-KDE-Keywords[nds]=Delen,Freegaav,Freegaven
28543
 
-X-KDE-Keywords[ne]=साझेदार
28544
 
-X-KDE-Keywords[nl]=delen
28545
 
-X-KDE-Keywords[nn]=deling
28546
 
-X-KDE-Keywords[oc]=Partejar
28547
 
-X-KDE-Keywords[pa]=ਸਾਂਝ
28548
 
-X-KDE-Keywords[pl]=współdzielenie,pliki
28549
 
-X-KDE-Keywords[pt]=Partilhar
28550
 
-X-KDE-Keywords[pt_BR]=compartilhamento de arquivos
28551
 
-X-KDE-Keywords[ro]=partajare
28552
 
-X-KDE-Keywords[ru]=Общий ресурс
28553
 
-X-KDE-Keywords[sl]=Souporaba
28554
 
-X-KDE-Keywords[sr]=Share,дељење
28555
 
-X-KDE-Keywords[sr@latin]=Share,deljenje
28556
 
-X-KDE-Keywords[sv]=Dela
28557
 
-X-KDE-Keywords[ta]=பகிர்வு
28558
 
-X-KDE-Keywords[tg]=Муштаракан доштан
28559
 
-X-KDE-Keywords[tr]=Paylaş
28560
 
-X-KDE-Keywords[uk]=Спільний ресурс
28561
 
-X-KDE-Keywords[vi]=Chia sẻ
28562
 
-X-KDE-Keywords[x-test]=xxSharexx
28563
 
-X-KDE-Keywords[zh_CN]=Share,共享
28564
 
-
28565
 
-Categories=Qt;KDE;X-KDE-settings-network;Settings;
28566
 
Index: kdenetwork-4.6.3/filesharing/simple/fileshare.h
28567
 
===================================================================
28568
 
--- kdenetwork-4.6.3.orig/filesharing/simple/fileshare.h        2011-01-19 17:21:04.000000000 -0500
28569
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
28570
 
@@ -1,98 +0,0 @@
28571
 
-/*
28572
 
-  Copyright (c) 2002,2009 Laurent Montel <montel@kde.org>
28573
 
-
28574
 
-  This program is free software; you can redistribute it and/or modify
28575
 
-  it under the terms of the GNU General Public License as published by
28576
 
-  the Free Software Foundation; either version 2 of the License, or
28577
 
-  (at your option) any later version.
28578
 
-
28579
 
-  This program is distributed in the hope that it will be useful,
28580
 
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
28581
 
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28582
 
-  GNU General Public License for more details.
28583
 
-
28584
 
-  You should have received a copy of the GNU General Public License
28585
 
-  along with this program; if not, write to the Free Software
28586
 
-  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
28587
 
-*/
28588
 
-
28589
 
-#ifndef __fileshare_h__
28590
 
-#define __fileshare_h__
28591
 
-
28592
 
-#include <kfileitem.h>
28593
 
-#include <KPluginFactory>
28594
 
-#include "kcmodule.h"
28595
 
-//Added by qt3to4:
28596
 
-#include <QLabel>
28597
 
-#include <QBoxLayout>
28598
 
-#include "ui_controlcenter.h"
28599
 
-class QLabel;
28600
 
-class QBoxLayout;
28601
 
-
28602
 
-class ControlCenterGUI : public QWidget, public Ui::ControlCenterGUI
28603
 
-{
28604
 
-    Q_OBJECT
28605
 
-public:
28606
 
-  ControlCenterGUI( QWidget *parent );
28607
 
-private slots:
28608
 
-    void changedSlot();
28609
 
-public slots:
28610
 
-    void listView_selectionChanged();
28611
 
-signals:
28612
 
-    void changed();
28613
 
-};
28614
 
-
28615
 
-
28616
 
-
28617
 
-class KFileShareConfig  : public KCModule
28618
 
-{
28619
 
-  Q_OBJECT
28620
 
-
28621
 
- public:
28622
 
-  KFileShareConfig(QWidget *parent, const QVariantList &);
28623
 
-
28624
 
-  virtual void load();
28625
 
-  virtual void save();
28626
 
-  virtual void defaults();
28627
 
-  virtual QString quickHelp() const;
28628
 
-
28629
 
- protected:
28630
 
-   ControlCenterGUI* m_ccgui;
28631
 
-   QString m_fileShareGroup;
28632
 
-   bool m_restricted;
28633
 
-   bool m_rootPassNeeded;
28634
 
-   QString m_smbConf;
28635
 
-   void showShareDialog(const KFileItemList & files);
28636
 
-   bool addGroupAccessesToFile(const QString & file);
28637
 
-   bool removeGroupAccessesFromFile(const QString & file);
28638
 
-   bool setGroupAccesses();
28639
 
-
28640
 
- protected slots:
28641
 
-  void configChanged() { emit changed( true ); }
28642
 
-  void updateShareListView();
28643
 
-  void allowedUsersBtnClicked();
28644
 
-
28645
 
-  virtual void addShareBtnClicked();
28646
 
-  virtual void changeShareBtnClicked();
28647
 
-  virtual void removeShareBtnClicked();
28648
 
-
28649
 
-};
28650
 
-
28651
 
-class PropertiesPageDlg : public KDialog
28652
 
-{
28653
 
-Q_OBJECT
28654
 
-public:
28655
 
-  PropertiesPageDlg(QWidget * parent, KFileItemList files);
28656
 
-  ~PropertiesPageDlg() {}
28657
 
-  bool hasChanged();
28658
 
-protected:
28659
 
-  PropertiesPage* m_page;
28660
 
-
28661
 
-protected slots:
28662
 
-  virtual void slotOk();
28663
 
-
28664
 
-};
28665
 
-
28666
 
-
28667
 
-
28668
 
-#endif
28669
 
Index: kdenetwork-4.6.3/filesharing/simple/groupconfigdlg.cpp
28670
 
===================================================================
28671
 
--- kdenetwork-4.6.3.orig/filesharing/simple/groupconfigdlg.cpp 2011-01-19 17:21:04.000000000 -0500
28672
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
28673
 
@@ -1,438 +0,0 @@
28674
 
-/*
28675
 
-  Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
28676
 
-
28677
 
-  This program is free software; you can redistribute it and/or modify
28678
 
-  it under the terms of the GNU General Public License as published by
28679
 
-  the Free Software Foundation; either version 2 of the License, or
28680
 
-  (at your option) any later version.
28681
 
-
28682
 
-  This program is distributed in the hope that it will be useful,
28683
 
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
28684
 
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28685
 
-  GNU General Public License for more details.
28686
 
-
28687
 
-  You should have received a copy of the GNU General Public License
28688
 
-  along with this program; if not, write to the Free Software
28689
 
-  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
28690
 
-
28691
 
-*/
28692
 
-
28693
 
-
28694
 
-#include <qradiobutton.h>
28695
 
-#include <qpushbutton.h>
28696
 
-#include <q3groupbox.h>
28697
 
-#include <qlabel.h>
28698
 
-#include <qcheckbox.h>
28699
 
-#include <kvbox.h>
28700
 
-#include <khbox.h>
28701
 
-//Added by qt3to4:
28702
 
-
28703
 
-#include <klocale.h>
28704
 
-#include <kuser.h>
28705
 
-#include <kdebug.h>
28706
 
-#include <kmessagebox.h>
28707
 
-#include <kinputdialog.h>
28708
 
-#include <k3listbox.h>
28709
 
-#include <kprocess.h>
28710
 
-#include <kpushbutton.h>
28711
 
-#include <kcombobox.h>
28712
 
-
28713
 
-#include "groupconfigdlg.h"
28714
 
-
28715
 
-
28716
 
-static QString groupListToString(const QList<KUserGroup> & list);
28717
 
-static QString prettyString(const KUser &user);
28718
 
-static QString fromPrettyString(const QString & s);
28719
 
-static void removeList(QList<KUser> & from, const QList<KUser> & that);
28720
 
-static bool userMod(const QString & user, const QList<KUserGroup> & groups);
28721
 
-
28722
 
-
28723
 
-GroupConfigGUI::GroupConfigGUI( QWidget *parent )
28724
 
-    : QWidget( parent )
28725
 
-{
28726
 
-    setupUi( this );
28727
 
-    connect( listBox, SIGNAL( selectionChanged(Q3ListBoxItem*) ), this, SLOT(listBox_selectionChanged(Q3ListBoxItem*) ) );
28728
 
-}
28729
 
-
28730
 
-void GroupConfigGUI::listBox_selectionChanged( Q3ListBoxItem * i)
28731
 
-{
28732
 
-    removeBtn->setEnabled(i);
28733
 
-}
28734
 
-
28735
 
-GroupConfigDlg::GroupConfigDlg(QWidget * parent,
28736
 
-      const QString & fileShareGroup, bool restricted,
28737
 
-      bool rootPassNeeded, bool simpleSharing)
28738
 
-  : KDialog(parent),
28739
 
-  m_fileShareGroup(fileShareGroup),
28740
 
-  m_restricted(restricted) ,
28741
 
-  m_rootPassNeeded(rootPassNeeded),
28742
 
-  m_simpleSharing(simpleSharing)
28743
 
-
28744
 
-{
28745
 
-  setCaption(i18n("Allowed Users"));
28746
 
-  setButtons(Ok|Cancel);
28747
 
-  setDefaultButton(Ok);
28748
 
-  setModal(true);
28749
 
-  showButtonSeparator(true);
28750
 
-  initGUI();
28751
 
-
28752
 
-  setFileShareGroup(m_fileShareGroup);
28753
 
-  connect(this,SIGNAL(okClicked()),this,SLOT(slotOk()));
28754
 
-}
28755
 
-
28756
 
-GroupConfigDlg::~GroupConfigDlg() {
28757
 
-}
28758
 
-
28759
 
-void GroupConfigDlg::initUsers() {
28760
 
-  m_origUsers = m_fileShareGroup.users();
28761
 
-  m_users = m_origUsers;
28762
 
-}
28763
 
-
28764
 
-void GroupConfigDlg::initGUI() {
28765
 
-  m_gui = new GroupConfigGUI(this);
28766
 
-  setMainWidget(m_gui);
28767
 
-  setFileShareGroup(m_fileShareGroup);
28768
 
-
28769
 
-  m_gui->allUsersRadio->setChecked(!m_restricted);
28770
 
-  m_gui->groupUsersRadio->setChecked(m_restricted);
28771
 
-  m_gui->writeAccessChk->setChecked(!m_rootPassNeeded);
28772
 
-
28773
 
-  connect( m_gui->addBtn, SIGNAL(clicked()),
28774
 
-           this, SLOT(slotAddUser()));
28775
 
-  connect( m_gui->removeBtn, SIGNAL(clicked()),
28776
 
-           this, SLOT(slotRemoveUser()));
28777
 
-  connect( m_gui->otherGroupBtn, SIGNAL(clicked()),
28778
 
-           this, SLOT(slotChangeGroup()));
28779
 
-
28780
 
-  if (m_simpleSharing) {
28781
 
-      // if simple sharing users never need the root password
28782
 
-      m_gui->writeAccessChk->setDisabled(true);
28783
 
-  }
28784
 
-}
28785
 
-
28786
 
-void GroupConfigDlg::updateListBox() {
28787
 
-  m_gui->listBox->clear();
28788
 
-  QList<KUser>::iterator it;
28789
 
-  for ( it = m_users.begin(); it != m_users.end(); ++it ) {
28790
 
-     m_gui->listBox->insertItem(prettyString(*it));
28791
 
-     kDebug(5009) << "GroupConfigDlg::updateListBox: " << (*it).loginName();
28792
 
-  }
28793
 
-}
28794
 
-
28795
 
-QString prettyString(const KUser &user) {
28796
 
-  return user.fullName()+" ("+user.loginName()+')';
28797
 
-}
28798
 
-
28799
 
-QString fromPrettyString(const QString & s) {
28800
 
-  // Jan Schaefer (jan)
28801
 
-  //              i   j
28802
 
-  int i = s.indexOf('(');
28803
 
-  int j = s.indexOf(')');
28804
 
-  QString loginName = s.mid(i+1,j-i-1);
28805
 
-  return loginName;
28806
 
-}
28807
 
-
28808
 
-bool GroupConfigDlg::restricted() const {
28809
 
-  return m_restricted;
28810
 
-}
28811
 
-
28812
 
-void GroupConfigDlg::slotAddUser() {
28813
 
-  QList<KUser> allUsers = KUser::allUsers();
28814
 
-
28815
 
-  removeList(allUsers,m_users);
28816
 
-
28817
 
-  if (allUsers.count()==0) {
28818
 
-     KMessageBox::information(this,
28819
 
-           i18n("All users are in the %1 group already.",
28820
 
-            m_fileShareGroup.name()));
28821
 
-     return;
28822
 
-  }
28823
 
-
28824
 
-  QStringList stringList;
28825
 
-
28826
 
-  QList<KUser>::iterator it;
28827
 
-  for ( it = allUsers.begin(); it != allUsers.end(); ++it ) {
28828
 
-    QString s = (*it).fullName()+" ("+(*it).loginName()+')';
28829
 
-    stringList.append(s);
28830
 
-  }
28831
 
-
28832
 
-  stringList.sort();
28833
 
-
28834
 
-  bool ok;
28835
 
-  QString userName = KInputDialog::getItem(
28836
 
-            i18n("Select User"),
28837
 
-            i18n("Select a user:"),
28838
 
-            stringList,
28839
 
-            0,
28840
 
-            false,
28841
 
-            &ok);
28842
 
-
28843
 
-  if (!ok)
28844
 
-      return;
28845
 
-
28846
 
-  QString loginName = fromPrettyString(userName);
28847
 
-  KUser user(loginName);
28848
 
-  m_users.append(KUser(loginName));
28849
 
-  updateListBox();
28850
 
-}
28851
 
-
28852
 
-void removeList(QList<KUser> & from, const QList<KUser> & that) {
28853
 
-  QList<KUser>::ConstIterator it;
28854
 
-  for ( it = that.begin(); it != that.end(); ++it ) {
28855
 
-    from.removeAll(*it);
28856
 
-  }
28857
 
-
28858
 
-}
28859
 
-
28860
 
-bool GroupConfigDlg::addUser(const KUser & user, const KUserGroup & group) {
28861
 
-  QList<KUserGroup> groups = user.groups();
28862
 
-  groups.append(group);
28863
 
-  if (!userMod(user.loginName(),groups)) {
28864
 
-    KMessageBox::sorry(this,i18n("Could not add user '%1' to group '%2'",
28865
 
-             user.loginName(), group.name()));
28866
 
-    return false;
28867
 
-  }
28868
 
-  return true;
28869
 
-}
28870
 
-
28871
 
-
28872
 
-bool GroupConfigDlg::removeUser(const KUser & user, const KUserGroup & group) {
28873
 
-  QList<KUserGroup> groups = user.groups();
28874
 
-  groups.removeAll(group);
28875
 
-  if (!userMod(user.loginName(),groups)) {
28876
 
-    KMessageBox::sorry(this,i18n("Could not remove user '%1' from group '%2'",
28877
 
-             user.loginName(), group.name()));
28878
 
-    return false;
28879
 
-  }
28880
 
-  return true;
28881
 
-}
28882
 
-
28883
 
-bool GroupConfigDlg::rootPassNeeded() const {
28884
 
-  return m_rootPassNeeded;
28885
 
-}
28886
 
-
28887
 
-void GroupConfigDlg::slotOk() {
28888
 
-  m_restricted = m_gui->groupUsersRadio->isChecked();
28889
 
-  m_rootPassNeeded = ! m_gui->writeAccessChk->isChecked();
28890
 
-  if (m_restricted && !m_fileShareGroup.isValid()) {
28891
 
-    KMessageBox::sorry(this,i18n("You have to choose a valid group."));
28892
 
-    return;
28893
 
-  }
28894
 
-
28895
 
-  QList<KUser> addedUsers = m_users;
28896
 
-  removeList(addedUsers,m_origUsers);
28897
 
-  QList<KUser> removedUsers = m_origUsers;
28898
 
-  removeList(removedUsers,m_users);
28899
 
-
28900
 
-  QList<KUser>::ConstIterator it;
28901
 
-  for ( it = addedUsers.constBegin(); it != addedUsers.constEnd(); ++it ) {
28902
 
-    addUser(*it, m_fileShareGroup);
28903
 
-  }
28904
 
-
28905
 
-  for ( it = removedUsers.constBegin(); it != removedUsers.constEnd(); ++it ) {
28906
 
-    removeUser(*it, m_fileShareGroup);
28907
 
-  }
28908
 
-
28909
 
-
28910
 
-  KDialog::accept();
28911
 
-}
28912
 
-
28913
 
-bool userMod(const QString & user, const QList<KUserGroup> & groups) {
28914
 
-  KProcess proc;
28915
 
-  proc << "usermod" << "-G" << groupListToString(groups) << user;
28916
 
-  return !proc.execute();
28917
 
-}
28918
 
-
28919
 
-void GroupConfigDlg::slotRemoveUser() {
28920
 
-  Q3ListBoxItem* item = m_gui->listBox->selectedItem();
28921
 
-  if (!item)
28922
 
-      return;
28923
 
-
28924
 
-  QString loginName = fromPrettyString(item->text());
28925
 
-  KUser user(loginName);
28926
 
-  m_users.removeAll(KUser(loginName));
28927
 
-  updateListBox();
28928
 
-  m_gui->removeBtn->setEnabled(false);
28929
 
-}
28930
 
-
28931
 
-QString groupListToString(const QList<KUserGroup> & list) {
28932
 
-  QList<KUserGroup>::ConstIterator it;
28933
 
-  QString result;
28934
 
-
28935
 
-  for ( it = list.begin(); it != list.end(); ++it ) {
28936
 
-    result+=(*it).name()+',';
28937
 
-  }
28938
 
-
28939
 
-  // remove last ,
28940
 
-  result.truncate(result.length()-1);
28941
 
-  return result;
28942
 
-}
28943
 
-
28944
 
-void GroupConfigDlg::slotChangeGroup() {
28945
 
-  QList<KUserGroup> allGroups = KUserGroup::allGroups();
28946
 
-
28947
 
-  QStringList stringList;
28948
 
-
28949
 
-  QList<KUserGroup>::iterator it;
28950
 
-  for ( it = allGroups.begin(); it != allGroups.end(); ++it ) {
28951
 
-    QString s = (*it).name();
28952
 
-    stringList.append(s);
28953
 
-  }
28954
 
-
28955
 
-  stringList.sort();
28956
 
-
28957
 
-  KDialog* dlg = new KDialog(this);
28958
 
-  dlg->setCaption(i18n("Allowed Users"));
28959
 
-  dlg->setButtons(Ok|Cancel);
28960
 
-  dlg->setDefaultButton(Ok);
28961
 
-  dlg->setModal(true);
28962
 
-  dlg->showButtonSeparator(true);
28963
 
-  KVBox* vbox = new KVBox(this);
28964
 
-  dlg->setMainWidget(vbox);
28965
 
-
28966
 
-  KHBox* hbox = new KHBox(vbox);
28967
 
-  QLabel* lbl = new QLabel(i18n("New file share group:"),hbox);
28968
 
-  KComboBox* combo = new KComboBox(hbox);
28969
 
-  combo->insertStringList(stringList);
28970
 
-  combo->setEditable(true);
28971
 
-  combo->setCurrentText(m_fileShareGroup.name());
28972
 
-
28973
 
-  QCheckBox* addChk = new QCheckBox(
28974
 
-        i18n("Add users from the old file share group to the new one"),
28975
 
-        vbox);
28976
 
-
28977
 
-  QCheckBox* removeUsersChk = new QCheckBox(
28978
 
-        i18n("Remove users from old file share group"),
28979
 
-        vbox);
28980
 
-
28981
 
-  QCheckBox* removeGroupChk = new QCheckBox(
28982
 
-        i18n("Delete the old file share group"),
28983
 
-        vbox);
28984
 
-
28985
 
-  if (dlg->exec() == QDialog::Accepted) {
28986
 
-    QString groupName = combo->currentText();
28987
 
-    if (groupName != m_fileShareGroup.name()) {
28988
 
-      QString oldGroup = m_fileShareGroup.name();
28989
 
-      if (allGroups.contains(KUserGroup(groupName)))
28990
 
-        setFileShareGroup(KUserGroup(groupName));
28991
 
-      else {
28992
 
-        if (!createFileShareGroup(groupName)) {
28993
 
-          delete dlg;
28994
 
-          return;
28995
 
-        }
28996
 
-      }
28997
 
-
28998
 
-      if (removeGroupChk->isChecked())
28999
 
-        deleteGroup(oldGroup);
29000
 
-      else
29001
 
-      if (removeUsersChk->isChecked())
29002
 
-        emptyGroup(oldGroup);
29003
 
-
29004
 
-      if (addChk->isChecked()) {
29005
 
-          addUsersToGroup(m_users,KUserGroup(groupName));
29006
 
-          // reread the users
29007
 
-          m_fileShareGroup = KUserGroup(groupName);
29008
 
-      }
29009
 
-
29010
 
-
29011
 
-      initUsers();
29012
 
-      updateListBox();
29013
 
-
29014
 
-    }
29015
 
-  }
29016
 
-
29017
 
-  delete dlg;
29018
 
-
29019
 
-}
29020
 
-
29021
 
-void GroupConfigDlg::setFileShareGroup(const KUserGroup & group) {
29022
 
-  m_fileShareGroup = group;
29023
 
-
29024
 
-  if (m_fileShareGroup.isValid()) {
29025
 
-    initUsers();
29026
 
-    updateListBox();
29027
 
-    m_gui->groupUsersRadio->setText(
29028
 
-          i18n("Only users of the '%1' group are allowed to share folders",
29029
 
-           m_fileShareGroup.name()));
29030
 
-    m_gui->usersGrpBx->setTitle(i18n("Users of '%1' Group",
29031
 
-           m_fileShareGroup.name()));
29032
 
-    m_gui->otherGroupBtn->setText(i18n("Change Group..."));
29033
 
-    m_gui->usersGrpBx->show();
29034
 
-  } else {
29035
 
-    m_gui->groupUsersRadio->setText(i18n("Only users of a certain group are allowed to share folders"));
29036
 
-    m_gui->otherGroupBtn->setText(i18n("Choose Group..."));
29037
 
-    m_gui->usersGrpBx->hide();
29038
 
-  }
29039
 
-
29040
 
-
29041
 
-
29042
 
-}
29043
 
-
29044
 
-bool GroupConfigDlg::addUsersToGroup(QList<KUser> users,const KUserGroup & group) {
29045
 
-  QList<KUser>::ConstIterator it;
29046
 
-  bool result = true;
29047
 
-  for ( it = users.constBegin(); it != users.constEnd(); ++it ) {
29048
 
-    if (!addUser(*it, group))
29049
 
-      result  = false;
29050
 
-  }
29051
 
-  return result;
29052
 
-}
29053
 
-
29054
 
-bool GroupConfigDlg::emptyGroup(const QString & s) {
29055
 
-  if (KMessageBox::No == KMessageBox::questionYesNo(this,
29056
 
-        i18n("Do you really want to remove all users from group '%1'?", s), QString(), KStandardGuiItem::del(), KStandardGuiItem::cancel())) {
29057
 
-      return false;
29058
 
-  }
29059
 
-
29060
 
-  QList<KUser> allUsers = KUser::allUsers();
29061
 
-  bool result = true;
29062
 
-  KUserGroup group(s);
29063
 
-  QList<KUser>::ConstIterator it;
29064
 
-  for ( it = allUsers.constBegin(); it != allUsers.constEnd(); ++it ) {
29065
 
-    if (!removeUser(*it, group))
29066
 
-      result = false;
29067
 
-  }
29068
 
-  return result;
29069
 
-}
29070
 
-
29071
 
-bool GroupConfigDlg::deleteGroup(const QString & s) {
29072
 
-  if (KMessageBox::No == KMessageBox::questionYesNo(this,
29073
 
-        i18n("Do you really want to delete group '%1'?", s), QString(), KStandardGuiItem::del(), KStandardGuiItem::cancel())) {
29074
 
-      return false;
29075
 
-  }
29076
 
-
29077
 
-  KProcess proc;
29078
 
-  proc << "groupdel" << s;
29079
 
-  if (proc.execute()) {
29080
 
-    KMessageBox::sorry(this,i18n("Deleting group '%1' failed.", s));
29081
 
-    return false;
29082
 
-  }
29083
 
-
29084
 
-  return true;
29085
 
-}
29086
 
-
29087
 
-bool GroupConfigDlg::createFileShareGroup(const QString & s) {
29088
 
-  if (s.isEmpty()) {
29089
 
-      KMessageBox::sorry(this,i18n("Please choose a valid group."));
29090
 
-      return false;
29091
 
-  }
29092
 
-
29093
 
-  if (KMessageBox::No == KMessageBox::questionYesNo(this,
29094
 
-      i18n("This group '%1' does not exist. Should it be created?", s), QString(), KGuiItem(i18n("Create")), KGuiItem(i18n("Do Not Create"))))
29095
 
-      return false;
29096
 
-
29097
 
-  //debug("CreateFileShareGroup: "+s);
29098
 
-  KProcess proc;
29099
 
-  proc << "groupadd" << s;
29100
 
-  if (proc.execute()) {
29101
 
-    KMessageBox::sorry(this,i18n("Creation of group '%1' failed.", s));
29102
 
-    return false;
29103
 
-  } else {
29104
 
-    setFileShareGroup(KUserGroup(s));
29105
 
-  }
29106
 
-
29107
 
-  return true;
29108
 
-}
29109
 
-
29110
 
-
29111
 
-#include "groupconfigdlg.moc"
29112
 
Index: kdenetwork-4.6.3/filesharing/simple/groupconfigdlg.h
29113
 
===================================================================
29114
 
--- kdenetwork-4.6.3.orig/filesharing/simple/groupconfigdlg.h   2011-01-19 17:21:04.000000000 -0500
29115
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
29116
 
@@ -1,78 +0,0 @@
29117
 
-/*
29118
 
-  Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
29119
 
-
29120
 
-  This program is free software; you can redistribute it and/or modify
29121
 
-  it under the terms of the GNU General Public License as published by
29122
 
-  the Free Software Foundation; either version 2 of the License, or
29123
 
-  (at your option) any later version.
29124
 
-
29125
 
-  This program is distributed in the hope that it will be useful,
29126
 
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
29127
 
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29128
 
-  GNU General Public License for more details.
29129
 
-
29130
 
-  You should have received a copy of the GNU General Public License
29131
 
-  along with this program; if not, write to the Free Software
29132
 
-  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
29133
 
-
29134
 
-*/
29135
 
-
29136
 
-#ifndef GROUPCONFIGDLG_H
29137
 
-#define GROUPCONFIGDLG_H
29138
 
-
29139
 
-#include <kdialog.h>
29140
 
-#include "ui_groupconfiggui.h"
29141
 
-#include <kuser.h>
29142
 
-class Q3ListBoxItem;
29143
 
-
29144
 
-class GroupConfigGUI : public QWidget, public Ui::GroupConfigGUI
29145
 
-{
29146
 
-Q_OBJECT
29147
 
-public:
29148
 
-    GroupConfigGUI( QWidget *parent );
29149
 
-public slots:
29150
 
-    void listBox_selectionChanged( Q3ListBoxItem * i);
29151
 
-};
29152
 
-
29153
 
-
29154
 
-
29155
 
-class GroupConfigDlg : public KDialog
29156
 
-{
29157
 
-Q_OBJECT
29158
 
-public:
29159
 
-  GroupConfigDlg(QWidget * parent, const QString & fileShareGroup, bool restricted,
29160
 
-                 bool rootPassNeeded, bool simpleSharing);
29161
 
-  ~GroupConfigDlg();
29162
 
-  KUserGroup fileShareGroup() const { return m_fileShareGroup; }
29163
 
-  bool restricted() const;
29164
 
-  bool rootPassNeeded() const;
29165
 
-protected:
29166
 
-  GroupConfigGUI* m_gui;
29167
 
-
29168
 
-  void initGUI();
29169
 
-  void initUsers();
29170
 
-protected slots:
29171
 
-  void slotAddUser();
29172
 
-  void slotRemoveUser();
29173
 
-  void slotChangeGroup();
29174
 
-  void updateListBox();
29175
 
-  virtual void slotOk();
29176
 
-
29177
 
-private:
29178
 
-  bool createFileShareGroup(const QString & s);
29179
 
-  bool deleteGroup(const QString & s);
29180
 
-  bool emptyGroup(const QString & s);
29181
 
-  bool addUser(const KUser & user, const KUserGroup & group);
29182
 
-  bool removeUser(const KUser & user, const KUserGroup & group);
29183
 
-  bool addUsersToGroup(QList<KUser> users,const KUserGroup & group);
29184
 
-  void setFileShareGroup(const KUserGroup & group);
29185
 
-
29186
 
-  QList<KUser> m_origUsers;
29187
 
-  QList<KUser> m_users;
29188
 
-  KUserGroup m_fileShareGroup;
29189
 
-  bool m_restricted;
29190
 
-  bool m_rootPassNeeded;
29191
 
-  bool m_simpleSharing;
29192
 
-};
29193
 
-
29194
 
-#endif
29195
 
Index: kdenetwork-4.6.3/filesharing/simple/groupconfiggui.ui
29196
 
===================================================================
29197
 
--- kdenetwork-4.6.3.orig/filesharing/simple/groupconfiggui.ui  2011-01-19 17:21:04.000000000 -0500
29198
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
29199
 
@@ -1,170 +0,0 @@
29200
 
-<ui version="4.0" stdsetdef="1" >
29201
 
-  <class>GroupConfigGUI</class>
29202
 
-  <widget class="QWidget" name="GroupConfigGUI" >
29203
 
-    <property name="geometry" >
29204
 
-      <rect>
29205
 
-        <x>0</x>
29206
 
-        <y>0</y>
29207
 
-        <width>521</width>
29208
 
-        <height>371</height>
29209
 
-      </rect>
29210
 
-    </property>
29211
 
-    <layout class="QVBoxLayout" >
29212
 
-      <property name="margin" >
29213
 
-        <number>0</number>
29214
 
-      </property>
29215
 
-      <item>
29216
 
-        <widget class="Q3ButtonGroup" name="buttonGroup1" >
29217
 
-          <property name="frameShape" >
29218
 
-            <enum>Q3GroupBox::NoFrame</enum>
29219
 
-          </property>
29220
 
-          <property name="title" >
29221
 
-            <string/>
29222
 
-          </property>
29223
 
-          <layout class="QVBoxLayout" >
29224
 
-            <property name="margin" >
29225
 
-              <number>0</number>
29226
 
-            </property>
29227
 
-            <item>
29228
 
-              <widget class="QRadioButton" name="allUsersRadio" >
29229
 
-                <property name="text" >
29230
 
-                  <string>Allow all users to share folders</string>
29231
 
-                </property>
29232
 
-                <property name="checked" >
29233
 
-                  <bool>true</bool>
29234
 
-                </property>
29235
 
-              </widget>
29236
 
-            </item>
29237
 
-            <item>
29238
 
-              <widget class="QRadioButton" name="groupUsersRadio" >
29239
 
-                <property name="text" >
29240
 
-                  <string>Only users of the '%1' group are allowed to share folders</string>
29241
 
-                </property>
29242
 
-              </widget>
29243
 
-            </item>
29244
 
-          </layout>
29245
 
-        </widget>
29246
 
-      </item>
29247
 
-      <item>
29248
 
-        <widget class="Q3GroupBox" name="usersGrpBx" >
29249
 
-          <property name="enabled" >
29250
 
-            <bool>false</bool>
29251
 
-          </property>
29252
 
-          <property name="title" >
29253
 
-            <string>Users of '%1' Group</string>
29254
 
-          </property>
29255
 
-          <layout class="QGridLayout" >
29256
 
-            <item rowspan="3" row="0" column="0" colspan="1" >
29257
 
-              <widget class="K3ListBox" name="listBox" />
29258
 
-            </item>
29259
 
-            <item row="2" column="1" >
29260
 
-              <spacer name="spacer6" >
29261
 
-                <property name="sizeHint" >
29262
 
-                  <size>
29263
 
-                    <width>20</width>
29264
 
-                    <height>20</height>
29265
 
-                  </size>
29266
 
-                </property>
29267
 
-                <property name="sizeType" >
29268
 
-                  <enum>QSizePolicy::Expanding</enum>
29269
 
-                </property>
29270
 
-                <property name="orientation" >
29271
 
-                  <enum>Qt::Vertical</enum>
29272
 
-                </property>
29273
 
-              </spacer>
29274
 
-            </item>
29275
 
-            <item row="1" column="1" >
29276
 
-              <widget class="KPushButton" name="removeBtn" >
29277
 
-                <property name="enabled" >
29278
 
-                  <bool>false</bool>
29279
 
-                </property>
29280
 
-                <property name="text" >
29281
 
-                  <string>Remove User</string>
29282
 
-                </property>
29283
 
-              </widget>
29284
 
-            </item>
29285
 
-            <item row="0" column="1" >
29286
 
-              <widget class="KPushButton" name="addBtn" >
29287
 
-                <property name="text" >
29288
 
-                  <string>Add User</string>
29289
 
-                </property>
29290
 
-              </widget>
29291
 
-            </item>
29292
 
-            <item rowspan="1" row="3" column="0" colspan="2" >
29293
 
-              <widget class="QCheckBox" name="writeAccessChk" >
29294
 
-                <property name="text" >
29295
 
-                  <string>Group members can share folders without root password</string>
29296
 
-                </property>
29297
 
-              </widget>
29298
 
-            </item>
29299
 
-          </layout>
29300
 
-        </widget>
29301
 
-      </item>
29302
 
-      <item>
29303
 
-        <layout class="QHBoxLayout" >
29304
 
-          <item>
29305
 
-            <spacer name="spacer8" >
29306
 
-              <property name="sizeHint" >
29307
 
-                <size>
29308
 
-                  <width>180</width>
29309
 
-                  <height>20</height>
29310
 
-                </size>
29311
 
-              </property>
29312
 
-              <property name="sizeType" >
29313
 
-                <enum>QSizePolicy::Expanding</enum>
29314
 
-              </property>
29315
 
-              <property name="orientation" >
29316
 
-                <enum>Qt::Horizontal</enum>
29317
 
-              </property>
29318
 
-            </spacer>
29319
 
-          </item>
29320
 
-          <item>
29321
 
-            <widget class="KPushButton" name="otherGroupBtn" >
29322
 
-              <property name="enabled" >
29323
 
-                <bool>false</bool>
29324
 
-              </property>
29325
 
-              <property name="sizePolicy" >
29326
 
-                <sizepolicy>
29327
 
-                  <hsizetype>1</hsizetype>
29328
 
-                  <vsizetype>0</vsizetype>
29329
 
-                  <horstretch>0</horstretch>
29330
 
-                  <verstretch>0</verstretch>
29331
 
-                </sizepolicy>
29332
 
-              </property>
29333
 
-              <property name="text" >
29334
 
-                <string>Change Group...</string>
29335
 
-              </property>
29336
 
-            </widget>
29337
 
-          </item>
29338
 
-        </layout>
29339
 
-      </item>
29340
 
-    </layout>
29341
 
-  </widget>
29342
 
-    <customwidgets>
29343
 
-    <customwidget>
29344
 
-      <class>K3ListBox</class>
29345
 
-      <extends>Q3ListBox</extends>
29346
 
-      <header location="global" >k3listbox.h</header>
29347
 
-    </customwidget>
29348
 
-  </customwidgets>
29349
 
-  <connections>
29350
 
-    <connection>
29351
 
-      <sender>groupUsersRadio</sender>
29352
 
-      <signal>toggled(bool)</signal>
29353
 
-      <receiver>usersGrpBx</receiver>
29354
 
-      <slot>setEnabled(bool)</slot>
29355
 
-    </connection>
29356
 
-    <connection>
29357
 
-      <sender>groupUsersRadio</sender>
29358
 
-      <signal>toggled(bool)</signal>
29359
 
-      <receiver>otherGroupBtn</receiver>
29360
 
-      <slot>setEnabled(bool)</slot>
29361
 
-    </connection>
29362
 
-    <connection>
29363
 
-      <sender>listBox</sender>
29364
 
-      <signal>selectionChanged(Q3ListBoxItem*)</signal>
29365
 
-      <receiver>GroupConfigGUI</receiver>
29366
 
-      <slot>listBox_selectionChanged(Q3ListBoxItem*)</slot>
29367
 
-    </connection>
29368
 
-  </connections>
29369
 
-</ui>
29370
 
Index: kdenetwork-4.6.3/filesharing/simple/krichtextlabel.cpp
29371
 
===================================================================
29372
 
--- kdenetwork-4.6.3.orig/filesharing/simple/krichtextlabel.cpp 2011-01-19 17:21:04.000000000 -0500
29373
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
29374
 
@@ -1,118 +0,0 @@
29375
 
-/* This file is part of the KDE libraries
29376
 
-   Copyright (C) 2005 Waldo Bastian <bastian@kde.org>
29377
 
-
29378
 
-   This library is free software; you can redistribute it and/or
29379
 
-   modify it under the terms of the GNU Library General Public
29380
 
-   License version 2 as published by the Free Software Foundation.
29381
 
-
29382
 
-   This library is distributed in the hope that it will be useful,
29383
 
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
29384
 
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
29385
 
-   Library General Public License for more details.
29386
 
-
29387
 
-   You should have received a copy of the GNU Library General Public License
29388
 
-   along with this library; see the file COPYING.LIB.  If not, write to
29389
 
-   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
29390
 
-   Boston, MA 02110-1301, USA.
29391
 
-*/
29392
 
-
29393
 
-#include "krichtextlabel.h"
29394
 
-#include <QTextDocument>
29395
 
-
29396
 
-
29397
 
-#include <q3stylesheet.h>
29398
 
-#include <q3simplerichtext.h>
29399
 
-#include <qtextdocument.h>
29400
 
-//Added by qt3to4:
29401
 
-#include <QLabel>
29402
 
-
29403
 
-#include <kglobalsettings.h>
29404
 
-
29405
 
-static QString qrichtextify( const QString& text )
29406
 
-{
29407
 
-  if ( text.isEmpty() || text[0] == '<' )
29408
 
-    return text;
29409
 
-
29410
 
-  QStringList lines = QStringList::split('\n', text);
29411
 
-  for(QStringList::Iterator it = lines.begin(); it != lines.end(); ++it)
29412
 
-  {
29413
 
-    *it = Qt::convertFromPlainText( *it, Qt::WhiteSpaceNormal );
29414
 
-  }
29415
 
-
29416
 
-  return lines.join(QString::null);    //krazy:exclude=nullstrassign for old broken gcc
29417
 
-}
29418
 
-
29419
 
-KRichTextLabel::KRichTextLabel( const QString &text , QWidget *parent )
29420
 
- : QLabel ( parent ) {
29421
 
-  m_defaultWidth = qMin(400, KGlobalSettings::desktopGeometry(this).width()*2/5);
29422
 
-  setWordWrap( true );
29423
 
-  setText(text);
29424
 
-}
29425
 
-
29426
 
-KRichTextLabel::KRichTextLabel( QWidget *parent )
29427
 
- : QLabel ( parent ) {
29428
 
-  m_defaultWidth = qMin(400, KGlobalSettings::desktopGeometry(this).width()*2/5);
29429
 
-  setWordWrap( true );
29430
 
-}
29431
 
-
29432
 
-void KRichTextLabel::setDefaultWidth(int defaultWidth)
29433
 
-{
29434
 
-  m_defaultWidth = defaultWidth;
29435
 
-  updateGeometry();
29436
 
-}
29437
 
-
29438
 
-QSizePolicy KRichTextLabel::sizePolicy() const
29439
 
-{
29440
 
-  return QSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Minimum, false);
29441
 
-}
29442
 
-
29443
 
-QSize KRichTextLabel::minimumSizeHint() const
29444
 
-{
29445
 
-  QString qt_text = qrichtextify( text() );
29446
 
-  int pref_width = 0;
29447
 
-  int pref_height = 0;
29448
 
-  QTextDocument rt;
29449
 
-  rt.setHtml( qt_text );
29450
 
-
29451
 
-  pref_width = m_defaultWidth;
29452
 
-  rt.setTextWidth(pref_width);
29453
 
-  int used_width = rt.idealWidth();
29454
 
-  if (used_width <= pref_width)
29455
 
-  {
29456
 
-    while(true)
29457
 
-    {
29458
 
-      int new_width = (used_width * 9) / 10;
29459
 
-      rt.setTextWidth(new_width);
29460
 
-      int new_height = rt.size().height();
29461
 
-      if (new_height > pref_height)
29462
 
-        break;
29463
 
-      used_width = rt.idealWidth();
29464
 
-      if (used_width > new_width)
29465
 
-        break;
29466
 
-    }
29467
 
-    pref_width = used_width;
29468
 
-  }
29469
 
-  else
29470
 
-  {
29471
 
-    if (used_width > (pref_width *2))
29472
 
-      pref_width = pref_width *2;
29473
 
-    else
29474
 
-      pref_width = used_width;
29475
 
-  }
29476
 
-
29477
 
-  return QSize(pref_width, rt.size().height());
29478
 
-}
29479
 
-
29480
 
-QSize KRichTextLabel::sizeHint() const
29481
 
-{
29482
 
-  return minimumSizeHint();
29483
 
-}
29484
 
-
29485
 
-void KRichTextLabel::setText( const QString &text ) {
29486
 
-  QLabel::setText(text);
29487
 
-}
29488
 
-
29489
 
-void KRichTextLabel::virtual_hook( int, void* )
29490
 
-{ /*BASE::virtual_hook( id, data );*/ }
29491
 
-
29492
 
-#include "krichtextlabel.moc"
29493
 
Index: kdenetwork-4.6.3/filesharing/simple/krichtextlabel.h
29494
 
===================================================================
29495
 
--- kdenetwork-4.6.3.orig/filesharing/simple/krichtextlabel.h   2011-01-19 17:21:04.000000000 -0500
29496
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
29497
 
@@ -1,63 +0,0 @@
29498
 
-/* This file is part of the KDE libraries
29499
 
-   Copyright (C) 2005 Waldo Bastian <bastian@kde.org>
29500
 
-
29501
 
-   This library is free software; you can redistribute it and/or
29502
 
-   modify it under the terms of the GNU Library General Public
29503
 
-   License version 2 as published by the Free Software Foundation.
29504
 
-
29505
 
-   This library is distributed in the hope that it will be useful,
29506
 
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
29507
 
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
29508
 
-   Library General Public License for more details.
29509
 
-
29510
 
-   You should have received a copy of the GNU Library General Public License
29511
 
-   along with this library; see the file COPYING.LIB.  If not, write to
29512
 
-   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
29513
 
-   Boston, MA 02110-1301, USA.
29514
 
-*/
29515
 
-
29516
 
-#ifndef KRICHTEXTLABEL_H
29517
 
-#define KRICHTEXTLABEL_H
29518
 
-
29519
 
-#include <qlabel.h>
29520
 
-
29521
 
-/**
29522
 
- * @short A replacement for QLabel that supports richtext and proper layout management
29523
 
- *
29524
 
- * @author Waldo Bastian <bastian@kde.org>
29525
 
- */
29526
 
-
29527
 
-/*
29528
 
- * QLabel
29529
 
- */
29530
 
-class KRichTextLabel : public QLabel {
29531
 
-  Q_OBJECT
29532
 
-
29533
 
-public:
29534
 
-  /**
29535
 
-   * Default constructor.
29536
 
-   */
29537
 
-  KRichTextLabel( QWidget *parent );
29538
 
-  KRichTextLabel( const QString &text, QWidget *parent );
29539
 
-
29540
 
-  int defaultWidth() const { return m_defaultWidth; }
29541
 
-  void setDefaultWidth(int defaultWidth);
29542
 
-
29543
 
-  virtual QSize minimumSizeHint() const;
29544
 
-  virtual QSize sizeHint() const;
29545
 
-  QSizePolicy sizePolicy() const;
29546
 
-
29547
 
-public slots:
29548
 
-  void setText( const QString & );
29549
 
-
29550
 
-protected:
29551
 
-  int m_defaultWidth;
29552
 
-
29553
 
-protected:
29554
 
-  virtual void virtual_hook( int id, void* data );
29555
 
-private:
29556
 
-  class KRichTextLabelPrivate;
29557
 
-  KRichTextLabelPrivate *d;
29558
 
-};
29559
 
-
29560
 
-#endif // KRICHTEXTLABEL_H
29561
 
Index: kdenetwork-4.6.3/CMakeLists.txt
29562
 
===================================================================
29563
 
--- kdenetwork-4.6.3.orig/CMakeLists.txt        2011-01-19 17:21:09.000000000 -0500
29564
 
+++ kdenetwork-4.6.3/CMakeLists.txt     2011-05-30 12:32:04.861538419 -0400
29565
 
@@ -91,6 +91,18 @@
29566
 
 
29567
 
 macro_optional_add_subdirectory(kdnssd)
29568
 
 
29569
 
+option(SAMBA_INSTALL "Offer to install Samba for file sharing with PackageKit if it is not already installed, use -DSAMBA_INSTALL=off to disable, use -DSAMBA_PACKAGE_NAME= to set package name." ON)
29570
 
+if(NOT SAMBA_PACKAGE_NAME)
29571
 
+    set(SAMBA_PACKAGE_NAME \\\"samba\\\")
29572
 
+endif(NOT SAMBA_PACKAGE_NAME)
29573
 
+if(SAMBA_INSTALL)
29574
 
+    message(STATUS "Samba install feature will be enabled.")
29575
 
+    add_definitions(-DSAMBA_INSTALL)
29576
 
+    add_definitions(-DSAMBA_PACKAGE_NAME=${SAMBA_PACKAGE_NAME})
29577
 
+else(SAMBA_INSTALL)
29578
 
+    message(STATUS "Samba install feature will NOT be enabled.")
29579
 
+endif(SAMBA_INSTALL)
29580
 
+
29581
 
 if(NOT WIN32)
29582
 
   macro_optional_add_subdirectory(filesharing)
29583
 
 endif(NOT WIN32)