PageRenderTime 55ms CodeModel.GetById 48ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/llui/llfloaterreglistener.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 54 lines | 18 code | 6 blank | 30 comment | 0 complexity | 2f9caa83bb5c89ab66942d12c34299b1 MD5 | raw file
 1/**
 2 * @file   llfloaterreglistener.h
 3 * @author Nat Goodspeed
 4 * @date   2009-08-12
 5 * @brief  Wrap (subset of) LLFloaterReg API with an event API
 6 * 
 7 * $LicenseInfo:firstyear=2009&license=viewerlgpl$
 8 * Second Life Viewer Source Code
 9 * Copyright (C) 2010, Linden Research, Inc.
10 * 
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation;
14 * version 2.1 of the License only.
15 * 
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19 * Lesser General Public License for more details.
20 * 
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this library; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
24 * 
25 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
26 * $/LicenseInfo$
27 */
28
29#if ! defined(LL_LLFLOATERREGLISTENER_H)
30#define LL_LLFLOATERREGLISTENER_H
31
32#include "lleventapi.h"
33#include <string>
34
35class LLSD;
36
37/// Event API wrapper for LLFloaterReg
38class LLFloaterRegListener: public LLEventAPI
39{
40public:
41    /// As all public LLFloaterReg methods are static, there's no point in
42    /// binding an LLFloaterReg instance.
43    LLFloaterRegListener();
44
45private:
46    void getBuildMap(const LLSD& event) const;
47    void showInstance(const LLSD& event) const;
48    void hideInstance(const LLSD& event) const;
49    void toggleInstance(const LLSD& event) const;
50    void instanceVisible(const LLSD& event) const;
51    void clickButton(const LLSD& event) const;
52};
53
54#endif /* ! defined(LL_LLFLOATERREGLISTENER_H) */