]> git.sesse.net Git - kdenlive/blob - src/renderjob.h
Rewrote the handling of timeline in QGraphicsView. Now we use the built in zoom featu...
[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
33 class RenderJob : public KJob {
34     Q_OBJECT
35 public:
36     RenderJob(KUrl scenelist, KUrl dest);
37     ~RenderJob();
38
39     void registerJob(KJob *);
40     void unregisterJob(KJob *);
41
42     void start();
43     unsigned long percent() const;
44
45 private slots:
46     void update();
47     void slotIsOver(int exitcode, QProcess::ExitStatus status);
48     void receivedStderr();
49
50 private:
51     KUrl m_scenelist;
52     KUrl m_dest;
53     int m_progress;
54     KProcess *m_renderProcess;
55 };
56
57 #endif