source: MondoRescue/branches/2.05/mondo/mondo/xmondo/xmondorestore.h@ 2708

Last change on this file since 2708 was 128, checked in by bcornec, 18 years ago

indent on all the C code

  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1/*********************************-*- C++ -*-*******************************
2 xmondorestore.h - restore functions
3 -----------------------------------
4 begin : Sun Nov 22 2003
5 copyright : (C) 2003 by Joshua Oreman
6 email : oremanj@get-linux.org
7 cvsid : $Id: xmondorestore.h 128 2005-11-19 01:27:41Z bcornec $
8 ***************************************************************************/
9
10/***************************************************************************
11 * *
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
16 * *
17 ***************************************************************************/
18
19#ifndef XMONDORESTORE_H
20#define XMONDORESTORE_H
21
22#include "xmondo.h"
23
24class QButtonGroup;
25class QLineEdit;
26class QLabel;
27class QListView;
28
29class RestoreThread;
30/**
31 * The class that handles all the restore functions.
32 * @author Joshua Oreman
33 */
34class XMondoRestore:public QObject {
35 Q_OBJECT friend void *XMondoRestore_preparer_thread(void *arg);
36
37 public:
38 XMondoRestore(QWidget * parent, QButtonGroup * mediaType,
39 QLineEdit * device, QLineEdit * nfsRemoteDir,
40 QLineEdit * filelistFilter);
41 virtual ~ XMondoRestore();
42
43 virtual void go();
44 bool good() {
45 return ok;
46 } bool isSetupDone() {
47 return doneSetup;
48 }
49
50 public slots:void slotAbortRestore();
51
52 protected:
53 bool ok;
54 bool doneSetup;
55
56 QButtonGroup *rMediaType;
57 QLineEdit *rDevice, *rNFSRemoteDir, *rFilter;
58
59 QWidget *files;
60 QLabel *fStatusMsg;
61 QListView *fList;
62 QLabel *fRestoreDirLabel;
63 QLineEdit *fRestoreDir;
64
65 QString tempdir, filelistLocation, cfgLocation, cdMountpoint;
66
67 pthread_t preparer_thread;
68
69 s_bkpinfo *bkpinfo;
70
71 RestoreThread *th;
72};
73
74#endif
Note: See TracBrowser for help on using the repository browser.