What are the pre-wire, rough-in and trim-out phases?

What are these stages in the construction cycle? I am confused.