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___
|
|
|
|
|
2015-01-17 17:08:34 -08:00
|
|
|
#include "nsCOMPtr.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#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;
|
|
|
|
|
2014-07-09 08:15:21 -07:00
|
|
|
class nsSupportsArrayEnumerator MOZ_FINAL : public nsIBidirectionalEnumerator
|
|
|
|
{
|
2007-03-22 10:30:00 -07:00
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
|
2014-07-28 10:19:06 -07:00
|
|
|
explicit nsSupportsArrayEnumerator(nsISupportsArray* aArray);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
// nsIEnumerator methods:
|
|
|
|
NS_DECL_NSIENUMERATOR
|
|
|
|
|
|
|
|
// nsIBidirectionalEnumerator methods:
|
|
|
|
NS_DECL_NSIBIDIRECTIONALENUMERATOR
|
|
|
|
|
|
|
|
private:
|
|
|
|
~nsSupportsArrayEnumerator();
|
|
|
|
|
|
|
|
protected:
|
2015-01-17 17:08:34 -08:00
|
|
|
nsCOMPtr<nsISupportsArray> mArray;
|
2012-08-22 08:56:38 -07:00
|
|
|
int32_t mCursor;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __nsSupportsArrayEnumerator_h
|
|
|
|
|