summaryrefslogtreecommitdiffstats
path: root/libk3b/projects/movixcd/k3bmovixdoc.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-03 02:15:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-03 02:15:56 +0000
commit50b48aec6ddd451a6d1709c0942477b503457663 (patch)
treea9ece53ec06fd0a2819de7a2a6de997193566626 /libk3b/projects/movixcd/k3bmovixdoc.h
downloadk3b-50b48aec6ddd451a6d1709c0942477b503457663.tar.gz
k3b-50b48aec6ddd451a6d1709c0942477b503457663.zip
Added abandoned KDE3 version of K3B
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1084400 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libk3b/projects/movixcd/k3bmovixdoc.h')
-rw-r--r--libk3b/projects/movixcd/k3bmovixdoc.h125
1 files changed, 125 insertions, 0 deletions
diff --git a/libk3b/projects/movixcd/k3bmovixdoc.h b/libk3b/projects/movixcd/k3bmovixdoc.h
new file mode 100644
index 0000000..53debfc
--- /dev/null
+++ b/libk3b/projects/movixcd/k3bmovixdoc.h
@@ -0,0 +1,125 @@
+/*
+ *
+ * $Id: k3bmovixdoc.h 619556 2007-01-03 17:38:12Z trueg $
+ * Copyright (C) 2003 Sebastian Trueg <trueg@k3b.org>
+ *
+ * This file is part of the K3b project.
+ * Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * See the file "COPYING" for the exact licensing terms.
+ */
+
+
+#ifndef _K3B_MOVIX_DOC_H_
+#define _K3B_MOVIX_DOC_H_
+
+
+#include <k3bdatadoc.h>
+
+#include <qptrlist.h>
+#include "k3b_export.h"
+//class K3bView;
+class KURL;
+class QDomElement;
+class K3bFileItem;
+class K3bMovixFileItem;
+class K3bDataItem;
+class KConfig;
+
+
+class LIBK3B_EXPORT K3bMovixDoc : public K3bDataDoc
+{
+ Q_OBJECT
+
+ public:
+ K3bMovixDoc( QObject* parent = 0 );
+ virtual ~K3bMovixDoc();
+
+ virtual int type() const { return MOVIX; }
+
+ virtual K3bBurnJob* newBurnJob( K3bJobHandler* hdl, QObject* parent );
+
+ bool newDocument();
+
+ const QPtrList<K3bMovixFileItem>& movixFileItems() const { return m_movixFiles; }
+
+ int indexOf( K3bMovixFileItem* );
+
+
+ bool shutdown() const { return m_shutdown; }
+ bool reboot() const { return m_reboot; }
+ bool ejectDisk() const { return m_ejectDisk; }
+ bool randomPlay() const { return m_randomPlay; }
+ const QString& subtitleFontset() const { return m_subtitleFontset; }
+ const QString& bootMessageLanguage() const { return m_bootMessageLanguage; }
+ const QString& audioBackground() const { return m_audioBackground; }
+ const QString& keyboardLayout() const { return m_keyboardLayout; }
+ const QStringList& codecs() const { return m_codecs; }
+ const QString& defaultBootLabel() const { return m_defaultBootLabel; }
+ const QString& additionalMPlayerOptions() const { return m_additionalMPlayerOptions; }
+ const QString& unwantedMPlayerOptions() const { return m_unwantedMPlayerOptions; }
+ int loopPlaylist() const { return m_loopPlaylist; }
+ bool noDma() const { return m_noDma; }
+
+ void setShutdown( bool v ) { m_shutdown = v; }
+ void setReboot( bool v ) { m_reboot = v; }
+ void setEjectDisk( bool v ) { m_ejectDisk = v; }
+ void setRandomPlay( bool v ) { m_randomPlay = v; }
+ void setSubtitleFontset( const QString& v ) { m_subtitleFontset = v; }
+ void setBootMessageLanguage( const QString& v ) { m_bootMessageLanguage = v; }
+ void setAudioBackground( const QString& b ) { m_audioBackground = b; }
+ void setKeyboardLayout( const QString& l ) { m_keyboardLayout = l; }
+ void setCodecs( const QStringList& c ) { m_codecs = c; }
+ void setDefaultBootLabel( const QString& v ) { m_defaultBootLabel = v; }
+ void setAdditionalMPlayerOptions( const QString& v ) { m_additionalMPlayerOptions = v; }
+ void setUnwantedMPlayerOptions( const QString& v ) { m_unwantedMPlayerOptions = v; }
+ void setLoopPlaylist( int v ) { m_loopPlaylist = v; }
+ void setNoDma( bool b ) { m_noDma = b; }
+
+ signals:
+ void newMovixFileItems();
+ void movixItemRemoved( K3bMovixFileItem* );
+ void subTitleItemRemoved( K3bMovixFileItem* );
+
+ public slots:
+ void addUrls( const KURL::List& urls );
+ void addMovixFile( const KURL& url, int pos = -1 );
+ void moveMovixItem( K3bMovixFileItem* item, K3bMovixFileItem* itemAfter );
+ void addSubTitleItem( K3bMovixFileItem*, const KURL& );
+ void removeSubTitleItem( K3bMovixFileItem* );
+
+ protected:
+ /** reimplemented from K3bDoc */
+ bool loadDocumentData( QDomElement* root );
+ /** reimplemented from K3bDoc */
+ bool saveDocumentData( QDomElement* );
+
+ virtual QString typeString() const { return "movix"; }
+
+ private slots:
+ void slotDataItemRemoved( K3bDataItem* );
+
+ private:
+ QPtrList<K3bMovixFileItem> m_movixFiles;
+
+ bool m_shutdown;
+ bool m_reboot;
+ bool m_ejectDisk;
+ bool m_randomPlay;
+ QString m_subtitleFontset;
+ QString m_bootMessageLanguage;
+ QString m_audioBackground;
+ QString m_keyboardLayout;
+ QStringList m_codecs;
+ QString m_defaultBootLabel;
+ QString m_additionalMPlayerOptions;
+ QString m_unwantedMPlayerOptions;
+ int m_loopPlaylist;
+ bool m_noDma;
+};
+
+#endif