summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/session/SessionI.h
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-04-14 01:29:28 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-04-14 01:29:28 +0000
commit7316f0f15f5d3019d5af909438adec113cd7cf87 (patch)
tree6406baa1a19d795e70aba4d9f936d7b3e43e085b /cpp/demo/Ice/session/SessionI.h
parentfixes (diff)
downloadice-7316f0f15f5d3019d5af909438adec113cd7cf87.tar.bz2
ice-7316f0f15f5d3019d5af909438adec113cd7cf87.tar.xz
ice-7316f0f15f5d3019d5af909438adec113cd7cf87.zip
demo refactor/redesign.
Diffstat (limited to 'cpp/demo/Ice/session/SessionI.h')
-rwxr-xr-xcpp/demo/Ice/session/SessionI.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/cpp/demo/Ice/session/SessionI.h b/cpp/demo/Ice/session/SessionI.h
new file mode 100755
index 00000000000..b5eb81088bd
--- /dev/null
+++ b/cpp/demo/Ice/session/SessionI.h
@@ -0,0 +1,41 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2005 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+#ifndef SESSION_I_H
+#define SESSION_I_H
+
+#include <Session.h>
+#include <list>
+
+class SessionI : public ::Demo::Session, public IceUtil::Mutex
+{
+public:
+
+ SessionI(const Ice::ObjectAdapterPtr&, const IceUtil::Time&);
+ ~SessionI();
+
+ virtual ::Demo::HelloPrx createHello(const Ice::Current&);
+ virtual void destroy(const Ice::Current&);
+ virtual void refresh(const Ice::Current&);
+
+ bool destroyed() const;
+ void destroyCallback();
+
+private:
+
+ const Ice::ObjectAdapterPtr _adapter;
+ const IceUtil::Time _timeout;
+ int _nextId;
+ bool _destroy;
+ IceUtil::Time _refreshTime;
+ std::list<::Demo::HelloPrx> _objs;
+};
+typedef IceUtil::Handle<SessionI> SessionIPtr;
+
+#endif