QDjango: QDjangoFastCgiServer.h Source File

QDjango

QDjangoFastCgiServer.h
1 /*
2 * Copyright (C) 2010-2015 Jeremy Lainé
3 * Contact: https://github.com/jlaine/qdjango
4 *
5 * This file is part of the QDjango Library.
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 */
17
18 #ifndef QDJANGO_FASTCGI_SERVER_H
19 #define QDJANGO_FASTCGI_SERVER_H
20
21 #include <QHostAddress>
22 #include <QObject>
23
24 #include "QDjangoHttp_p.h"
25
26 class QDjangoFastCgiServerPrivate;
27 class QDjangoHttpController;
28 class QDjangoUrlResolver;
29
40 class QDJANGO_HTTP_EXPORT QDjangoFastCgiServer : public QObject
41 {
42 Q_OBJECT
43
44 public:
45 QDjangoFastCgiServer(QObject *parent = 0);
46 ~QDjangoFastCgiServer();
47
48 void close();
49 bool listen(const QString &name);
50 bool listen(const QHostAddress &address, quint16 port);
51 QDjangoUrlResolver *urls() const;
52
53 private slots:
54 void _q_newLocalConnection();
55 void _q_newTcpConnection();
56
57 private:
58 Q_DISABLE_COPY(QDjangoFastCgiServer)
59 QDjangoFastCgiServerPrivate *d;
60 };
61
62 #endif
QDjangoHttpController
The QDjangoHttpController class provides static methods for replying to HTTP requests.
Definition: QDjangoHttpController.h:35
QDjangoFastCgiServer
The QDjangoFastCgiServer class represents a FastCGI server.
Definition: QDjangoFastCgiServer.h:41
QDjangoUrlResolver
The QDjangoUrlResolver class maps incoming HTTP requests to handlers.
Definition: QDjangoUrlResolver.h:36