]> git.sesse.net Git - kdenlive/blob - src/renderjob.h
Autodetect jogshuttle device, improve handling
[kdenlive] / src / renderjob.h
1 /***************************************************************************
2  *   Copyright (C) 2007 by Jean-Baptiste Mardelle (jb@kdenlive.org)        *
3  *                                                                         *
4  *   This program is free software; you can redistribute it and/or modify  *
5  *   it under the terms of the GNU General Public License as published by  *
6  *   the Free Software Foundation; either version 2 of the License, or     *
7  *   (at your option) any later version.                                   *
8  *                                                                         *
9  *   This program is distributed in the hope that it will be useful,       *
10  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12  *   GNU General Public License for more details.                          *
13  *                                                                         *
14  *   You should have received a copy of the GNU General Public License     *
15  *   along with this program; if not, write to the                         *
16  *   Free Software Foundation, Inc.,                                       *
17  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
18  ***************************************************************************/
19
20
21 #ifndef RENDERJOB_H
22 #define RENDERJOB_H
23
24 #include <KJob>
25 #include <KUrl>
26 #include <KProcess>
27 #include <kio/job.h>
28 #include <kio/filejob.h>
29
30 #include "gentime.h"
31 #include "definitions.h"
32 #include "docclipbase.h"
33
34 class RenderJob : public KJob {
35     Q_OBJECT
36 public:
37     RenderJob(KUrl scenelist, KUrl dest);
38     ~RenderJob();
39
40     void registerJob(KJob *);
41     void unregisterJob(KJob *);
42
43     void start();
44     unsigned long percent() const;
45
46 private slots:
47     void update();
48     void slotIsOver(int exitcode, QProcess::ExitStatus status);
49     void receivedStderr();
50
51 private:
52     KUrl m_scenelist;
53     KUrl m_dest;
54     int m_progress;
55     KProcess *m_renderProcess;
56 };
57
58 #endif