* Introduce null accounts as nano::account{nullptr}
* Fix formatting
* Default nano::account constructor to nano::account{0}
* Fix formatting
* Introduce nano::public_key::null() method instead of std::nullptr_t constructor
* Fix formatting
* Address code review #3
* Last code review addressing
* Fix formatting
* Address code review #4
24 lines
564 B
C++
24 lines
564 B
C++
#pragma once
|
|
|
|
#include <nano/lib/errors.hpp>
|
|
#include <nano/lib/numbers.hpp>
|
|
|
|
#include <string>
|
|
|
|
namespace nano
|
|
{
|
|
class tomlconfig;
|
|
|
|
/** Configuration options for the Qt wallet */
|
|
class wallet_config final
|
|
{
|
|
public:
|
|
wallet_config ();
|
|
/** Update this instance by parsing the given wallet and account */
|
|
nano::error parse (std::string const & wallet_a, std::string const & account_a);
|
|
nano::error serialize_toml (nano::tomlconfig & toml_a) const;
|
|
nano::error deserialize_toml (nano::tomlconfig & toml_a);
|
|
nano::wallet_id wallet;
|
|
nano::account account{};
|
|
};
|
|
}
|