PageRenderTime 45ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llcaphttpsender.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 48 lines | 14 code | 6 blank | 28 comment | 0 complexity | 4acce6bdfd020151ee68dbbcae28c40f MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llcaphttpsender.h
  3. * @brief Abstracts details of sending messages via the
  4. * UntrustedMessage capability.
  5. *
  6. * $LicenseInfo:firstyear=2007&license=viewerlgpl$
  7. * Second Life Viewer Source Code
  8. * Copyright (C) 2010, Linden Research, Inc.
  9. *
  10. * This library is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU Lesser General Public
  12. * License as published by the Free Software Foundation;
  13. * version 2.1 of the License only.
  14. *
  15. * This library is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  18. * Lesser General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU Lesser General Public
  21. * License along with this library; if not, write to the Free Software
  22. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  23. *
  24. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  25. * $/LicenseInfo$
  26. */
  27. #ifndef LL_CAP_HTTP_SENDER_H
  28. #define LL_CAP_HTTP_SENDER_H
  29. #include "llhttpsender.h"
  30. class LLCapHTTPSender : public LLHTTPSender
  31. {
  32. public:
  33. LLCapHTTPSender(const std::string& cap);
  34. /** @brief Send message via UntrustedMessage capability with body,
  35. call response when done */
  36. virtual void send(const LLHost& host,
  37. const std::string& message, const LLSD& body,
  38. LLHTTPClient::ResponderPtr response) const;
  39. private:
  40. std::string mCap;
  41. };
  42. #endif // LL_CAP_HTTP_SENDER_H