diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-03-07 10:31:22 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-03-17 12:51:07 -0400 |
commit | d532e4937fbf9c1d1458f9bdfb02ed54c50122c3 (patch) | |
tree | a597d9d46f722244ec1dcf8d0e80b5fda31354c6 /src/tracker_config.h | |
parent | e07e0318666e9b05b2a78b7de0979d5706cc28b7 (diff) | |
download | lingo-ap-tracker-d532e4937fbf9c1d1458f9bdfb02ed54c50122c3.tar.gz lingo-ap-tracker-d532e4937fbf9c1d1458f9bdfb02ed54c50122c3.tar.bz2 lingo-ap-tracker-d532e4937fbf9c1d1458f9bdfb02ed54c50122c3.zip |
Added connection history
Diffstat (limited to 'src/tracker_config.h')
-rw-r--r-- | src/tracker_config.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/tracker_config.h b/src/tracker_config.h index b95194e..a1a6c1d 100644 --- a/src/tracker_config.h +++ b/src/tracker_config.h | |||
@@ -1,7 +1,19 @@ | |||
1 | #ifndef TRACKER_CONFIG_H_36CDD648 | 1 | #ifndef TRACKER_CONFIG_H_36CDD648 |
2 | #define TRACKER_CONFIG_H_36CDD648 | 2 | #define TRACKER_CONFIG_H_36CDD648 |
3 | 3 | ||
4 | #include <deque> | ||
4 | #include <string> | 5 | #include <string> |
6 | #include <utility> | ||
7 | |||
8 | struct ConnectionDetails { | ||
9 | std::string ap_server; | ||
10 | std::string ap_player; | ||
11 | std::string ap_password; | ||
12 | |||
13 | bool operator!=(const ConnectionDetails& rhs) const { | ||
14 | return std::tie(ap_server, ap_player, ap_password) != std::tie(rhs.ap_server, rhs.ap_player, rhs.ap_password); | ||
15 | } | ||
16 | }; | ||
5 | 17 | ||
6 | class TrackerConfig { | 18 | class TrackerConfig { |
7 | public: | 19 | public: |
@@ -11,13 +23,12 @@ class TrackerConfig { | |||
11 | 23 | ||
12 | void Save(); | 24 | void Save(); |
13 | 25 | ||
14 | std::string ap_server; | 26 | ConnectionDetails connection_details; |
15 | std::string ap_player; | ||
16 | std::string ap_password; | ||
17 | bool asked_to_check_for_updates = false; | 27 | bool asked_to_check_for_updates = false; |
18 | bool should_check_for_updates = false; | 28 | bool should_check_for_updates = false; |
19 | bool hybrid_areas = false; | 29 | bool hybrid_areas = false; |
20 | bool show_hunt_panels = false; | 30 | bool show_hunt_panels = false; |
31 | std::deque<ConnectionDetails> connection_history; | ||
21 | 32 | ||
22 | private: | 33 | private: |
23 | std::string filename_; | 34 | std::string filename_; |