From 7d5b3af65a6609157ac389dae2610a671af30213 Mon Sep 17 00:00:00 2001 From: chrisparker126 Date: Fri, 9 May 2008 01:01:13 +0000 Subject: [PATCH] qblog dummy service implemented - need to test with qblog gui - added to make compiles fine git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@540 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/services/p3Qblog.cc | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/libretroshare/src/services/p3Qblog.cc b/libretroshare/src/services/p3Qblog.cc index d3ee9f4b9..ca852c7d8 100644 --- a/libretroshare/src/services/p3Qblog.cc +++ b/libretroshare/src/services/p3Qblog.cc @@ -130,7 +130,7 @@ bool p3Qblog::setProfile(std::string &favSong) FavSong = favSong; return true; } - + void p3Qblog::loadDummy(void) { /* load usr list */ @@ -157,14 +157,25 @@ void p3Qblog::loadDummy(void) std::string usrBlog = "I think we should eat more cheese"; - std::string Blog2 = "today was so cool, i got attacked by fifty ninja while buying a loaf - so i used my paper bag to suffocate each of them to death at hyper speed"; + std::string Blog2 = "today was so cool, i got attacked by fifty ninja while buying a loaf so i used my paper bag to suffocate each of them to death at hyper speed"; std::string Blog5 = "I'm really a boring person and having nothin interesting to say"; - UsrBlogSet.insert(std::make_pair("Usr1", usrBlog)); - UsrBlogSet.insert(std::make_pair("Mike2", Blog2)); - UsrBlogSet.insert(std::make_pair("Mike5", Blog5)); + long int time1, time2, time5; + time1 = 12123121; + time2 = 1213212; + time5 = 522133131; + + /*** time blog multimaps ****/ + + std::multimap timeBlog1, timeBlog2, timeBlog5; + timeBlog1.insert(std::make_pair(time1, usrBlog)); + timeBlog2.insert(std::make_pair(time2, Blog2)); + timeBlog5.insert(std::make_pair(time5, Blog5)); + + UsrBlogSet.insert(std::make_pair("Usr1", timeBlog1)); + UsrBlogSet.insert(std::make_pair("Mike2", timeBlog2)); + UsrBlogSet.insert(std::make_pair("Mike5", timeBlog5)); }