Changeset View
Changeset View
Standalone View
Standalone View
knetattach/knetattach.h
Show All 16 Lines | 1 | /* | |||
---|---|---|---|---|---|
17 | Boston, MA 02110-1301, USA. | 17 | Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef KNETATTACH_H | 20 | #ifndef KNETATTACH_H | ||
21 | #define KNETATTACH_H | 21 | #define KNETATTACH_H | ||
22 | 22 | | |||
23 | #include "ui_knetattach.h" | 23 | #include "ui_knetattach.h" | ||
24 | 24 | | |||
25 | class KUrl; | 25 | class QUrl; | ||
26 | | ||||
26 | class KNetAttach : public QWizard, private Ui_KNetAttach | 27 | class KNetAttach : public QWizard, private Ui_KNetAttach | ||
27 | { | 28 | { | ||
28 | Q_OBJECT | 29 | Q_OBJECT | ||
29 | 30 | | |||
30 | public: | 31 | public: | ||
31 | explicit KNetAttach( QWidget* parent = nullptr ); | 32 | explicit KNetAttach( QWidget* parent = nullptr ); | ||
32 | 33 | | |||
33 | public slots: | 34 | public slots: | ||
34 | virtual void setInformationText( const QString & type ); | 35 | virtual void setInformationText( const QString & type ); | ||
35 | 36 | | |||
36 | private: | 37 | private: | ||
37 | QString _type; | 38 | QString _type; | ||
38 | 39 | | |||
39 | bool doConnectionTest( const KUrl & url ); | 40 | bool doConnectionTest(const QUrl &url ); | ||
40 | bool updateForProtocol( const QString & protocol ); | 41 | bool updateForProtocol( const QString & protocol ); | ||
41 | 42 | | |||
42 | private slots: | 43 | private slots: | ||
43 | void updateParametersPageStatus(); | 44 | void updateParametersPageStatus(); | ||
44 | bool validateCurrentPage() override; | 45 | bool validateCurrentPage() override; | ||
45 | void updatePort( bool encryption ); | 46 | void updatePort( bool encryption ); | ||
46 | void updateFinishButtonText( bool save ); | 47 | void updateFinishButtonText( bool save ); | ||
47 | void slotHelpClicked(); | 48 | void slotHelpClicked(); | ||
48 | void slotPageChanged( int ); | 49 | void slotPageChanged( int ); | ||
49 | }; | 50 | }; | ||
50 | 51 | | |||
51 | #endif | 52 | #endif |