PageRenderTime 33ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/llviewermediaobserver.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 65 lines | 16 code | 15 blank | 34 comment | 0 complexity | c327c3783649f367ea85c1d0070185f1 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llviewermediaobserver.h
  3. * @brief Methods to override to catch events from LLViewerMedia class
  4. *
  5. * $LicenseInfo:firstyear=2007&license=viewerlgpl$
  6. * Second Life Viewer Source Code
  7. * Copyright (C) 2010, Linden Research, Inc.
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation;
  12. * version 2.1 of the License only.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with this library; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. *
  23. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  24. * $/LicenseInfo$
  25. */
  26. #ifndef LLVIEWERMEDIAOBSERVER_H
  27. #define LLVIEWERMEDIAOBSERVER_H
  28. #include "llpluginclassmediaowner.h"
  29. class LLViewerMediaEventEmitter;
  30. class LLViewerMediaObserver : public LLPluginClassMediaOwner
  31. {
  32. public:
  33. virtual ~LLViewerMediaObserver();
  34. private:
  35. // Emitters will manage this list in addObserver/remObserver.
  36. friend class LLViewerMediaEventEmitter;
  37. std::list<LLViewerMediaEventEmitter *> mEmitters;
  38. };
  39. #if 0
  40. // Classes that inherit from LLViewerMediaObserver should add this to their class declaration:
  41. // inherited from LLViewerMediaObserver
  42. /*virtual*/ void handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event);
  43. /* and will probably need to add this to their cpp file:
  44. #include "llpluginclassmedia.h"
  45. */
  46. // The list of events is in llpluginclassmediaowner.h
  47. #endif
  48. #endif // LLVIEWERMEDIAOBSERVER_H