3 * Interaction thread between director and the GUI
5 * Nicolas Boichat, April-May 2004
10 Bacula® - The Network Backup Solution
12 Copyright (C) 2004-2006 Free Software Foundation Europe e.V.
14 The main author of Bacula is Kern Sibbald, with contributions from
15 many others, a complete list can be found in the file AUTHORS.
16 This program is Free Software; you can redistribute it and/or
17 modify it under the terms of version two of the GNU General Public
18 License as published by the Free Software Foundation and included
21 This program is distributed in the hope that it will be useful, but
22 WITHOUT ANY WARRANTY; without even the implied warranty of
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 General Public License for more details.
26 You should have received a copy of the GNU General Public License
27 along with this program; if not, write to the Free Software
28 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
31 Bacula® is a registered trademark of Kern Sibbald.
32 The licensor of Bacula is the Free Software Foundation Europe
33 (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
34 Switzerland, email:ftf@fsfeurope.org.
37 #ifndef CONSOLE_THREAD_H
38 #define CONSOLE_THREAD_H
47 #include <wx/wxprec.h>
49 #include <wx/string.h>
50 #include <wx/thread.h> // inheriting class's header file
51 #include <wx/intl.h> /* We need to have _ and N_ defined by wxWidgets before Bacula tries to redefine them */
56 * Console thread, does interaction between bacula routines and the GUI
58 class console_thread : public wxThread
67 void Write(const char* str);
68 virtual void Delete();
70 static void InitLib();
71 static void FreeLib();
72 static wxString LoadConfig(wxString configfile);
73 static void SetWorkingDirectory(wxString w_dir);
76 static bool configloaded;
78 bool choosingdirector;
80 static wxString working_dir;
88 int pm_cst_strcpy(POOLMEM **pm, const char *str);
90 #endif // CONSOLE_THREAD_H