return Confirm(parent, dialogTitle, text, _retval);
ResourceState setState; USES_CONVERSION;  CWnd *wnd = CWndForDOMWindow(parent); CConfirmCheckDialog dlg(wnd, W2T(dialogTitle), W2T(text), W2T(checkboxMsg), checkValue ? *checkValue : 0, "Yes", "No", NULL);  int iBtnClicked = dlg.DoModal();  *checkValue = dlg.m_bCheckBoxValue;  *_retval = iBtnClicked == 0 ? PR_TRUE : PR_FALSE;  return NS_OK;
NS_IMETHODIMP CPromptService::ConfirmCheck(nsIDOMWindow *parent,                                           const PRUnichar *dialogTitle,                                           const PRUnichar *text,                                           const PRUnichar *checkboxMsg,                                           PRBool *checkValue,                                           PRBool *_retval){  // TODO implement proper confirmation checkbox dialog  return Confirm(parent, dialogTitle, text, _retval);}