mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-30 09:56:14 -05:00
be20086e09
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7460 b45a01b8-16f6-495d-af2f-9b41ad6348cc
116 lines
3.5 KiB
C++
116 lines
3.5 KiB
C++
#include "genexchangetestservice.h"
|
|
|
|
GenExchangeTestService::GenExchangeTestService(RsGeneralDataService *dataServ, RsNetworkExchangeService * netService,
|
|
RsGixs* gixs)
|
|
: RsGenExchange(dataServ, netService, new RsDummySerialiser(), RS_SERVICE_TYPE_DUMMY, gixs, 0)
|
|
{
|
|
|
|
}
|
|
|
|
RsServiceInfo GenExchangeTestService::getServiceInfo()
|
|
{
|
|
RsServiceInfo info;
|
|
return info;
|
|
}
|
|
|
|
void GenExchangeTestService::notifyChanges(std::vector<RsGxsNotify *> &changes)
|
|
{
|
|
return;
|
|
}
|
|
|
|
void GenExchangeTestService::publishDummyGrp(uint32_t &token, RsDummyGrp *grp)
|
|
{
|
|
publishGroup(token, grp);
|
|
}
|
|
|
|
void GenExchangeTestService::updateDummyGrp(uint32_t &token, RsGxsGroupUpdateMeta &updateMeta, RsDummyGrp *group)
|
|
{
|
|
//updateGroup(token, updateMeta, group);
|
|
updateGroup(token, group);
|
|
}
|
|
|
|
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<RsDummyGrp *>& grpItem)
|
|
{
|
|
return getGroupDataT<RsDummyGrp>(token, grpItem);
|
|
}
|
|
|
|
bool GenExchangeTestService::getMsgDataTS(const uint32_t &token, DummyMsgMap &msgItems)
|
|
{
|
|
return getMsgDataT<RsDummyMsg>(token, msgItems);
|
|
}
|
|
|
|
bool GenExchangeTestService::getMsgRelatedDataTS(const uint32_t &token, GxsMsgRelatedDataMap &msgItems)
|
|
{
|
|
return getMsgRelatedData(token, msgItems);
|
|
}
|
|
|
|
bool GenExchangeTestService::getGroupStatisticTS(const uint32_t &token, GxsGroupStatistic &stats)
|
|
{
|
|
return getGroupStatistic(token, stats);
|
|
}
|
|
|
|
bool GenExchangeTestService::getServiceStatisticTS(const uint32_t &token, GxsServiceStatistic &stats)
|
|
{
|
|
return getServiceStatistic(token, stats);
|
|
}
|
|
|
|
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);
|
|
}
|
|
|
|
bool GenExchangeTestService::getMsgRelatedListTS(const uint32_t &token, MsgRelatedIdResult &msgIds)
|
|
{
|
|
return getMsgRelatedList(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, const uint32_t& mask)
|
|
{
|
|
RsGenExchange::setGroupStatusFlags(token, grpId, status, mask);
|
|
}
|
|
|
|
void GenExchangeTestService::setGroupSubscribeFlagTS(uint32_t &token, const RsGxsGroupId &grpId, const uint32_t &status, const uint32_t& mask)
|
|
{
|
|
RsGenExchange::setGroupSubscribeFlags(token, grpId, status, mask);
|
|
}
|
|
|
|
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, const uint32_t& mask)
|
|
{
|
|
RsGenExchange::setMsgStatusFlags(token, msgId, status, mask);
|
|
}
|
|
|
|
void GenExchangeTestService::service_tick()
|
|
{
|
|
|
|
}
|