#ifndef AVPLAYER2_STOPPLAY_WAITING_THREAD_H #define AVPLAYER2_STOPPLAY_WAITING_THREAD_H #pragma once #include "ThreadBase.h" #include #include class PlayerController; class StopWaitingThread : public ThreadBase { public: StopWaitingThread(const StopWaitingThread&) = delete; StopWaitingThread& operator=(const StopWaitingThread&) = delete; StopWaitingThread(StopWaitingThread&&) = delete; StopWaitingThread& operator=(StopWaitingThread&&) = delete; explicit StopWaitingThread(PlayerController* parent, const std::string& file = ""); ~StopWaitingThread(); void stop() override; protected: void run() override; private: std::string m_file; PlayerController* m_parent; }; #endif // AVPLAYER2_STOPPLAY_WAITING_THREAD_H