summaryrefslogtreecommitdiffstats
path: root/libk9copy/k9dvdchapter.cpp
blob: 16d76d4650496ba1e720f366b6858010252d748c (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
//
// C++ Implementation: k9dvdchapter
//
// Description:
//
//
// Author: Jean-Michel PETIT <k9copy@free.fr>, (C) 2006
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "k9dvdchapter.h"
#include "k9dvdtitle.h"

//************************* k9DVDChapter************************
/** Read property of int num. */
const int& k9DVDChapter::getnum()
{
  return num;
}
/** Read property of TQTime length. */
const TQTime& k9DVDChapter::getlength()
{
  return length;
}

/** Read property of int sectors. */
const int& k9DVDChapter::getsectors()
{
  return sectors;
}

const TQTime& k9DVDChapter::gettime()
{
  return time;
}
k9DVDTitle *k9DVDChapter::getTitle()
{
  return m_title;
}

k9DVDChapter::k9DVDChapter()
{
  length.setHMS(0,0,0);
  num=0;
  sectors=0;
  startSector=0;
  endSector=0;
  m_selected=false;
  time.setHMS(0,0,0);
  cells.setAutoDelete(true);
}


bool k9DVDChapter::getSelected() const
{
  return m_selected;
}


void k9DVDChapter::setSelected(bool _value)
{
  if (_value &&  !m_title->isSelected() ) {
	  m_title->setforceSelection( true);
          m_title->selectChapters( false);
  }
  m_selected = _value;

}

#include "k9dvdchapter.moc"