Changeset 8127 in ntrip for trunk/BNC/src/bncgetthread.cpp
- Timestamp:
- May 10, 2017, 3:20:54 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncgetthread.cpp
r8123 r8127 43 43 #include <sstream> 44 44 45 #include <QComboBox> 46 #include <QDialog> 45 47 #include <QFile> 46 48 #include <QTextStream> 47 49 #include <QMutex> 48 50 #include <QtNetwork> 51 #include <QPushButton> 52 #include <QTableWidget> 49 53 #include <QTime> 50 54 … … 90 94 _rawFile = 0; 91 95 _mountPoint = mountPoint; 92 _staID = mountPoint.path().mid(1).to Ascii();96 _staID = mountPoint.path().mid(1).toLatin1(); 93 97 _format = format; 94 98 _latitude = latitude; … … 134 138 continue; 135 139 } 136 QByteArray mp = hlp[0].to Ascii();140 QByteArray mp = hlp[0].toLatin1(); 137 141 if (_staID == mp) { 138 142 nmeaPort = hlp[9].toInt(); … … 275 279 hlp = "0.0"; 276 280 } 277 QByteArray _serialHeightNMEA = hlp.to Ascii();281 QByteArray _serialHeightNMEA = hlp.toLatin1(); 278 282 _manualNMEAString = ggaString(_latitude, _longitude, _serialHeightNMEA, 279 283 nmeaMode); … … 603 607 QString prn(obs._prn.toString().c_str()); 604 608 emit(newMessage( 605 _staID + " (" + prn.to Ascii() + ")"609 _staID + " (" + prn.toLatin1() + ")" 606 610 + ": Wrong observation epoch(s)", false)); 607 611 continue; … … 619 623 long oldTime = it.value(); 620 624 if (obsTime < oldTime) { 621 emit(newMessage(_staID + ": old observation " + prn.to Ascii(),625 emit(newMessage(_staID + ": old observation " + prn.toLatin1(), 622 626 false)); 623 627 continue; … … 625 629 emit(newMessage( 626 630 _staID + ": observation coming more than once " 627 + prn.to Ascii(), false));631 + prn.toLatin1(), false)); 628 632 continue; 629 633 } … … 774 778 for (int ii = 0; ii < decoder()->_typeList.size(); ii++) { 775 779 QString type = QString("%1 ").arg(decoder()->_typeList[ii]); 776 emit(newMessage(_staID + ": Received message type " + type.to Ascii(),780 emit(newMessage(_staID + ": Received message type " + type.toLatin1(), 777 781 true)); 778 782 } … … 847 851 str << " " << rnxTypes[iType]; 848 852 } 849 emit(newMessage(_staID + ": Observation Types: " + msg.to Ascii(),853 emit(newMessage(_staID + ": Observation Types: " + msg.toLatin1(), 850 854 true)); 851 855 } … … 856 860 for (int ii = 0; ii < decoder()->_antType.size(); ii++) { 857 861 QString ant1 = QString("%1 ").arg(decoder()->_antType[ii]); 858 emit(newMessage(_staID + ": Antenna descriptor " + ant1.to Ascii(), true));862 emit(newMessage(_staID + ": Antenna descriptor " + ant1.toLatin1(), true)); 859 863 } 860 864 … … 870 874 QByteArray ant1, ant2, ant3; 871 875 ant1 = 872 QString("%1 ").arg(decoder()->_antList[ii].xx, 0, 'f', 4).to Ascii();876 QString("%1 ").arg(decoder()->_antList[ii].xx, 0, 'f', 4).toLatin1(); 873 877 ant2 = 874 QString("%1 ").arg(decoder()->_antList[ii].yy, 0, 'f', 4).to Ascii();878 QString("%1 ").arg(decoder()->_antList[ii].yy, 0, 'f', 4).toLatin1(); 875 879 ant3 = 876 QString("%1 ").arg(decoder()->_antList[ii].zz, 0, 'f', 4).to Ascii();880 QString("%1 ").arg(decoder()->_antList[ii].zz, 0, 'f', 4).toLatin1(); 877 881 emit(newMessage(_staID + ": " + antT + " (ITRF) X " + ant1 + "m", true)); 878 882 emit(newMessage(_staID + ": " + antT + " (ITRF) Y " + ant2 + "m", true)); … … 881 885 if (decoder()->_antList[ii].height_f) { 882 886 hh = decoder()->_antList[ii].height; 883 QByteArray ant4 = QString("%1 ").arg(hh, 0, 'f', 4).to Ascii();887 QByteArray ant4 = QString("%1 ").arg(hh, 0, 'f', 4).toLatin1(); 884 888 emit(newMessage( 885 889 _staID + ": Antenna height above marker " + ant4 + "m", true)); … … 902 906 _gloSlots.sort(); 903 907 emit(newMessage( 904 _staID + ": GLONASS Slot:Freq " + _gloSlots.join(" ").to Ascii(),908 _staID + ": GLONASS Slot:Freq " + _gloSlots.join(" ").toLatin1(), 905 909 true)); 906 910 } … … 983 987 _nmeaSockets->push_back(_nmeaServer->nextPendingConnection()); 984 988 emit(newMessage( 985 QString("New PPP client on port: # %1").arg(_nmeaSockets->size()).to Ascii(),989 QString("New PPP client on port: # %1").arg(_nmeaSockets->size()).toLatin1(), 986 990 true)); 987 991 }
Note:
See TracChangeset
for help on using the changeset viewer.