Created UserInterface namespace, WebServerService -> UserInterfaceService.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#include "SessionData.hpp"
|
||||
|
||||
namespace UserInterface {
|
||||
|
||||
SessionData::SessionData(boost::filesystem::path dbPath)
|
||||
: _db(dbPath)
|
||||
{
|
||||
}
|
||||
|
||||
} // namespace UserInterface
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user