Changeset 756 in ntrip for trunk


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

* empty log message *

Location:
trunk/BNS
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.pro

    r749 r756  
    2121release:MOC_DIR=.moc/release
    2222
    23 HEADERS =             bnsapp.h   bnswindow.h   bnshlpdlg.h   bnshtml.h
     23HEADERS =             bns.h   bnswindow.h   bnshlpdlg.h   bnshtml.h
    2424
    25 SOURCES = bnsmain.cpp bnsapp.cpp bnswindow.cpp bnshlpdlg.cpp bnshtml.cpp
     25SOURCES = bnsmain.cpp bns.cpp bnswindow.cpp bnshlpdlg.cpp bnshtml.cpp
    2626
    2727RC_FILE = bns.rc
  • 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}
  • trunk/BNS/bnswindow.cpp

    r755 r756  
    1919
    2020#include "bnswindow.h"
    21 #include "bnsapp.h"
    2221#include "bnshlpdlg.h"
    2322
     
    271270void bnsWindow::slotMessage(const QByteArray msg) {
    272271
    273   ((bnsApp*)qApp)->slotMessage(msg);
    274 
    275272  const int maxBufferSize = 10000;
    276273 
     
    290287    _actStart->setEnabled(true);
    291288    _actStop->setEnabled(false);
    292     ((bnsApp*)qApp)->stop();
    293289  }
    294290}
     
    304300  slotMessage("============ Start BNS ============");
    305301
    306   ((bnsApp*)qApp)->start();
    307 }
     302}
Note: See TracChangeset for help on using the changeset viewer.