change IQ.Type to enum

IQ.Type is a enum now