summaryrefslogtreecommitdiff
path: root/indra/newview/llfacebookconnect.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfacebookconnect.h')
-rw-r--r--indra/newview/llfacebookconnect.h19
1 files changed, 4 insertions, 15 deletions
diff --git a/indra/newview/llfacebookconnect.h b/indra/newview/llfacebookconnect.h
index ddff87385e..7b6eb3644f 100644
--- a/indra/newview/llfacebookconnect.h
+++ b/indra/newview/llfacebookconnect.h
@@ -50,12 +50,10 @@ public:
FB_CONNECTED = 2,
FB_CONNECTION_FAILED = 3,
FB_POSTING = 4,
- FB_POST_FAILED = 5
+ FB_POSTED = 5,
+ FB_POST_FAILED = 6
};
- 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 checkConnectionToFacebook() in normal use.
void disconnectFromFacebook(); // Disconnect from the FBC service.
void checkConnectionToFacebook(bool auto_connect = false); // Check if an access token is available on the FBC service. If not, call connectToFacebook().
@@ -66,17 +64,12 @@ public:
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 setContentUpdatedCallback(content_updated_callback_t cb) { mContentUpdatedCallback = cb;}
-
void clearContent();
void storeContent(const LLSD& content);
const LLSD& getContent() const;
void setConnectionState(EConnectionState connection_state);
- bool isConnected() { return ((mConnectionState == FB_CONNECTED) || (mConnectionState == FB_POSTING)); }
+ bool isConnected() { return ((mConnectionState == FB_CONNECTED) || (mConnectionState == FB_POSTING) || (mConnectionState == FB_POSTED)); }
EConnectionState getConnectionState() { return mConnectionState; }
S32 generation() { return mGeneration; }
@@ -93,12 +86,8 @@ private:
LLSD mContent;
S32 mGeneration;
- share_callback_t mPostCheckinCallback;
- share_callback_t mSharePhotoCallback;
- share_callback_t mUpdateStatusCallback;
- content_updated_callback_t mContentUpdatedCallback;
-
static boost::scoped_ptr<LLEventPump> sStateWatcher;
+ static boost::scoped_ptr<LLEventPump> sContentWatcher;
};
#endif // LL_LLFACEBOOKCONNECT_H