]> 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 2ed83a771c8dfdb2ac24c4c903447efbcc325fb9..91f29252db1581499bfa92ba69636eae220ff983 100644 (file)
@@ -38,6 +38,7 @@
 #include "ui_brestore.h"
 #include "ui_restore.h"
 #include "ui_prerestore.h"
+#include "batstack.h"
 
 class Console;
 
@@ -52,7 +53,7 @@ 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);
@@ -73,26 +74,30 @@ class restoreDialog : public QDialog, public Ui::restoreForm
 
 public:
    restoreDialog(Console *parent);
-   void fillDirectory(const char *path);
+   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_fname;
-
+   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:
 
@@ -100,6 +105,4 @@ private:
 
 };
 
-
-
 #endif /* _RESTORE_H_ */