NS_IMETHODIMP className::QueryInterface( REFNSIID anIID, void **anInstancePtr ) { nsresult rv = NS_OK;  printf("QueryInterface!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n\n");   if( !anInstancePtr ) rv = NS_ERROR_NULL_POINTER; else { *anInstancePtr = 0; if ( anIID.Equals( NS_GET_IID(nsIHelperAppLauncherDialog) ) ) { *anInstancePtr = (void*) (nsIHelperAppLauncherDialog*)this; NS_ADDREF_THIS(); } else if ( anIID.Equals( NS_GET_IID(nsIAppShellComponent) ) ) { *anInstancePtr = (void*) ( (nsIAppShellComponent*)this ); NS_ADDREF_THIS(); } else if ( anIID.Equals( NS_GET_IID(nsISupports) ) ) { *anInstancePtr = (void*) ( (nsISupports*) (interfaceName*)this ); NS_ADDREF_THIS(); } else rv = NS_NOINTERFACE; } return rv; }
className::QueryInterface( REFNSIID anIID, void **anInstancePtr ) { nsresult rv = NS_OK;  if ( !anInstancePtr ) { rv = NS_ERROR_NULL_POINTER; } else {  *anInstancePtr = 0;  if ( 0 ) { } else if ( anIID.Equals( NS_GET_IID(interfaceName) ) ) { *anInstancePtr = (void*) this; NS_ADDREF_THIS(); } else if ( anIID.Equals( NS_GET_IID(nsIHelperAppLauncherDialog) ) ) { *anInstancePtr = (void*) (nsIHelperAppLauncherDialog*)this; NS_ADDREF_THIS(); } else if ( anIID.Equals( NS_GET_IID(nsIAppShellComponent) ) ) { *anInstancePtr = (void*) ( (nsIAppShellComponent*)this ); NS_ADDREF_THIS(); } else if ( anIID.Equals( NS_GET_IID(nsISupports) ) ) { *anInstancePtr = (void*) ( (nsISupports*) (interfaceName*)this ); NS_ADDREF_THIS(); } else {  rv = NS_NOINTERFACE; } } return rv; }
NS_IMETHODIMP className::QueryInterface( REFNSIID anIID, void **anInstancePtr ) { 	nsresult rv = NS_OK; /* ATENTIE */ printf("QueryInterface!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n\n");	/* Check for place to return result. */	if( !anInstancePtr ) rv = NS_ERROR_NULL_POINTER;	else { 		*anInstancePtr = 0; 		if ( anIID.Equals( NS_GET_IID(nsIHelperAppLauncherDialog) ) ) { 			*anInstancePtr = (void*) (nsIHelperAppLauncherDialog*)this; 			NS_ADDREF_THIS();			}		else if ( anIID.Equals( NS_GET_IID(nsIAppShellComponent) ) ) { 			*anInstancePtr = (void*) ( (nsIAppShellComponent*)this ); 			NS_ADDREF_THIS();			}		else if ( anIID.Equals( NS_GET_IID(nsISupports) ) ) { 			*anInstancePtr = (void*) ( (nsISupports*) (interfaceName*)this ); 			NS_ADDREF_THIS();			}		else rv = NS_NOINTERFACE;		} 	return rv; 	}