~george-edison55/jethttp/jethttp-singlethread

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//=================================================
//
//            JetHTTP - CJetHTTPServer.h
//           Copyright 2011 - Nathan Osman
//     This file is released under the GPL v3
//
//=================================================

#ifndef CJETHTTPSERVER_H
#define CJETHTTPSERVER_H

// Qt includes
#include <QTcpServer>

// JetHTTP includes
#include <CSettingManager.h>

class CJetHTTPServer : public QTcpServer
{
    Q_OBJECT

public:

    // Constructor / destructor
    CJetHTTPServer();
    ~CJetHTTPServer();

public slots:

    void OnNewConnection();

    // Only used on Linux
    void OnSignal(int);

private:

    // Used for storing settings
    CSettingManager m_settings;

};

#endif // CJETHTTPSERVER_H