summaryrefslogtreecommitdiff
path: root/indra/newview/llwebprofile.h
diff options
context:
space:
mode:
authorCho <cho@lindenlab.com>2013-06-05 23:52:34 +0100
committerCho <cho@lindenlab.com>2013-06-05 23:52:34 +0100
commit4d162e1ec2cd716f40666056bb9e2710958e3360 (patch)
tree5250b598c6cf63f2e24800c2715398d4d7ab2bf8 /indra/newview/llwebprofile.h
parent1734cabbcc15411afa4bd52e370290d6fbc487ba (diff)
added callback to post photo with actual image url
Diffstat (limited to 'indra/newview/llwebprofile.h')
-rwxr-xr-xindra/newview/llwebprofile.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llwebprofile.h b/indra/newview/llwebprofile.h
index 10279bffac..c1c0c23540 100755
--- a/indra/newview/llwebprofile.h
+++ b/indra/newview/llwebprofile.h
@@ -48,8 +48,9 @@ class LLWebProfile
public:
typedef boost::function<void(bool ok)> status_callback_t;
+ typedef boost::function<void(const std::string& image_url, const std::string& caption)> image_url_callback_t;
- static void uploadImage(LLPointer<LLImageFormatted> image, const std::string& caption, bool add_location);
+ static void uploadImage(LLPointer<LLImageFormatted> image, const std::string& caption, bool add_location, image_url_callback_t cb = image_url_callback_t());
static void setAuthCookie(const std::string& cookie);
static void setImageUploadResultCallback(status_callback_t cb) { mStatusCallback = cb; }
@@ -58,7 +59,7 @@ private:
friend class LLWebProfileResponders::PostImageResponder;
friend class LLWebProfileResponders::PostImageRedirectResponder;
- static void post(LLPointer<LLImageFormatted> image, const LLSD& config, const std::string& url);
+ static void post(LLPointer<LLImageFormatted> image, const LLSD& config, const std::string& url, const std::string& caption, image_url_callback_t cb);
static void reportImageUploadStatus(bool ok);
static std::string getAuthCookie();