source: ntrip/trunk/BNC/upload/bncephuploadcaster.cpp@ 3254

Last change on this file since 3254 was 3254, checked in by mervart, 13 years ago
File size: 1.6 KB
Line 
1/* -------------------------------------------------------------------------
2 * BKG NTRIP Server
3 * -------------------------------------------------------------------------
4 *
5 * Class: bncEphUploadCaster
6 *
7 * Purpose: Connection to NTRIP Caster for Ephemeris
8 *
9 * Author: L. Mervart
10 *
11 * Created: 03-Apr-2011
12 *
13 * Changes:
14 *
15 * -----------------------------------------------------------------------*/
16
17#include <math.h>
18#include "bncephuploadcaster.h"
19#include "bncsettings.h"
20
21using namespace std;
22
23// Constructor
24////////////////////////////////////////////////////////////////////////////
25bncEphUploadCaster::bncEphUploadCaster() {
26 bncSettings settings;
27
28 QString mountpoint = settings.value("uploadEphMountpoint").toString();
29 QString outHost = settings.value("uploadEphHost").toString();
30 int outPort = settings.value("uploadEphPort").toInt();
31 QString password = settings.value("uploadEphPassword").toString();
32
33 _ephUploadCaster = new bncUploadCaster(mountpoint, outHost, outPort,
34 password, -1);
35
36 connect(_ephUploadCaster, SIGNAL(newBytes(QByteArray,double)),
37 this, SIGNAL(newBytes(QByteArray,double)));
38
39 _ephUploadCaster->start();
40}
41
42// Destructor
43////////////////////////////////////////////////////////////////////////////
44bncEphUploadCaster::~bncEphUploadCaster() {
45 _ephUploadCaster->deleteSafely();
46}
47
48// List of Stored Ephemeris changed (virtual)
49////////////////////////////////////////////////////////////////////////////
50void bncEphUploadCaster::ephBufferChanged() {
51
52}
Note: See TracBrowser for help on using the repository browser.