This commit is contained in:
alecf%netscape.com 1999-05-12 03:24:36 +00:00
Родитель c33427bb89
Коммит 5fb14a79f5
2 изменённых файлов: 10 добавлений и 2 удалений

Просмотреть файл

@ -176,6 +176,13 @@ nsMsgFolder::GetSubFolders(nsIEnumerator* *result)
return mSubFolders->Enumerate(result);
}
NS_IMETHODIMP
nsMsgFolder::GetHasSubFolders(PRBool *_retval)
{
*_retval = (mSubFolders->Count() > 0);
return NS_OK;
}
NS_IMETHODIMP nsMsgFolder::AddFolderListener(nsIFolderListener * listener)
{
if (! mListeners)
@ -289,7 +296,7 @@ NS_IMETHODIMP nsMsgFolder::SetPrettyName(char *name)
return NS_OK;
}
NS_IMETHODIMP_(PRUint32) nsMsgFolder::Count(void) const
NS_IMETHODIMP_(PRUint32) nsMsgFolder::Count(void)
{
return mSubFolders->Count();
}

Просмотреть файл

@ -45,7 +45,7 @@ public:
NS_DECL_ISUPPORTS_INHERITED
// nsICollection methods:
NS_IMETHOD_(PRUint32) Count(void) const;
NS_IMETHOD_(PRUint32) Count(void);
NS_IMETHOD AppendElement(nsISupports *aElement);
NS_IMETHOD RemoveElement(nsISupports *aElement);
NS_IMETHOD Enumerate(nsIEnumerator* *result);
@ -57,6 +57,7 @@ public:
NS_IMETHOD SetName(char *name);
NS_IMETHOD GetChildNamed(const char *name, nsISupports* *result);
NS_IMETHOD GetSubFolders(nsIEnumerator* *result);
NS_IMETHOD GetHasSubFolders(PRBool *_retval);
NS_IMETHOD AddFolderListener(nsIFolderListener * listener);
NS_IMETHOD RemoveFolderListener(nsIFolderListener * listener);
NS_IMETHOD GetParent(nsIFolder * *aParent);