mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-28 02:41:36 -05:00

also tested group meta mod request for service strings all group and msg submission and retrieval requests now tested msg meta mod request to test still Added fixes: genexchange (mGrpSign was not included in overloaded assignment operator) added grp sign flag as Db field git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5473 b45a01b8-16f6-495d-af2f-9b41ad6348cc
79 lines
2.4 KiB
C++
79 lines
2.4 KiB
C++
#include "genexchangetestservice.h"
|
|
|
|
GenExchangeTestService::GenExchangeTestService(RsGeneralDataService *dataServ, RsNetworkExchangeService * netService)
|
|
: RsGenExchange(dataServ, netService, new RsDummySerialiser(), RS_SERVICE_TYPE_DUMMY)
|
|
{
|
|
|
|
}
|
|
|
|
void GenExchangeTestService::notifyChanges(std::vector<RsGxsNotify *> &changes)
|
|
{
|
|
return;
|
|
}
|
|
|
|
void GenExchangeTestService::publishDummyGrp(uint32_t &token, RsDummyGrp *grp)
|
|
{
|
|
publishGroup(token, grp);
|
|
}
|
|
|
|
void GenExchangeTestService::publishDummyMsg(uint32_t &token, RsDummyMsg *msg)
|
|
{
|
|
publishMsg(token, msg);
|
|
}
|
|
|
|
bool GenExchangeTestService::getGroupListTS(const uint32_t &token, std::list<RsGxsGroupId> &groupIds)
|
|
{
|
|
return getGroupList(token, groupIds);
|
|
}
|
|
|
|
bool GenExchangeTestService::getGroupMetaTS(const uint32_t &token, std::list<RsGroupMetaData> &groupInfo)
|
|
{
|
|
return getGroupMeta(token, groupInfo);
|
|
}
|
|
|
|
bool GenExchangeTestService::getGroupDataTS(const uint32_t &token, std::vector<RsGxsGrpItem *> &grpItem)
|
|
{
|
|
return getGroupData(token, grpItem);
|
|
}
|
|
|
|
bool GenExchangeTestService::getMsgDataTS(const uint32_t &token, GxsMsgDataMap &msgItems)
|
|
{
|
|
return getMsgData(token, msgItems);
|
|
}
|
|
|
|
bool GenExchangeTestService::getMsgMetaTS(const uint32_t &token, GxsMsgMetaMap &msgInfo)
|
|
{
|
|
return getMsgMeta(token, msgInfo);
|
|
}
|
|
|
|
bool GenExchangeTestService::getMsgListTS(const uint32_t &token, GxsMsgIdResult &msgIds)
|
|
{
|
|
return getMsgList(token, msgIds);
|
|
}
|
|
|
|
void GenExchangeTestService::setGroupServiceStringTS(uint32_t &token, const RsGxsGroupId &grpId, const std::string &servString)
|
|
{
|
|
RsGenExchange::setGroupServiceString(token, grpId, servString);
|
|
}
|
|
|
|
void GenExchangeTestService::setGroupStatusFlagTS(uint32_t &token, const RsGxsGroupId &grpId, const uint32_t &status)
|
|
{
|
|
RsGenExchange::setGroupStatusFlag(token, grpId, status);
|
|
}
|
|
|
|
void GenExchangeTestService::setGroupSubscribeFlagTS(uint32_t &token, const RsGxsGroupId &grpId, const uint32_t &status)
|
|
{
|
|
RsGenExchange::setGroupSubscribeFlag(token, grpId, status);
|
|
}
|
|
|
|
void GenExchangeTestService::setMsgServiceStringTS(uint32_t &token, const RsGxsGrpMsgIdPair &msgId, const std::string &servString)
|
|
{
|
|
RsGenExchange::setMsgServiceString(token, msgId, servString);
|
|
}
|
|
|
|
void GenExchangeTestService::setMsgStatusFlagTS(uint32_t &token, const RsGxsGrpMsgIdPair &msgId, const uint32_t &status)
|
|
{
|
|
RsGenExchange::setMsgStatusFlag(token, msgId, status);
|
|
}
|
|
|