PageRenderTime 6ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llclassifiedstatsresponder.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 48 lines | 15 code | 5 blank | 28 comment | 0 complexity | f24e481d35d2033dcf50860fae19eec6 MD5 | raw file
 1/** 
 2 * @file llclassifiedstatsresponder.h
 3 * @brief Receives information about classified ad click-through
 4 * counts for display in the classified information UI.
 5 *
 6 * $LicenseInfo:firstyear=2007&license=viewerlgpl$
 7 * Second Life Viewer Source Code
 8 * Copyright (C) 2010, Linden Research, Inc.
 9 * 
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation;
13 * version 2.1 of the License only.
14 * 
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 * Lesser General Public License for more details.
19 * 
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
23 * 
24 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
25 * $/LicenseInfo$
26 */
27#ifndef LL_LLCLASSIFIEDSTATSRESPONDER_H
28#define LL_LLCLASSIFIEDSTATSRESPONDER_H
29
30#include "llhttpclient.h"
31#include "llview.h"
32#include "lluuid.h"
33
34class LLClassifiedStatsResponder : public LLHTTPClient::Responder
35{
36public:
37	LLClassifiedStatsResponder(LLUUID classified_id);
38	//If we get back a normal response, handle it here
39	virtual void result(const LLSD& content);
40	//If we get back an error (not found, etc...), handle it here
41	
42	virtual void error(U32 status, const std::string& reason);
43
44protected:
45	LLUUID mClassifiedID;
46};
47
48#endif // LL_LLCLASSIFIEDSTATSRESPONDER_H