Don't use emit in public headers.

Change-Id: I465ceee790e63cf2d264dc7d81839a153b11bdcf
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>