interreality.org [VOS]
[Home] [About]
[Screenshots]
[Download]
[News]
[Community]
[Documentation] [Manual]
[Bugs & Requests] [Wiki]

/home/tetron/hack/vos/libs/vos/vos/remotelistener.hh

Go to the documentation of this file.
00001 #ifndef _REMOTELISTENER_HH_
00002 #define _REMOTELISTENER_HH_
00003 
00004 #include <vos/vos/metaobject.hh>
00005 #include <vos/vos/listener.hh>
00006 
00007 namespace VOS {
00008 
00009     /** @class RemoteListener remotelistener.hh vos/vos/remotelistener.hh
00010         @ingroup libvos
00011 
00012         An internal class used to augment a remote site to accept
00013         notify event and dispatch the update messages peers over
00014         the network.
00015     */
00016     class VOS_API RemoteListener : public MetaObject,
00017                                    public ChildChangeListener,
00018                                    public ParentChangeListener,
00019                                    public TypeChangeListener
00020     {
00021     private:
00022         void domsg(VobjectEvent& e, const std::string& method);
00023     public:
00024         RemoteListener(VobjectBase* superobject) : MetaObject(superobject) { }
00025 
00026         virtual void notifyChildInserted(VobjectEvent& e);
00027         virtual void notifyChildReplaced(VobjectEvent& e);
00028         virtual void notifyChildRemoved(VobjectEvent& e);
00029         virtual void notifyParentInserted(VobjectEvent& e);
00030         virtual void notifyParentRemoved(VobjectEvent& e);
00031         virtual void notifyTypeInserted(VobjectEvent& e);
00032         virtual void notifyTypeRemoved(VobjectEvent& e);
00033     };
00034 
00035 }
00036 
00037 #endif