source: MondoRescue/branches/2.04_berlios/mondo/mondo/xmondo/xmondorestore.h@ 39

Last change on this file since 39 was 30, checked in by bcornec, 19 years ago

Id property added on files to allow for better conf. management

  • Property svn:keywords set to Id
File size: 2.2 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 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
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{
36 Q_OBJECT
37
38 friend void *XMondoRestore_preparer_thread (void *arg);
39
40public:
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
52public slots:
53 void slotAbortRestore();
54
55protected:
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
Note: See TracBrowser for help on using the repository browser.