|
|
rv = EnsureProfileFileExists(localFile, domainDir); | rv = EnsureProfileFileExists(localFile, domainDir); |
} | } |
} | } |
else if (strcmp(prop, NS_APP_MAIL_50_DIR) == 0) { |
|
rv = domainDir->Clone(getter_AddRefs(localFile)); |
|
if (NS_SUCCEEDED(rv)) |
|
rv = localFile->AppendNative(MAIL_DIR_50_NAME); |
|
} |
|
else if (strcmp(prop, NS_APP_IMAP_MAIL_50_DIR) == 0) { |
|
rv = domainDir->Clone(getter_AddRefs(localFile)); |
|
if (NS_SUCCEEDED(rv)) |
|
rv = localFile->AppendNative(IMAP_MAIL_DIR_50_NAME); |
|
} |
|
else if (strcmp(prop, NS_APP_NEWS_50_DIR) == 0) { |
|
rv = domainDir->Clone(getter_AddRefs(localFile)); |
|
if (NS_SUCCEEDED(rv)) |
|
rv = localFile->AppendNative(NEWS_DIR_50_NAME); |
|
} |
|
else if (strcmp(prop, NS_APP_MESSENGER_FOLDER_CACHE_50_DIR) == 0) { |
|
rv = domainDir->Clone(getter_AddRefs(localFile)); |
|
if (NS_SUCCEEDED(rv)) |
|
rv = localFile->AppendNative(MSG_FOLDER_CACHE_DIR_50_NAME); |
|
} |
|
else if (strcmp(prop, NS_APP_STORAGE_50_FILE) == 0) { | else if (strcmp(prop, NS_APP_STORAGE_50_FILE) == 0) { |
rv = domainDir->Clone(getter_AddRefs(localFile)); | rv = domainDir->Clone(getter_AddRefs(localFile)); |
if (NS_SUCCEEDED(rv)) | if (NS_SUCCEEDED(rv)) |
|
|
(void) directoryService->Undefine(NS_APP_BOOKMARKS_50_FILE); | (void) directoryService->Undefine(NS_APP_BOOKMARKS_50_FILE); |
(void) directoryService->Undefine(NS_APP_DOWNLOADS_50_FILE); | (void) directoryService->Undefine(NS_APP_DOWNLOADS_50_FILE); |
(void) directoryService->Undefine(NS_APP_SEARCH_50_FILE); | (void) directoryService->Undefine(NS_APP_SEARCH_50_FILE); |
(void) directoryService->Undefine(NS_APP_MAIL_50_DIR); |
|
(void) directoryService->Undefine(NS_APP_IMAP_MAIL_50_DIR); |
|
(void) directoryService->Undefine(NS_APP_NEWS_50_DIR); |
|
(void) directoryService->Undefine(NS_APP_MESSENGER_FOLDER_CACHE_50_DIR); |
|
| |
return NS_OK; | return NS_OK; |
} | } |