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

@ -54,13 +54,11 @@ virtual std::ostream& print(std::ostream &out, uint16_t indent = 0);
* grpId, timestamp.
* Not Used: parentId, threadId
*/
std::wstring subject;
std::wstring message;
std::wstring subject;
std::wstring message;
/// message id to which the reply applies to
std::string mIdReply;
RsTlvFileSet attachment;
/// for adding images to graphics
std::list<RsTlvImage > graphic_set;
};
@ -68,7 +66,7 @@ class RsBlogSerialiser: public RsSerialType
{
public:
RsBlogSerialiser()
:RsSerialType(RS_PKT_VERSION_SERVICE, RS_SERVICE_TYPE_CHANNEL)
:RsSerialType(RS_PKT_VERSION_SERVICE, RS_SERVICE_TYPE_QBLOG)
{ return; }
virtual ~RsBlogSerialiser()
{ return; }