diff options
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}; +}; |
