completed distrib items (chan,blog, forum and base unit tests)

- written test for new forumreadstatus item, and other recent changes to distrib items

added graphics support to blogs - can now have pics for html blogs! but removed attachment, a channels artifact
added copy constructor to rstlvimage, needed for tests to work

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3317 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
chrisparker126 2010-07-28 23:12:19 +00:00
parent 81203b3cfd
commit 7a789edcbf
8 changed files with 156 additions and 37 deletions

View file

@ -250,18 +250,18 @@ uint32_t RsForumSerialiser::sizeReadStatus(RsForumReadStatus *item)
uint32_t s = 8; /* header */
/* RsDistribChildConfig stuff */
s += GetTlvUInt32Size(); /* save_type */
s += 4; /* save_type */
/* RsForumReadStatus stuff */
GetTlvStringSize(item->forumId);
s += GetTlvStringSize(item->forumId);
std::map<std::string, uint32_t>::iterator mit = item->msgReadStatus.begin();
for(; mit != item->msgReadStatus.end(); mit++)
{
GetTlvStringSize(mit->first); /* key */
s += GetTlvUInt32Size(); /* value */
s += GetTlvStringSize(mit->first); /* key */
s += 4; /* value */
}
return s;