From e2cb74cd5a7f6153b79c3059d64344fec826eb22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sat, 5 Oct 2013 14:38:51 +0200 Subject: [PATCH] fixed build issues --- YACReaderLibrary/server/main.cpp | 58 ------------------------------- YACReaderLibrary/server/startup.h | 2 ++ 2 files changed, 2 insertions(+), 58 deletions(-) delete mode 100644 YACReaderLibrary/server/main.cpp diff --git a/YACReaderLibrary/server/main.cpp b/YACReaderLibrary/server/main.cpp deleted file mode 100644 index d5ac4be5..00000000 --- a/YACReaderLibrary/server/main.cpp +++ /dev/null @@ -1,58 +0,0 @@ -/** - @file - @author Stefan Frings -*/ - -/** - @mainpage - This project provies libraries for writing server-side web application in C++ - based on the Qt toolkit. It is a light-weight implementation that works like - Java Servlets from the programmers point of view. -

- Features: - - - HTTP 1.1 web server - - persistent connections - - chunked and non-chunked transfer - - file uploads (multipart encoded forms) - - cookies - - sessions - - uses dynamic thread pool - - optional file cache - - Template engine - - multi-language - - optional file cache - - Logger - - configurable without program restart - - automatic backup and file rotation - - configurable message format - - messages may contain thread-local variables - - optional buffer for writing history details in case of an error - - Example application - - Install and run as Windows service, unix daemon or at the command-line - - Search config file in multiple common directories - - Demonstrates how to write servlets for common use-cases - - If you write a real application based on this source, take a look into startup.cpp, - which contains startup and shutdown procedures. The example source sets - up a single listener on port 8080, however multiple listeners with individual - configuration could be set up. -

- Incoming requests are mapped to controller classes in requestmapper.cpp, based on the - requested path. If you want to learn form the example, then focus on these classes. -

- High-availability and HTTPS encryption can be easily added by putting an Apache HTTP server - in front of the self-written web application using the mod-proxy module with sticky sessions. -*/ - -#include "startup.h" - -/** - Entry point of the program. - Passes control to the service helper. -*/ -int main(int argc, char *argv[]) { - // Use a qtservice wrapper to start the application as a Windows service or Unix daemon - Startup startup(argc, argv); - return startup.exec(); -} diff --git a/YACReaderLibrary/server/startup.h b/YACReaderLibrary/server/startup.h index a3573e26..1ad5ebbe 100644 --- a/YACReaderLibrary/server/startup.h +++ b/YACReaderLibrary/server/startup.h @@ -6,6 +6,8 @@ #ifndef STARTUP_H #define STARTUP_H +#include + class HttpListener; /** Helper class to install and run the application as a windows