GPSWidget::GPSWidget() { initAreaMonitor(); startGPS(); }
QgsQtLocationConnection::QgsQtLocationConnection( ): QgsGPSConnection( new QLocalSocket() ) { //needed to fix https://sourceforge.net/p/necessitas/tickets/146/ qRegisterMetaType< QList<QGeoSatelliteInfo> >( "QList<QGeoSatelliteInfo>" ); startGPS(); startSatelliteMonitor(); //HACK to signal the gpsinformationwidget that we have a QtLocationConnection QTimer::singleShot( 500, this, SLOT( broadcastConnectionAvailable() ) ); }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { //setup the gui and connect signals to slots requestWeather = false; ui->setupUi(this); manager = new QNetworkAccessManager(this); geoCodingSuccessfull = false; connect(this, SIGNAL(programStarted()),this,SLOT(sendRequest())); connect(manager, SIGNAL(finished(QNetworkReply*)), this, SLOT(replyFinished(QNetworkReply*))); connect(ui->btn_go,SIGNAL(clicked()),this, SLOT(sendWeatherRequest())); ui->statusBar->showMessage(QString("Looking for Geolocation..")); startGPS(); }
void GPSTracker::startTracking() { startGPS(); if(isGPSActiv()) { tracking = true; } }