Files
Chronos/sources/models/breakpoint.h
Aurélie Delhaie 9bb56fe174 Pointer + time delta
2022-03-01 21:08:34 +01:00

31 lines
468 B
C++

#ifndef BREAKPOINT_H
#define BREAKPOINT_H
#include <QTime>
#include <QJsonObject>
#include <cmath>
class BreakPoint
{
private:
QTime start;
QTime end;
public:
BreakPoint();
BreakPoint(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