PageRenderTime 45ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/llfloaterbuycontents.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 68 lines | 28 code | 10 blank | 30 comment | 0 complexity | 27824894b62a1079b9128e351c583dcf MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llfloaterbuycontents.h
  3. * @author James Cook
  4. * @brief LLFloaterBuyContents class header file
  5. *
  6. * $LicenseInfo:firstyear=2004&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. /**
  28. * Shows the contents of an object and their permissions when you
  29. * click "Buy..." on an object with "Sell Contents" checked.
  30. */
  31. #ifndef LL_LLFLOATERBUYCONTENTS_H
  32. #define LL_LLFLOATERBUYCONTENTS_H
  33. #include "llfloater.h"
  34. #include "llvoinventorylistener.h"
  35. #include "llinventory.h"
  36. class LLViewerObject;
  37. class LLObjectSelection;
  38. class LLFloaterBuyContents
  39. : public LLFloater, public LLVOInventoryListener
  40. {
  41. public:
  42. static void show(const LLSaleInfo& sale_info);
  43. LLFloaterBuyContents(const LLSD& key);
  44. ~LLFloaterBuyContents();
  45. /*virtual*/ BOOL postBuild();
  46. protected:
  47. void requestObjectInventories();
  48. /*virtual*/ void inventoryChanged(LLViewerObject* obj,
  49. LLInventoryObject::object_list_t* inv,
  50. S32 serial_num,
  51. void* data);
  52. void onClickBuy();
  53. void onClickCancel();
  54. protected:
  55. LLSafeHandle<LLObjectSelection> mObjectSelection;
  56. LLSaleInfo mSaleInfo;
  57. };
  58. #endif