You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
753 B
C++
42 lines
753 B
C++
#ifndef CUPDATETHREAD_H
|
|
#define CUPDATETHREAD_H
|
|
|
|
|
|
#include "cmessagedialog.h"
|
|
|
|
#include "cserie.h"
|
|
|
|
#include <QThread>
|
|
#include <QMutexLocker>
|
|
#include <QList>
|
|
#include <QStandardItem>
|
|
#include <QSqlDatabase>
|
|
|
|
|
|
class cUpdateThread : public QThread
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit cUpdateThread();
|
|
|
|
void setData(cMessageDialog *lpMessageDialog, const cSerieList& serieList, const QSqlDatabase& db);
|
|
public slots:
|
|
void stop();
|
|
|
|
signals:
|
|
void updateMessage(const QString& szMessage, const qint32 &iProgress);
|
|
void updateAppendMessage(const QString& szMessage);
|
|
|
|
private:
|
|
QMutex m_mutex;
|
|
bool m_bStop;
|
|
cSerieList m_serieList;
|
|
QSqlDatabase m_db;
|
|
QWidget* m_lpParent;
|
|
|
|
void run();
|
|
};
|
|
|
|
#endif // CUPDATETHREAD_H
|