]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/qt-console/restore/restore.h
dhb This solves the really not elegant at all way to determine what tree item
[bacula/bacula] / bacula / src / qt-console / restore / restore.h
index b1b43f495d34c3f903f7faa5438cb0bc03518db6..91f29252db1581499bfa92ba69636eae220ff983 100644 (file)
@@ -4,7 +4,7 @@
 /*
    Bacula® - The Network Backup Solution
 
-   Copyright (C) 2000-2007 Free Software Foundation Europe e.V.
+   Copyright (C) 2007-2007 Free Software Foundation Europe e.V.
 
    The main author of Bacula is Kern Sibbald, with contributions from
    many others, a complete list can be found in the file AUTHORS.
 #include "ui_brestore.h"
 #include "ui_restore.h"
 #include "ui_prerestore.h"
+#include "batstack.h"
 
 class Console;
 
+/*
+ * The pre-restore dialog selects the Job/Client to be restored
+ * It really could use considerable enhancement.
+ */
 class prerestoreDialog : public QDialog, public Ui::prerestoreForm
 {
    Q_OBJECT 
@@ -48,32 +53,51 @@ class prerestoreDialog : public QDialog, public Ui::prerestoreForm
 public:
    prerestoreDialog(Console *parent);
 
-public slots:
+private slots:
+   void accept();
+   void reject();
+   void job_name_change(int index);
 
 private:
+   Console *m_console;
 
 };
 
+/*  
+ * The restore dialog is brought up once we are in the Bacula
+ * restore tree routines.  It handles putting up a GUI tree
+ * representation of the files to be restored.
+ */
 class restoreDialog : public QDialog, public Ui::restoreForm
 {
    Q_OBJECT 
 
 public:
    restoreDialog(Console *parent);
-
-public slots:
+   void fillDirectory();
+   char *get_cwd();
+   bool cwd(const char *);
+
+private slots:
+   void accept();
+   void reject();
+   void fileDoubleClicked(QTreeWidgetItem *item, int column);
+   void upButtonPushed();
+   void unmarkButtonPushed();
+   void markButtonPushed();
 
 private:
-
+   Console *m_console;
+   QString m_cwd;
 };
 
 
-class bRestore : public QWidget, public Ui::bRestoreForm
+class bRestore : public BatStack, public Ui::bRestoreForm
 {
    Q_OBJECT 
 
 public:
-   bRestore(QStackedWidget *parent);
+   bRestore(QStackedWidget *parent, QTreeWidgetItem *treeItem);
 
 public slots:
 
@@ -81,6 +105,4 @@ private:
 
 };
 
-
-
 #endif /* _RESTORE_H_ */