/indra/llmessage/llareslistener.h

https://bitbucket.org/lindenlab/viewer-beta/ · C++ Header · 53 lines · 14 code · 7 blank · 32 comment · 0 complexity · 388fffcf896fbf5efeb202f2364eb753 MD5 · raw file

  1. /**
  2. * @file llareslistener.h
  3. * @author Nat Goodspeed
  4. * @date 2009-03-18
  5. * @brief LLEventPump API for LLAres. This header doesn't actually define the
  6. * API; the API is defined by the pump name on which this class
  7. * listens, and by the expected content of LLSD it receives.
  8. *
  9. * $LicenseInfo:firstyear=2009&license=viewerlgpl$
  10. * Second Life Viewer Source Code
  11. * Copyright (C) 2010, Linden Research, Inc.
  12. *
  13. * This library is free software; you can redistribute it and/or
  14. * modify it under the terms of the GNU Lesser General Public
  15. * License as published by the Free Software Foundation;
  16. * version 2.1 of the License only.
  17. *
  18. * This library is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  21. * Lesser General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU Lesser General Public
  24. * License along with this library; if not, write to the Free Software
  25. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  26. *
  27. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  28. * $/LicenseInfo$
  29. */
  30. #if ! defined(LL_LLARESLISTENER_H)
  31. #define LL_LLARESLISTENER_H
  32. #include "lleventapi.h"
  33. class LLAres;
  34. class LLSD;
  35. /// Listen on an LLEventPump with specified name for LLAres request events.
  36. class LLAresListener: public LLEventAPI
  37. {
  38. public:
  39. /// Bind the LLAres instance to use (e.g. gAres)
  40. LLAresListener(LLAres* llares);
  41. private:
  42. /// command["op"] == "rewriteURI"
  43. void rewriteURI(const LLSD& data);
  44. LLAres* mAres;
  45. };
  46. #endif /* ! defined(LL_LLARESLISTENER_H) */