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

#ifndef __gen_flockIAggregator_h__
#define __gen_flockIAggregator_h__


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

#ifndef __gen_nsIRDFDataSource_h__
#include "nsIRDFDataSource.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIArray; /* forward declaration */

class flockIPQEnumerator; /* forward declaration */


/* starting interface:    flockIAggregator */
#define FLOCKIAGGREGATOR_IID_STR "9f566bcc-f722-4efc-a76c-6260bbd70468"

#define FLOCKIAGGREGATOR_IID \
  {0x9f566bcc, 0xf722, 0x4efc, \
    { 0xa7, 0x6c, 0x62, 0x60, 0xbb, 0xd7, 0x04, 0x68 }}

class NS_NO_VTABLE flockIAggregator : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(FLOCKIAGGREGATOR_IID)

  /* flockIPQEnumerator aggregateStreams (in nsIArray streams); */
  NS_IMETHOD AggregateStreams(nsIArray *streams, flockIPQEnumerator **_retval) = 0;

  /* flockIPQEnumerator aggregateFromNode (in nsIRDFDataSource aDataSource, in nsIRDFResource aContainer, in AString aFilter, in boolean groupByStatus, in boolean newFirst, in PRInt64 offset); */
  NS_IMETHOD AggregateFromNode(nsIRDFDataSource *aDataSource, nsIRDFResource *aContainer, const nsAString & aFilter, PRBool groupByStatus, PRBool newFirst, PRInt64 offset, flockIPQEnumerator **_retval) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIAGGREGATOR \
  NS_IMETHOD AggregateStreams(nsIArray *streams, flockIPQEnumerator **_retval); \
  NS_IMETHOD AggregateFromNode(nsIRDFDataSource *aDataSource, nsIRDFResource *aContainer, const nsAString & aFilter, PRBool groupByStatus, PRBool newFirst, PRInt64 offset, flockIPQEnumerator **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKIAGGREGATOR(_to) \
  NS_IMETHOD AggregateStreams(nsIArray *streams, flockIPQEnumerator **_retval) { return _to AggregateStreams(streams, _retval); } \
  NS_IMETHOD AggregateFromNode(nsIRDFDataSource *aDataSource, nsIRDFResource *aContainer, const nsAString & aFilter, PRBool groupByStatus, PRBool newFirst, PRInt64 offset, flockIPQEnumerator **_retval) { return _to AggregateFromNode(aDataSource, aContainer, aFilter, groupByStatus, newFirst, offset, _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_FLOCKIAGGREGATOR(_to) \
  NS_IMETHOD AggregateStreams(nsIArray *streams, flockIPQEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->AggregateStreams(streams, _retval); } \
  NS_IMETHOD AggregateFromNode(nsIRDFDataSource *aDataSource, nsIRDFResource *aContainer, const nsAString & aFilter, PRBool groupByStatus, PRBool newFirst, PRInt64 offset, flockIPQEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->AggregateFromNode(aDataSource, aContainer, aFilter, groupByStatus, newFirst, offset, _retval); } 

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

/* Header file */
class _MYCLASS_ : public flockIAggregator
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKIAGGREGATOR

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* flockIPQEnumerator aggregateStreams (in nsIArray streams); */
NS_IMETHODIMP _MYCLASS_::AggregateStreams(nsIArray *streams, flockIPQEnumerator **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* flockIPQEnumerator aggregateFromNode (in nsIRDFDataSource aDataSource, in nsIRDFResource aContainer, in AString aFilter, in boolean groupByStatus, in boolean newFirst, in PRInt64 offset); */
NS_IMETHODIMP _MYCLASS_::AggregateFromNode(nsIRDFDataSource *aDataSource, nsIRDFResource *aContainer, const nsAString & aFilter, PRBool groupByStatus, PRBool newFirst, PRInt64 offset, flockIPQEnumerator **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

#define FLOCK_AGGREGATOR_CID \
{ 0x9F566BCC, 0xF722, 0x4EFC, { 0xA7, 0x6C, 0x62, 0x60, 0xBB, 0xD7, 0x04, 0x68 } }
#define FLOCK_AGGREGATOR_CLASSNAME "Flock Aggregator"
#define FLOCK_AGGREGATOR_CONTRACTID "@flock.com/aggregator;1"

#endif /* __gen_flockIAggregator_h__ */
