Starts the server; make slight changes in server code
so that it understands qt's resource system (qrc)
we can use that to manage the html related files
(would be stored in app bundle for mac osx, and in
perhaps /usr/local/share for Linux by qt)
Change-Id: I8cc9e7bd99000d287bac5e6c8bd86008924351c6
diff --git a/server/request_handler.hpp b/server/request_handler.hpp
index 661bad7..384907c 100644
--- a/server/request_handler.hpp
+++ b/server/request_handler.hpp
@@ -13,6 +13,7 @@
#include <string>
#include <boost/noncopyable.hpp>
+#include <QDir>
namespace http {
namespace server {
@@ -33,7 +34,7 @@
private:
/// The directory containing the files to be served.
- std::string doc_root_;
+ QDir doc_root_;
/// Perform URL-decoding on a string. Returns false if the encoding was
/// invalid.