pgLab/pglab/BackupDialog.h
eelke 2230a4bd61 Lot of password related changes all over the place.
Password is no longer saved with the connection list.
Password is not entered along with other connection credentials.
Password is now asked for when required.
Still working on saving the password and auto retrieving it from the password manager.
2018-11-04 11:44:40 +01:00

44 lines
915 B
C++

#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 = nullptr);
~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