diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-17 00:32:19 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-17 00:32:19 +0000 |
commit | 0d382a262c0638d0f572fc37193ccc5ed3dc895f (patch) | |
tree | 8578dcddfce4191f3f7a142a37769df7add48475 /k9author/k9newdvd.h | |
download | k9copy-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 'k9author/k9newdvd.h')
-rw-r--r-- | k9author/k9newdvd.h | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/k9author/k9newdvd.h b/k9author/k9newdvd.h new file mode 100644 index 0000000..bc56b95 --- /dev/null +++ b/k9author/k9newdvd.h @@ -0,0 +1,95 @@ +// +// C++ Interface: k9newdvd +// +// Description: +// +// +// Author: Jean-Michel PETIT <[email protected]>, (C) 2007 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#ifndef K9NEWDVD_H +#define K9NEWDVD_H + +#include "k9common.h" +#include <qobject.h> +#include <qptrlist.h> +#include <qdom.h> +#include <qdatetime.h> +#include "k9process.h" +#include "k9progress.h" +#include "k9avidecode.h" +#include "k9config.h" + + +/** + @author Jean-Michel PETIT <[email protected]> +*/ +class k9Title; +class k9AviFile; +class k9Menu; +class k9ProcessList; +class k9NewDVDItems : public QPtrList<k9Title> { +protected: + virtual int compareItems ( QPtrCollection::Item item1,QPtrCollection::Item item2 ); +}; + +class k9NewDVD : public QObject { + Q_OBJECT +public: + enum eFormat {NTSC=2,PAL=1}; + k9NewDVD ( QObject *parent = 0, const char *name = 0 ); + ~k9NewDVD(); + k9NewDVDItems* getTitles() { + return &m_titles; + } + eFormat m_format; + + void execute(); + void createXML(); + void addTitles ( QDomElement &_root ); + void setFormat ( const eFormat& _value ); + + void setWorkDir ( const QString& _value ); + void appendTitle ( k9Title *_title ); + + void setProcessList(k9ProcessList *_value); + eFormat getFormat() const; + + int getTotalTime(); + k9Menu* getRootMenu() const; + + QString getError() const; + +private: + k9NewDVDItems m_titles; + QStringList m_tmpFiles; + QDomDocument *m_xml; + QString m_workDir; + k9ProcessList *m_processList; + QTime m_timer; + QTime m_timer2; + QTime m_timer3; + k9Menu *m_rootMenu; + bool m_cancel; + QString m_error; + QString m_stdout; + int m_videoBitrate; + k9AviDecode m_aviDecode; + int m_totalEncodedSize; + int m_offset; + int m_lastvalue; + QMap <k9Process*,QTime> m_timers; + void calcVideoBitrate(); + void createMencoderCmd ( QString &_cmd,QString &_chapters, k9AviFile *_aviFile ); + k9Config *m_config; +protected slots: + void getStdout ( KProcess *, char *, int ); + void getStderr ( KProcess *, char *, int ); + void drawImage ( QImage * _image ); +signals: + void sigAddTitle(); +}; + +#endif |