You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
2.3 KiB
66 lines
2.3 KiB
13 years ago
|
/***************************************************************************
|
||
|
kselectdatabase.h
|
||
|
-------------------
|
||
|
copyright : (C) 2005 by Tony Bloomfield
|
||
|
author : Tony Bloomfield
|
||
|
email : tonybloom@users.sourceforge.net
|
||
|
***************************************************************************/
|
||
|
|
||
|
/***************************************************************************
|
||
|
* *
|
||
|
* 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
|
||
13 years ago
|
#include <tqlistbox.h>
|
||
|
#include <tqlineedit.h>
|
||
|
#include <tqlabel.h>
|
||
13 years ago
|
|
||
|
// ----------------------------------------------------------------------------
|
||
|
// KDE Includes
|
||
|
#include <kurl.h>
|
||
|
|
||
|
// ----------------------------------------------------------------------------
|
||
|
// Project Includes
|
||
|
#include "kselectdatabasedlgdecl.h"
|
||
|
#include "../mymoney/storage/mymoneystoragesql.h"
|
||
|
#include "kmymoney/kguiutils.h"
|
||
|
|
||
12 years ago
|
class TDESelectDatabaseDlg : public TDESelectDatabaseDlgDecl
|
||
13 years ago
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
13 years ago
|
public:
|
||
12 years ago
|
TDESelectDatabaseDlg(TQWidget *parent = 0, const char *name = 0);
|
||
|
TDESelectDatabaseDlg(KURL openURL, TQWidget *parent = 0, const char *name = 0);
|
||
|
~TDESelectDatabaseDlg();
|
||
13 years ago
|
/** 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:
|
||
13 years ago
|
void slotDriverSelected(TQListBoxItem *driver);
|
||
13 years ago
|
void slotHelp();
|
||
|
void slotGenerateSQL();
|
||
|
private:
|
||
|
void setError();
|
||
|
int m_mode;
|
||
|
MyMoneyDbDrivers m_map;
|
||
|
kMandatoryFieldGroup* m_requiredFields;
|
||
|
};
|
||
|
|
||
|
#endif
|