Changeset 756 in ntrip for trunk/BNS/bnsmain.cpp
- Timestamp:
- Mar 30, 2008, 5:03:08 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bnsmain.cpp
r752 r756 15 15 * -----------------------------------------------------------------------*/ 16 16 17 #include <unistd.h>18 #include <signal.h>19 17 #include <iostream> 20 18 21 #include "bns app.h"19 #include "bns.h" 22 20 #include "bnswindow.h" 23 21 24 22 using namespace std; 25 26 void catch_signal(int) {27 cout << "Program Interrupted by Ctrl-C" << endl;28 ((bnsApp*)qApp)->slotQuit();29 }30 23 31 24 // Main Program … … 41 34 } 42 35 43 QCoreApplication::setOrganizationName("BKG"); 44 QCoreApplication::setOrganizationDomain("www.bkg.bund.de"); 45 QCoreApplication::setApplicationName("BKG_NTRIP_Server"); 36 QApplication app(argc, argv, GUIenabled); 46 37 47 // Default Settings 48 // ---------------- 49 QSettings settings; 50 if (settings.allKeys().size() == 0) { 51 } 52 53 bnsApp app(argc, argv, GUIenabled); 38 app.setOrganizationName("BKG"); 39 app.setOrganizationDomain("www.bkg.bund.de"); 40 app.setApplicationName("BKG_NTRIP_Server"); 54 41 55 42 // Interactive Mode - open the main window … … 63 50 // ---------------------------- 64 51 else { 65 cerr << "non-interactive mode not yet implemented" << endl; 66 exit(0); 52 67 53 } 68 54 69 // Start the application70 // ---------------------71 55 return app.exec(); 72 56 }
Note:
See TracChangeset
for help on using the changeset viewer.