PageRenderTime 35ms CodeModel.GetById 26ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/llmessage/llareslistener.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 53 lines | 14 code | 7 blank | 32 comment | 0 complexity | 388fffcf896fbf5efeb202f2364eb753 MD5 | raw file
 1/**
 2 * @file   llareslistener.h
 3 * @author Nat Goodspeed
 4 * @date   2009-03-18
 5 * @brief  LLEventPump API for LLAres. This header doesn't actually define the
 6 *         API; the API is defined by the pump name on which this class
 7 *         listens, and by the expected content of LLSD it receives.
 8 * 
 9 * $LicenseInfo:firstyear=2009&license=viewerlgpl$
10 * Second Life Viewer Source Code
11 * Copyright (C) 2010, Linden Research, Inc.
12 * 
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Lesser General Public
15 * License as published by the Free Software Foundation;
16 * version 2.1 of the License only.
17 * 
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21 * Lesser General Public License for more details.
22 * 
23 * You should have received a copy of the GNU Lesser General Public
24 * License along with this library; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
26 * 
27 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
28 * $/LicenseInfo$
29 */
30
31#if ! defined(LL_LLARESLISTENER_H)
32#define LL_LLARESLISTENER_H
33
34#include "lleventapi.h"
35
36class LLAres;
37class LLSD;
38
39/// Listen on an LLEventPump with specified name for LLAres request events.
40class LLAresListener: public LLEventAPI
41{
42public:
43    /// Bind the LLAres instance to use (e.g. gAres)
44    LLAresListener(LLAres* llares);
45
46private:
47    /// command["op"] == "rewriteURI" 
48    void rewriteURI(const LLSD& data);
49
50    LLAres* mAres;
51};
52
53#endif /* ! defined(LL_LLARESLISTENER_H) */