llvoinventorylistener.cpp

Go to the documentation of this file.
00001 
00032 #include "llviewerprecompiledheaders.h"
00033 
00034 #include "llvoinventorylistener.h"
00035 #include "llviewerobject.h"
00036 
00037 void LLVOInventoryListener::removeVOInventoryListener()
00038 {
00039         if (mListenerVObject)
00040         {
00041                 mListenerVObject->removeInventoryListener(this);
00042                 mListenerVObject = NULL;
00043         }
00044 }
00045 
00046 void LLVOInventoryListener::registerVOInventoryListener(LLViewerObject* object, void* user_data)
00047 {
00048         removeVOInventoryListener();
00049         if (object != NULL)
00050         {
00051                 mListenerVObject = object;
00052                 object->registerInventoryListener(this,user_data);
00053         }
00054 }
00055 
00056 void LLVOInventoryListener::requestVOInventory()
00057 {
00058         if (mListenerVObject)
00059         {
00060                 mListenerVObject->requestInventory();
00061         }
00062 }
00063 
00064 // This assumes mListenerVObject is clearing it's own lists
00065 void LLVOInventoryListener::clearVOInventoryListener()
00066 {
00067         mListenerVObject = NULL;
00068 }

Generated on Thu Jul 1 06:09:38 2010 for Second Life Viewer by  doxygen 1.4.7