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 |
|
---|
24 | class QButtonGroup;
|
---|
25 | class QLineEdit;
|
---|
26 | class QLabel;
|
---|
27 | class QListView;
|
---|
28 |
|
---|
29 | class RestoreThread;
|
---|
30 | /**
|
---|
31 | * The class that handles all the restore functions.
|
---|
32 | * @author Joshua Oreman
|
---|
33 | */
|
---|
34 | class 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
|
---|