diff options
Diffstat (limited to 'libk9copy/k9dvdchapter.cpp')
-rw-r--r-- | libk9copy/k9dvdchapter.cpp | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/libk9copy/k9dvdchapter.cpp b/libk9copy/k9dvdchapter.cpp new file mode 100644 index 0000000..e96385e --- /dev/null +++ b/libk9copy/k9dvdchapter.cpp @@ -0,0 +1,69 @@ +// +// 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 QTime length. */ +const QTime& k9DVDChapter::getlength() +{ + return length; +} + +/** Read property of int sectors. */ +const int& k9DVDChapter::getsectors() +{ + return sectors; +} + +const QTime& 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; + +} |