In OTL, the Mughal Empire eventually ended up all in the control of the East India Company, and was eventually abolished. How could it have ended up more like Qing China: That is, while spheres of influence and ports (like Goa and Calcutta, perhaps) are taken by the imperialist powers, the country still retains at least a theoretical independent existance? What would be the effects on those areas of India not taken by the Mughals?