Version 2 // Add detailled breaks
This commit is contained in:
29
sources/breakpoint.h
Normal file
29
sources/breakpoint.h
Normal 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
|
||||
Reference in New Issue
Block a user