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

#ifndef __gen_nsIInsDOMDataSource_h__
#define __gen_nsIInsDOMDataSource_h__


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

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

class nsIRDFResource; /* forward declaration */


/* starting interface:    nsIInsDOMDataSource */
#define NS_IINSDOMDATASOURCE_IID_STR "a029f6dd-9945-4607-850f-c8476387a52a"

#define NS_IINSDOMDATASOURCE_IID \
  {0xa029f6dd, 0x9945, 0x4607, \
    { 0x85, 0x0f, 0xc8, 0x47, 0x63, 0x87, 0xa5, 0x2a }}

class NS_NO_VTABLE nsIInsDOMDataSource : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IINSDOMDATASOURCE_IID)

  /* attribute nsIDOMDocument document; */
  NS_IMETHOD GetDocument(nsIDOMDocument * *aDocument) = 0;
  NS_IMETHOD SetDocument(nsIDOMDocument * aDocument) = 0;

  /* attribute boolean showAnonymousContent; */
  NS_IMETHOD GetShowAnonymousContent(PRBool *aShowAnonymousContent) = 0;
  NS_IMETHOD SetShowAnonymousContent(PRBool aShowAnonymousContent) = 0;

  /* void addFilterByType (in unsigned short aType, in boolean aExclusive); */
  NS_IMETHOD AddFilterByType(PRUint16 aType, PRBool aExclusive) = 0;

  /* void removeFilterByType (in unsigned short aType); */
  NS_IMETHOD RemoveFilterByType(PRUint16 aType) = 0;

  /* boolean isFiltered (in unsigned short aType); */
  NS_IMETHOD IsFiltered(PRUint16 aType, PRBool *_retval) = 0;

  /* nsIRDFResource getResourceForObject (in nsISupports aObject); */
  NS_IMETHOD GetResourceForObject(nsISupports *aObject, nsIRDFResource **_retval) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIINSDOMDATASOURCE \
  NS_IMETHOD GetDocument(nsIDOMDocument * *aDocument); \
  NS_IMETHOD SetDocument(nsIDOMDocument * aDocument); \
  NS_IMETHOD GetShowAnonymousContent(PRBool *aShowAnonymousContent); \
  NS_IMETHOD SetShowAnonymousContent(PRBool aShowAnonymousContent); \
  NS_IMETHOD AddFilterByType(PRUint16 aType, PRBool aExclusive); \
  NS_IMETHOD RemoveFilterByType(PRUint16 aType); \
  NS_IMETHOD IsFiltered(PRUint16 aType, PRBool *_retval); \
  NS_IMETHOD GetResourceForObject(nsISupports *aObject, nsIRDFResource **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIINSDOMDATASOURCE(_to) \
  NS_IMETHOD GetDocument(nsIDOMDocument * *aDocument) { return _to ## GetDocument(aDocument); } \
  NS_IMETHOD SetDocument(nsIDOMDocument * aDocument) { return _to ## SetDocument(aDocument); } \
  NS_IMETHOD GetShowAnonymousContent(PRBool *aShowAnonymousContent) { return _to ## GetShowAnonymousContent(aShowAnonymousContent); } \
  NS_IMETHOD SetShowAnonymousContent(PRBool aShowAnonymousContent) { return _to ## SetShowAnonymousContent(aShowAnonymousContent); } \
  NS_IMETHOD AddFilterByType(PRUint16 aType, PRBool aExclusive) { return _to ## AddFilterByType(aType, aExclusive); } \
  NS_IMETHOD RemoveFilterByType(PRUint16 aType) { return _to ## RemoveFilterByType(aType); } \
  NS_IMETHOD IsFiltered(PRUint16 aType, PRBool *_retval) { return _to ## IsFiltered(aType, _retval); } \
  NS_IMETHOD GetResourceForObject(nsISupports *aObject, nsIRDFResource **_retval) { return _to ## GetResourceForObject(aObject, _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_NSIINSDOMDATASOURCE(_to) \
  NS_IMETHOD GetDocument(nsIDOMDocument * *aDocument) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetDocument(aDocument); } \
  NS_IMETHOD SetDocument(nsIDOMDocument * aDocument) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->SetDocument(aDocument); } \
  NS_IMETHOD GetShowAnonymousContent(PRBool *aShowAnonymousContent) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetShowAnonymousContent(aShowAnonymousContent); } \
  NS_IMETHOD SetShowAnonymousContent(PRBool aShowAnonymousContent) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->SetShowAnonymousContent(aShowAnonymousContent); } \
  NS_IMETHOD AddFilterByType(PRUint16 aType, PRBool aExclusive) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> AddFilterByType(aType, aExclusive); } \
  NS_IMETHOD RemoveFilterByType(PRUint16 aType) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> RemoveFilterByType(aType); } \
  NS_IMETHOD IsFiltered(PRUint16 aType, PRBool *_retval) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> IsFiltered(aType, _retval); } \
  NS_IMETHOD GetResourceForObject(nsISupports *aObject, nsIRDFResource **_retval) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> GetResourceForObject(aObject, _retval); } 

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

/* Header file */
class nsInsDOMDataSource : public nsIInsDOMDataSource
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIINSDOMDATASOURCE

  nsInsDOMDataSource();
  virtual ~nsInsDOMDataSource();
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsInsDOMDataSource, nsIInsDOMDataSource)

nsInsDOMDataSource::nsInsDOMDataSource()
{
  NS_INIT_ISUPPORTS();
  /* member initializers and constructor code */
}

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

/* attribute nsIDOMDocument document; */
NS_IMETHODIMP nsInsDOMDataSource::GetDocument(nsIDOMDocument * *aDocument)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsInsDOMDataSource::SetDocument(nsIDOMDocument * aDocument)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean showAnonymousContent; */
NS_IMETHODIMP nsInsDOMDataSource::GetShowAnonymousContent(PRBool *aShowAnonymousContent)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsInsDOMDataSource::SetShowAnonymousContent(PRBool aShowAnonymousContent)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void addFilterByType (in unsigned short aType, in boolean aExclusive); */
NS_IMETHODIMP nsInsDOMDataSource::AddFilterByType(PRUint16 aType, PRBool aExclusive)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeFilterByType (in unsigned short aType); */
NS_IMETHODIMP nsInsDOMDataSource::RemoveFilterByType(PRUint16 aType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean isFiltered (in unsigned short aType); */
NS_IMETHODIMP nsInsDOMDataSource::IsFiltered(PRUint16 aType, PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIRDFResource getResourceForObject (in nsISupports aObject); */
NS_IMETHODIMP nsInsDOMDataSource::GetResourceForObject(nsISupports *aObject, nsIRDFResource **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

/* {3AD0C13B-195E-48e7-AF29-F024E2D759EA} */
#define NS_INSDOMDATASOURCE_CID \
{ 0x3ad0c13b, 0x195e, 0x48e7, { 0xaf, 0x29, 0xf0, 0x24, 0xe2, 0xd7, 0x59, 0xea } }

#endif /* __gen_nsIInsDOMDataSource_h__ */
