summaryrefslogtreecommitdiffstats
path: root/kcontrol/konqhtml/khttpoptdlg.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /kcontrol/konqhtml/khttpoptdlg.h
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/konqhtml/khttpoptdlg.h')
-rw-r--r--kcontrol/konqhtml/khttpoptdlg.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/kcontrol/konqhtml/khttpoptdlg.h b/kcontrol/konqhtml/khttpoptdlg.h
new file mode 100644
index 000000000..36e3650b4
--- /dev/null
+++ b/kcontrol/konqhtml/khttpoptdlg.h
@@ -0,0 +1,49 @@
+// khttpoptdlg.h - extra HTTP configuration by Jacek Konieczy <jajcus@zeus.polsl.gliwice.pl>
+#ifndef __KHTTPOPTDLG_H
+#define __KHTTPOPTDLG_H
+
+#include <qlabel.h>
+#include <qlineedit.h>
+#include <qcheckbox.h>
+#include <qstring.h>
+
+#include <kcmodule.h>
+#include <kconfig.h>
+
+
+/**
+* Dialog for configuring HTTP Options like charset and language negotiation
+* and assuming that file got from HTTP is HTML if no Content-Type is given
+*/
+class KHTTPOptions : public KCModule
+{
+Q_OBJECT
+ public:
+ KHTTPOptions(KConfig *config, QString group, QWidget *parent = 0L, const char *name = 0L);
+
+ virtual void load();
+ virtual void load( bool useDefaults );
+ virtual void save();
+ virtual void defaults();
+
+ private:
+
+ KConfig *m_pConfig;
+ QString m_groupname;
+
+ // Acceptable languages "LANG" - locale selected languages
+ QLabel *lb_languages;
+ QLineEdit *le_languages;
+
+ // Acceptable charsets "CHARSET" - locale selected charset
+ QLabel *lb_charsets;
+ QLineEdit *le_charsets;
+
+ QString defaultCharsets;
+
+private slots:
+ void slotChanged();
+
+};
+
+#endif // __KHTTPOPTDLG_H