summaryrefslogtreecommitdiffstats
path: root/libk9copy/k9burndvd.h
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/k9burndvd.h
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/k9burndvd.h')
-rw-r--r--libk9copy/k9burndvd.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/libk9copy/k9burndvd.h b/libk9copy/k9burndvd.h
new file mode 100644
index 0000000..6d9948c
--- /dev/null
+++ b/libk9copy/k9burndvd.h
@@ -0,0 +1,83 @@
+/**************************************************************************
+* Copyright (C) 2005 by Jean-Michel Petit *
+* jm_petit@laposte.net *
+* *
+* 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. *
+* *
+* This program is distributed in the hope that it will be useful, *
+* but WITHOUT ANY WARRANTY; without even the implied warranty of *
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+* GNU General Public License for more details. *
+* *
+* You should have received a copy of the GNU General Public License *
+* along with this program; if not, write to the *
+* Free Software Foundation, Inc., *
+* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
+***************************************************************************/
+#ifndef k9BurnDVD_H
+#define k9BurnDVD_H
+
+#include "k9common.h"
+#include "k9progress.h"
+
+#include <k9process.h>
+#include <klocale.h>
+
+/**
+@author Jean-Michel PETIT
+*/
+class k9BurnDVD: public QObject
+{
+Q_OBJECT
+public:
+ k9BurnDVD();
+
+ ~k9BurnDVD();
+ virtual void setburnDevice( const QString& _newVal);
+ virtual const QString& getburnDevice();
+ virtual QWidget* getDialog() {return progress;};
+ void setworkDir( const QString& _newVal);
+ void setvolId(QString _newVal);
+ void setUseK3b(bool _newVal);
+ void setAutoBurn (bool _newVal);
+ void burn();
+ void makeIso(QString _filename);
+
+ void setSpeed(const QString& _value) { m_speed = _value;}
+
+private:
+ QTime *time;
+ k9Progress *progress;
+ k9Process *proc;
+ k9Process *proc2;
+ QString volId;
+ float burnSpeed;
+ QString burnDevice;
+ QString lastMsg;
+ QString workDir;
+ QString m_filename;
+ bool cancelled;
+ bool useK3b;
+ bool autoBurn;
+ bool iso;
+ bool m_cdrkit;
+ void burnWithGrowisofs();
+ void burnWithGenisoimage();
+ void getGenisoimageCmd(k9Process *proc,QString _fileName,bool _printSize);
+ void getWodimCmd(k9Process *proc);
+
+ void burnWithK3b();
+ const QString &getImageSize();
+ QString imageSize;
+ QString m_speed;
+private slots: // Private slots
+ void growisoStderr(KProcess *proc, char *buffer, int buflen);
+ void growisoStdout(KProcess *proc, char *buffer, int buflen);
+ void mkisoSizeStderr(KProcess *proc, char *buffer, int buflen);
+ void mkisoSizeStdout(KProcess *proc, char *buffer, int buflen);
+};
+
+#endif