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
23
#include <q3ptrlist.h>
26
#include <QTimerEvent>
39
* @short Status dialog for verifying/restoring parts of an archive.
41
class VerifyDlg : public QDialog {
47
const RangeList& _ranges;
50
QLabel* _timeRemaining;
52
QLabel* _transferRate;
65
QString _lastFileName;
69
void slotProcessExited( K3Process* proc );
70
void slotStdout( K3Process* proc, char* buf, int len );
71
void slotWroteStdin( K3Process* proc );
76
void timerEvent( QTimerEvent* e );
79
* Create a new verify/restore dialog.
81
* @param workingDir The directory to restore files to or verify files against.
82
* @param fileno The tape file number of the archive to verify/restore.
83
* @param ranges A list of tar block ranges to read.
84
* @param restore TRUE means restore, FALSE means verify.
85
* @param parent The parent widget for the dialog.
86
* @param name The name of this widget.
88
VerifyDlg( const QString & workingDir, int fileno, const RangeList& ranges,
89
bool restore = FALSE, QWidget* parent = 0, const char* name = 0 );
92
* Destroy the verify/restore dialog.