summaryrefslogtreecommitdiffstats
path: root/libk9copy/k9dvdchapter.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 00:32:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 00:32:19 +0000
commit0d382a262c0638d0f572fc37193ccc5ed3dc895f (patch)
tree8578dcddfce4191f3f7a142a37769df7add48475 /libk9copy/k9dvdchapter.cpp
downloadk9copy-0d382a262c0638d0f572fc37193ccc5ed3dc895f.tar.gz
k9copy-0d382a262c0638d0f572fc37193ccc5ed3dc895f.zip
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
Diffstat (limited to 'libk9copy/k9dvdchapter.cpp')
-rw-r--r--libk9copy/k9dvdchapter.cpp69
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;
+
+}