PageRenderTime 43ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 1ms

/indra/newview/llfloaterauction.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 86 lines | 39 code | 15 blank | 32 comment | 0 complexity | 8abd7e3df8ca5680c14389cad64feef2 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llfloaterauction.h
  3. * @author James Cook, Ian Wilkes
  4. * @brief llfloaterauction 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. #ifndef LL_LLFLOATERAUCTION_H
  28. #define LL_LLFLOATERAUCTION_H
  29. #include "llfloater.h"
  30. #include "lluuid.h"
  31. #include "llpointer.h"
  32. #include "llviewertexture.h"
  33. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  34. // Class LLFloaterAuction
  35. //
  36. // Class which holds the functionality to start auctions.
  37. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  38. class LLParcelSelection;
  39. class LLParcel;
  40. class LLViewerRegion;
  41. class LLFloaterAuction : public LLFloater
  42. {
  43. friend class LLFloaterReg;
  44. public:
  45. // LLFloater interface
  46. /*virtual*/ void onOpen(const LLSD& key);
  47. /*virtual*/ void draw();
  48. private:
  49. LLFloaterAuction(const LLSD& key);
  50. ~LLFloaterAuction();
  51. void initialize();
  52. static void onClickSnapshot(void* data);
  53. static void onClickResetParcel(void* data);
  54. static void onClickSellToAnyone(void* data); // Sell to anyone clicked
  55. bool onSellToAnyoneConfirmed(const LLSD& notification, const LLSD& response); // Sell confirmation clicked
  56. static void onClickStartAuction(void* data);
  57. /*virtual*/ BOOL postBuild();
  58. void doResetParcel();
  59. void doSellToAnyone();
  60. void clearParcelAccessLists( LLParcel* parcel, LLViewerRegion* region );
  61. void cleanupAndClose();
  62. private:
  63. LLTransactionID mTransactionID;
  64. LLAssetID mImageID;
  65. LLPointer<LLViewerTexture> mImage;
  66. LLSafeHandle<LLParcelSelection> mParcelp;
  67. S32 mParcelID;
  68. LLHost mParcelHost;
  69. std::string mParcelUpdateCapUrl; // "ParcelPropertiesUpdate" capability
  70. };
  71. #endif // LL_LLFLOATERAUCTION_H