From 5cc7c24f806a81750b3343c1d36fb53321239581 Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Thu, 13 May 1999 16:41:32 +0000 Subject: [PATCH] Temporarily fix build bustage until we get brave enough to turn XPIDL on for Mac. --- xpcom/components/nsIFactory.h | 0 xpcom/ds/nsICollection.h | 0 xpcom/ds/nsIEnumerator.h | 115 ++++++++++++++++++++++++++++++++++ xpcom/public/nsICollection.h | 0 xpcom/public/nsIEnumerator.h | 0 xpcom/public/nsIFactory.h | 0 xpcom/public/nsISupports.h | 0 xpcom/public/nsrootidl.h | 0 8 files changed, 115 insertions(+) create mode 100644 xpcom/components/nsIFactory.h create mode 100644 xpcom/ds/nsICollection.h create mode 100644 xpcom/ds/nsIEnumerator.h create mode 100644 xpcom/public/nsICollection.h create mode 100644 xpcom/public/nsIEnumerator.h create mode 100644 xpcom/public/nsIFactory.h create mode 100644 xpcom/public/nsISupports.h create mode 100644 xpcom/public/nsrootidl.h diff --git a/xpcom/components/nsIFactory.h b/xpcom/components/nsIFactory.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpcom/ds/nsICollection.h b/xpcom/ds/nsICollection.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpcom/ds/nsIEnumerator.h b/xpcom/ds/nsIEnumerator.h new file mode 100644 index 00000000000..45789ffd9e9 --- /dev/null +++ b/xpcom/ds/nsIEnumerator.h @@ -0,0 +1,115 @@ +/* + * DO NOT EDIT. THIS FILE IS GENERATED FROM nsIEnumerator.idl + */ + +#ifndef __gen_nsIEnumerator_h__ +#define __gen_nsIEnumerator_h__ + +#include "nsISupports.h" /* interface nsISupports */ +#include "nsrootidl.h" /* interface nsrootidl */ + +#ifdef XPIDL_JS_STUBS +#include "jsapi.h" +#endif + +/* starting interface: nsISimpleEnumerator */ + +/* {D1899240-F9D2-11D2-BDD6-000064657374} */ +#define NS_ISIMPLEENUMERATOR_IID_STR "D1899240-F9D2-11D2-BDD6-000064657374" +#define NS_ISIMPLEENUMERATOR_IID \ + {0xD1899240, 0xF9D2, 0x11D2, \ + { 0xBD, 0xD6, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74 }} + +class nsISimpleEnumerator : public nsISupports { + public: + NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISIMPLEENUMERATOR_IID) + + /* boolean HasMoreElements (); */ + NS_IMETHOD HasMoreElements(PRBool *_retval) = 0; + + /* nsISupports GetNext (); */ + NS_IMETHOD GetNext(nsISupports **_retval) = 0; + +#ifdef XPIDL_JS_STUBS + static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx); + static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsISimpleEnumerator *priv); +#endif +}; + +/* starting interface: nsIEnumerator */ + +/* {ad385286-cbc4-11d2-8cca-0060b0fc14a3} */ +#define NS_IENUMERATOR_IID_STR "ad385286-cbc4-11d2-8cca-0060b0fc14a3" +#define NS_IENUMERATOR_IID \ + {0xad385286, 0xcbc4, 0x11d2, \ + { 0x8c, 0xca, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 }} + +class nsIEnumerator : public nsISupports { + public: + NS_DEFINE_STATIC_IID_ACCESSOR(NS_IENUMERATOR_IID) + + /* void First (); */ + NS_IMETHOD First() = 0; + + /* void Next (); */ + NS_IMETHOD Next() = 0; + + /* nsISupports CurrentItem (); */ + NS_IMETHOD CurrentItem(nsISupports **_retval) = 0; + + /* void IsDone (); */ + NS_IMETHOD IsDone() = 0; + +#ifdef XPIDL_JS_STUBS + static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx); + static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsIEnumerator *priv); +#endif +}; + +/* starting interface: nsIBidirectionalEnumerator */ + +/* {75f158a0-cadd-11d2-8cca-0060b0fc14a3} */ +#define NS_IBIDIRECTIONALENUMERATOR_IID_STR "75f158a0-cadd-11d2-8cca-0060b0fc14a3" +#define NS_IBIDIRECTIONALENUMERATOR_IID \ + {0x75f158a0, 0xcadd, 0x11d2, \ + { 0x8c, 0xca, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 }} + +class nsIBidirectionalEnumerator : public nsIEnumerator { + public: + NS_DEFINE_STATIC_IID_ACCESSOR(NS_IBIDIRECTIONALENUMERATOR_IID) + + /* void Last (); */ + NS_IMETHOD Last() = 0; + + /* void Prev (); */ + NS_IMETHOD Prev() = 0; + +#ifdef XPIDL_JS_STUBS + static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx); + static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsIBidirectionalEnumerator *priv); +#endif +}; +extern "C" NS_COM nsresult +NS_NewEmptyEnumerator(nsISimpleEnumerator** aResult); +// Construct and return an implementation of a "conjoining enumerator." This +// enumerator lets you string together two other enumerators into one sequence. +// The result is an nsIBidirectionalEnumerator, but if either input is not +// also bidirectional, the Last and Prev operations will fail. +extern "C" NS_COM nsresult +NS_NewConjoiningEnumerator(nsIEnumerator* first, nsIEnumerator* second, + nsIBidirectionalEnumerator* *aInstancePtrResult); +// Construct and return an implementation of a "union enumerator." This +// enumerator will only return elements that are found in both constituent +// enumerators. +extern "C" NS_COM nsresult +NS_NewUnionEnumerator(nsIEnumerator* first, nsIEnumerator* second, + nsIEnumerator* *aInstancePtrResult); +// Construct and return an implementation of an "intersection enumerator." This +// enumerator will return elements that are found in either constituent +// enumerators, eliminating duplicates. +extern "C" NS_COM nsresult +NS_NewIntersectionEnumerator(nsIEnumerator* first, nsIEnumerator* second, + nsIEnumerator* *aInstancePtrResult); + + +#endif /* __gen_nsIEnumerator_h__ */ diff --git a/xpcom/public/nsICollection.h b/xpcom/public/nsICollection.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpcom/public/nsIEnumerator.h b/xpcom/public/nsIEnumerator.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpcom/public/nsIFactory.h b/xpcom/public/nsIFactory.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpcom/public/nsISupports.h b/xpcom/public/nsISupports.h new file mode 100644 index 00000000000..e69de29bb2d diff --git a/xpcom/public/nsrootidl.h b/xpcom/public/nsrootidl.h new file mode 100644 index 00000000000..e69de29bb2d