]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/bat.h
Make qt-console compatible to Qt5 (Qt4 still work)
[bacula/bacula] / bacula / src / qt-console / bat.h
1 #ifndef _BAT_H_
2 #define _BAT_H_
3
4 /*
5    Bacula(R) - The Network Backup Solution
6
7    Copyright (C) 2000-2016 Kern Sibbald
8
9    The original author of Bacula is Kern Sibbald, with contributions
10    from many others, a complete list can be found in the file AUTHORS.
11
12    You may use this file and others of this release according to the
13    license defined in the LICENSE file, which includes the Affero General
14    Public License, v3.0 ("AGPLv3") and some additional permissions and
15    terms pursuant to its AGPLv3 Section 7.
16
17    This notice must be preserved when any source code is 
18    conveyed and/or propagated.
19
20    Bacula(R) is a registered trademark of Kern Sibbald.
21 */
22 /*
23  *   Kern Sibbald, January 2007
24  */
25
26 #if defined(HAVE_WIN32)
27 #if !defined(_STAT_H)
28 #define _STAT_H       /* don't pull in MinGW stat.h */
29 #define _STAT_DEFINED /* don't pull in MinGW stat.h */
30 #endif
31 #endif
32
33 #if defined(HAVE_WIN32)
34 #if defined(HAVE_MINGW)
35 #include "mingwconfig.h"
36 #else
37 #include "winconfig.h"
38 #endif
39 #else
40 #include "config.h"
41 #endif
42 #define __CONFIG_H
43
44 #if QT_VERSION >= 0x050000
45 #include <QtWidgets>
46 #else
47 #include <QtGui>
48 #endif
49 #include <QtCore>
50 #include "bacula.h"
51
52 #ifndef TRAY_MONITOR
53 #include "mainwin.h"
54 #include "bat_conf.h"
55 #include "jcr.h"
56 #include "console.h"
57
58 extern MainWin *mainWin;
59 extern QApplication *app;
60 #endif
61
62 bool isWin32Path(QString &fullPath);
63
64 #endif /* _BAT_H_ */