added IQuery.State
Merge pull request #5 from tauli/master

added IQuery.State