Switching to linux for development of pglab.
Switched from qmake to cmake. Code changes to make it compile.
This commit is contained in:
parent
dd9906dbd8
commit
04723a289b
142 changed files with 124 additions and 83 deletions
44
pglab/BackupDialog.h
Normal file
44
pglab/BackupDialog.h
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
#ifndef BACKUPDIALOG_H
|
||||
#define BACKUPDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include "ConnectionConfig.h"
|
||||
#include <QProcess>
|
||||
|
||||
namespace Ui {
|
||||
class BackupDialog;
|
||||
}
|
||||
|
||||
class QStringList;
|
||||
|
||||
class BackupDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit BackupDialog(QWidget *parent = 0);
|
||||
~BackupDialog();
|
||||
|
||||
void ConnectTo(QProcess *process);
|
||||
|
||||
void disconnectCurrentProcess();
|
||||
void setConfig(const ConnectionConfig &cfg);
|
||||
private:
|
||||
Ui::BackupDialog *ui;
|
||||
QProcess *m_process = nullptr;
|
||||
ConnectionConfig m_config;
|
||||
|
||||
void writeOutput(QString s);
|
||||
|
||||
void setParams(QStringList &args);
|
||||
private slots:
|
||||
|
||||
void on_process_readyRead();
|
||||
void on_process_errorOccurred(QProcess::ProcessError error);
|
||||
void on_process_finished(int exitCode, QProcess::ExitStatus exitStatus);
|
||||
void on_btnStart_clicked();
|
||||
void on_backupFormat_currentIndexChanged(int index);
|
||||
void on_selectDestination_clicked();
|
||||
};
|
||||
|
||||
#endif // BACKUPDIALOG_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue