37 lines
770 B
C++
37 lines
770 B
C++
#ifndef IMPORTCONFIG_H
|
|
#define IMPORTCONFIG_H
|
|
|
|
#include <QWidget>
|
|
#include <QSqlDatabase>
|
|
#include <QSqlQuery>
|
|
#include <QSqlError>
|
|
#include "global.h"
|
|
#include "ftpclient.h"
|
|
namespace Ui {
|
|
class CImportConfig;
|
|
}
|
|
|
|
class CImportConfig : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit CImportConfig(QWidget *parent = nullptr);
|
|
~CImportConfig();
|
|
|
|
private slots:
|
|
void on_pushButton_importpath_clicked();
|
|
|
|
void on_pushButton_confirm_clicked();
|
|
|
|
private:
|
|
Ui::CImportConfig *ui;
|
|
QString import_path;
|
|
QSqlDatabase database;
|
|
int ExeSqlData(QString& strSql);
|
|
bool copyFile(const QString &sourceFile, const QString &destinationFile);
|
|
bool copyDirectory(const QString &sourceDir, const QString &destinationDir);
|
|
};
|
|
|
|
#endif // IMPORTCONFIG_H
|