diff options
Diffstat (limited to 'server/src/session.h')
-rw-r--r-- | server/src/session.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/server/src/session.h b/server/src/session.h index c0f6dfc..5b9b0bb 100644 --- a/server/src/session.h +++ b/server/src/session.h @@ -38,7 +38,7 @@ class Journal; class Session { public: - Session(std::string sessionid = ""); + Session(std::string sessionid, std::string patientid, std::string templ); ~Session(); std::string id(); @@ -53,6 +53,9 @@ public: Journal *journal(); Database *database(); + std::string patientid; + std::string templ; + private: Journal *_journal; Database *_database; @@ -67,7 +70,7 @@ public: * Create a new session, with a unique id. Insert it into the session list, * and return its pointer. */ - Session *newSession(); + Session *newSession(std::string patientid, std::string templ); /** * Lookup session in session list. Returns the session or NULL if no session |