This repository has been archived by the owner on Sep 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy paththumbnailrunnable.h
72 lines (60 loc) · 1.83 KB
/
thumbnailrunnable.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/***************************************************************************//**
* @brief Thumbnail me 3.0
* Thumbnail me is a user interface for Movie thumbnailer.
* Generate thumbnails from any movie is now easier !
*
* @file ThumbnailRunnable.h
* @class ThumbnailRunnable
* Représente une instance runnable (thread).
*
* @author Quentin Rousseau\n
* @note Copyright (C) 2011-2012 Quentin Rousseau\n
* License: GNU General Public License version 2 (GPLv2) - http://www.gnu.org/licenses/gpl-2.0.html\n
* Site web: www.thumbnailme.com\n
* Email: [email protected]
*
* @since 3.5
* @version 3.5
* @date 2011-2012
*******************************************************************************/
#ifndef THUMBNAILRUNNABLE_H
#define THUMBNAILRUNNABLE_H
#include <QObject>
#include <QRunnable>
#include <QByteArray>
#include "mtn/mtn.h"
#ifdef __cplusplus
extern "C"
{
extern struct params parameters;
extern char logs[1000000];
extern const char* process_file();
}
#endif
class ThumbnailItem;
class MainWindow;
#include "ThumbnailEngine.h"
class ThumbnailRunnable : public QObject, public QRunnable
{
Q_OBJECT
public:
explicit ThumbnailRunnable(MainWindow *main_window, ThumbnailItem *item, QString suffix, ThumbnailEngine::Mode mode);
private:
ThumbnailItem *item;
QString suffix;
MainWindow *main_window;
QByteArray argv0Array;
QByteArray F_ts_fontnameArray;
QByteArray f_fontnameArray;
QByteArray o_suffixArray;
QByteArray O_outdir;
QByteArray T_textArray;
ThumbnailEngine::Mode modeConversion;
protected:
void run();
signals:
void started(ThumbnailItem*);
void failed (ThumbnailItem*);
void finished(ThumbnailItem*);
};
#endif // THUMBNAILRUNNABLE_H