* Addressbook.{cpp,h}:

* Request() now renamed and returns value
  * move spawning download thread to Addressbook class
  * CheckSubscription() renamed and handles return value of Request()
This commit is contained in:
hagen 2016-07-16 00:00:00 +00:00
parent b6c336bf72
commit cbfb1edb79
2 changed files with 33 additions and 23 deletions

View file

@ -112,16 +112,17 @@ namespace client
public:
AddressBookSubscription (AddressBook& book, const std::string& link);
void CheckSubscription ();
void CheckUpdates ();
private:
void Request ();
bool MakeRequest ();
private:
AddressBook& m_Book;
std::string m_Link, m_Etag, m_LastModified;
i2p::data::IdentHash m_Ident;
// m_Etag must be surrounded by ""
};