mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-17 21:40:36 -04:00
qblog dummy service implemented
- needs to be tested with gui - added to make, compiles fine git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@539 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
de0ad9b68f
commit
2ac5b4cc65
1 changed files with 24 additions and 29 deletions
|
@ -27,26 +27,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <strings>
|
#include <string>
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* will contain profile information
|
|
||||||
*/
|
|
||||||
class Profile;
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* blog records to be accessed only by user!
|
|
||||||
*/
|
|
||||||
class RsQBlogMsgs
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* contains information that defines rsQblogs attribute space
|
|
||||||
*/
|
|
||||||
class rsQBlogInfo
|
|
||||||
|
|
||||||
/*! allows gui to interface with the rsQblogs service */
|
/*! allows gui to interface with the rsQblogs service */
|
||||||
class RsQblog
|
class RsQblog
|
||||||
|
@ -73,7 +59,13 @@ virtual ~RsQblog() { return; }
|
||||||
* choose whether to filter or not
|
* choose whether to filter or not
|
||||||
* @param filterSwitch
|
* @param filterSwitch
|
||||||
**/
|
**/
|
||||||
virtual bool setFilterSwitch(bool filterSwitch) = 0;
|
virtual bool setFilterSwitch(bool &filterSwitch) = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get usrs friend list
|
||||||
|
* @ param usrList
|
||||||
|
*/
|
||||||
|
virtual bool getFriendList(std::list<std::string> &friendList) =0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* retrieve usrs filterSwitch status
|
* retrieve usrs filterSwitch status
|
||||||
|
@ -84,36 +76,39 @@ virtual ~RsQblog() { return; }
|
||||||
* add user id to filter list
|
* add user id to filter list
|
||||||
* @param usr id to add to filter list
|
* @param usr id to add to filter list
|
||||||
**/
|
**/
|
||||||
virtual bool addToFilter(std::string &id) = 0
|
virtual bool addToFilter(std::string &usrId) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* remove friend from filter list
|
* remove friend from filter list
|
||||||
* @param id The user's frined's id
|
* @param id The user's frined's id
|
||||||
**/
|
**/
|
||||||
virtual bool removeFiltFriend(std::string &id) = 0;
|
virtual bool removeFiltFriend(std::string &usrId) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get users profile
|
* get users fav song
|
||||||
|
* @param usrId the usr whose fav song you want
|
||||||
|
* @param favSong puts ref for fav song here
|
||||||
*/
|
*/
|
||||||
virtual bool getProfile(std::string &id, Profile &profile) = 0;
|
virtual bool getProfile(std::string &usrId, std::string &favSong) = 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* set profile info
|
* for now just fav song, TODO: must find way to link to rs profile
|
||||||
*/
|
*/
|
||||||
virtual bool setProfile(Profile &profile) = 0;
|
virtual bool setProfile(std::string &favSong) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* send blog info to usr blog list
|
* send blog info, will send to a data structure for transmission
|
||||||
* @param msg The msg of the usr wants to send
|
* @param msg The msg the usr wants to send
|
||||||
*/
|
*/
|
||||||
virtual bool sendBlog(std::string &msg) = 0
|
virtual bool sendBlog(std::string &msg) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* retrieve blog of usr
|
* retrieve blog of a usr
|
||||||
* @param usr the user to return blog for
|
* @param blogs contains the blog msgs of usr along with time posted for sorting
|
||||||
* @param rsQblo
|
|
||||||
*/
|
*/
|
||||||
virtual bool getBlogs(std::string &usr, rsQBlogMsgs &blogs) = 0;
|
virtual bool getBlogs(std::map< std::string, std::multimap<long int, std:: string> > &blogs) = 0;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue