1 | /* |
2 | Copyright (C) 2004 George Staikos <staikos@kde.org> |
3 | |
4 | This program is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU General Public |
6 | License as published by the Free Software Foundation; either |
7 | version 2 of the License, or (at your option) any later version. |
8 | |
9 | This program is distributed in the hope that it will be useful, |
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 | General Public License for more details. |
13 | |
14 | You should have received a copy of the GNU General Public License |
15 | along with this program; see the file COPYING. If not, write to |
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
17 | Boston, MA 02110-1301, USA. |
18 | */ |
19 | |
20 | #ifndef KNETATTACH_H |
21 | #define KNETATTACH_H |
22 | |
23 | #include "ui_knetattach.h" |
24 | |
25 | class KNetAttach : public QWizard, private Ui_KNetAttach |
26 | { |
27 | Q_OBJECT |
28 | |
29 | public: |
30 | explicit KNetAttach( QWidget* parent = 0 ); |
31 | |
32 | public slots: |
33 | virtual void setInformationText( const QString & type ); |
34 | |
35 | private: |
36 | QString _type; |
37 | |
38 | bool doConnectionTest( const KUrl & url ); |
39 | bool updateForProtocol( const QString & protocol ); |
40 | |
41 | private slots: |
42 | void updateParametersPageStatus(); |
43 | bool validateCurrentPage(); |
44 | void updatePort( bool encryption ); |
45 | void updateFinishButtonText( bool save ); |
46 | void slotHelpClicked(); |
47 | void slotPageChanged( int ); |
48 | }; |
49 | |
50 | #endif |
51 | |