~ubuntu-branches/ubuntu/natty/kdenetwork/natty-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-02-21 14:26:58 UTC
  • Revision ID: package-import@ubuntu.com-20110221142658-mzt9flk82tzdunxj
Tags: 4:4.6.0-0ubuntu4
Update kubuntu_05_samba_sharing.diff to match master

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          sharedlgimpl.h  -  description
 
3
                             -------------------
 
4
    begin                : Tue June 6 2002
 
5
    copyright            : (C) 2002 by Jan Schäfer
 
6
    email                : janschaefer@users.sourceforge.net
 
7
 ***************************************************************************/
 
8
 
 
9
/******************************************************************************
 
10
 *                                                                            *
 
11
 *  This file is part of KSambaPlugin.                                          *
 
12
 *                                                                            *
 
13
 *  KSambaPlugin is free software; you can redistribute it and/or modify            *
 
14
 *  it under the terms of the GNU General Public License as published by      *
 
15
 *  the Free Software Foundation; either version 2 of the License, or         *
 
16
 *  (at your option) any later version.                                       *
 
17
 *                                                                            *
 
18
 *  KSambaPlugin is distributed in the hope that it will be useful,                 *
 
19
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of            *
 
20
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
 
21
 *  GNU General Public License for more details.                              *
 
22
 *                                                                            *
 
23
 *  You should have received a copy of the GNU General Public License         *
 
24
 *  along with KSambaPlugin; if not, write to the Free Software                     *
 
25
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA  *
 
26
 *                                                                            *
 
27
 ******************************************************************************/
 
28
 
 
29
#ifndef SHAREDLGIMPL_H
 
30
#define SHAREDLGIMPL_H
 
31
 
 
32
 
 
33
/**
 
34
 * @author Jan Schäfer
 
35
 **/
 
36
 
 
37
#include <q3ptrlist.h>
 
38
#include <QDialog>
 
39
#include <K3Process>
 
40
 
 
41
#include <ui_share.h>
 
42
 
 
43
class SambaShare;
 
44
class QWidget;
 
45
class UserTabImpl;
 
46
class HiddenFileView;
 
47
class DictManager;
 
48
class KPageWidget;
 
49
 
 
50
/**
 
51
 * This class implements the share.ui interface
 
52
 **/
 
53
class ShareDlgImpl : public QDialog, public Ui::KcmShareDlg
 
54
{
 
55
Q_OBJECT
 
56
 
 
57
public :
 
58
 
 
59
  ShareDlgImpl(QWidget* parent, SambaShare* share);
 
60
  ~ShareDlgImpl();
 
61
 
 
62
  bool hasChanged() { return m_changed; }
 
63
  
 
64
protected :
 
65
 
 
66
        /**
 
67
   * Fills all dialog fields with the values
 
68
   * of the SambaShare object
 
69
   **/
 
70
  void initDialog();
 
71
  
 
72
  /**
 
73
   * The share object to change with this dialog
 
74
   **/
 
75
        SambaShare* _share;
 
76
 
 
77
  HiddenFileView* _fileView;
 
78
  UserTabImpl* _userTab;
 
79
  KPageWidget* _janus;
 
80
  bool m_changed;
 
81
  DictManager* _dictMngr;
 
82
 
 
83
  void loadHiddenFilesView();
 
84
  void initAdvancedTab();
 
85
 
 
86
protected slots:
 
87
        virtual void accept();
 
88
  virtual void homeChkToggled(bool);
 
89
  virtual void accessModifierBtnClicked();
 
90
  virtual void changedSlot();
 
91
  virtual void pathUrlRq_textChanged( const QString & );
 
92
  void buttonHelp_clicked();
 
93
  void oplocksChk_toggled( bool b);
 
94
  void tabChangedSlot(QWidget* w);
 
95
  void publicBaseChk_toggled( bool b);
 
96
  void lockingChk_toggled( bool b);
 
97
  void oplockContentionLimitSpin_valueChanged( int i);
 
98
  void fakeOplocksChk_toggled( bool b);
 
99
  void storeDosAttributesChk_toggled( bool b);
 
100
  void checkValues();
 
101
  void userOnlyChk_toggled( bool b);
 
102
  void guestOnlyChk_toggled( bool b);
 
103
 
 
104
signals:
 
105
  void changed();
 
106
};
 
107
 
 
108
 
 
109
#endif