void nsNetscapeProfileMigratorBase::CopyMailFolders() { nsAutoString index; index.AppendInt(nsISuiteProfileMigrator::MAILDATA); NOTIFY_OBSERVERS(MIGRATION_ITEMBEFOREMIGRATE, index.get()); // Generate the max progress value now that we know all of the files we // need to copy uint32_t count = mFileCopyTransactions.Length(); mMaxProgress = 0; mCurrentProgress = 0; for (uint32_t i = 0; i < count; ++i) { fileTransactionEntry fileTransaction = mFileCopyTransactions[i]; int64_t fileSize; fileTransaction.srcFile->GetFileSize(&fileSize); mMaxProgress += fileSize; } CopyNextFolder(); }
NS_IMETHODIMP nsNetscapeProfileMigratorBase::Notify(nsITimer *timer) { CopyNextFolder(); return NS_OK; }