X-ray properties of elliptical galaxies as determined by feedback from their central black holes