mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-06 00:10:25 +00:00
Added folder parent functions.
This commit is contained in:
parent
54fec57559
commit
cbddfe221f
@ -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;
|
||||
|
@ -28,7 +28,7 @@ interface nsIFolder : nsICollection {
|
||||
attribute string name;
|
||||
|
||||
nsISupports GetChildNamed(in string name);
|
||||
nsIFolder GetParent();
|
||||
attribute nsIFolder parent;
|
||||
|
||||
nsIEnumerator GetSubFolders();
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user