7#define LOC (QString("%1: ").arg(objectName()))
10 const QString& ThreadName, qintptr Socket,
bool Ssl)
13 m_config(
std::move(Config)),
This is a wrapper around QThread that does several additional things.
void RunProlog(void)
Sets up a thread, call this if you reimplement run().
int exec(void)
Enters the qt event loop. call exit or quit to exit thread.
void RunEpilog(void)
Cleans up a thread's resources, call this if you reimplement run().
void ServicesChanged(const HTTPServices &Services)
void HandlersChanged(const HTTPHandlers &Handlers)
void OriginsChanged(const QStringList &Origins)
void PathsChanged(const QStringList &Paths)
void HostsChanged(const QStringList &Hosts)
void ThreadUpgraded(QThread *Thread)
void PathsChanged(const QStringList &Paths)
Update our list of recognised file paths.
void HandlersChanged(const HTTPHandlers &Handlers)
void OriginsChanged(const QStringList &Origins)
Update the list of allowed Origins.
void ServicesChanged(const HTTPServices &Services)
void HostsChanged(const QStringList &Hosts)
void ThreadUpgraded(QThread *Thread)
void Quit()
Tell the socket to complete and disconnect.
MythHTTPServer * m_server
MythHTTPThread(MythHTTPServer *Server, MythHTTPConfig Config, const QString &ThreadName, qintptr Socket, bool Ssl)
void run() override
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
MythHTTPSocket * m_socket