summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs/tdeselectdatabasedlg.h
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-01 17:25:32 -0600
committerTimothy Pearson <[email protected]>2013-02-01 17:25:32 -0600
commit89d8c2baa9b51d8da8511a54b9962155aa29c4c0 (patch)
tree5af383305d44c31dd8e499fe01c067f32e101029 /kmymoney2/dialogs/tdeselectdatabasedlg.h
parenta6000c6f2f1a03b34f15d1948f63f0c894f09451 (diff)
downloadkmymoney-89d8c2baa9b51d8da8511a54b9962155aa29c4c0.tar.gz
kmymoney-89d8c2baa9b51d8da8511a54b9962155aa29c4c0.zip
Fix FTBFS
Diffstat (limited to 'kmymoney2/dialogs/tdeselectdatabasedlg.h')
-rw-r--r--kmymoney2/dialogs/tdeselectdatabasedlg.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/kmymoney2/dialogs/tdeselectdatabasedlg.h b/kmymoney2/dialogs/tdeselectdatabasedlg.h
new file mode 100644
index 0000000..4fe2809
--- /dev/null
+++ b/kmymoney2/dialogs/tdeselectdatabasedlg.h
@@ -0,0 +1,65 @@
+/***************************************************************************
+ kselectdatabase.h
+ -------------------
+ copyright : (C) 2005 by Tony Bloomfield
+ author : Tony Bloomfield
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * 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 <tqlistbox.h>
+#include <tqlineedit.h>
+#include <tqlabel.h>
+
+// ----------------------------------------------------------------------------
+// KDE Includes
+#include <kurl.h>
+
+// ----------------------------------------------------------------------------
+// Project Includes
+#include "kselectdatabasedlgdecl.h"
+#include "../mymoney/storage/mymoneystoragesql.h"
+#include "kmymoney/kguiutils.h"
+
+class TDESelectDatabaseDlg : public TDESelectDatabaseDlgDecl
+{
+Q_OBJECT
+
+public:
+ TDESelectDatabaseDlg(TQWidget *parent = 0, const char *name = 0);
+ TDESelectDatabaseDlg(KURL openURL, TQWidget *parent = 0, const char *name = 0);
+ ~TDESelectDatabaseDlg();
+ /** 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(TQListBoxItem *driver);
+ void slotHelp();
+ void slotGenerateSQL();
+private:
+ void setError();
+ int m_mode;
+ MyMoneyDbDrivers m_map;
+ kMandatoryFieldGroup* m_requiredFields;
+};
+
+#endif