mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-29 19:11:24 -04:00
Mostly connectivity code additions
* implementation of p3config, cache functionality to p3Qblog * added peerid (pid) attribute to rsQblog item and its serialisation * TODO: logical updating for p3Qblog * TODO: implement tick() so can add to server * TODO: test p3Qblog after addition of tick with some peers git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@571 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e83a76c38a
commit
d8bfc6d8b3
15 changed files with 886 additions and 139 deletions
91
libretroshare/src/rsserver/p3Blog.cc
Normal file
91
libretroshare/src/rsserver/p3Blog.cc
Normal file
|
@ -0,0 +1,91 @@
|
|||
/*
|
||||
* libretroshare/src/rsserver: p3blog.cc
|
||||
*
|
||||
* RetroShare C++ Interface.
|
||||
*
|
||||
* Copyright 2007-2008 by Chris Evi-Parker.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* License Version 2 as published by the Free Software Foundation.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
* USA.
|
||||
*
|
||||
* Please report all bugs and problems to "retroshare@lunamutt.com".
|
||||
*
|
||||
*/
|
||||
|
||||
#include "rsserver/p3Blog.h"
|
||||
|
||||
RsQblog* rsQblog = NULL;
|
||||
|
||||
p3Blog::p3Blog(p3Qblog* qblog) :
|
||||
mQblog(qblog)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
p3Blog::~p3Blog()
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
bool p3Blog::addToFilter(std::string &usrId)
|
||||
{
|
||||
return mQblog->addToFilter(usrId);
|
||||
}
|
||||
|
||||
bool p3Blog::getBlogs(std::map< std::string, std::multimap<long int, std:: string> > &blogs)
|
||||
{
|
||||
return mQblog->getBlogs(blogs);
|
||||
}
|
||||
|
||||
bool p3Blog::getFilterSwitch(void)
|
||||
{
|
||||
return mQblog->getFilterSwitch();
|
||||
}
|
||||
|
||||
bool p3Blog::getProfile(std::map<std::string, std::string> &profile)
|
||||
{
|
||||
return mQblog->getProfile(profile);
|
||||
}
|
||||
|
||||
bool p3Blog::getStatus(std::map<std::string, std::string> &usrStatus)
|
||||
{
|
||||
return mQblog->getStatus(usrStatus);
|
||||
}
|
||||
|
||||
bool p3Blog::sendBlog(const std::string &msg)
|
||||
{
|
||||
return mQblog->sendBlog(msg);
|
||||
}
|
||||
|
||||
bool p3Blog::setFilterSwitch(bool &filterSwitch)
|
||||
{
|
||||
return mQblog->setFilterSwitch(filterSwitch);
|
||||
}
|
||||
|
||||
bool p3Blog::setProfile(const std::string &favSong)
|
||||
{
|
||||
return mQblog->setProfile(favSong);
|
||||
}
|
||||
|
||||
bool p3Blog::setStatus(const std::string &status)
|
||||
{
|
||||
return mQblog->setStatus(status);
|
||||
}
|
||||
|
||||
bool p3Blog::removeFiltFriend(std::string &usrId)
|
||||
{
|
||||
return mQblog->removeFiltFriend(usrId);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue