teleport/client/tp-player/thr_play.h

30 lines
522 B
C++

#ifndef THR_PLAY_H
#define THR_PLAY_H
#include <QThread>
#include "update_data.h"
class ThreadPlay : public QThread
{
Q_OBJECT
public:
ThreadPlay();
virtual void run();
void stop();
void pause() {m_need_pause = true;}
void resume() {m_need_pause = false;}
void speed(int s) {if(s >= 1 && s <= 16) m_speed = s;}
signals:
void signal_update_data(update_data*);
private:
bool m_need_stop;
bool m_need_pause;
int m_speed;
};
#endif // THR_PLAY_H