PageRenderTime 383ms CodeModel.GetById 181ms app.highlight 3ms RepoModel.GetById 118ms app.codeStats 0ms

/indra/newview/llproductinforequest.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 54 lines | 16 code | 5 blank | 33 comment | 0 complexity | beecb0dbf58ffed9fdcb63cc3487faeb MD5 | raw file
 1/** 
 2 * @file llproductinforequest.h
 3 * @author Kent Quirk
 4 * @brief Get region type descriptions (translation from SKU to description)
 5 *
 6 * $LicenseInfo:firstyear=2009&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
28#ifndef LL_LLPRODUCTINFOREQUEST_H
29#define LL_LLPRODUCTINFOREQUEST_H
30
31#include "llhttpclient.h"
32#include "llmemory.h"
33
34/* 
35 This is a singleton to manage a cache of information about land types.
36 The land system provides a capability to get information about the
37 set of possible land sku, name, and description information.
38 We use description in the UI, but the sku is provided in the various
39 messages; this tool provides translation between the systems.
40 */
41
42class LLProductInfoRequestManager : public LLSingleton<LLProductInfoRequestManager>
43{
44public:
45	LLProductInfoRequestManager();
46	void setSkuDescriptions(const LLSD& content);
47	std::string getDescriptionForSku(const std::string& sku);
48private:
49	friend class LLSingleton<LLProductInfoRequestManager>;	
50	/* virtual */ void initSingleton();
51	LLSD mSkuDescriptions;
52};
53
54#endif // LL_LLPRODUCTINFOREQUEST_H