mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
load from addressbook first
This commit is contained in:
parent
092b445e36
commit
3e3cfa3d68
2 changed files with 21 additions and 36 deletions
|
@ -18,14 +18,12 @@ namespace client
|
|||
public:
|
||||
|
||||
virtual ~AddressBookStorage () {};
|
||||
virtual bool GetAddress (const i2p::data::IdentHash& ident, i2p::data::IdentityEx& address) const = 0;
|
||||
virtual const i2p::data::IdentHash * FindAddress (const std::string& name) const = 0;
|
||||
virtual void AddAddress (std::string& name, const i2p::data::IdentHash& ident) = 0;
|
||||
virtual bool GetAddress (const i2p::data::IdentHash& ident, i2p::data::IdentityEx& address) const = 0;
|
||||
virtual void AddAddress (const i2p::data::IdentityEx& address) = 0;
|
||||
virtual void RemoveAddress (const i2p::data::IdentHash& ident) = 0;
|
||||
|
||||
virtual int Load () = 0;
|
||||
virtual int Save () = 0;
|
||||
virtual int Load (std::map<std::string, i2p::data::IdentHash>& addresses) = 0;
|
||||
virtual int Save (const std::map<std::string, i2p::data::IdentHash>& addresses) = 0;
|
||||
};
|
||||
|
||||
class AddressBook
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue