1999-02-23 11:04:28 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04: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/. */
|
1999-02-23 11:04:28 +03:00
|
|
|
|
|
|
|
#ifndef nsSupportsArrayEnumerator_h___
|
|
|
|
#define nsSupportsArrayEnumerator_h___
|
|
|
|
|
|
|
|
#include "nsIEnumerator.h"
|
2012-06-06 03:51:58 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
1999-02-23 11:04:28 +03:00
|
|
|
|
|
|
|
class nsISupportsArray;
|
|
|
|
|
2012-06-06 03:51:58 +04:00
|
|
|
class nsSupportsArrayEnumerator MOZ_FINAL : public nsIBidirectionalEnumerator {
|
1999-02-23 11:04:28 +03:00
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
|
|
|
|
nsSupportsArrayEnumerator(nsISupportsArray* array);
|
|
|
|
|
|
|
|
// nsIEnumerator methods:
|
1999-08-22 15:25:50 +04:00
|
|
|
NS_DECL_NSIENUMERATOR
|
1999-02-23 11:04:28 +03:00
|
|
|
|
|
|
|
// nsIBidirectionalEnumerator methods:
|
1999-08-22 15:25:50 +04:00
|
|
|
NS_DECL_NSIBIDIRECTIONALENUMERATOR
|
1999-02-23 11:04:28 +03:00
|
|
|
|
2004-01-15 09:14:18 +03:00
|
|
|
private:
|
|
|
|
~nsSupportsArrayEnumerator();
|
|
|
|
|
1999-02-23 11:04:28 +03:00
|
|
|
protected:
|
|
|
|
nsISupportsArray* mArray;
|
2012-08-22 19:56:38 +04:00
|
|
|
int32_t mCursor;
|
1999-02-23 11:04:28 +03:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __nsSupportsArrayEnumerator_h
|
|
|
|
|