mDatabase->AddWebPage2(newRow, column.get());
mDatabase->AddWebPage1(newRow, column.get());
void AddressBookParser::AddLdifColToDatabase(nsIMdbRow* newRow, char* typeSlot, char* valueSlot, PRBool bIsList){    nsCAutoString colType(typeSlot);    nsCAutoString column(valueSlot);    mdb_u1 firstByte = (mdb_u1)(colType.get())[0];    switch ( firstByte )    {    case 'b':      if ( kNotFound != colType.Find("birthyear") )        mDatabase->AddBirthYear(newRow, column.get());      break; // 'b'    case 'c':      if ( kNotFound != colType.Find("cn") || kNotFound != colType.Find("commonname") )      {        if (bIsList)          mDatabase->AddListName(newRow, column.get());        else          mDatabase->AddDisplayName(newRow, column.get());      }      else if ( kNotFound != colType.Find("countryname") )       {      if (mStoreLocAsHome )        mDatabase->AddHomeCountry(newRow, column.get());      else        mDatabase->AddWorkCountry(newRow, column.get());      }      // else if ( kNotFound != colType.Find("charset") )      //   ioRow->AddColumn(ev, this->ColCharset(), yarn);      else if ( kNotFound != colType.Find("cellphone") )        mDatabase->AddCellularNumber(newRow, column.get());//          else if ( kNotFound != colType.Find("calendar") )//            ioRow->AddColumn(ev, this->ColCalendar(), yarn);//          else if ( kNotFound != colType.Find("car") )//            ioRow->AddColumn(ev, this->ColCar(), yarn);      else if ( kNotFound != colType.Find("carphone") )        mDatabase->AddCellularNumber(newRow, column.get());//            ioRow->AddColumn(ev, this->ColCarPhone(), yarn);//          else if ( kNotFound != colType.Find("carlicense") )//            ioRow->AddColumn(ev, this->ColCarLicense(), yarn);              else if ( kNotFound != colType.Find("custom1") )        mDatabase->AddCustom1(newRow, column.get());              else if ( kNotFound != colType.Find("custom2") )        mDatabase->AddCustom2(newRow, column.get());              else if ( kNotFound != colType.Find("custom3") )        mDatabase->AddCustom3(newRow, column.get());              else if ( kNotFound != colType.Find("custom4") )        mDatabase->AddCustom4(newRow, column.get());              else if ( kNotFound != colType.Find("company") )        mDatabase->AddCompany(newRow, column.get());      break; // 'c'    case 'd':      if ( kNotFound != colType.Find("description") )      {        if (bIsList)          mDatabase->AddListDescription(newRow, column.get());        else          mDatabase->AddNotes(newRow, column.get());      }//          else if ( kNotFound != colType.Find("dn") ) // distinuished name//            ioRow->AddColumn(ev, this->ColDistName(), yarn);      else if ( kNotFound != colType.Find("department") )        mDatabase->AddDepartment(newRow, column.get());//          else if ( kNotFound != colType.Find("departmentnumber") )//            ioRow->AddColumn(ev, this->ColDepartmentNumber(), yarn);//          else if ( kNotFound != colType.Find("date") )//            ioRow->AddColumn(ev, this->ColDate(), yarn);      break; // 'd'    case 'e'://          if ( kNotFound != colType.Find("employeeid") )//            ioRow->AddColumn(ev, this->ColEmployeeId(), yarn);//          else if ( kNotFound != colType.Find("employeetype") )//            ioRow->AddColumn(ev, this->ColEmployeeType(), yarn);      break; // 'e'    case 'f':      if ( kNotFound != colType.Find("fax") ||        kNotFound != colType.Find("facsimiletelephonenumber") )        mDatabase->AddFaxNumber(newRow, column.get());      break; // 'f'    case 'g':      if ( kNotFound != colType.Find("givenname") )        mDatabase->AddFirstName(newRow, column.get());//          else if ( kNotFound != colType.Find("gif") )//            ioRow->AddColumn(ev, this->ColGif(), yarn);//          else if ( kNotFound != colType.Find("geo") )//            ioRow->AddColumn(ev, this->ColGeo(), yarn);      break; // 'g'    case 'h':      if ( kNotFound != colType.Find("homephone") )        mDatabase->AddHomePhone(newRow, column.get());      else if ( kNotFound != colType.Find("homeurl") )        mDatabase->AddWebPage1(newRow, column.get());      break; // 'h'    case 'i'://          if ( kNotFound != colType.Find("imapurl") )//            ioRow->AddColumn(ev, this->ColImapUrl(), yarn);      break; // 'i'    case 'j'://          if ( kNotFound != colType.Find("jpeg") || kNotFound != colType.Find("jpegfile") )//            ioRow->AddColumn(ev, this->ColJpegFile(), yarn);      break; // 'j'    case 'k'://          if ( kNotFound != colType.Find("key") )//            ioRow->AddColumn(ev, this->ColKey(), yarn);//          else if ( kNotFound != colType.Find("keywords") )//            ioRow->AddColumn(ev, this->ColKeywords(), yarn);      break; // 'k'    case 'l':      if ( kNotFound != colType.Find("l") || kNotFound != colType.Find("locality") )       {      if (mStoreLocAsHome )          mDatabase->AddHomeCity(newRow, column.get());      else          mDatabase->AddWorkCity(newRow, column.get());      }//          else if ( kNotFound != colType.Find("language") )//            ioRow->AddColumn(ev, this->ColLanguage(), yarn);//          else if ( kNotFound != colType.Find("logo") )//            ioRow->AddColumn(ev, this->ColLogo(), yarn);//          else if ( kNotFound != colType.Find("location") )//            ioRow->AddColumn(ev, this->ColLocation(), yarn);      break; // 'l'    case 'm':      if ( kNotFound != colType.Find("mail") )        mDatabase->AddPrimaryEmail(newRow, column.get());      else if ( kNotFound != colType.Find("member") && bIsList )        mDatabase->AddLdifListMember(newRow, column.get());//          else if ( kNotFound != colType.Find("manager") )//            ioRow->AddColumn(ev, this->ColManager(), yarn);//          else if ( kNotFound != colType.Find("modem") )//            ioRow->AddColumn(ev, this->ColModem(), yarn);//          else if ( kNotFound != colType.Find("msgphone") )//            ioRow->AddColumn(ev, this->ColMessagePhone(), yarn);      break; // 'm'    case 'n'://          if ( kNotFound != colType.Find("note") )//            ioRow->AddColumn(ev, this->ColNote(), yarn);      if ( kNotFound != colType.Find("notes") )        mDatabase->AddNotes(newRow, column.get());//          else if ( kNotFound != colType.Find("n") )//            ioRow->AddColumn(ev, this->ColN(), yarn);//          else if ( kNotFound != colType.Find("notifyurl") )//            ioRow->AddColumn(ev, this->ColNotifyUrl(), yarn);      break; // 'n'    case 'o':      if ( kNotFound != colType.Find("objectclass"))        break;      else if ( kNotFound != colType.Find("ou") || kNotFound != colType.Find("orgunit") )        mDatabase->AddDepartment(newRow, column.get());      else if ( kNotFound != colType.Find("o") ) // organization        mDatabase->AddCompany(newRow, column.get());      break; // 'o'    case 'p':      if ( kNotFound != colType.Find("postalcode") )      {      if (mStoreLocAsHome )          mDatabase->AddHomeZipCode(newRow, column.get());      else          mDatabase->AddWorkZipCode(newRow, column.get());      }      else if ( kNotFound != colType.Find("postOfficeBox") )        mDatabase->AddWorkAddress(newRow, column.get());      else if ( kNotFound != colType.Find("pager") ||        kNotFound != colType.Find("pagerphone") )        mDatabase->AddPagerNumber(newRow, column.get());                    //          else if ( kNotFound != colType.Find("photo") )//            ioRow->AddColumn(ev, this->ColPhoto(), yarn);//          else if ( kNotFound != colType.Find("parentphone") )//            ioRow->AddColumn(ev, this->ColParentPhone(), yarn);//          else if ( kNotFound != colType.Find("pageremail") )//            ioRow->AddColumn(ev, this->ColPagerEmail(), yarn);//          else if ( kNotFound != colType.Find("prefurl") )//            ioRow->AddColumn(ev, this->ColPrefUrl(), yarn);//          else if ( kNotFound != colType.Find("priority") )//            ioRow->AddColumn(ev, this->ColPriority(), yarn);      break; // 'p'    case 'r':      if ( kNotFound != colType.Find("region") )       {      if (mStoreLocAsHome )        mDatabase->AddWorkState(newRow, column.get());      else        mDatabase->AddWorkState(newRow, column.get());    }//          else if ( kNotFound != colType.Find("rfc822mailbox") )//            ioRow->AddColumn(ev, this->ColPrimaryEmail(), yarn);//          else if ( kNotFound != colType.Find("rev") )//            ioRow->AddColumn(ev, this->ColRev(), yarn);//          else if ( kNotFound != colType.Find("role") )//            ioRow->AddColumn(ev, this->ColRole(), yarn);      break; // 'r'    case 's':      if ( kNotFound != colType.Find("sn") || kNotFound != colType.Find("surname") )        mDatabase->AddLastName(newRow, column.get());      else if ( kNotFound != colType.Find("streetaddress") )       {      if (mStoreLocAsHome )          mDatabase->AddHomeAddress(newRow, column.get());      else          mDatabase->AddWorkAddress(newRow, column.get());      }      else if ( kNotFound != colType.Find("st") )      {      if (mStoreLocAsHome )        mDatabase->AddHomeState(newRow, column.get());      else        mDatabase->AddWorkState(newRow, column.get());      }//          else if ( kNotFound != colType.Find("secretary") )//            ioRow->AddColumn(ev, this->ColSecretary(), yarn);//          else if ( kNotFound != colType.Find("sound") )//            ioRow->AddColumn(ev, this->ColSound(), yarn);//          else if ( kNotFound != colType.Find("sortstring") )//            ioRow->AddColumn(ev, this->ColSortString(), yarn);              break; // 's'    case 't':      if ( kNotFound != colType.Find("title") )        mDatabase->AddJobTitle(newRow, column.get());      else if ( kNotFound != colType.Find("telephonenumber") )      {        mDatabase->AddWorkPhone(newRow, column.get());      }//          else if ( kNotFound != colType.Find("tiff") )//            ioRow->AddColumn(ev, this->ColTiff(), yarn);//          else if ( kNotFound != colType.Find("tz") )//            ioRow->AddColumn(ev, this->ColTz(), yarn);      break; // 't'    case 'u':        if ( kNotFound != colType.Find("uniquemember") && bIsList )            mDatabase->AddLdifListMember(newRow, column.get());//          else if ( kNotFound != colType.Find("uid") )//            ioRow->AddColumn(ev, this->ColUid(), yarn);      break; // 'u'    case 'v'://          if ( kNotFound != colType.Find("version") )//            ioRow->AddColumn(ev, this->ColVersion(), yarn);//          else if ( kNotFound != colType.Find("voice") )//            ioRow->AddColumn(ev, this->ColVoice(), yarn);      break; // 'v'    case 'w':      if ( kNotFound != colType.Find("workurl") )        mDatabase->AddWebPage2(newRow, column.get());      break; // 'w'    case 'x':      if ( kNotFound != colType.Find("xmozillanickname") )      {        if (bIsList)          mDatabase->AddListNickName(newRow, column.get());        else          mDatabase->AddNickName(newRow, column.get());      }      else if ( kNotFound != colType.Find("xmozillausehtmlmail") )      {        ToLowerCase(column);        if (kNotFound != column.Find("true"))            mDatabase->AddPreferMailFormat(newRow, nsIAbPreferMailFormat::html);        else            mDatabase->AddPreferMailFormat(newRow, nsIAbPreferMailFormat::unknown);      }      break; // 'x'    case 'z':      if ( kNotFound != colType.Find("zip") ) // alias for postalcode       {      if (mStoreLocAsHome )        mDatabase->AddHomeZipCode(newRow, column.get());      else        mDatabase->AddWorkZipCode(newRow, column.get());      }      break; // 'z'    default:      break; // default    }}