fix名字不统一

This commit is contained in:
shenmo
2020-11-18 19:49:22 +08:00
parent 61591b793a
commit c324f501bb
24 changed files with 6 additions and 6 deletions

View File

@@ -0,0 +1,45 @@
#ifndef HTTPSD_H
#define HTTPSD_H
#include <QObject>
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
#define SSL_SERVER 1
#else
#define SSL_SERVER 0
#endif
namespace httplib
{
class Server;
#if SSL_SERVER
class SSLServer;
#endif
}
class HttpD : public QObject
{
Q_OBJECT
public:
#if SSL_SERVER
explicit HttpD(QString szRootPath, quint16 u16Port, quint16 u16sslPort, QObject *parent = nullptr);
#else
explicit HttpD(QString szRootPath, quint16 u16Port, QObject *parent = nullptr);
#endif
public slots:
void start();
void stop();
private:
QString m_szRootPath;
#if SSL_SERVER
httplib::SSLServer *m_httpsServer;
quint16 m_u16HttpsServerBindPort;
#endif
httplib::Server *m_httpServer;
quint16 m_u16HttpServerBindPort;
};
#endif // HTTPSD_H