2
Copyright (C) 2010 Marco Mentasti <marcomentasti@gmail.com>
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Library General Public
6
License version 2 as published by the Free Software Foundation.
8
This library is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
Library General Public License for more details.
13
You should have received a copy of the GNU Library General Public License
14
along with this library; see the file COPYING.LIB. If not, write to
15
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16
Boston, MA 02110-1301, USA.
19
#ifndef CONNECTIONWIZARD_H
20
#define CONNECTIONWIZARD_H
28
#include "connection.h"
33
class ConnectionWizard : public QWizard
45
ConnectionWizard(SQLManager *manager, Connection *conn, QWidget *parent=0, Qt::WindowFlags flags = 0);
48
SQLManager *manager() { return m_manager; }
49
Connection *connection() { return m_connection; }
52
SQLManager *m_manager;
53
Connection *m_connection;
57
class ConnectionDriverPage : public QWizardPage
60
ConnectionDriverPage(QWidget *parent=0);
61
void initializePage();
65
KComboBox *driverComboBox;
68
class ConnectionStandardServerPage : public QWizardPage
71
ConnectionStandardServerPage(QWidget *parent=0);
72
~ConnectionStandardServerPage();
73
void initializePage();
74
virtual bool validatePage();
78
KLineEdit *hostnameLineEdit;
79
KLineEdit *usernameLineEdit;
80
KLineEdit *passwordLineEdit;
81
KLineEdit *databaseLineEdit;
82
KLineEdit *optionsLineEdit;
83
KIntSpinBox *portSpinBox;
86
class ConnectionSQLiteServerPage : public QWizardPage
89
ConnectionSQLiteServerPage(QWidget *parent=0);
90
void initializePage();
91
virtual bool validatePage();
95
// KLineEdit *pathLineEdit;
96
KUrlRequester *pathUrlRequester;
98
KLineEdit *optionsLineEdit;
101
class ConnectionSavePage : public QWizardPage
104
ConnectionSavePage(QWidget *parent=0);
105
void initializePage();
106
virtual bool validatePage();
110
KLineEdit *connectionNameLineEdit;
113
#endif // CONNECTIONWIZARD_H