OSCAR-code/sleepyhead/oximeterimport.h

91 lines
1.8 KiB
C
Raw Normal View History

2014-05-25 07:07:08 +00:00
#ifndef OXIMETERIMPORT_H
#define OXIMETERIMPORT_H
#include <QDialog>
#include "Graphs/gGraphView.h"
#include "Graphs/gLineChart.h"
2014-05-25 16:20:33 +00:00
#include "SleepLib/serialoximeter.h"
2014-05-25 07:07:08 +00:00
#include "sessionbar.h"
namespace Ui {
class OximeterImport;
}
class OximeterImport : public QDialog
{
Q_OBJECT
public:
explicit OximeterImport(QWidget *parent = 0);
~OximeterImport();
private slots:
void on_nextButton_clicked();
void on_directImportButton_clicked();
void doUpdateProgress(int, int);
void on_fileImportButton_clicked();
void on_liveImportButton_clicked();
void on_retryButton_clicked();
void on_stopButton_clicked();
void on_calendarWidget_clicked(const QDate &date);
void on_calendarWidget_selectionChanged();
void onSessionSelected(Session * session);
void on_sessionBackButton_clicked();
void on_sessionForwardButton_clicked();
void on_radioSyncCPAP_clicked();
void on_radioSyncOximeter_clicked();
void on_radioSyncManually_clicked();
void on_syncSaveButton_clicked();
2014-05-25 16:20:33 +00:00
void on_cancelButton_clicked();
void on_showLiveGraphs_clicked(bool checked);
void on_skipWelcomeCheckbox_clicked(bool checked);
void on_informationButton_clicked();
2014-05-25 16:20:33 +00:00
protected slots:
void on_updatePlethy(QByteArray plethy);
void finishedRecording();
void finishedImport(SerialOximeter*);
void updateLiveDisplay();
2014-05-25 16:20:33 +00:00
2014-05-25 07:07:08 +00:00
protected:
2014-05-25 16:20:33 +00:00
SerialOximeter * detectOximeter();
2014-05-25 07:07:08 +00:00
void updateStatus(QString msg);
private:
Ui::OximeterImport *ui;
2014-05-25 16:20:33 +00:00
SerialOximeter * oximodule;
2014-05-25 07:07:08 +00:00
gGraphView * liveView;
2014-05-25 16:20:33 +00:00
gGraph * plethyGraph;
Session * session;
Day * dummyday;
2014-05-25 07:07:08 +00:00
gLineChart * plethyChart;
SessionBar * sessbar;
2014-05-25 16:20:33 +00:00
EventList * ELplethy;
qint64 start_ti, ti;
QTimer updateTimer;
int pulse;
int spo2;
2014-05-25 07:07:08 +00:00
};
#endif // OXIMETERIMPORT_H