~ubuntu-branches/ubuntu/quantal/smb4k/quantal

« back to all changes in this revision

Viewing changes to core/smb4kcustomoptionsmanager_p.h

  • Committer: Package Import Robot
  • Author(s): Fathi Boudra
  • Date: 2012-05-19 18:54:34 UTC
  • mfrom: (1.1.20)
  • Revision ID: package-import@ubuntu.com-20120519185434-duffny2n87214n1n
Tags: 1.0.1-1
* New upstream release.
* Update debian/compat: bump to 9.
* Update debian/control:
  - bump debhelper to 9.
  - bump kdelibs5-dev build dependency to 4:4.4.0.
  - bump Standards-Version to 3.9.3 (no changes needed).
  - Replace smbfs dependency by cifs-utils. (Closes: #638162)
* Update debian/copyright:
  - update upstream URL.
  - update upstream e-mail.
* Update debian/smb4k.lintian-overrides file.
* Update debian/watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
    smb4kcustomoptionsmanager_p - Private helper classes for 
 
3
    Smb4KCustomOptionsManager class
 
4
                             -------------------
 
5
    begin                : Fr 29 Apr 2011
 
6
    copyright            : (C) 2011 by Alexander Reinholdt
 
7
    email                : alexander.reinholdt@kdemail.net
 
8
 ***************************************************************************/
 
9
 
 
10
/***************************************************************************
 
11
 *   This program is free software; you can redistribute it and/or modify  *
 
12
 *   it under the terms of the GNU General Public License as published by  *
 
13
 *   the Free Software Foundation; either version 2 of the License, or     *
 
14
 *   (at your option) any later version.                                   *
 
15
 *                                                                         *
 
16
 *   This program is distributed in the hope that it will be useful, but   *
 
17
 *   WITHOUT ANY WARRANTY; without even the implied warranty of            *
 
18
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
 
19
 *   General Public License for more details.                              *
 
20
 *                                                                         *
 
21
 *   You should have received a copy of the GNU General Public License     *
 
22
 *   along with this program; if not, write to the                         *
 
23
 *   Free Software Foundation, 51 Franklin Street, Suite 500, Boston,      *
 
24
 *   MA 02110-1335, USA                                                    *
 
25
 ***************************************************************************/
 
26
 
 
27
#ifndef SMB4KCUSTOMOPTIONSMANAGER_P_H
 
28
#define SMB4KCUSTOMOPTIONSMANAGER_P_H
 
29
 
 
30
#ifdef HAVE_CONFIG_H
 
31
#include <config.h>
 
32
#endif
 
33
 
 
34
// Qt includes
 
35
#include <QCheckBox>
 
36
 
 
37
// KDE includes
 
38
#include <kdialog.h>
 
39
#include <klineedit.h>
 
40
#include <knuminput.h>
 
41
#include <kcombobox.h>
 
42
 
 
43
// application specific includes
 
44
#include <smb4kcustomoptionsmanager.h>
 
45
#include <smb4kcustomoptions.h>
 
46
 
 
47
class Smb4KCustomOptionsDialog : public KDialog
 
48
{
 
49
  Q_OBJECT
 
50
  
 
51
  public:
 
52
    /**
 
53
     * Constructor
 
54
     */
 
55
    Smb4KCustomOptionsDialog( Smb4KCustomOptions *options,
 
56
                              QWidget *parent = 0 );
 
57
    
 
58
    /**
 
59
     * Destructor
 
60
     */
 
61
    ~Smb4KCustomOptionsDialog();
 
62
    
 
63
  protected slots:
 
64
    void slotSetDefaultValues();
 
65
    void slotCheckValues();
 
66
    void slotOKClicked();
 
67
    
 
68
  private:
 
69
    void setupView();
 
70
    bool defaultValues();
 
71
    Smb4KCustomOptions *m_options;
 
72
    KIntNumInput *m_smb_port;
 
73
#ifndef Q_OS_FREEBSD
 
74
    KIntNumInput *m_fs_port;
 
75
    KComboBox *m_write_access;
 
76
#endif
 
77
    KComboBox *m_protocol_hint;
 
78
    KComboBox *m_user_id;
 
79
    KComboBox *m_group_id;
 
80
    QCheckBox *m_kerberos;
 
81
};
 
82
 
 
83
 
 
84
class Smb4KCustomOptionsManagerPrivate
 
85
{
 
86
  public:
 
87
    Smb4KCustomOptionsManagerPrivate();
 
88
    ~Smb4KCustomOptionsManagerPrivate();
 
89
    Smb4KCustomOptionsManager instance;
 
90
};
 
91
 
 
92
#endif