diff options
author | Matthew Newhook <matthew@zeroc.com> | 2005-04-14 01:29:28 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2005-04-14 01:29:28 +0000 |
commit | 7316f0f15f5d3019d5af909438adec113cd7cf87 (patch) | |
tree | 6406baa1a19d795e70aba4d9f936d7b3e43e085b /cpp/demo/Ice/session/SessionI.h | |
parent | fixes (diff) | |
download | ice-7316f0f15f5d3019d5af909438adec113cd7cf87.tar.bz2 ice-7316f0f15f5d3019d5af909438adec113cd7cf87.tar.xz ice-7316f0f15f5d3019d5af909438adec113cd7cf87.zip |
demo refactor/redesign.
Diffstat (limited to 'cpp/demo/Ice/session/SessionI.h')
-rwxr-xr-x | cpp/demo/Ice/session/SessionI.h | 41 |
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 |