summaryrefslogtreecommitdiff
path: root/project2/common/session.h
diff options
context:
space:
mode:
Diffstat (limited to 'project2/common/session.h')
-rw-r--r--project2/common/session.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/project2/common/session.h b/project2/common/session.h
index 7b66db9..ea72c54 100644
--- a/project2/common/session.h
+++ b/project2/common/session.h
@@ -1,6 +1,7 @@
#ifndef SESSION_H
#define SESSION_H
+#include <uuid.h>
#include <map>
#include <glibmm/ustring.h>
#include <boost/intrusive_ptr.hpp>
@@ -14,15 +15,17 @@ class Session : public virtual IntrusivePtrBase {
SimpleMessageException(VariableNotFound);
typedef std::map<Glib::ustring, VariableType> Values;
- Session();
+ Session(const UUID & id);
virtual ~Session() = 0;
- virtual const VariableType & GetValue(const Glib::ustring & name) const = 0;
+ virtual VariableType GetValue(const Glib::ustring & name) const = 0;
virtual Values GetValuesCopy() const = 0;
virtual void SetValue(const Glib::ustring & name, const VariableType & value) = 0;
virtual void ClearValue(const Glib::ustring & name) = 0;
virtual time_t ExpiryTime() const = 0;
+ const UUID ID;
+
protected:
virtual void ExpiryTime(time_t) = 0;
friend class SessionContainer;