kimportdlg.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           kimportdlg.h  -  description
00003                              -------------------
00004     begin                : Wed May 16 2001
00005     copyright            : (C) 2001 by Michael Edwardes
00006     email                : mte@users.sourceforge.net
00007                              Javier Campos Morales <javi_c@ctv.es>
00008                              Felix Rodriguez <frodriguez@mail.wesleyan.edu>
00009  ***************************************************************************/
00010 
00011 /***************************************************************************
00012  *                                                                         *
00013  *   This program is free software; you can redistribute it and/or modify  *
00014  *   it under the terms of the GNU General Public License as published by  *
00015  *   the Free Software Foundation; either version 2 of the License, or     *
00016  *   (at your option) any later version.                                   *
00017  *                                                                         *
00018  ***************************************************************************/
00019 #ifndef KIMPORTDLG_H
00020 #define KIMPORTDLG_H
00021 
00022 // ----------------------------------------------------------------------------
00023 // QT Headers
00024 
00025 #include <qstring.h>
00026 #include <qlineedit.h>
00027 #include <qcheckbox.h>
00028 
00029 // ----------------------------------------------------------------------------
00030 // KDE Headers
00031 
00032 #include <kurl.h>
00033 #include <kcombobox.h>
00034 
00035 // ----------------------------------------------------------------------------
00036 // Project Headers
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

Generated on Wed Jan 26 13:03:17 2011 for KMyMoney by  doxygen 1.5.6