Added folder parent functions.

This commit is contained in:
putterman%netscape.com 1999-05-07 20:21:09 +00:00
parent 54fec57559
commit cbddfe221f
4 changed files with 7 additions and 11 deletions

View File

@ -9,7 +9,6 @@
#include "nsICollection.h" /* interface nsICollection */
#include "nsIFolderListener.h" /* interface nsIFolderListener */
#include "nsIEnumerator.h" /* interface nsIEnumerator */
#include "nsID.h" /* interface nsID */
#ifdef XPIDL_JS_STUBS
#include "jsapi.h"
@ -38,8 +37,9 @@ class nsIFolder : public nsICollection {
/* nsISupports GetChildNamed (in string name); */
NS_IMETHOD GetChildNamed(const char *name, nsISupports **_retval) = 0;
/* nsIFolder GetParent (); */
NS_IMETHOD GetParent(nsIFolder **_retval) = 0;
/* attribute nsIFolder parent; */
NS_IMETHOD GetParent(nsIFolder * *aParent) = 0;
NS_IMETHOD SetParent(nsIFolder * aParent) = 0;
/* nsIEnumerator GetSubFolders (); */
NS_IMETHOD GetSubFolders(nsIEnumerator **_retval) = 0;

View File

@ -28,7 +28,7 @@ interface nsIFolder : nsICollection {
attribute string name;
nsISupports GetChildNamed(in string name);
nsIFolder GetParent();
attribute nsIFolder parent;
nsIEnumerator GetSubFolders();

View File

@ -96,11 +96,8 @@ class nsIMsgFolder : public nsIFolder {
/* boolean ContainsChildNamed (in string name); */
NS_IMETHOD ContainsChildNamed(const char *name, PRBool *_retval) = 0;
/* nsIMsgFolder FindParentOf (in nsIMsgFolder childFolder); */
NS_IMETHOD FindParentOf(nsIMsgFolder *childFolder, nsIMsgFolder **_retval) = 0;
/* boolean IsParentOf (in nsIMsgFolder folder, in boolean deep); */
NS_IMETHOD IsParentOf(nsIMsgFolder *folder, PRBool deep, PRBool *_retval) = 0;
/* boolean IsAncestorOf (in nsIMsgFolder folder); */
NS_IMETHOD IsAncestorOf(nsIMsgFolder *folder, PRBool *_retval) = 0;
/* string GenerateUniqueSubfolderName (in string prefix, in nsIMsgFolder otherFolder); */
NS_IMETHOD GenerateUniqueSubfolderName(const char *prefix, nsIMsgFolder *otherFolder, char **_retval) = 0;

View File

@ -64,8 +64,7 @@ interface nsIMsgFolder : nsIFolder {
void Adopt(in nsIMsgFolder srcFolder, out unsigned long outPos);
boolean ContainsChildNamed(in string name);
nsIMsgFolder FindParentOf(in nsIMsgFolder childFolder);
boolean IsParentOf(in nsIMsgFolder folder, in boolean deep);
boolean IsAncestorOf(in nsIMsgFolder folder);
string GenerateUniqueSubfolderName(in string prefix, in nsIMsgFolder otherFolder);