rem: event->setCustomProperty( "EGWRESOURCE", "RIGHTS", QString::number( rights ) );
add: incidence->setCustomProperty( "EGWRESOURCE", "RIGHTS", QString::number( rights ) );
context: static void setRights( Event *event, int rights ){  event->setCustomProperty( "EGWRESOURCE", "RIGHTS", QString::number( rights ) );}