From 0d382a262c0638d0f572fc37193ccc5ed3dc895f Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 17 Feb 2010 00:32:19 +0000 Subject: Added old abandoned version of k9copy git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1091546 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libk9copy/k9dvdchapter.cpp | 69 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 libk9copy/k9dvdchapter.cpp (limited to 'libk9copy/k9dvdchapter.cpp') 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 , (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; + +} -- cgit v1.2.1