From 775d9c9c11f3906766c0dc7070eb7ef01606ef96 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 28 Jan 2011 08:50:42 +0000 Subject: New cross client system. --- server/src/session.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'server/src/session.h') 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 -- cgit v1.2.3