diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-04 22:38:03 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-04 22:38:03 +0000 |
commit | dadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (patch) | |
tree | 99e72842fe687baea16376a147619b6048d7e441 /kmymoney2/dialogs/kselectdatabasedlg.h | |
download | kmymoney-dadc34655c3ab961b0b0b94a10eaaba710f0b5e8.tar.gz kmymoney-dadc34655c3ab961b0b0b94a10eaaba710f0b5e8.zip |
Added kmymoney
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239792 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmymoney2/dialogs/kselectdatabasedlg.h')
-rw-r--r-- | kmymoney2/dialogs/kselectdatabasedlg.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/kmymoney2/dialogs/kselectdatabasedlg.h b/kmymoney2/dialogs/kselectdatabasedlg.h new file mode 100644 index 0000000..bc5a782 --- /dev/null +++ b/kmymoney2/dialogs/kselectdatabasedlg.h @@ -0,0 +1,64 @@ +/*************************************************************************** + kselectdatabase.h + ------------------- + copyright : (C) 2005 by Tony Bloomfield + author : Tony Bloomfield + email : [email protected] + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef KSELECTDATABASEDLG_H +#define KSELECTDATABASEDLG_H + +// ---------------------------------------------------------------------------- +// QT Includes +#include <qlistbox.h> +#include <qlineedit.h> +#include <qlabel.h> + +// ---------------------------------------------------------------------------- +// KDE Includes +#include <kurl.h> + +// ---------------------------------------------------------------------------- +// Project Includes +#include "kselectdatabasedlgdecl.h" +#include "../mymoney/storage/mymoneystoragesql.h" +#include "kmymoney/kguiutils.h" + +class KSelectDatabaseDlg : public KSelectDatabaseDlgDecl +{ +Q_OBJECT +public: + KSelectDatabaseDlg(QWidget *parent = 0, const char *name = 0); + KSelectDatabaseDlg(KURL openURL, QWidget *parent = 0, const char *name = 0); + ~KSelectDatabaseDlg(); + /** Set the mode of this dialog + * @param - openMode (IO_ReadWrite = open database; IO_WriteOnly = saveas database) + **/ + void setMode(int openMode); + /** Return URL of database + * @return - pseudo-URL of database selected by user + **/ + const KURL selectedURL(); + +public slots: + void slotDriverSelected(QListBoxItem *driver); + void slotHelp(); + void slotGenerateSQL(); +private: + void setError(); + int m_mode; + MyMoneyDbDrivers m_map; + kMandatoryFieldGroup* m_requiredFields; +}; + +#endif |