FFP don't earn based on trips. Each flight can have its own FFP attached (though connections could make this hard).
There is no reason a 10 leg xONEx couldn't have each leg direct points to a different program.
Just go into the booking after you've flown the 6th leg and change the program over.