mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-12 08:33:05 -04:00
returned src to compilable stage
added orig msgid and removed sign from nxsmsg, renamed nxsitems more appropriately added more code to nxs net service removed msg versioning from data service and added extra msgField modified nxsitem test and datastore service appropriately, all pass added serialisation of transactions and added transaction number to nxsitems git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-new_cache_system@5215 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
de8f4f283c
commit
441a51757f
14 changed files with 886 additions and 391 deletions
|
@ -31,14 +31,21 @@
|
|||
#include <string>
|
||||
|
||||
#include "inttypes.h"
|
||||
#include "rsgnp.h"
|
||||
|
||||
#include "serialiser/rsgxsitems.h"
|
||||
#include "serialiser/rsnxsitems.h"
|
||||
|
||||
#include "gxs/rsgxs.h"
|
||||
|
||||
class RsGxsSearchModule {
|
||||
|
||||
public:
|
||||
|
||||
virtual ~RsGxsSearchModule();
|
||||
|
||||
virtual bool searchMsg(const RsGxsSearch&, RsGxsMsg* msg) = 0;
|
||||
virtual bool searchGroup(const RsGxsSearch&, RsGxsGroup* grp) = 0;
|
||||
|
||||
};
|
||||
|
||||
|
||||
/*!
|
||||
|
@ -93,19 +100,6 @@ public:
|
|||
*/
|
||||
virtual int retrieveGrpVersions(const std::string& grpId, std::set<RsNxsGrp*>& grp, bool cache) = 0;
|
||||
|
||||
/*!
|
||||
* @param msgId the id of the message to get versions for
|
||||
* @param cache whether to store the result in memory
|
||||
* @param errCode
|
||||
*/
|
||||
virtual int retrieveMsgVersions(const std::string& grpId, const std::string& msgId, std::set<RsNxsMsg*>& grp, bool cache) = 0;
|
||||
|
||||
/*!
|
||||
* @param msgId the id of the message to retrieve
|
||||
* @return NULL if message does not exist, or pointer to grp if found
|
||||
*/
|
||||
virtual RsNxsMsg* retrieveMsgVersion(const RsGxsMsgId& msgId) = 0;
|
||||
|
||||
/*!
|
||||
* @param grpId the id of the group to retrieve
|
||||
* @return NULL if group does not exist or pointer to grp if found
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue