diff options
author | Cho <cho@lindenlab.com> | 2013-06-12 01:16:27 +0100 |
---|---|---|
committer | Cho <cho@lindenlab.com> | 2013-06-12 01:16:27 +0100 |
commit | 933debfc10d09d1d25fd196597904fc9753b4cb0 (patch) | |
tree | 52701d571d736e67683df1f894421d6e5438429d /indra/newview/llfacebookconnect.h | |
parent | e3f093a87157c012ab4e9d378cc26876b7b91900 (diff) |
cleaned up FBC snapshot feature and made it work with new direct upload route on FBC API
Diffstat (limited to 'indra/newview/llfacebookconnect.h')
-rw-r--r-- | indra/newview/llfacebookconnect.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/indra/newview/llfacebookconnect.h b/indra/newview/llfacebookconnect.h index 58e2707ba3..37b4e2bc94 100644 --- a/indra/newview/llfacebookconnect.h +++ b/indra/newview/llfacebookconnect.h @@ -29,6 +29,7 @@ #define LL_LLFACEBOOKCONNECT_H #include "llsingleton.h" +#include "llimage.h" /** * @class LLFacebookConnect @@ -40,6 +41,8 @@ class LLFacebookConnect : public LLSingleton<LLFacebookConnect> { LOG_CLASS(LLFacebookConnect); public: + typedef boost::function<void(bool ok)> share_callback_t; + void connectToFacebook(const std::string& auth_code = ""); void disconnectFromFacebook(); void tryToReconnectToFacebook(); @@ -47,9 +50,13 @@ public: void loadFacebookFriends(); void postCheckin(const std::string& location, const std::string& name, const std::string& description, const std::string& picture, const std::string& message); - void postCheckinMessage(const std::string& message, const std::string& link, const std::string& name, const std::string& caption, const std::string& description, const std::string& picture); - void sharePhoto(const std::string& image_url, const std::string& caption); + void sharePhoto(const std::string& image_url, const std::string& caption); + void sharePhoto(LLPointer<LLImageFormatted> image, const std::string& caption); void updateStatus(const std::string& message); + + void setPostCheckinCallback(share_callback_t cb) { mPostCheckinCallback = cb; } + void setSharePhotoCallback(share_callback_t cb) { mSharePhotoCallback = cb; } + void setUpdateStatusCallback(share_callback_t cb) { mUpdateStatusCallback = cb; } void clearContent(); void storeContent(const LLSD& content); @@ -60,6 +67,7 @@ public: S32 generation() { return mGeneration; } void openFacebookWeb(std::string url); + private: friend class LLSingleton<LLFacebookConnect>; @@ -71,6 +79,10 @@ private: bool mConnectedToFbc; LLSD mContent; S32 mGeneration; + + share_callback_t mPostCheckinCallback; + share_callback_t mSharePhotoCallback; + share_callback_t mUpdateStatusCallback; }; #endif // LL_LLFACEBOOKCONNECT_H |