File indexing completed on 2024-07-14 15:13:54

0001 /***************************************************************************
0002     The configuration page for the mount options
0003                              -------------------
0004     begin                : So Mär 22 2015
0005     copyright            : (C) 2015-2019 by Alexander Reinholdt
0006     email                : alexander.reinholdt@kdemail.net
0007  ***************************************************************************/
0008 
0009 /***************************************************************************
0010  *   This program is free software; you can redistribute it and/or modify  *
0011  *   it under the terms of the GNU General Public License as published by  *
0012  *   the Free Software Foundation; either version 2 of the License, or     *
0013  *   (at your option) any later version.                                   *
0014  *                                                                         *
0015  *   This program is distributed in the hope that it will be useful, but   *
0016  *   WITHOUT ANY WARRANTY; without even the implied warranty of            *
0017  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
0018  *   General Public License for more details.                              *
0019  *                                                                         *
0020  *   You should have received a copy of the GNU General Public License     *
0021  *   along with this program; if not, write to the                         *
0022  *   Free Software Foundation, Inc., 51 Franklin Street, Suite 500, Boston,*
0023  *   MA 02110-1335, USA                                                    *
0024  ***************************************************************************/
0025 
0026 #ifndef SMB4KCONFIGPAGEMOUNTING_H
0027 #define SMB4KCONFIGPAGEMOUNTING_H
0028 
0029 // Qt includes
0030 #include <QTabWidget>
0031 
0032 /**
0033  * This configuration page contains the mount options
0034  * 
0035  * @author Alexander Reinholdt <alexander.reinholdt@kdemail.net>
0036  * @since 2.0.0
0037  */
0038 
0039 class Smb4KConfigPageMounting : public QTabWidget
0040 {
0041   Q_OBJECT
0042   
0043   public:
0044     /**
0045      * The constructor
0046      */
0047     explicit Smb4KConfigPageMounting(QWidget* parent = 0);
0048     
0049     /**
0050      * The destructor
0051      */
0052     virtual ~Smb4KConfigPageMounting();
0053     
0054   protected Q_SLOTS:
0055     /**
0056      * Sets the new general user ID.
0057      *
0058      * @param action              The action that represents the new user.
0059      */
0060     void slotNewUserTriggered(QAction *action);
0061 
0062     /**
0063      * Sets the new general group ID.
0064      *
0065      * @param action              The action that represents the new group.
0066      */
0067     void slotNewGroupTriggered(QAction *action);
0068     
0069     /**
0070      * Enable / disable the options that are only necessary when the servers
0071      * do not support the CIFS Unix extensions.
0072      * 
0073      * @param checked             TRUE if the button is checked
0074      */
0075     void slotCIFSUnixExtensionsSupport(bool checked);
0076     
0077     /**
0078      * This slot is activated when the additional CIFS options are to be
0079      * edited (Linux only).
0080      */
0081     void slotAdditionalCIFSOptions();
0082     
0083     /**
0084      * This slot is activated when the setting of the character set usage is changed
0085      * (BSD only).
0086      */
0087     void slotCharacterSets(bool on);
0088     
0089   private:
0090     /**
0091      * Set up the widget
0092      */
0093     void setupWidget();
0094 };
0095 
0096 #endif