Changeset 756 in ntrip for trunk/BNS/bnsmain.cpp


Ignore:
Timestamp:
Mar 30, 2008, 5:03:08 PM (14 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bnsmain.cpp

    r752 r756  
    1515 * -----------------------------------------------------------------------*/
    1616
    17 #include <unistd.h>
    18 #include <signal.h>
    1917#include <iostream>
    2018
    21 #include "bnsapp.h"
     19#include "bns.h"
    2220#include "bnswindow.h"
    2321
    2422using namespace std;
    25 
    26 void catch_signal(int) {
    27   cout << "Program Interrupted by Ctrl-C" << endl;
    28   ((bnsApp*)qApp)->slotQuit();
    29 }
    3023
    3124// Main Program
     
    4134  }
    4235
    43   QCoreApplication::setOrganizationName("BKG");
    44   QCoreApplication::setOrganizationDomain("www.bkg.bund.de");
    45   QCoreApplication::setApplicationName("BKG_NTRIP_Server");
     36  QApplication app(argc, argv, GUIenabled);
    4637
    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");
    5441
    5542  // Interactive Mode - open the main window
     
    6350  // ----------------------------
    6451  else {
    65     cerr << "non-interactive mode not yet implemented" << endl;
    66     exit(0);
     52
    6753  }
    6854
    69   // Start the application
    70   // ---------------------
    7155  return app.exec();
    7256}
Note: See TracChangeset for help on using the changeset viewer.