diff options
author | Rider Linden <rider@lindenlab.com> | 2019-03-18 14:05:02 -0700 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2019-03-18 14:05:02 -0700 |
commit | ee68e52dc83d5f00acb4da96aca6148ffbd89920 (patch) | |
tree | 9feb6d5290fb7b71d5cdd50d8909e5d1d349f859 /indra/llcommon/llevents.h | |
parent | 179c412a6d1476f17873acc73e54ea8a4f191748 (diff) | |
parent | 5f01cf3b1c76a53a576a10820e2cb366d1e76714 (diff) |
Merge
Diffstat (limited to 'indra/llcommon/llevents.h')
-rw-r--r-- | indra/llcommon/llevents.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/indra/llcommon/llevents.h b/indra/llcommon/llevents.h index 5d60c63810..62d97007ac 100644 --- a/indra/llcommon/llevents.h +++ b/indra/llcommon/llevents.h @@ -582,11 +582,12 @@ public: /// Generate a distinct name for a listener -- see listen() static std::string inventName(const std::string& pfx="listener"); -private: - friend class LLEventPumps; /// flush queued events virtual void flush() {} +private: + friend class LLEventPumps; + virtual void reset(); @@ -675,12 +676,14 @@ public: virtual ~LLEventMailDrop() {} /// Post an event to all listeners - virtual bool post(const LLSD& event); + virtual bool post(const LLSD& event) override; + /// Remove any history stored in the mail drop. + virtual void flush() override { mEventHistory.clear(); LLEventStream::flush(); }; protected: virtual LLBoundListener listen_impl(const std::string& name, const LLEventListener&, const NameList& after, - const NameList& before); + const NameList& before) override; private: typedef std::list<LLSD> EventList; @@ -703,7 +706,6 @@ public: /// Post an event to all listeners virtual bool post(const LLSD& event); -private: /// flush queued events virtual void flush(); |