mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 08:20:05 +00:00 
			
		
		
		
	Add working poi manager implementation
This commit is contained in:
		
							parent
							
								
									ec4387112e
								
							
						
					
					
						commit
						f5d867cf1a
					
				
					 2 changed files with 191 additions and 13 deletions
				
			
		|  | @ -2,6 +2,8 @@ | |||
| 
 | ||||
| #include <scwx/qt/types/poi_types.hpp> | ||||
| 
 | ||||
| #include <string> | ||||
| 
 | ||||
| #include <QObject> | ||||
| 
 | ||||
| namespace scwx | ||||
|  | @ -19,6 +21,15 @@ public: | |||
|    explicit POIManager(); | ||||
|    ~POIManager(); | ||||
| 
 | ||||
|    size_t poi_count(); | ||||
|    types::PointOfInterest get_poi(size_t index); | ||||
|    types::PointOfInterest get_poi(const std::string& name); | ||||
|    void set_poi(size_t index, const types::PointOfInterest& poi); | ||||
|    void set_poi(const std::string& name, const types::PointOfInterest& poi); | ||||
|    void add_poi(const types::PointOfInterest& poi); | ||||
|    void move_poi(size_t from, size_t to); | ||||
| 
 | ||||
|    static std::shared_ptr<POIManager> Instance(); | ||||
| 
 | ||||
| private: | ||||
|    class Impl; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak