PageRenderTime 36ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/llxmlrpclistener.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 52 lines | 12 code | 6 blank | 34 comment | 0 complexity | 351b805ba561d7e4f3cdd253089fa76c MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llxmlrpclistener.h
  3. * @author Nat Goodspeed
  4. * @date 2009-03-18
  5. * @brief LLEventPump API for LLXMLRPCTransaction. This header doesn't
  6. * actually define the API; the API is defined by the pump name on
  7. * which this class listens, and by the expected content of LLSD it
  8. * receives.
  9. *
  10. * $LicenseInfo:firstyear=2009&license=viewerlgpl$
  11. * Second Life Viewer Source Code
  12. * Copyright (C) 2010, Linden Research, Inc.
  13. *
  14. * This library is free software; you can redistribute it and/or
  15. * modify it under the terms of the GNU Lesser General Public
  16. * License as published by the Free Software Foundation;
  17. * version 2.1 of the License only.
  18. *
  19. * This library is distributed in the hope that it will be useful,
  20. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  22. * Lesser General Public License for more details.
  23. *
  24. * You should have received a copy of the GNU Lesser General Public
  25. * License along with this library; if not, write to the Free Software
  26. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  27. *
  28. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  29. * $/LicenseInfo$
  30. */
  31. #if ! defined(LL_LLXMLRPCLISTENER_H)
  32. #define LL_LLXMLRPCLISTENER_H
  33. #include "llevents.h"
  34. /// Listen on an LLEventPump with specified name for LLXMLRPCTransaction
  35. /// request events.
  36. class LLXMLRPCListener
  37. {
  38. public:
  39. /// Specify the pump name on which to listen
  40. LLXMLRPCListener(const std::string& pumpname);
  41. /// Handle request events on the event pump specified at construction time
  42. bool process(const LLSD& command);
  43. private:
  44. LLTempBoundListener mBoundListener;
  45. };
  46. #endif /* ! defined(LL_LLXMLRPCLISTENER_H) */