Blame view

Episode.h 750 Bytes
3f2992b2c   bostx   V1.0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  #ifndef EPISODE_H
  #define EPISODE_H
  
  #include <QString>
  #include <QSize>
  
  #include "Segment.h"
  
  class Episode: public Segment
  {
   public:
    Episode(Segment *parentSegment);
    Episode(int number, const QString &fName, Segment *parentSegment, const QString &name = QString(), qint64 position = 0, Segment::Source source = Segment::Manual);
    ~Episode();
    void read(const QJsonObject &json);
    void write(QJsonObject &json) const;
    QString display() const;
    void setResolution(const QSize &resolution);
    void setFps(qreal fps);
    QSize getResolution() const;
    qreal getFps() const;
    QString getFName() const;
    int getNumber() const;
    
   private:
    int m_number;
    QString m_name;
    QString m_fName;
    QSize m_resolution;
    qreal m_fps;
  };
  
  #endif