michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsSupportsArrayEnumerator_h___ michael@0: #define nsSupportsArrayEnumerator_h___ michael@0: michael@0: #include "nsIEnumerator.h" michael@0: #include "mozilla/Attributes.h" michael@0: michael@0: class nsISupportsArray; michael@0: michael@0: class nsSupportsArrayEnumerator MOZ_FINAL : public nsIBidirectionalEnumerator { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: michael@0: nsSupportsArrayEnumerator(nsISupportsArray* array); michael@0: michael@0: // nsIEnumerator methods: michael@0: NS_DECL_NSIENUMERATOR michael@0: michael@0: // nsIBidirectionalEnumerator methods: michael@0: NS_DECL_NSIBIDIRECTIONALENUMERATOR michael@0: michael@0: private: michael@0: ~nsSupportsArrayEnumerator(); michael@0: michael@0: protected: michael@0: nsISupportsArray* mArray; michael@0: int32_t mCursor; michael@0: michael@0: }; michael@0: michael@0: #endif // __nsSupportsArrayEnumerator_h michael@0: