llfloaterauction.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /**
  2. * @file llfloaterauction.h
  3. * @author James Cook, Ian Wilkes
  4. * @brief llfloaterauction class header file
  5. *
  6. * $LicenseInfo:firstyear=2004&license=viewergpl$
  7. *
  8. * Copyright (c) 2004-2009, Linden Research, Inc.
  9. *
  10. * Second Life Viewer Source Code
  11. * The source code in this file ("Source Code") is provided by Linden Lab
  12. * to you under the terms of the GNU General Public License, version 2.0
  13. * ("GPL"), unless you have obtained a separate licensing agreement
  14. * ("Other License"), formally executed by you and Linden Lab. Terms of
  15. * the GPL can be found in doc/GPL-license.txt in this distribution, or
  16. * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
  17. *
  18. * There are special exceptions to the terms and conditions of the GPL as
  19. * it is applied to this Source Code. View the full text of the exception
  20. * in the file doc/FLOSS-exception.txt in this software distribution, or
  21. * online at
  22. * http://secondlifegrid.net/programs/open_source/licensing/flossexception
  23. *
  24. * By copying, modifying or distributing this software, you acknowledge
  25. * that you have read and understood your obligations described above,
  26. * and agree to abide by those obligations.
  27. *
  28. * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
  29. * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
  30. * COMPLETENESS OR PERFORMANCE.
  31. * $/LicenseInfo$
  32. */
  33. #ifndef LL_LLFLOATERAUCTION_H
  34. #define LL_LLFLOATERAUCTION_H
  35. #include "llfloater.h"
  36. #include "llpointer.h"
  37. #include "llsafehandle.h"
  38. #include "llviewertexture.h"
  39. class LLParcelSelection;
  40. // Class which holds the functionality to start auctions.
  41. class LLFloaterAuction : public LLFloater,
  42. public LLFloaterSingleton<LLFloaterAuction>
  43. {
  44. friend class LLUISingleton<LLFloaterAuction, VisibilityPolicy<LLFloater> >;
  45. protected:
  46. LOG_CLASS(LLFloaterAuction);
  47. public:
  48. void onOpen() override;
  49. void draw() override;
  50. private:
  51. LLFloaterAuction(const LLSD&);
  52. static void onClickSnapshot(void* data);
  53. static void onClickOK(void* data);
  54. private:
  55. LLTransactionID mTransactionID;
  56. LLAssetID mImageID;
  57. LLPointer<LLViewerTexture> mImage;
  58. LLSafeHandle<LLParcelSelection> mParcelp;
  59. S32 mParcelID;
  60. LLHost mParcelHost;
  61. };
  62. #endif // LL_LLFLOATERAUCTION_H