aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/rlvfloaterbehaviour.h
blob: 8cbc94cc5750354a3bad4303f035fb777fc03fc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/**
 *
 * Copyright (c) 2009-2010, Kitty Barnett
 *
 * The source code in this file is provided to you under the terms of the
 * GNU General Public License, version 2.0, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 * PARTICULAR PURPOSE. Terms of the GPL can be found in doc/GPL-license.txt
 * in this distribution, or online at http://www.gnu.org/licenses/gpl-2.0.txt
 *
 * By copying, modifying or distributing this software, you acknowledge that
 * you have read and understood your obligations described above, and agree to
 * abide by those obligations.
 *
 */

#ifndef RLV_FLOATER_BEHAVIOUR
#define RLV_FLOATER_BEHAVIOUR

#include "llfloater.h"
#include "rlvcommon.h"

// ============================================================================

class RlvFloaterBehaviour :
	public LLFloater,
	public LLFloaterSingleton<RlvFloaterBehaviour>,
	public RlvBehaviourObserver
{
	friend class LLUISingleton<RlvFloaterBehaviour, VisibilityPolicy<LLFloater> >;
public:
	virtual ~RlvFloaterBehaviour() {}

	/*
	 * LLFloater overrides
	 */
public:
	/*virtual*/ BOOL canClose();
	/*virtual*/ void onOpen();
	/*virtual*/ void onClose(bool app_quitting);
	/*virtual*/ BOOL postBuild();

	/*
	 * RlvBehaviourObserver overrides
	 */
public:
	/*virtual*/ void changed(const RlvCommand& rlvCmd, bool fInternal);

	/*
	 * Member functions
	 */
public:
	static void show(void*);
	static void onAvatarNameLookup(const LLUUID& uuid, const std::string& strFirst, const std::string& strLast, BOOL fGroup, void* pParam);
protected:
	void refreshAll();
private:
	RlvFloaterBehaviour(const LLSD& key = LLSD());

	std::list<LLUUID> m_PendingLookup;
};

// ============================================================================

#endif // RLV_FLOATER_BEHAVIOUR