MythTV
master
libs
libmythbase
http
mythhttpthread.h
Go to the documentation of this file.
1
#ifndef MYTHHTTPTHREAD_H
2
#define MYTHHTTPTHREAD_H
3
4
// MythTV
5
#include "
libmythbase/http/mythhttptypes.h
"
6
#include "
libmythbase/mthread.h
"
7
8
class
MythHTTPSocket
;
9
class
MythHTTPServer
;
10
class
MythHTTPThreadPool
;
11
12
class
MythHTTPThread
:
public
MThread
13
{
14
public
:
15
MythHTTPThread
(
MythHTTPServer
* Server,
MythHTTPConfig
Config,
16
const
QString& ThreadName, qintptr Socket,
bool
Ssl);
17
void
Quit
();
18
19
protected
:
20
void
run
()
override
;
21
22
private
:
23
Q_DISABLE_COPY(
MythHTTPThread
)
24
25
MythHTTPServer
*
m_server
{
nullptr
};
26
MythHTTPConfig
m_config
;
27
qintptr
m_socketFD
{ 0 };
28
MythHTTPSocket
*
m_socket
{
nullptr
};
29
bool
m_ssl
{
false
};
30
};
31
32
#endif
MythHTTPThread::m_server
MythHTTPServer * m_server
Definition:
mythhttpthread.h:25
MythHTTPThread::m_socket
MythHTTPSocket * m_socket
Definition:
mythhttpthread.h:28
MythHTTPThread::m_config
MythHTTPConfig m_config
Definition:
mythhttpthread.h:26
MythHTTPThread::m_ssl
bool m_ssl
Definition:
mythhttpthread.h:29
mythhttptypes.h
MythHTTPThread
Definition:
mythhttpthread.h:12
MythHTTPThread::Quit
void Quit()
Tell the socket to complete and disconnect.
Definition:
mythhttpthread.cpp:43
MythHTTPThread::run
void run() override
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
Definition:
mythhttpthread.cpp:20
MythHTTPThread::MythHTTPThread
MythHTTPThread(MythHTTPServer *Server, MythHTTPConfig Config, const QString &ThreadName, qintptr Socket, bool Ssl)
Definition:
mythhttpthread.cpp:10
MythHTTPSocket
Definition:
mythhttpsocket.h:18
MThread
This is a wrapper around QThread that does several additional things.
Definition:
mthread.h:48
mthread.h
MythHTTPServer
Definition:
mythhttpserver.h:12
MythHTTPThread::m_socketFD
qintptr m_socketFD
Definition:
mythhttpthread.h:27
MythHTTPConfig
Definition:
mythhttptypes.h:60
MythHTTPThreadPool
Definition:
mythhttpthreadpool.h:9
Generated on Mon Apr 22 2024 03:20:16 for MythTV by
1.8.17