#ifndef VIDEOFRAME_H #define VIDEOFRAME_H #include #include #include "Segment.h" class VideoFrame: public Segment { public: enum SpeakerSource { Ref, Hyp1, Hyp2 }; VideoFrame(Segment *parentSegment); VideoFrame(int id, qint64 position, Segment *parentSegment, Segment::Source source = Segment::Manual, const QString &sub = QString()); ~VideoFrame(); void read(const QJsonObject &json); void write(QJsonObject &json) const; QString display() const; int getNumber() const; QString getSub() const; QString getSpeaker(VideoFrame::SpeakerSource source) const; void setSub(const QString &sub); void setSpeaker(const QString &speaker, VideoFrame::SpeakerSource source); void clearSpeaker(VideoFrame::SpeakerSource source); private: int m_id; QString m_sub; QVector *m_speaker; }; #endif