I obviously haven't been clear enough :)

CGUIWindow should not need to know or care about ACTION_RECORD.  It makes no sense for the handling thereof to be in this class.  After all, why should the volume dialog for example need to care about the record action?  Why should a settings screen need to care?

This block shouldn't be here, period.

If you need to handle ACTION_RECORD, then the code for doing so should be in CApplication or CApplicationPlayer or whatever it is.