diff options
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_; |