-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathactionpage.h
More file actions
51 lines (37 loc) · 965 Bytes
/
actionpage.h
File metadata and controls
51 lines (37 loc) · 965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright Arnt Gulbrandsen, arnt@gulbrandsen.priv.no.
#ifndef ACTIONPAGE_H
#define ACTIONPAGE_H
#include <QWizardPage>
#include "backupwizard.h"
#include "includepage.h"
#include <QLineEdit>
#include <QTextEdit>
#include <QPushButton>
#include <QProcess>
class ActionPage: public QWizardPage
{
Q_OBJECT
public:
ActionPage( BackupWizard * parent, IncludePage * );
void cleanupPage() override;
bool validatePage() override;
private:
QString shQuoted( const QString & ) const;
QStringList commandLine( const QString & ) const;
private slots:
void performBackup();
void saveScript();
void read();
void finish(int code, QProcess::ExitStatus status);
private:
int archived;
QTextEdit * unusualOutput;
QLineEdit * lastArchived;
QByteArray partialLine;
QPushButton * writeScript;
QPushButton * backup;
QProcess * tarsnap;
BackupWizard * w;
IncludePage * inclusions;
};
#endif