added proper context menu for requesting/cancelling circle subscription

This commit is contained in:
csoler 2016-05-06 22:12:44 -04:00
parent 83049259f2
commit c9846c0dcf
5 changed files with 80 additions and 7 deletions

View file

@ -134,6 +134,11 @@ virtual bool getCircleDetails(const RsGxsCircleId &id, RsGxsCircleDetails &detai
virtual bool getCircleExternalIdList(std::list<RsGxsCircleId> &circleIds) = 0;
virtual bool getCirclePersonalIdList(std::list<RsGxsCircleId> &circleIds) = 0;
/* membership management for external circles */
virtual bool requestCircleMembership(const RsGxsCircleId& id)=0 ;
virtual bool cancelCircleMembership(const RsGxsCircleId& id)=0 ;
/* standard load */
virtual bool getGroupData(const uint32_t &token, std::vector<RsGxsCircleGroup> &groups) = 0;

View file

@ -1820,4 +1820,14 @@ void p3GxsCircles::handle_event(uint32_t event_type, const std::string &elabel)
}
bool p3GxsCircles::requestCircleMembership(const RsGxsCircleId& id)
{
#warning code missing here !!!
}
bool p3GxsCircles::cancelCircleMembership(const RsGxsCircleId& id)
{
#warning code missing here !!!
}

View file

@ -192,6 +192,11 @@ virtual RsServiceInfo getServiceInfo();
virtual void updateGroup(uint32_t &token, RsGxsCircleGroup &group);
/* membership management for external circles */
virtual bool requestCircleMembership(const RsGxsCircleId& id) ;
virtual bool cancelCircleMembership(const RsGxsCircleId& id) ;
/**********************************************/
// needed for background processing.