File indexing completed on 2024-04-14 15:05:27

0001 /***************************************************************************
0002     Private helper classes for Smb4KCustomOptionsManager class
0003                              -------------------
0004     begin                : Fr 29 Apr 2011
0005     copyright            : (C) 2011-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 SMB4KCUSTOMOPTIONSMANAGER_P_H
0027 #define SMB4KCUSTOMOPTIONSMANAGER_P_H
0028 
0029 // application specific includes
0030 #include "smb4kcustomoptionsmanager.h"
0031 #include "smb4kglobal.h"
0032 #include "smb4kcustomoptions.h"
0033 
0034 // Qt includes
0035 #include <QDialog>
0036 
0037 class Smb4KCustomOptionsDialog : public QDialog
0038 {
0039   Q_OBJECT
0040   
0041   public:
0042     /**
0043      * Constructor
0044      */
0045     explicit Smb4KCustomOptionsDialog(const OptionsPtr &options, QWidget *parent = 0);
0046     
0047     /**
0048      * Destructor
0049      */
0050     ~Smb4KCustomOptionsDialog();
0051     
0052   protected Q_SLOTS:
0053     void slotSetDefaultValues();
0054     void slotCheckValues();
0055     void slotOKClicked();
0056     void slotEnableWOLFeatures(const QString &mac);
0057     void slotCifsExtensionsSupport(bool support);
0058     
0059   private:
0060     void setupView();
0061     bool checkDefaultValues();
0062     void setDefaultValues();
0063     void saveValues();
0064     OptionsPtr m_options;
0065 };
0066 
0067 
0068 class Smb4KCustomOptionsManagerPrivate
0069 {
0070   public:
0071     QList<OptionsPtr> options;
0072 };
0073 
0074 
0075 class Smb4KCustomOptionsManagerStatic
0076 {
0077   public:
0078     Smb4KCustomOptionsManager instance;
0079 };
0080 
0081 #endif