aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/rlvfloaterbehaviour.h
blob: 1410dd55c6f1cb1c996265f62a93da4846a90383 (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
#ifndef RLV_FLOATER_BEHAVIOUR
#define RLV_FLOATER_BEHAVIOUR

#include "llfloater.h"
#include "rlvevent.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