Added constructor functions for nsEnumeratorUtils.

Original committer: warren%netscape.com
Original revision: 1.3
Original date: 1999/06/25 01:38:33
This commit is contained in:
benjamin%smedbergs.us 2006-08-08 17:09:46 +00:00
parent c4487eb2fe
commit b3268361ae

View File

@ -16,8 +16,8 @@
* Reserved.
*/
#ifndef nsRDFCursorUtils_h__
#define nsRDFCursorUtils_h__
#ifndef nsEnumeratorUtils_h__
#define nsEnumeratorUtils_h__
#include "nsIEnumerator.h"
#include "nsISupportsArray.h"
@ -41,6 +41,10 @@ protected:
PRInt32 mIndex;
};
extern "C" NS_COM nsresult
NS_NewArrayEnumerator(nsISimpleEnumerator* *result,
nsISupportsArray* array);
////////////////////////////////////////////////////////////////////////////////
class NS_COM nsSingletonEnumerator : public nsISimpleEnumerator
@ -60,6 +64,10 @@ protected:
PRBool mConsumed;
};
extern "C" NS_COM nsresult
NS_NewSingletonEnumerator(nsISimpleEnumerator* *result,
nsISupports* singleton);
////////////////////////////////////////////////////////////////////////////////
class NS_COM nsAdapterEnumerator : public nsISimpleEnumerator
@ -80,6 +88,10 @@ protected:
PRBool mStarted;
};
extern "C" NS_COM nsresult
NS_NewAdapterEnumerator(nsISimpleEnumerator* *result,
nsIEnumerator* enumerator);
////////////////////////////////////////////////////////////////////////
#endif /* nsRDFCursorUtils_h__ */
#endif /* nsEnumeratorUtils_h__ */