зеркало из https://github.com/mozilla/pjs.git
add option to create summary file specs automatically
This commit is contained in:
Родитель
5567ea6158
Коммит
ee835dfe89
|
@ -24,19 +24,19 @@ nsLocalFolderSummarySpec::nsLocalFolderSummarySpec()
|
|||
{
|
||||
}
|
||||
|
||||
nsLocalFolderSummarySpec::nsLocalFolderSummarySpec(const char *folderPath)
|
||||
: nsFileSpec(folderPath)
|
||||
nsLocalFolderSummarySpec::nsLocalFolderSummarySpec(const char *folderPath, PRBool create)
|
||||
: nsFileSpec(folderPath, create)
|
||||
{
|
||||
CreateSummaryFileName();
|
||||
}
|
||||
|
||||
nsLocalFolderSummarySpec::nsLocalFolderSummarySpec(const nsFileSpec& inFolderPath)
|
||||
: nsFileSpec(inFolderPath)
|
||||
nsLocalFolderSummarySpec::nsLocalFolderSummarySpec(const nsFileSpec& inFolderPath, PRBool create)
|
||||
: nsFileSpec(inFolderPath, create)
|
||||
{
|
||||
CreateSummaryFileName();
|
||||
}
|
||||
|
||||
nsLocalFolderSummarySpec::nsLocalFolderSummarySpec(const nsFilePath &inFolderPath) : nsFileSpec(inFolderPath)
|
||||
nsLocalFolderSummarySpec::nsLocalFolderSummarySpec(const nsFilePath &inFolderPath, PRBool create) : nsFileSpec(inFolderPath, create)
|
||||
{
|
||||
CreateSummaryFileName();
|
||||
}
|
||||
|
|
|
@ -31,9 +31,9 @@ class nsLocalFolderSummarySpec : public nsFileSpec
|
|||
{
|
||||
public:
|
||||
nsLocalFolderSummarySpec();
|
||||
nsLocalFolderSummarySpec(const char *folderPath);
|
||||
nsLocalFolderSummarySpec(const nsFileSpec& inFolderPath);
|
||||
nsLocalFolderSummarySpec(const nsFilePath &inFolderPath);
|
||||
nsLocalFolderSummarySpec(const char *folderPath, PRBool create = PR_FALSE);
|
||||
nsLocalFolderSummarySpec(const nsFileSpec& inFolderPath, PRBool create = PR_FALSE);
|
||||
nsLocalFolderSummarySpec(const nsFilePath &inFolderPath, PRBool create = PR_FALSE);
|
||||
void SetFolderName(const char *folderPath);
|
||||
|
||||
protected:
|
||||
|
|
|
@ -35,7 +35,7 @@ NS_IMETHODIMP nsImapMailDatabase::Open(nsFileSpec &folderName, PRBool create, ns
|
|||
PRBool summaryFileExists;
|
||||
struct stat st;
|
||||
PRBool newFile = PR_FALSE;
|
||||
nsLocalFolderSummarySpec summarySpec(folderName);
|
||||
nsLocalFolderSummarySpec summarySpec(folderName, create);
|
||||
|
||||
#ifdef DEBUG
|
||||
printf("nsImapMailDatabase::Open(%s, %s, %p, %s) -> %s\n",
|
||||
|
|
Загрузка…
Ссылка в новой задаче