31 lines
468 B
C++
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
|