source: trunk/mondo/mondo/xmondo/xmondorestore.h @ 127

Last change on this file since 127 was 127, checked in by bcornec, 14 years ago

merge -r 125:126 $SVN_M/branches/2.05

  • 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 127 2005-11-19 01:27:31Z 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    }
47    bool isSetupDone() {
48        return doneSetup;
49    }
50
51    public slots:void slotAbortRestore();
52
53  protected:
54    bool ok;
55    bool doneSetup;
56
57    QButtonGroup *rMediaType;
58    QLineEdit *rDevice, *rNFSRemoteDir, *rFilter;
59
60    QWidget *files;
61    QLabel *fStatusMsg;
62    QListView *fList;
63    QLabel *fRestoreDirLabel;
64    QLineEdit *fRestoreDir;
65
66    QString tempdir, filelistLocation, cfgLocation, cdMountpoint;
67
68    pthread_t preparer_thread;
69
70    s_bkpinfo *bkpinfo;
71
72    RestoreThread *th;
73};
74
75#endif
Note: See TracBrowser for help on using the repository browser.