1 #ifndef APPGLOBAL_H
2 #define APPGLOBAL_H
3 #include "logging.h"
4 //#include "mainwindow.h"
5 #include "appdefs.h"
6 
7 class QSplashScreen;
8 class scopeView;
9 class rxWidget;
10 class txWidget;
11 class galleryWidget;
12 class waterfallText;
13 class rigControl;
14 class xmlInterface;
15 class logBook;
16 class dispatcher;
17 class fileWatcher;
18 class ftpThread;
19 
20 enum etransmissionMode {TRXSSTV,TRXDRM,TRXNOMODE};
21 
22 extern const QString MAJORVERSION;
23 extern const QString CONFIGVERSION;
24 extern const QString MINORVERSION;
25 extern  const QString ORGANIZATION;
26 extern const QString APPLICATION;
27 extern const QString qsstvVersion;
28 extern const QString shortName;
29 #define MAGICNUMBER   (('4'<<24)+('Q'<<16)+('Z'<<8)+'S')
30 
31 class soundBase;
32 class mainWindow;
33 class QStatusBar;
34 class configDialog;
35 
36 extern mainWindow *mainWindowPtr;
37 extern soundBase *soundIOPtr;
38 extern QSplashScreen *splashPtr;
39 extern QString splashStr;
40 extern dispatcher *dispatcherPtr;
41 extern QStatusBar *statusBarPtr;
42 extern fileWatcher *fileWatcherPtr;
43 
44 extern rxWidget *rxWidgetPtr;
45 extern txWidget *txWidgetPtr;
46 extern galleryWidget *galleryWidgetPtr;
47 extern waterfallText *waterfallPtr;
48 extern rigControl *rigControllerPtr;
49 extern xmlInterface *xmlIntfPtr;
50 extern configDialog *configDialogPtr;
51 extern logBook *logBookPtr;
52 
53 extern int fftNumBlocks;
54 
55 
56 extern QPixmap *greenPXMPtr;
57 extern QPixmap *redPXMPtr;
58 
59 extern logFile *logFilePtr;
60 extern bool useHybrid;
61 extern bool inStartup;
62 
63 
64 extern ftpThread *notifyRXIntfPtr;
65 extern ftpThread *hybridTxIntfPtr;
66 extern ftpThread *notifyTXIntfPtr;
67 extern ftpThread *onlineStatusIntfPtr;
68 extern ftpThread *hybridRxIntfPtr;
69 extern ftpThread *saveImageIntfPtr;
70 
71 extern etransmissionMode transmissionModeIndex;  // SSTV , DRM
72 
73 
74 #ifndef QT_NO_DEBUG
75 extern scopeView *scopeViewerData;
76 extern scopeView *scopeViewerSyncNarrow;
77 extern scopeView *scopeViewerSyncWide;
78 #endif
79 
80 void globalInit(void);
81 void globalEnd(void);
82 
83 #endif // APPGLOBAL_H
84