Fixing problem with dropping Nickname and display name in sync - Bug #: 1371 - r: jefft

This commit is contained in:
rhp%netscape.com 2000-07-08 20:51:31 +00:00
Родитель 976758a906
Коммит ca02d359f7
4 изменённых файлов: 16 добавлений и 3 удалений

Просмотреть файл

@ -115,6 +115,7 @@ NS_IMETHODIMP nsAbSyncDriver::OnStartOperation(PRInt32 aTransactionID, PRUint32
msgValue = nsTextFormatter::smprintf(outValue, aMsgSize);
mStatus->ShowStatusString(msgValue);
PR_FREEIF(outValue);
PR_FREEIF(msgValue);
}
@ -144,7 +145,7 @@ NS_IMETHODIMP nsAbSyncDriver::OnProgress(PRInt32 aTransactionID, PRUint32 aProgr
/* void OnStatus (in PRInt32 aTransactionID, in wstring aMsg); */
NS_IMETHODIMP nsAbSyncDriver::OnStatus(PRInt32 aTransactionID, const PRUnichar *aMsg)
{
return NS_ERROR_NOT_IMPLEMENTED;
return mStatus->ShowStatusString(aMsg);
}
/* void OnStopOperation (in PRInt32 aTransactionID, in nsresult aStatus, in wstring aMsg); */

Просмотреть файл

@ -2346,6 +2346,9 @@ nsAbSync::AddValueToNewCard(nsIAbCard *aCard, nsString *aTagName, nsString *aTag
aCard->SetLastName(aTagValue->GetUnicode());
if (!aTagName->CompareWithConversion(kServerDisplayNameColumn))
aCard->SetDisplayName(aTagValue->GetUnicode());
if (!aTagName->CompareWithConversion(kServerNicknameColumn))
aCard->SetNickName(aTagValue->GetUnicode());
if (!aTagName->CompareWithConversion(kServerPriEmailColumn))

Просмотреть файл

@ -499,6 +499,15 @@ nsAbSyncPostEngine::OnStopRequest(nsIChannel *aChannel, nsISupports * /* ctxt */
KickTheSyncOperation();
}
}
// RICHIE - Special here to show the server we are hitting!
// RICHIE - REMOVE THIS BEFORE SHIPPING!!!!
PRUnichar *msgValue = nsnull;
msgValue = nsTextFormatter::smprintf(nsString(NS_ConvertASCIItoUCS2("Server: %s - port %d")).GetUnicode(),
mMojoSyncSpec, mMojoSyncPort);
NotifyListenersOnStatus(mTransactionID, msgValue);
PR_FREEIF(msgValue);
// RICHIE
}
else
{

Просмотреть файл

@ -70,8 +70,8 @@ char *kLastModifiedDateColumn = "LastModifiedDate";
// Server record fields!
char *kServerFirstNameColumn = "fname";
char *kServerLastNameColumn = "lname";
char *kServerDisplayNameColumn = "screen_name";
char *kServerNicknameColumn = "OMIT:NickName";
char *kServerDisplayNameColumn = "Display_name";
char *kServerNicknameColumn = "nick_name";
char *kServerPriEmailColumn = "email1";
char *kServer2ndEmailColumn = "email2";
char *kServerPlainTextColumn = "OMIT:SendPlainText";