summaryrefslogtreecommitdiff
path: root/indra/newview/llvoicechannel.h
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2009-11-30 10:28:53 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2009-11-30 10:28:53 +0000
commit1b055428bb6c2f7f9868277926d8b751fbc08145 (patch)
tree6d0d8b0e62b60d2c2afbbc76c91f6686bc17cc0b /indra/newview/llvoicechannel.h
parentc2deb4ece7f9ba9e60041dea951c247630b583f1 (diff)
parentd4e01315e3f39dd14bb2c14f09e4e94749542b06 (diff)
merge.
Diffstat (limited to 'indra/newview/llvoicechannel.h')
-rw-r--r--indra/newview/llvoicechannel.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/indra/newview/llvoicechannel.h b/indra/newview/llvoicechannel.h
index 639585de55..fe0114d687 100644
--- a/indra/newview/llvoicechannel.h
+++ b/indra/newview/llvoicechannel.h
@@ -52,7 +52,7 @@ public:
STATE_CONNECTED
} EState;
- typedef boost::function<void(const EState& old_state, const EState& new_state)> state_changed_callback_t;
+ typedef boost::signals2::signal<void(const EState& old_state, const EState& new_state)> state_changed_signal_t;
// on current channel changed signal
typedef boost::function<void(const LLUUID& session_id)> channel_changed_callback_t;
@@ -78,7 +78,8 @@ public:
virtual BOOL callStarted();
const std::string& getSessionName() const { return mSessionName; }
- void setStateChangedCallback(state_changed_callback_t callback) { mStateChangedCallback = callback; }
+ boost::signals2::connection setStateChangedCallback(const state_changed_signal_t::slot_type& callback)
+ { return mStateChangedCallback.connect(callback); }
const LLUUID getSessionID() { return mSessionID; }
EState getState() { return mState; }
@@ -124,7 +125,7 @@ protected:
static BOOL sSuspended;
private:
- state_changed_callback_t mStateChangedCallback;
+ state_changed_signal_t mStateChangedCallback;
};
class LLVoiceChannelGroup : public LLVoiceChannel
@@ -175,6 +176,9 @@ public:
void setSessionHandle(const std::string& handle, const std::string &inURI);
+ // returns TRUE if call is incoming and FALSE otherwise
+ BOOL isIncomingCall() { return mReceivedCall; }
+
protected:
virtual void setState(EState state);