#ifndef LOACLHTTPSERVER_H
#define LOACLHTTPSERVER_H

#include <QThread>
#include "Network/billSocket.h"
#include "Model/orderObject.h"
#include "Model/dishesObject.h"
#include "alertForm.h"
#include <QMap>
#include <JQHttpServer.h>
#include <QMutex>
#include <QDateTime>
#include <QJsonArray>
#include <QTimer>
#include <QPair>
#include <QMutex>

/*class:LoaclHttpServer 线程：接受客户端HTTP请求的服务*/

class LoaclHttpServer: public QThread
{
    Q_OBJECT
public:
    /* 功能: 接受客户端HTTP请求的服务的无参构造 [本地http服务]
     * 参数:NULL
     * 返回:NULL
     * */
    LoaclHttpServer();

private:
    // HttpServer
    JQHttpServer::TcpServerManage* m_tcpServerManage;
public:
    /* 功能:本线程执行的具体代码功能;
     * 参数:NULL
     * 返回:NULL
     * */
    void run();

    /* 功能:暂停本线程的清理任务;
     * 参数:NULL
     * 返回:NULL
     * */
    void stop();
};

#endif // LOACLHTTPSERVER_H
