You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
420 B
29 lines
420 B
#ifndef SERVICEMANAGER_H
|
|
#define SERVICEMANAGER_H
|
|
|
|
#include "Singleton.h"
|
|
#include <hv/HttpServer.h>
|
|
#include <QtGlobal>
|
|
|
|
class ServiceManager : public Singleton<ServiceManager>
|
|
{
|
|
|
|
private:
|
|
|
|
hv::HttpService _router;
|
|
|
|
http_server_t _server;
|
|
|
|
public:
|
|
ServiceManager();
|
|
|
|
public:
|
|
/**
|
|
* @brief run 运行
|
|
* @param port 端口
|
|
*/
|
|
void run(qint32 port);
|
|
};
|
|
|
|
#endif // SERVICEMANAGER_H
|