2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#ifndef nsSupportsArrayEnumerator_h___
|
|
|
|
#define nsSupportsArrayEnumerator_h___
|
|
|
|
|
|
|
|
#include "nsIEnumerator.h"
|
2012-06-05 16:51:58 -07:00
|
|
|
#include "mozilla/Attributes.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
class nsISupportsArray;
|
|
|
|
|
2012-06-05 16:51:58 -07:00
|
|
|
class nsSupportsArrayEnumerator MOZ_FINAL : public nsIBidirectionalEnumerator {
|
2007-03-22 10:30:00 -07:00
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
|
|
|
|
nsSupportsArrayEnumerator(nsISupportsArray* array);
|
|
|
|
|
|
|
|
// nsIEnumerator methods:
|
|
|
|
NS_DECL_NSIENUMERATOR
|
|
|
|
|
|
|
|
// nsIBidirectionalEnumerator methods:
|
|
|
|
NS_DECL_NSIBIDIRECTIONALENUMERATOR
|
|
|
|
|
|
|
|
private:
|
|
|
|
~nsSupportsArrayEnumerator();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
nsISupportsArray* mArray;
|
2012-08-22 08:56:38 -07:00
|
|
|
int32_t mCursor;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __nsSupportsArrayEnumerator_h
|
|
|
|
|