add the removeIdentity() method to the the account manager interface.

I need this, because at migration time, I create a bogus identity
for migration purpose, and I want to clean up after myself.
This commit is contained in:
sspitzer%netscape.com 2000-01-15 09:14:27 +00:00
parent a8927fd2e9
commit 494451258f
3 changed files with 10 additions and 2 deletions

View File

@ -36,6 +36,7 @@ interface nsIMsgAccountManager : nsISupports {
nsIMsgAccount getAccount(in string key);
void removeAccount(in nsIMsgAccount account);
void removeIdentity(in nsIMsgIdentity identity);
void duplicateAccount(in nsIMsgAccount account);
/*

View File

@ -704,8 +704,8 @@ nsMessengerMigrator::UpgradePrefs()
rv = m_prefs->SavePrefFile();
if (NS_FAILED(rv)) return rv;
// not yet, but soon.
// rv = accountManager->RemoveIdentity(identity);
// remove the temporary identity we used for migration purposes
rv = accountManager->RemoveIdentity(identity);
return rv;
}

View File

@ -436,6 +436,13 @@ nsMsgAccountManager::DuplicateAccount(nsIMsgAccount *aAccount)
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsMsgAccountManager::RemoveIdentity(nsIMsgIdentity *aIdentity)
{
// finish this
return NS_OK;
}
NS_IMETHODIMP
nsMsgAccountManager::RemoveAccount(nsIMsgAccount *aAccount)
{