PageRenderTime 223ms CodeModel.GetById 110ms app.highlight 2ms RepoModel.GetById 109ms app.codeStats 0ms

/indra/newview/llxmlrpclistener.h

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