File indexing completed on 2024-04-28 05:33:25
0001 /* 0002 SPDX-FileCopyrightText: 2004 George Staikos <staikos@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "ui_knetattach.h" 0010 0011 class QUrl; 0012 0013 class KNetAttach : public QWizard, private Ui_KNetAttach 0014 { 0015 Q_OBJECT 0016 0017 public: 0018 explicit KNetAttach(QWidget *parent = nullptr); 0019 0020 public Q_SLOTS: 0021 virtual void setInformationText(const QString &type); 0022 0023 private: 0024 QString _type; 0025 0026 bool doConnectionTest(const QUrl &url); 0027 bool updateForProtocol(const QString &protocol); 0028 0029 private Q_SLOTS: 0030 void updateParametersPageStatus(); 0031 bool validateCurrentPage() override; 0032 void updatePort(bool encryption); 0033 void updateFinishButtonText(bool save); 0034 void slotHelpClicked(); 0035 void slotPageChanged(int); 0036 };