[1] | 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
|
---|
[128] | 7 | cvsid : $Id: xmondorestore.h 128 2005-11-19 01:27:41Z bcornec $
|
---|
[1] | 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 | */
|
---|
[128] | 34 | class XMondoRestore:public QObject {
|
---|
| 35 | Q_OBJECT friend void *XMondoRestore_preparer_thread(void *arg);
|
---|
[1] | 36 |
|
---|
[128] | 37 | public:
|
---|
| 38 | XMondoRestore(QWidget * parent, QButtonGroup * mediaType,
|
---|
| 39 | QLineEdit * device, QLineEdit * nfsRemoteDir,
|
---|
| 40 | QLineEdit * filelistFilter);
|
---|
| 41 | virtual ~ XMondoRestore();
|
---|
[1] | 42 |
|
---|
[128] | 43 | virtual void go();
|
---|
| 44 | bool good() {
|
---|
| 45 | return ok;
|
---|
| 46 | } bool isSetupDone() {
|
---|
| 47 | return doneSetup;
|
---|
| 48 | }
|
---|
[1] | 49 |
|
---|
[128] | 50 | public slots:void slotAbortRestore();
|
---|
[1] | 51 |
|
---|
[128] | 52 | protected:
|
---|
| 53 | bool ok;
|
---|
| 54 | bool doneSetup;
|
---|
[1] | 55 |
|
---|
[128] | 56 | QButtonGroup *rMediaType;
|
---|
| 57 | QLineEdit *rDevice, *rNFSRemoteDir, *rFilter;
|
---|
[1] | 58 |
|
---|
[128] | 59 | QWidget *files;
|
---|
| 60 | QLabel *fStatusMsg;
|
---|
| 61 | QListView *fList;
|
---|
| 62 | QLabel *fRestoreDirLabel;
|
---|
| 63 | QLineEdit *fRestoreDir;
|
---|
[1] | 64 |
|
---|
[128] | 65 | QString tempdir, filelistLocation, cfgLocation, cdMountpoint;
|
---|
| 66 |
|
---|
| 67 | pthread_t preparer_thread;
|
---|
| 68 |
|
---|
| 69 | s_bkpinfo *bkpinfo;
|
---|
| 70 |
|
---|
| 71 | RestoreThread *th;
|
---|
[1] | 72 | };
|
---|
| 73 |
|
---|
| 74 | #endif
|
---|