File indexing completed on 2024-11-10 07:35:52

0001 /*
0002     The configuration page for the network settings of Smb4K
0003 
0004     SPDX-FileCopyrightText: 2003-2023 Alexander Reinholdt <alexander.reinholdt@kdemail.net>
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #ifndef SMB4KCONFIGPAGENETWORK_H
0009 #define SMB4KCONFIGPAGENETWORK_H
0010 
0011 // Qt includes
0012 #include <QTabWidget>
0013 
0014 /**
0015  * This is the configuration tab for the network settings
0016  * of Smb4K.
0017  *
0018  * @author Alexander Reinholdt <alexander.reinholdt@kdemail.net>
0019  */
0020 
0021 class Smb4KConfigPageNetwork : public QTabWidget
0022 {
0023     Q_OBJECT
0024 
0025 public:
0026     /**
0027      * The constructor
0028      *
0029      * @param parent        The parent widget
0030      */
0031     explicit Smb4KConfigPageNetwork(QWidget *parent = nullptr);
0032 
0033     /**
0034      * The destructor
0035      */
0036     ~Smb4KConfigPageNetwork();
0037 
0038 protected Q_SLOTS:
0039     /**
0040      * This slot is called when the button for setting the SMB protocol
0041      * versions is toggled.
0042      */
0043     void slotSetProtocolVersionsToggled(bool on);
0044 
0045     /**
0046      * This slot is called when the button for setting the Wake-On-LAN
0047      * feature is toggled.
0048      */
0049     void slotEnableWakeOnLanFeatureToggled(bool on);
0050 
0051 private:
0052     QWidget *m_protocolVersionsWidget;
0053     QWidget *m_waitingTimeWidget;
0054 };
0055 #endif