Changeset 366 in ntrip for trunk/BNC/bnctabledlg.cpp
- Timestamp:
- Jan 17, 2007, 4:17:20 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnctabledlg.cpp
r299 r366 87 87 _buttonGet = new QPushButton(tr("Get table"), this); 88 88 connect(_buttonGet, SIGNAL(clicked()), this, SLOT(slotGetTable())); 89 89 90 90 _buttonCancel = new QPushButton(tr("Cancel"), this); 91 91 connect(_buttonCancel, SIGNAL(clicked()), this, SLOT(reject())); … … 142 142 const int timeOut = 10*1000; 143 143 QString msg; 144 QTcpSocket* socket = bncGetThread::request(url, timeOut, msg); 144 QByteArray _latitude; 145 QByteArray _longitude; 146 QByteArray _nmea; 147 QTcpSocket* socket = bncGetThread::request(url, _latitude, _longitude, _nmea, timeOut, msg); 145 148 146 149 if (!socket) { … … 207 210 static const QStringList labels = QString("mountpoint,identifier,format," 208 211 "format-details,carrier,nav-system,network,country,latitude,longitude," 209 " nmea,solution,generator,compression,authentication,fee,bitrate,"212 "type,solution,generator,compression,authentication,fee,bitrate," 210 213 "misc").split(","); 211 214 … … 224 227 ++nRow; 225 228 for (int ic = 0; ic < columns.size()-1; ic++) { 229 230 if (ic+1 == 11) { if (columns[ic+1] == "0") { columns[ic+1] = "RS"; } else { columns[ic+1] = "VRS"; }} 231 226 232 QTableWidgetItem* it = new QTableWidgetItem(columns[ic+1]); 227 233 it->setFlags(it->flags() & ~Qt::ItemIsEditable); … … 251 257 QTableWidgetItem* item = _table->item(ir,0); 252 258 QString format = _table->item(ir,2)->text(); 259 QString latitude = _table->item(ir,8)->text(); 260 QString longitude = _table->item(ir,9)->text(); 261 QString nmea = _table->item(ir,10)->text(); 253 262 format.replace(" ", "_"); 254 263 if (_table->isItemSelected(item)) { … … 260 269 url.setPath(item->text()); 261 270 262 mountPoints->push_back(url.toString() + " " + format );271 mountPoints->push_back(url.toString() + " " + format + " " + latitude + " " + longitude + " " + nmea); 263 272 } 264 273 }
Note:
See TracChangeset
for help on using the changeset viewer.