PageRenderTime 414ms CodeModel.GetById 171ms app.highlight 2ms RepoModel.GetById 239ms 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
 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
26#ifndef LLFLOATERPAY_H
27#define LLFLOATERPAY_H
28
29#include "llsafehandle.h"
30
31class LLObjectSelection;
32class LLUUID;
33class LLViewerRegion;
34
35typedef void (*money_callback)(const LLUUID&, LLViewerRegion*,S32,BOOL,S32,const std::string&);
36
37namespace LLFloaterPayUtil
38{
39	/// Register with LLFloaterReg
40	void registerFloater();
41
42	/// Pay into an in-world object, which will trigger scripts and eventually
43	/// transfer the L$ to the resident or group that owns the object.
44	/// Objects must be selected.  Recipient (primary) object may be a child.
45	void payViaObject(money_callback callback,
46					  LLSafeHandle<LLObjectSelection> selection);
47	
48	/// Pay an avatar or group directly, not via an object in the world.
49	/// Scripts are not notified, L$ can be direcly transferred.
50	void payDirectly(money_callback callback,
51					 const LLUUID& target_id,
52					 bool is_group);
53}
54
55#endif // LLFLOATERPAY_H