mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-30 23:40:06 +00:00 
			
		
		
		
	Alert layer should handle alerts by UUID if messages are received out of sequence
This commit is contained in:
		
							parent
							
								
									3f83c8e4a9
								
							
						
					
					
						commit
						16507adbe9
					
				
					 5 changed files with 46 additions and 7 deletions
				
			
		|  | @ -245,7 +245,7 @@ void TextEventManager::Impl::HandleMessage( | |||
| 
 | ||||
|    if (updated) | ||||
|    { | ||||
|       Q_EMIT self_->AlertUpdated(key, messageIndex); | ||||
|       Q_EMIT self_->AlertUpdated(key, messageIndex, message->uuid()); | ||||
|    } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -6,6 +6,7 @@ | |||
| #include <memory> | ||||
| #include <string> | ||||
| 
 | ||||
| #include <boost/uuid/uuid.hpp> | ||||
| #include <QObject> | ||||
| 
 | ||||
| namespace scwx | ||||
|  | @ -32,7 +33,9 @@ public: | |||
|    static std::shared_ptr<TextEventManager> Instance(); | ||||
| 
 | ||||
| signals: | ||||
|    void AlertUpdated(const types::TextEventKey& key, size_t messageIndex); | ||||
|    void AlertUpdated(const types::TextEventKey& key, | ||||
|                      std::size_t                messageIndex, | ||||
|                      boost::uuids::uuid         uuid); | ||||
| 
 | ||||
| private: | ||||
|    class Impl; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat