PageRenderTime 82ms CodeModel.GetById 40ms app.highlight 3ms RepoModel.GetById 38ms app.codeStats 0ms

/indra/newview/llpanelloginlistener.cpp

https://bitbucket.org/lindenlab/viewer-beta/
C++ | 51 lines | 15 code | 3 blank | 33 comment | 0 complexity | 8699e66f9cf17935fcb1379ac56b9134 MD5 | raw file
 1/**
 2 * @file   llpanelloginlistener.cpp
 3 * @author Nat Goodspeed
 4 * @date   2009-12-10
 5 * @brief  Implementation for llpanelloginlistener.
 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// Precompiled header
30#include "llviewerprecompiledheaders.h"
31// associated header
32#include "llpanelloginlistener.h"
33// STL headers
34// std headers
35// external library headers
36// other Linden headers
37#include "llpanellogin.h"
38
39LLPanelLoginListener::LLPanelLoginListener(LLPanelLogin* instance):
40    LLEventAPI("LLPanelLogin", "Access to LLPanelLogin methods"),
41    mPanel(instance)
42{
43    add("onClickConnect",
44        "Pretend user clicked the \"Log In\" button",
45        &LLPanelLoginListener::onClickConnect);
46}
47
48void LLPanelLoginListener::onClickConnect(const LLSD&) const
49{
50    mPanel->onClickConnect(NULL);
51}