QualityCenter provides a COM interface. BugFactory is one of it's objects that returns defects. BugFactory doesn't appear to take a user's saved search definition so that it only returns those defects that match the search criteria. As a workaround, I wrote code to parse the search definition and apply the correct filter and sort criteria. That allows me to use the QualityCenter interface to define my searches.