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 30 2005-09-28 23:32:28Z 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 | {
|
---|
36 | Q_OBJECT
|
---|
37 |
|
---|
38 | friend void *XMondoRestore_preparer_thread (void *arg);
|
---|
39 |
|
---|
40 | public:
|
---|
41 | XMondoRestore (QWidget *parent, QButtonGroup *mediaType, QLineEdit *device, QLineEdit *nfsRemoteDir, QLineEdit *filelistFilter);
|
---|
42 | virtual ~XMondoRestore();
|
---|
43 |
|
---|
44 | virtual void go();
|
---|
45 | bool good() {
|
---|
46 | return ok;
|
---|
47 | }
|
---|
48 | bool isSetupDone() {
|
---|
49 | return doneSetup;
|
---|
50 | }
|
---|
51 |
|
---|
52 | public slots:
|
---|
53 | void slotAbortRestore();
|
---|
54 |
|
---|
55 | protected:
|
---|
56 | bool ok;
|
---|
57 | bool doneSetup;
|
---|
58 |
|
---|
59 | QButtonGroup *rMediaType;
|
---|
60 | QLineEdit *rDevice, *rNFSRemoteDir, *rFilter;
|
---|
61 |
|
---|
62 | QWidget *files;
|
---|
63 | QLabel *fStatusMsg;
|
---|
64 | QListView *fList;
|
---|
65 | QLabel *fRestoreDirLabel;
|
---|
66 | QLineEdit *fRestoreDir;
|
---|
67 |
|
---|
68 | QString tempdir, filelistLocation, cfgLocation, cdMountpoint;
|
---|
69 |
|
---|
70 | pthread_t preparer_thread;
|
---|
71 |
|
---|
72 | s_bkpinfo *bkpinfo;
|
---|
73 |
|
---|
74 | RestoreThread *th;
|
---|
75 | };
|
---|
76 |
|
---|
77 | #endif
|
---|
78 |
|
---|