/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM flockIRDFContainer.idl
 */

#ifndef __gen_flockIRDFContainer_h__
#define __gen_flockIRDFContainer_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#ifndef __gen_nsIRDFContainer_h__
#include "nsIRDFContainer.h"
#endif

#ifndef __gen_nsISimpleEnumerator_h__
#include "nsISimpleEnumerator.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    flockIRDFContainer */
#define FLOCKIRDFCONTAINER_IID_STR "cfd1c684-1110-43b8-9890-50b0aa9244d2"

#define FLOCKIRDFCONTAINER_IID \
  {0xcfd1c684, 0x1110, 0x43b8, \
    { 0x98, 0x90, 0x50, 0xb0, 0xaa, 0x92, 0x44, 0xd2 }}

class NS_NO_VTABLE flockIRDFContainer : public nsIRDFContainer {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(FLOCKIRDFCONTAINER_IID)

  /**
     * Return an enumerator that can be used to enumerate the contents
     * of the container in descending order.
     */
  /* nsISimpleEnumerator GetElementsBackwards (); */
  NS_IMETHOD GetElementsBackwards(nsISimpleEnumerator **_retval) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIRDFCONTAINER \
  NS_IMETHOD GetElementsBackwards(nsISimpleEnumerator **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKIRDFCONTAINER(_to) \
  NS_IMETHOD GetElementsBackwards(nsISimpleEnumerator **_retval) { return _to GetElementsBackwards(_retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKIRDFCONTAINER(_to) \
  NS_IMETHOD GetElementsBackwards(nsISimpleEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElementsBackwards(_retval); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class _MYCLASS_ : public flockIRDFContainer
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKIRDFCONTAINER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(_MYCLASS_, flockIRDFContainer)

_MYCLASS_::_MYCLASS_()
{
  /* member initializers and constructor code */
}

_MYCLASS_::~_MYCLASS_()
{
  /* destructor code */
}

/* nsISimpleEnumerator GetElementsBackwards (); */
NS_IMETHODIMP _MYCLASS_::GetElementsBackwards(nsISimpleEnumerator **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif

/**
 * Create a cursor on a container that enumerates its contents in
 * reverse order
 */
nsresult
NS_NewReverseContainerEnumerator(nsIRDFDataSource* aDataSource,
                                 nsIRDFResource* aContainer,
                                 nsISimpleEnumerator** aResult);

#endif /* __gen_flockIRDFContainer_h__ */
