source: ntrip/trunk/BNS/bnsmain.cpp@ 756

Last change on this file since 756 was 756, checked in by mervart, 16 years ago

* empty log message *

File size: 1.2 KB
Line 
1/* -------------------------------------------------------------------------
2 * BKG NTRIP Server
3 * -------------------------------------------------------------------------
4 *
5 * Class: main
6 *
7 * Purpose: Application starts here
8 *
9 * Author: L. Mervart
10 *
11 * Created: 29-Mar-2008
12 *
13 * Changes:
14 *
15 * -----------------------------------------------------------------------*/
16
17#include <iostream>
18
19#include "bns.h"
20#include "bnswindow.h"
21
22using namespace std;
23
24// Main Program
25/////////////////////////////////////////////////////////////////////////////
26int main(int argc, char *argv[]) {
27
28 bool GUIenabled = true;
29 for (int ii = 1; ii < argc; ii++) {
30 if (QString(argv[ii]) == "-nw") {
31 GUIenabled = false;
32 break;
33 }
34 }
35
36 QApplication app(argc, argv, GUIenabled);
37
38 app.setOrganizationName("BKG");
39 app.setOrganizationDomain("www.bkg.bund.de");
40 app.setApplicationName("BKG_NTRIP_Server");
41
42 // Interactive Mode - open the main window
43 // ---------------------------------------
44 if (GUIenabled) {
45 bnsWindow* bnsWin = new bnsWindow();
46 bnsWin->show();
47 }
48
49 // Non-Interactive (Batch) Mode
50 // ----------------------------
51 else {
52
53 }
54
55 return app.exec();
56}
Note: See TracBrowser for help on using the repository browser.