moved QueryTaskEvent and QueryTaskListener to outer package