The contract with O2 expires next year, so unless this is resigned the Iphone will be available for all Service providers.
Basically O2 havent made any money from the Iphone, and all profit has gone to Apple. I can not see O2 resigning for the Iphone next year, but stranger things have happened!