]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/wx-console/console_thread.h
This commit was manufactured by cvs2svn to create tag
[bacula/bacula] / bacula / src / wx-console / console_thread.h
index 50f5703a2a171d52b418c92a2a708fef991fd36c..2c2411e18934ce54b1fe5ac69e8ef1c8d24f9976 100644 (file)
@@ -2,25 +2,23 @@
  *
  *    Interaction thread between director and the GUI
  *
- *    Nicolas Boichat, April 2004
+ *    Nicolas Boichat, April-May 2004
  *
+ *    Version $Id$
  */
 /*
-   Copyright (C) 2004 Kern Sibbald and John Walker
+   Copyright (C) 2004-2006 Kern Sibbald
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
-   as published by the Free Software Foundation; either version 2
-   of the License, or (at your option) any later version.
+   version 2 as amended with additional clauses defined in the
+   file LICENSE in the main source directory.
 
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
+   the file LICENSE for additional details.
 
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  */
 
 #ifndef CONSOLE_THREAD_H
@@ -28,7 +26,9 @@
 
 #include <wx/wxprec.h>
 
+#include <wx/string.h>
 #include <wx/thread.h> // inheriting class's header file
+#include <wx/intl.h> /* We need to have _ and N_ defined by wxWidgets before Bacula tries to redefine them */
 #include "bacula.h"
 #include "jcr.h"
 
@@ -46,7 +46,21 @@ class console_thread : public wxThread
       void* Entry();
       void Write(const char* str);
       virtual void Delete();
+
+      static void InitLib();
+      static void FreeLib();
+      static wxString LoadConfig(wxString configfile);
+      static void SetWorkingDirectory(wxString w_dir);
    private:
+      static bool inited;
+      static bool configloaded;
+
+      bool choosingdirector;
+
+      static wxString working_dir;
+
+      int directorchoosen;
+
       BSOCK* UA_sock;
       JCR jcr;
 };
@@ -54,4 +68,3 @@ class console_thread : public wxThread
 int pm_cst_strcpy(POOLMEM **pm, const char *str);
 
 #endif // CONSOLE_THREAD_H
-