]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/wx-console/csprint.h
kes Simplify locking in the reservations system.
[bacula/bacula] / bacula / src / wx-console / csprint.h
1 /*
2  *
3  *    csprint header file, used by console_thread to send events back to the GUI.
4  *
5  *    Nicolas Boichat, April 2004
6  *
7  *    Version $Id$
8  */
9 /*
10    Bacula® - The Network Backup Solution
11
12    Copyright (C) 2004-2006 Free Software Foundation Europe e.V.
13
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 plus additions
19    that are listed in the file LICENSE.
20
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.
25
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
29    02110-1301, USA.
30
31    Bacula® is a registered trademark of John Walker.
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.
35 */
36
37 #ifndef CSPRINT_H
38 #define CSPRINT_H
39
40 #define CS_DATA          1 /* data has been received */
41 #define CS_END           2 /* no data to receive anymore */
42 #define CS_PROMPT        3 /* prompt signal received */
43 #define CS_CONNECTED     4 /* the socket is now connected */
44 #define CS_DISCONNECTED  5 /* the socket is now disconnected */
45
46 #define CS_REMOVEPROMPT  6 /* remove the prompt (#), when automatic messages are comming */
47
48 #define CS_DEBUG        10 /* used to print debug messages */
49 #define CS_TERMINATED   99 /* used to signal that the thread is terminated */
50
51 /* function called by console_thread to send events back to the GUI */
52 class wxString;
53
54 void csprint(const char* str, int status=CS_DATA);
55 void csprint(wxString str, int status=CS_DATA);
56
57 #endif