added items for encoding subscription requests and the logic to create them from GUI calls

This commit is contained in:
csoler 2016-05-11 17:59:42 -04:00
parent 2591e3ff25
commit d01c61fde8
6 changed files with 203 additions and 43 deletions

View file

@ -621,10 +621,14 @@ void IdDialog::acceptCircleSubscription()
if (!item)
return ;
#warning we have to find a way to get the correct own id here.
RsGxsId own_id ;
QString coltext = item->text(CIRCLEGROUP_CIRCLE_COL_GROUPID);
RsGxsCircleId circle_id ( coltext.toStdString()) ;
rsGxsCircles->requestCircleMembership(circle_id) ;
rsGxsCircles->requestCircleMembership(own_id,circle_id) ;
}
void IdDialog::refuseCircleSubscription()
@ -633,11 +637,15 @@ void IdDialog::refuseCircleSubscription()
if (!item)
return ;
#warning we have to find a way to get the correct own id here.
RsGxsId own_id ;
QString coltext = item->text(CIRCLEGROUP_CIRCLE_COL_GROUPID);
RsGxsCircleId circle_id ( coltext.toStdString()) ;
rsGxsCircles->cancelCircleMembership(circle_id) ;
rsGxsCircles->cancelCircleMembership(own_id,circle_id) ;
}
void IdDialog::CircleListCustomPopupMenu( QPoint )