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

#ifndef __gen_nsIDOMDataSource_h__
#define __gen_nsIDOMDataSource_h__

#include "nsISupports.h"
#include "domstubs.h"

#include "nsIDOMWindowInternal.h"
#include "nsIDOMNode.h"

/* starting interface:    nsIDOMDataSource */
#define NS_IDOMDATASOURCE_IID_STR "0b96297e-2459-11d3-8aad-006008948010"

#define NS_IDOMDATASOURCE_IID \
  {0x0b96297e, 0x2459, 0x11d3, \
    { 0x8a, 0xad, 0x00, 0x60, 0x08, 0x94, 0x80, 0x10 }}

class NS_NO_VTABLE nsIDOMDataSource : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMDATASOURCE_IID)

  /* void setMode (in string mode, in boolean active); */
  NS_IMETHOD SetMode(const char *mode, PRBool active) = 0;

  /* boolean getMode (in string mode); */
  NS_IMETHOD GetMode(const char *mode, PRBool *_retval) = 0;

  /* void setWindow (in nsIDOMWindowInternal window); */
  NS_IMETHOD SetWindow(nsIDOMWindowInternal *window) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMDATASOURCE \
  NS_IMETHOD SetMode(const char *mode, PRBool active); \
  NS_IMETHOD GetMode(const char *mode, PRBool *_retval); \
  NS_IMETHOD SetWindow(nsIDOMWindowInternal *window); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMDATASOURCE(_to) \
  NS_IMETHOD SetMode(const char *mode, PRBool active) { return _to ## SetMode(mode, active); } \
  NS_IMETHOD GetMode(const char *mode, PRBool *_retval) { return _to ## GetMode(mode, _retval); } \
  NS_IMETHOD SetWindow(nsIDOMWindowInternal *window) { return _to ## SetWindow(window); } 

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

/* Header file */
class nsDOMDataSource : public nsIDOMDataSource
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIDOMDATASOURCE

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMDataSource, nsIDOMDataSource)

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

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

/* void setMode (in string mode, in boolean active); */
NS_IMETHODIMP nsDOMDataSource::SetMode(const char *mode, PRBool active)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean getMode (in string mode); */
NS_IMETHODIMP nsDOMDataSource::GetMode(const char *mode, PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setWindow (in nsIDOMWindowInternal window); */
NS_IMETHODIMP nsDOMDataSource::SetWindow(nsIDOMWindowInternal *window)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIDOMDataSource_h__ */
