kimportdlg.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef KIMPORTDLG_H
00020 #define KIMPORTDLG_H
00021
00022
00023
00024
00025 #include <qstring.h>
00026 #include <qlineedit.h>
00027 #include <qcheckbox.h>
00028
00029
00030
00031
00032 #include <kurl.h>
00033 #include <kcombobox.h>
00034
00035
00036
00037
00038 #include "../dialogs/kimportdlgdecl.h"
00039
00054 class KImportDlg : public KImportDlgDecl
00055 {
00056 Q_OBJECT
00057
00058 public:
00062 KImportDlg(QWidget *parent, const char *name = 0);
00063
00065 ~KImportDlg();
00066
00069 const QString filename(void) const { return m_qlineeditFile->text(); };
00070
00073 const QString profile(void) const { return m_profileComboBox->currentText(); };
00074
00075 protected slots:
00077 void slotBrowse();
00078
00080 void slotFileTextChanged(const QString& text);
00081
00085 void slotNewProfile(void);
00086
00087 void slotOkClicked(void);
00088
00089 void slotSelectProfile(const QString& text);
00090
00091 private:
00103 void loadProfiles(const bool selectLast = false);
00104
00112 void addCategories(QStringList& strList, const QString& id, const QString& leadIn) const;
00113
00114 void readConfig(void);
00115 void writeConfig(void);
00116 };
00117
00118 #endif