X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=Client%2Faccrealtimedialog.cpp;h=be150c206095d46510fcc05365d871bdb06653b1;hb=20d58825bd115adb8e56401a1055ff6d2a3c7850;hp=9b5bc3f2381e82573cd51dbec6dda6e5671408e6;hpb=fabb862ed27bd473f0bf9f0217dd30da80ad217c;p=speedfreak diff --git a/Client/accrealtimedialog.cpp b/Client/accrealtimedialog.cpp index 9b5bc3f..be150c2 100644 --- a/Client/accrealtimedialog.cpp +++ b/Client/accrealtimedialog.cpp @@ -143,6 +143,7 @@ void AccRealTimeDialog::readAccelerometerData() { resultDialog = new ResultDialog(this); } + connect(resultDialog, SIGNAL(sendresult(double)), this, SLOT(sendResult(double))); resultDialog->setEnd(stopMeasureSpeed); //Put all times from all speeds @@ -174,6 +175,7 @@ void AccRealTimeDialog::resetAccelerometerMeasurements() vehicleStartedMoving = false; stopMeasureSpeed = 0; } + void AccRealTimeDialog::Calibrate() { accelerometer->calibrate(); @@ -185,6 +187,7 @@ void AccRealTimeDialog::on_buttonAbort_clicked() resetAccelerometerMeasurements(); this->close(); } + void AccRealTimeDialog::startAccelerationMeasure() { double temp = stopMeasureSpeed; @@ -192,7 +195,17 @@ void AccRealTimeDialog::startAccelerationMeasure() stopMeasureSpeed = temp; accelerometerTimer->start(40); } + void AccRealTimeDialog::SetStopMeasureSpeed(double speed) { stopMeasureSpeed = speed; } + +/** + *This slot function emit accelerationstart sendresult. + * + **/ +void AccRealTimeDialog::sendResult(double result) +{ + emit sendresult(result); +}