-
Notifications
You must be signed in to change notification settings - Fork 0
/
threadb.h
51 lines (41 loc) · 978 Bytes
/
threadb.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
/*
This Program was written by Eric Baudach <[email protected]>
and is licensed under the GPL version 3 or newer versions of GPL.
<Copyright (C) 2010-2012 Eric Baudach>
*/
#ifndef THREADB_H
#define THREADB_H
#include <QString>
#include <QDir>
#include <QImage>
#include <QStringList>
#include <QIcon>
#include <QWidget>
#include <QThread>
#include <QListWidgetItem>
#include <QList>
#include <QStringList>
#include <QPair>
#include <QMetaType>
#include <QMutex>
class threadb : public QThread
{
Q_OBJECT
public:
explicit threadb(QWidget *parent = 0);
virtual void run();
bool shouldIStop;
bool IShouldSleep;
bool fileschanged;
private:
QMutex mutex;
Q_SIGNALS:
void valueChanged(const QImage&,const QString&);
void dublicateadd(QString);
void IShouldStop();
void ImageSaved(bool);
public Q_SLOTS:
void FileAdded(const QStringList &);
void sleeping(int);
};
#endif // THREADB_H