summaryrefslogtreecommitdiffstats
path: root/kaudiocreator/job.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commite2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch)
tree9047cf9e6b5c43878d5bf82660adae77ceee097a /kaudiocreator/job.h
downloadtdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.tar.gz
tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaudiocreator/job.h')
-rw-r--r--kaudiocreator/job.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/kaudiocreator/job.h b/kaudiocreator/job.h
new file mode 100644
index 00000000..e0a4d577
--- /dev/null
+++ b/kaudiocreator/job.h
@@ -0,0 +1,78 @@
+/**
+ * This file is part of the KAudioCreator package
+ * Copyright (C) 2003 Benjamin C Meyer (ben+kaudiocreator at meyerhome dot 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 library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef JOB_H
+#define JOB_H
+
+#include <qmap.h>
+#include <klocale.h>
+
+/**
+ * The job class is what is passed around the system. All of the data about
+ * the file being ripped and encoded is stored in here.
+ */
+class Job{
+
+public:
+ inline Job():id(-1),track_title(""),track_artist(""), track(-1),track_comment(""), year(-1), genre(i18n("Other")), group(""), album(""), comment(""), lastSongInAlbum(false), removeTempFile(true), encoder(-1) {};
+
+ QString replaceSpecialChars(const QString &string, bool quote, QMap<QString,QString> map);
+
+ void fix( const QString &in, const QString &out );
+
+ // The device to obtain the file such as /dev/cdrom/ (Used when ripping and ejecting)
+ QString device;
+ int id;
+
+ QString track_title;
+ QString track_artist;
+ int track;
+ QString track_comment;
+ int year;
+ QString genre;
+
+ QString group;
+ QString album;
+ QString comment;
+
+ // Currently location of file X
+ QString location;
+
+ // New location of a file after current opertation is complete (rip/encode).
+ QString newLocation;
+
+ // What was just attempted to do via this job and is spit out in the event
+ // of an error.
+ QString errorString;
+
+ // If this is the last track to be ripped then value is true.
+ bool lastSongInAlbum;
+
+ // If the file should be removed when finished encoding
+ bool removeTempFile;
+
+ // output from the processing.
+ QString output;
+
+ int encoder;
+};
+
+#endif // JOB_H
+