void nsMsgCopyService::LogCopyCompletion(nsISupports *aSrc, nsIMsgFolder *aDest) { nsCString srcFolderUri, destFolderUri; nsCOMPtr<nsIMsgFolder> srcFolder(do_QueryInterface(aSrc)); if (srcFolder) srcFolder->GetURI(srcFolderUri); aDest->GetURI(destFolderUri); PR_LOG(gCopyServiceLog, PR_LOG_ALWAYS, ("NotifyCompletion - src %s dest %s\n", srcFolderUri.get(), destFolderUri.get())); }
bool VProjectItemFolder::MoveTo(const XBOX::VURL& inSrcURL,const XBOX::VURL& inDestURL) { bool ok = false; VFilePath srcFilePath, destFilePath; inSrcURL.GetFilePath(srcFilePath); inDestURL.GetFilePath(destFilePath); VFolder srcFolder(srcFilePath); VFolder destFolder(destFilePath); if (_MoveTo(srcFolder, destFolder) == VE_OK) ok = true; return ok; }
void nsMsgCopyService::LogCopyRequest(const char *logMsg, nsCopyRequest* aRequest) { nsCString srcFolderUri, destFolderUri; nsCOMPtr<nsIMsgFolder> srcFolder(do_QueryInterface(aRequest->m_srcSupport)); if (srcFolder) srcFolder->GetURI(srcFolderUri); aRequest->m_dstFolder->GetURI(destFolderUri); uint32_t numMsgs = 0; if (aRequest->m_requestType == nsCopyMessagesType && aRequest->m_copySourceArray.Length() > 0 && aRequest->m_copySourceArray[0]->m_messageArray) aRequest->m_copySourceArray[0]->m_messageArray->GetLength(&numMsgs); PR_LOG(gCopyServiceLog, PR_LOG_ALWAYS, ("request %lx %s - src %s dest %s numItems %d type=%d", aRequest, logMsg, srcFolderUri.get(), destFolderUri.get(), numMsgs, aRequest->m_requestType)); }