Arduino Universal IR Transceiver

While several pde for sending/receiving IR remote commands exist for Arduino, they are all brand-specific (I found NEC codes, Sony or Philips).
I’ve come across a very nice project, inspired by the world-famous TVb-gone, wich should be easily portable to arduino:

Any ideas on howto make a pde version from the code?