summaryrefslogtreecommitdiff
path: root/indra/newview/llviewercontrollistener.h
blob: cacf97e908e8f6784339e155b20267b718acfbdf (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
/**
 * @file   llviewercontrollistener.h
 * @author Brad Kittenbrink
 * @date   2009-07-09
 * @brief  Event API for subset of LLViewerControl methods
 * 
 * $LicenseInfo:firstyear=2009&license=viewergpl$
 * Copyright (c) 2009, Linden Research, Inc.
 * $/LicenseInfo$
 */

#ifndef LL_LLVIEWERCONTROLLISTENER_H
#define LL_LLVIEWERCONTROLLISTENER_H

#include "lleventdispatcher.h"

class LLControlGroup;
class LLSD;

class  LLViewerControlListener : public LLDispatchListener
{
public:
	LLViewerControlListener();

private:
	static void set(LLControlGroup *controls, LLSD const & event_data);
	static void toggleControl(LLControlGroup *controls, LLSD const & event_data);
	static void setDefault(LLControlGroup *controls, LLSD const & event_data);
};

extern LLViewerControlListener gSavedSettingsListener;

#endif // LL_LLVIEWERCONTROLLISTENER_H