SVN_SILENT made messages (.desktop file)
[kdeadmin.git] / kdat / VerifyOptDlg.h
blob2940ff2c2fb761063186490a036a803907bd9397
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
4 //
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.
9 //
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
19 #ifndef _VerifyOptDlg_h_
20 #define _VerifyOptDlg_h_
22 #include <qdialog.h>
25 class QLineEdit;
27 /**
28 * @short Display/edit the information for performing a verify/restore operation.
30 * The verify and restore operations are similiar enough that their options
31 * have been combined into a single dialog.
33 class VerifyOptDlg : public QDialog {
34 Q_OBJECT
35 bool _restore;
36 QString _workingDir;
37 QLineEdit* _entry;
38 private slots:
39 void okClicked();
40 void slotBrowse();
41 public:
42 /**
43 * Create a new verify/restore options dialog.
45 * @param def The default working directory.
46 * @param files The list of files that will be verified/restored.
47 * @param restore TRUE means we are doing a restore, FALSE means we are doing a verify.
48 * @param parent The parent widget for the dialog.
49 * @param name The name for the dialog.
51 VerifyOptDlg( const QString & def, const QStringList& files, bool restore = FALSE, QWidget* parent = 0, const char* name = 0 );
53 /**
54 * Destroy the verify/restore options dialog.
56 ~VerifyOptDlg();
58 /**
59 * Get thre working directory entered by the user.
61 * @return The working directory for the verify/restore operation.
63 QString getWorkingDirectory();
66 #endif