mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
6d4fa40416
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
51 lines
1.0 KiB
C++
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>);
|
|
|
|
};
|
|
|
|
|