Torc  0.1
torchtmlhandler.h
Go to the documentation of this file.
1 #ifndef TORCHTMLHANDLER_H
2 #define TORCHTMLHANDLER_H
3 
4 // Qt
5 #include <QCoreApplication>
6 
7 // Torc
8 #include "torchttphandler.h"
9 
10 class TorcHTTPServer;
11 class TorcHTTPRequest;
12 
14 {
15  Q_DECLARE_TR_FUNCTIONS(TorcHTMLHandler)
16 
17  public:
18  TorcHTMLHandler(const QString &Path, const QString &Name);
19  virtual void ProcessHTTPRequest (const QString &PeerAddress, int PeerPort, const QString &LocalAddress, int LocalPort, TorcHTTPRequest &Request) override;
20 
21  private:
22  QString m_pathToContent;
23  QStringList m_allowedFiles;
24 };
25 
26 #endif // TORCHTMLHANDLER_H
virtual void ProcessHTTPRequest(const QString &PeerAddress, int PeerPort, const QString &LocalAddress, int LocalPort, TorcHTTPRequest &Request) override
A class to encapsulate an incoming HTTP request.
Base HTTP response handler class.
TorcHTMLHandler(const QString &Path, const QString &Name)
QString Name(void) const
Base HTML handler.
An HTTP server.