PageRenderTime 46ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/llfloaterpay.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 55 lines | 17 code | 8 blank | 30 comment | 0 complexity | 78796d0786c33429aef9e18d3330235e MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llfloaterpay.h
  3. *
  4. * $LicenseInfo:firstyear=2002&license=viewerlgpl$
  5. * Second Life Viewer Source Code
  6. * Copyright (C) 2010, Linden Research, Inc.
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Lesser General Public
  10. * License as published by the Free Software Foundation;
  11. * version 2.1 of the License only.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with this library; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  21. *
  22. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  23. * $/LicenseInfo$
  24. */
  25. #ifndef LLFLOATERPAY_H
  26. #define LLFLOATERPAY_H
  27. #include "llsafehandle.h"
  28. class LLObjectSelection;
  29. class LLUUID;
  30. class LLViewerRegion;
  31. typedef void (*money_callback)(const LLUUID&, LLViewerRegion*,S32,BOOL,S32,const std::string&);
  32. namespace LLFloaterPayUtil
  33. {
  34. /// Register with LLFloaterReg
  35. void registerFloater();
  36. /// Pay into an in-world object, which will trigger scripts and eventually
  37. /// transfer the L$ to the resident or group that owns the object.
  38. /// Objects must be selected. Recipient (primary) object may be a child.
  39. void payViaObject(money_callback callback,
  40. LLSafeHandle<LLObjectSelection> selection);
  41. /// Pay an avatar or group directly, not via an object in the world.
  42. /// Scripts are not notified, L$ can be direcly transferred.
  43. void payDirectly(money_callback callback,
  44. const LLUUID& target_id,
  45. bool is_group);
  46. }
  47. #endif // LLFLOATERPAY_H