2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#ifndef QSQLCONNECTIONDIALOG_H
|
|
|
|
#define QSQLCONNECTIONDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
2024-01-12 21:25:23 +00:00
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class QSqlConnectionDialogUi;
|
|
|
|
}
|
|
|
|
QT_END_NAMESPACE
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2024-01-12 21:25:23 +00:00
|
|
|
class QSqlConnectionDialog : public QDialog
|
2011-04-27 10:05:43 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2017-07-20 14:39:01 +00:00
|
|
|
QSqlConnectionDialog(QWidget *parent = nullptr);
|
2011-04-27 10:05:43 +00:00
|
|
|
~QSqlConnectionDialog();
|
|
|
|
|
|
|
|
QString driverName() const;
|
|
|
|
QString databaseName() const;
|
|
|
|
QString userName() const;
|
|
|
|
QString password() const;
|
|
|
|
QString hostName() const;
|
|
|
|
int port() const;
|
|
|
|
bool useInMemoryDatabase() const;
|
|
|
|
|
|
|
|
private slots:
|
2024-01-12 21:25:23 +00:00
|
|
|
void onOkButton();
|
|
|
|
void onDbCheckBox();
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
private:
|
2024-01-12 21:25:23 +00:00
|
|
|
Ui::QSqlConnectionDialogUi *m_ui;
|
2011-04-27 10:05:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|