summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/session/SessionI.h
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2005-04-18 19:06:51 +0000
committerMarc Laukien <marc@zeroc.com>2005-04-18 19:06:51 +0000
commitd0d811b957b92a8a92730c19d0d6f5d6651d8c6f (patch)
treef1c58b12bb4630236bf25ab17c6016c9846bc168 /cpp/demo/Ice/session/SessionI.h
parentuse config/common.xml (diff)
downloadice-d0d811b957b92a8a92730c19d0d6f5d6651d8c6f.tar.bz2
ice-d0d811b957b92a8a92730c19d0d6f5d6651d8c6f.tar.xz
ice-d0d811b957b92a8a92730c19d0d6f5d6651d8c6f.zip
comments
Diffstat (limited to 'cpp/demo/Ice/session/SessionI.h')
-rwxr-xr-xcpp/demo/Ice/session/SessionI.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/demo/Ice/session/SessionI.h b/cpp/demo/Ice/session/SessionI.h
index a56fb9c9a2e..9dd23990d01 100755
--- a/cpp/demo/Ice/session/SessionI.h
+++ b/cpp/demo/Ice/session/SessionI.h
@@ -13,10 +13,14 @@
#include <Session.h>
#include <list>
+// XXX Get rid of leading ::, i.e., use Demo::, not ::Demo::
+// (everywhere).
+
class SessionI : public ::Demo::Session, public IceUtil::Mutex
{
public:
+ // XXX Should be private, with SessionFactoryI being a friend.
SessionI(const Ice::ObjectAdapterPtr&, const IceUtil::Time&);
virtual ~SessionI();
@@ -24,10 +28,13 @@ public:
virtual void refresh(const Ice::Current&);
virtual void destroy(const Ice::Current&);
+ // XXX Should be private, with SessionFactoryI being a friend.
// Return true if the session is destroyed, false otherwise.
bool destroyed() const;
- // Called when the session is destroyed. This should release any
+ // XXX Should be private, with SessionFactoryI being a friend.
+ // XXX The name is wrong. It's not a callback, it's a call.
+ // XXX Why have this function at all? Why not do whatever this function does directly in destroy()?
// per-client allocated resources.
void destroyCallback();