Add setFeaturesReceivedCallback for when SimulatorFeatures cap is received
This commit is contained in:
@@ -100,6 +100,7 @@ public:
|
||||
} eObjectPartitions;
|
||||
|
||||
typedef boost::signals2::signal<void(const LLUUID& region_id)> caps_received_signal_t;
|
||||
typedef boost::signals2::signal<void(const LLUUID& region_id)> features_received_signal_t;
|
||||
|
||||
LLViewerRegion(const U64 &handle,
|
||||
const LLHost &host,
|
||||
@@ -262,6 +263,9 @@ public:
|
||||
static bool isSpecialCapabilityName(const std::string &name);
|
||||
void logActiveCapabilities() const;
|
||||
|
||||
boost::signals2::connection setFeaturesReceivedCallback(const features_received_signal_t::slot_type& cb);
|
||||
bool getFeaturesReceived() const { return mFeaturesReceived; }
|
||||
|
||||
/// Get LLEventPump on which we listen for capability requests
|
||||
/// (https://wiki.lindenlab.com/wiki/Viewer:Messaging/Messaging_Notes#Capabilities)
|
||||
LLEventPump& getCapAPI() const;
|
||||
@@ -442,7 +446,9 @@ private:
|
||||
|
||||
bool mAlive; // can become false if circuit disconnects
|
||||
bool mCapabilitiesReceived;
|
||||
bool mFeaturesReceived;
|
||||
caps_received_signal_t mCapabilitiesReceivedSignal;
|
||||
features_received_signal_t mFeaturesReceivedSignal;
|
||||
|
||||
BOOL mReleaseNotesRequested;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user