RetroShare/libretroshare/src/gxs/db_wire.h
drbob 6d4fa40416 Added acadeeb - A bibiography / reference paper system.
Added wire - decentralised twitter clone.
Tweaks to other definitions.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-new_cache_system@4809 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-01-18 00:13:27 +00:00

51 lines
1.0 KiB
C++

#include "gxp_service.h"
class db_wire
{
/* external interface for accessing the info */
/** Note this could get very busy with a large number of tweeters.
* need some other method of getting data
*/
getTweeters(std::list<std::string> &tweeterIds);
{
getGroups();
}
getTweetRange(GxpTimeStamp, GxpTimeStamp, std::list<std::string> &tweetIds);
{
getTimeRange();
}
getTweetRangeSource(GxpTimeStamp, GxpTimeStamp, std::string tweeterId, std::list<std::string> &tweetIds);
{
getGroupTimeRange();
}
getTweet(std::string id, TweetData &tweet);
{
StackLock();
RsGxpItem *getMsg_locked(id);
// translate message into TweetData.
}
// Default
getProfile(std::string id, TweetData &tweet);
/* returns a search code, which is used to id later delivery */
int searchTweets(GxpSearchCondition cond, std::list<std::string>);
/* returns a search code, which is used to id later delivery */
int fetchPendingSearchResults(int searchId, std::list<std::string>);
int cancelSearch(int searchId, std::list<std::string>);
};