diff options
author | Gilbert Gonzales <gilbert@lindenlab.com> | 2013-07-23 13:31:41 -0700 |
---|---|---|
committer | Gilbert Gonzales <gilbert@lindenlab.com> | 2013-07-23 13:31:41 -0700 |
commit | 66522bb6bdff50f5f6838c1410e2cc4ab45a0a62 (patch) | |
tree | 3e079f236899373e9db8cb54fef293fa9950ffbb /indra/newview/llfacebookconnect.h | |
parent | fdb8c2fcdb956307328d6638ca7c81004498b116 (diff) |
ACME-677 Make the 'Connect...', 'Disconnect' and 'Use another account...' buttons disabled upon clicking
Diffstat (limited to 'indra/newview/llfacebookconnect.h')
-rw-r--r-- | indra/newview/llfacebookconnect.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llfacebookconnect.h b/indra/newview/llfacebookconnect.h index b59c7090f6..f74b9f7d41 100644 --- a/indra/newview/llfacebookconnect.h +++ b/indra/newview/llfacebookconnect.h @@ -51,7 +51,8 @@ public: FB_CONNECTION_FAILED = 3, FB_POSTING = 4, FB_POSTED = 5, - FB_POST_FAILED = 6 + FB_POST_FAILED = 6, + FB_DISCONNECTING = 7 }; void connectToFacebook(const std::string& auth_code = "", const std::string& auth_state = ""); // Initiate the complete FB connection. Please use checkConnectionToFacebook() in normal use. @@ -73,7 +74,7 @@ public: const LLSD& getContent() const; void setConnectionState(EConnectionState connection_state); - bool isConnected() { return ((mConnectionState == FB_CONNECTED) || (mConnectionState == FB_POSTING) || (mConnectionState == FB_POSTED)); } + bool isConnected() { return ((mConnectionState == FB_CONNECTED) || (mConnectionState == FB_DISCONNECTING) || (mConnectionState == FB_POSTING) || (mConnectionState == FB_POSTED)); } bool isTransactionOngoing() { return ((mConnectionState == FB_CONNECTION_IN_PROGRESS) || (mConnectionState == FB_POSTING)); } EConnectionState getConnectionState() { return mConnectionState; } S32 generation() { return mGeneration; } |