diff options
author | Cho <cho@lindenlab.com> | 2013-07-02 01:21:38 +0100 |
---|---|---|
committer | Cho <cho@lindenlab.com> | 2013-07-02 01:21:38 +0100 |
commit | 1449e645c61f3b31568e38e3c4daf531189323c6 (patch) | |
tree | f6f2d2e3b0a4509fee357541e6183b335f664564 /indra/newview/llfacebookconnect.h | |
parent | fa1e0e486a2c32911e6bfe9d72264c3d9ebe1d9f (diff) |
added callback to LLFacebookConnect upon connect for ACME-659
Diffstat (limited to 'indra/newview/llfacebookconnect.h')
-rw-r--r-- | indra/newview/llfacebookconnect.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/indra/newview/llfacebookconnect.h b/indra/newview/llfacebookconnect.h index c54da8e3f3..abd6fb385d 100644 --- a/indra/newview/llfacebookconnect.h +++ b/indra/newview/llfacebookconnect.h @@ -48,13 +48,14 @@ public: FB_CONNECTED = 2, FB_CONNECTION_FAILED = 3 }; - + + typedef boost::function<void()> connect_callback_t; typedef boost::function<void(bool ok)> share_callback_t; typedef boost::function<void()> content_updated_callback_t; - void connectToFacebook(const std::string& auth_code = ""); // Initiate the complete FB connection. Please use getConnectionToFacebook() in normal use. - void disconnectFromFacebook(); // Disconnect from the FBC service. - void getConnectionToFacebook(bool auto_connect = false); // Check if an access token is available on the FBC service. If not, call connectToFacebook(). + void connectToFacebook(const std::string& auth_code = "", connect_callback_t cb = connect_callback_t()); // Initiate the complete FB connection. Please use getConnectionToFacebook() in normal use. + void disconnectFromFacebook(); // Disconnect from the FBC service. + void getConnectionToFacebook(bool auto_connect = false, connect_callback_t cb = connect_callback_t()); // Check if an access token is available on the FBC service. If not, call connectToFacebook(). void loadFacebookFriends(); void postCheckin(const std::string& location, const std::string& name, const std::string& description, const std::string& picture, const std::string& message); |