3 * Interaction thread between director and the GUI
5 * Nicolas Boichat, April-May 2004
10 Copyright (C) 2004-2006 Kern Sibbald
12 This program is free software; you can redistribute it and/or
13 modify it under the terms of the GNU General Public License
14 version 2 as amended with additional clauses defined in the
15 file LICENSE in the main source directory.
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 the file LICENSE for additional details.
24 #ifndef CONSOLE_THREAD_H
25 #define CONSOLE_THREAD_H
27 #include <wx/wxprec.h>
29 #include <wx/string.h>
30 #include <wx/thread.h> // inheriting class's header file
31 #include <wx/intl.h> /* We need to have _ and N_ defined by wxWidgets before Bacula tries to redefine them */
36 * Console thread, does interaction between bacula routines and the GUI
38 class console_thread : public wxThread
47 void Write(const char* str);
48 virtual void Delete();
50 static void InitLib();
51 static void FreeLib();
52 static wxString LoadConfig(wxString configfile);
53 static void SetWorkingDirectory(wxString w_dir);
56 static bool configloaded;
58 bool choosingdirector;
60 static wxString working_dir;
68 int pm_cst_strcpy(POOLMEM **pm, const char *str);
70 #endif // CONSOLE_THREAD_H