PageRenderTime 22ms CodeModel.GetById 18ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llpostcard.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 48 lines | 16 code | 7 blank | 25 comment | 0 complexity | cc50be1743eaca8478b3b58ae505705c MD5 | raw file
 1/** 
 2 * @file llpostcard.h
 3 * @brief Sending postcards.
 4 *
 5 * $LicenseInfo:firstyear=2011&license=viewerlgpl$
 6 * Second Life Viewer Source Code
 7 * Copyright (C) 2011, Linden Research, Inc.
 8 * 
 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation;
12 * version 2.1 of the License only.
13 * 
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 * Lesser General Public License for more details.
18 * 
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
22 * 
23 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
24 * $/LicenseInfo$
25 */
26
27#ifndef LL_LLPOSTCARD_H
28#define LL_LLPOSTCARD_H
29
30#include "llimage.h"
31#include "lluuid.h"
32
33class LLPostCard
34{
35	LOG_CLASS(LLPostCard);
36
37public:
38	typedef boost::function<void(bool ok)> result_callback_t;
39
40	static void send(LLPointer<LLImageFormatted> image, const LLSD& postcard_data);
41	static void setPostResultCallback(result_callback_t cb) { mResultCallback = cb; }
42	static void reportPostResult(bool ok);
43
44private:
45	static result_callback_t mResultCallback;
46};
47
48#endif // LL_LLPOSTCARD_H