Version 2 // Add detailled breaks

This commit is contained in:
Aurélie Delhaie
2021-10-18 22:46:59 +02:00
parent 102f720d29
commit b07b7b69eb
26 changed files with 1117 additions and 808 deletions

29
sources/breakpoint.h Normal file
View File

@@ -0,0 +1,29 @@
#ifndef BREAKPOINT_H
#define BREAKPOINT_H
#include <QTime>
#include <QJsonObject>
#include <cmath>
class BreakPoint
{
private:
QTime start;
QTime end;
public:
BreakPoint();
BreakPoint(QTime, QTime);
QTime getStart();
QTime getEnd();
float getDuration();
void setStart(QTime);
void setEnd(QTime);
QJsonObject to_json();
static BreakPoint from_json(QJsonObject);
};
#endif // BREAKPOINT_H