PageRenderTime 3ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/llproductinforequest.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 54 lines | 16 code | 5 blank | 33 comment | 0 complexity | beecb0dbf58ffed9fdcb63cc3487faeb MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llproductinforequest.h
  3. * @author Kent Quirk
  4. * @brief Get region type descriptions (translation from SKU to description)
  5. *
  6. * $LicenseInfo:firstyear=2009&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_LLPRODUCTINFOREQUEST_H
  28. #define LL_LLPRODUCTINFOREQUEST_H
  29. #include "llhttpclient.h"
  30. #include "llmemory.h"
  31. /*
  32. This is a singleton to manage a cache of information about land types.
  33. The land system provides a capability to get information about the
  34. set of possible land sku, name, and description information.
  35. We use description in the UI, but the sku is provided in the various
  36. messages; this tool provides translation between the systems.
  37. */
  38. class LLProductInfoRequestManager : public LLSingleton<LLProductInfoRequestManager>
  39. {
  40. public:
  41. LLProductInfoRequestManager();
  42. void setSkuDescriptions(const LLSD& content);
  43. std::string getDescriptionForSku(const std::string& sku);
  44. private:
  45. friend class LLSingleton<LLProductInfoRequestManager>;
  46. /* virtual */ void initSingleton();
  47. LLSD mSkuDescriptions;
  48. };
  49. #endif // LL_LLPRODUCTINFOREQUEST_H