Created UserInterface namespace, WebServerService -> UserInterfaceService.

This commit is contained in:
emeric
2014-04-12 21:28:20 +02:00
parent 788a7638bc
commit 298f6fb885
46 changed files with 291 additions and 167 deletions
+35
View File
@@ -0,0 +1,35 @@
#ifndef UI_SESSION_DATA_HPP
#define UI_SESSION_DATA_HPP
#include <string>
#include <boost/filesystem.hpp>
#include "database/DatabaseHandler.hpp"
namespace UserInterface {
class SessionData
{
public:
SessionData(boost::filesystem::path dbPath);
void setAuthenticatedUser(std::string user);
DatabaseHandler& getDatabaseHandler() { return _db;}
const DatabaseHandler& getDatabaseHandler() const { return _db;}
private:
DatabaseHandler _db;
std::string _authenticatedUser;
};
} // namespace UserInterface
#endif