Fix crash if key bindings specified in profile cannot be found. Improve
[personal-kdebase.git] / apps / konqueror / settings / kio / useragentselectordlg.h
blob6e33d0df209b84ae017c27660475996fa5064420
1 /**
2 * Copyright (c) 2001 Dawit Alemayehu <adawit@kde.org>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
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
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 #ifndef USERAGENTSELECTORDLG_H
20 #define USERAGENTSELECTORDLG_H
22 // KDE
23 #include <kdialog.h>
25 // Forward declarations
26 class UserAgentInfo;
27 class UserAgentSelectorWidget;
29 class UserAgentSelectorDlg : public KDialog
31 Q_OBJECT
33 public:
34 explicit UserAgentSelectorDlg( const QString& caption, UserAgentInfo* info,
35 QWidget *parent = 0, Qt::WindowFlags f = 0 );
36 ~UserAgentSelectorDlg();
38 void setSiteName( const QString& );
39 void setIdentity( const QString& );
41 QString siteName();
42 QString identity();
43 QString alias();
45 protected Q_SLOTS:
46 void onHostNameChanged( const QString& );
47 void onAliasChanged( const QString& );
49 private:
50 UserAgentInfo* m_userAgentInfo;
51 UserAgentSelectorWidget* m_widget;
54 #endif // USERAGENTSELECTORDLG_H