diff options
| author | Aotrix <[email protected]> | 2026-04-23 02:48:00 +0200 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2026-04-23 02:48:00 +0200 |
| commit | 5582e994d39b16a6d61f05b13e78c30f4bac5d84 (patch) | |
| tree | f1bb074a61fad89d072d007b8a19d3ca9f446d4f /battleNetApi/include | |
| parent | cc436cb44c60ef2485321e1e22b3ea0a59ee22af (diff) | |
Create TokenBuilder class
Diffstat (limited to 'battleNetApi/include')
| -rw-r--r-- | battleNetApi/include/token.hpp | 1 | ||||
| -rw-r--r-- | battleNetApi/include/tokenBuilder.hpp | 12 |
2 files changed, 12 insertions, 1 deletions
diff --git a/battleNetApi/include/token.hpp b/battleNetApi/include/token.hpp index bcb4926..b913b2b 100644 --- a/battleNetApi/include/token.hpp +++ b/battleNetApi/include/token.hpp @@ -8,7 +8,6 @@ class Token { explicit Token(const std::string &iTokenFilePath); std::string text() const; const bool hasExpired() const; - void updateToken(); private: const std::string mFilePath; //!< Path to the token file diff --git a/battleNetApi/include/tokenBuilder.hpp b/battleNetApi/include/tokenBuilder.hpp new file mode 100644 index 0000000..71286cd --- /dev/null +++ b/battleNetApi/include/tokenBuilder.hpp @@ -0,0 +1,12 @@ +#include <token.hpp> + +class TokenBuilder { + public: + TokenBuilder(); + [[nodiscard]] + Token build() const; + TokenBuilder &allowSourceFileUpdate(); + + private: + bool mAllowSourceFileUpdate{false}; +}; |
