The Battle for Wesnoth  1.17.0-dev
credentials.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2017 - 2021
3  Part of the Battle for Wesnoth Project https://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #pragma once
16 
17 #include <string>
18 
19 namespace preferences {
20  std::string login();
21  void set_login(const std::string& login);
22 
23  std::string password(const std::string& server, const std::string& login);
24  void set_password(const std::string& server, const std::string& login, const std::string& key);
25 
26  bool remember_password();
27  void set_remember_password(bool remember);
28 
29  void load_credentials();
30  void save_credentials();
31 }
bool remember_password()
void set_remember_password(bool remember)
void save_credentials()
void set_login(const std::string &login)
void set_password(const std::string &server, const std::string &login, const std::string &key)
Modify, read and display user preferences.
std::string login()
std::string password(const std::string &server, const std::string &login)
void load_credentials()