diff options
Diffstat (limited to 'project2/common/session.h')
-rw-r--r-- | project2/common/session.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/project2/common/session.h b/project2/common/session.h index 267dc51..e1f0b24 100644 --- a/project2/common/session.h +++ b/project2/common/session.h @@ -17,6 +17,7 @@ class Session : public virtual IntrusivePtrBase { typedef std::map<Glib::ustring, VariableType> Values; typedef boost::function2<void, const Glib::ustring &, const VariableType &> SVH; + Session(); Session(const UUID & id); virtual ~Session(); @@ -26,8 +27,7 @@ class Session : public virtual IntrusivePtrBase { void ClearValue(const Glib::ustring & name); bool Empty() const; time_t ExpiryTime() const; - - const UUID ID; + const UUID & ID() const; protected: void ExpiryTime(time_t); @@ -35,6 +35,9 @@ class Session : public virtual IntrusivePtrBase { Values vars; time_t expires; + + private: + mutable UUID id; }; typedef boost::intrusive_ptr<Session> SessionPtr; |