1
// KDat - a tar-based DAT archiver
2
// Copyright (C) 1998-2000 Sean Vyain, svyain@mail.tds.net
3
// Copyright (C) 2001-2002 Lawrence Widman, kdat@cardiothink.com
5
// This program is free software; you can redistribute it and/or modify
6
// it under the terms of the GNU General Public License as published by
7
// the Free Software Foundation; either version 2 of the License, or
8
// (at your option) any later version.
10
// This program is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU General Public License for more details.
15
// You should have received a copy of the GNU General Public License
16
// along with this program; if not, write to the Free Software
17
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25
#include <QTimerEvent>
39
* @short Status dialog for backing up files.
41
class BackupDlg : public QDialog {
44
TarParser* _tarParser;
57
QLabel* _timeRemaining;
58
QLabel* _kbytesWritten;
59
QLabel* _transferRate;
77
void slotProcessExited( K3Process* proc );
78
void slotStdout( K3Process* proc, char* buf, int len );
81
void slotEntry( const QString& name, int size, int mtime, int record );
84
void timerEvent( QTimerEvent* e );
87
* Create a backup dialog.
89
* @param archiveName The name for the new archive.
90
* @param workingDir The directory to backup from.
91
* @param files The list of files to backup.
92
* @param oneFilesystem TRUE means do not follow symbolic links across filesystems.
93
* @param incremental TRUE mean do a GNU listed incremental backup.
94
* @param snapshot The name of the snapshot file for an incremental backup.
95
* @param removeSnapshot Remove the snapshot before backing up.
96
* @param archiveSize The estimate size of the archive in kilobytes.
97
* @param tape The tape index to add the archive to.
98
* @param parent The parent widget for this dialog.
99
* @param name The name of this widget.
101
BackupDlg( const QString & archiveName, const QString & workingDir, const QStringList& files, bool oneFilesystem, bool incremental,
102
const QString & snapshot, bool removeSnapshot, int archiveSize, Tape* tape,
103
QWidget* parent = 0, const char* name = 0 );
106
* Destroy the backup dialog.