blob: 9b8affcd1aa38d5565ff7962fde258afc8d0c388 (
plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
//
// C++ Interface: k9dvdchapter
//
// Description:
//
//
// Author: Jean-Michel PETIT <[email protected]>, (C) 2006
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef K9DVDCHAPTER_H
#define K9DVDCHAPTER_H
#include "k9common.h"
#include "k9dvd.h"
#include <tqptrlist.h>
static int cptChapter=0;
enum angleBlock_t {angleNone=0,angleInside=1,angleStart=3,angleEnd=5};
class k9DVDTitle;
class k9ChapterCell :public TQObject
{
Q_OBJECT
TQ_OBJECT
public:
k9ChapterCell(uint _id,uint _angle){ m_id=_id;m_angle=_angle;m_angleBlock=angleNone;};
virtual uint getid() {return m_id;};
virtual uint getangle(){return m_angle;};
virtual uchar getangleBlock() {return m_angleBlock;};
virtual void setangleBlock(uchar _angleBlock) {m_angleBlock=_angleBlock;};
virtual void setstartSector(uint32_t _value) { m_startSector=_value;};
virtual uint32_t getstartSector() { return m_startSector;};
virtual void setlastSector(uint32_t _value) { m_lastSector=_value;};
virtual uint32_t getlastSector() { return m_lastSector;};
private:
uint m_id;
uint m_angle;
uchar m_angleBlock;
uint32_t m_startSector,m_lastSector;
};
class k9DVDChapter : public TQObject
{
Q_OBJECT
TQ_OBJECT
friend class k9DVDTitle;
friend class k9DVD;
private: // Private attributes
/** */
int num;
int id;
/** */
TQTime length;
TQTime time;
/** */
int sectors;
unsigned long startSector;
unsigned long endSector;
k9DVDTitle *m_title;
bool m_selected;
static int getcptChapter() { cptChapter ++; return cptChapter;};
static void setcptChapter(int _newValue) { cptChapter=_newValue;};
public: // Public methods
k9DVDChapter();
/** Read property of int num. */
virtual const int& getnum();
/** Read property of TQTime length. */
virtual const TQTime& getlength();
/** Read property of int sectors. */
virtual const int& getsectors();
TQPtrList<k9ChapterCell> cells;
TQValueList<uint32_t> startSectors;
virtual const TQTime & gettime();
virtual k9DVDTitle * getTitle();
unsigned long getstartSector() { return startSector;};
unsigned long getendSector() {return endSector;};
void setSelected(bool _value);
bool getSelected() const;
};
#endif
|