added callback in RsGenExchange subclasses to autorise new groups, to be used by p3GxsIdentity

This commit is contained in:
csoler 2016-08-04 13:12:55 +02:00
parent 7545ad4d11
commit c7576309a7
4 changed files with 59 additions and 14 deletions

View file

@ -259,6 +259,16 @@ public:
*/
virtual void receiveChanges(std::vector<RsGxsNotify*>& changes);
/*!
* \brief acceptNewGroup
* Early checks if the group can be accepted. This is mainly used to check wether the group is banned for some reasons.
* Returns true unless derived in GXS services.
*
* \param grpMeta Group metadata to check
* \return
*/
virtual bool acceptNewGroup(const RsGxsGrpMetaData *grpMeta) ;
bool subscribeToGroup(uint32_t& token, const RsGxsGroupId& grpId, bool subscribe);
/*!