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

#ifndef __gen_nsIRDFXMLSink_h__
#define __gen_nsIRDFXMLSink_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 nsIAtom;
class nsString;
class nsIRDFXMLSink; /* forward declaration */


/* starting interface:    nsIRDFXMLSinkObserver */
#define NS_IRDFXMLSINKOBSERVER_IID_STR "eb1a5d30-ab33-11d2-8ec6-00805f29f370"

#define NS_IRDFXMLSINKOBSERVER_IID \
  {0xeb1a5d30, 0xab33, 0x11d2, \
    { 0x8e, 0xc6, 0x00, 0x80, 0x5f, 0x29, 0xf3, 0x70 }}

class NS_NO_VTABLE nsIRDFXMLSinkObserver : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDFXMLSINKOBSERVER_IID)

  /* void onBeginLoad (in nsIRDFXMLSink aSink); */
  NS_IMETHOD OnBeginLoad(nsIRDFXMLSink *aSink) = 0;

  /* void onInterrupt (in nsIRDFXMLSink aSink); */
  NS_IMETHOD OnInterrupt(nsIRDFXMLSink *aSink) = 0;

  /* void onResume (in nsIRDFXMLSink aSink); */
  NS_IMETHOD OnResume(nsIRDFXMLSink *aSink) = 0;

  /* void onEndLoad (in nsIRDFXMLSink aSink); */
  NS_IMETHOD OnEndLoad(nsIRDFXMLSink *aSink) = 0;

  /* void onError (in nsIRDFXMLSink aSink, in nsresult aStatus, in wstring aErrorMsg); */
  NS_IMETHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const char16_t * aErrorMsg) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIRDFXMLSinkObserver, NS_IRDFXMLSINKOBSERVER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIRDFXMLSINKOBSERVER \
  NS_IMETHOD OnBeginLoad(nsIRDFXMLSink *aSink) MOZ_OVERRIDE; \
  NS_IMETHOD OnInterrupt(nsIRDFXMLSink *aSink) MOZ_OVERRIDE; \
  NS_IMETHOD OnResume(nsIRDFXMLSink *aSink) MOZ_OVERRIDE; \
  NS_IMETHOD OnEndLoad(nsIRDFXMLSink *aSink) MOZ_OVERRIDE; \
  NS_IMETHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const char16_t * aErrorMsg) MOZ_OVERRIDE; 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIRDFXMLSINKOBSERVER(_to) \
  NS_IMETHOD OnBeginLoad(nsIRDFXMLSink *aSink) MOZ_OVERRIDE { return _to OnBeginLoad(aSink); } \
  NS_IMETHOD OnInterrupt(nsIRDFXMLSink *aSink) MOZ_OVERRIDE { return _to OnInterrupt(aSink); } \
  NS_IMETHOD OnResume(nsIRDFXMLSink *aSink) MOZ_OVERRIDE { return _to OnResume(aSink); } \
  NS_IMETHOD OnEndLoad(nsIRDFXMLSink *aSink) MOZ_OVERRIDE { return _to OnEndLoad(aSink); } \
  NS_IMETHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const char16_t * aErrorMsg) MOZ_OVERRIDE { return _to OnError(aSink, aStatus, aErrorMsg); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIRDFXMLSINKOBSERVER(_to) \
  NS_IMETHOD OnBeginLoad(nsIRDFXMLSink *aSink) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->OnBeginLoad(aSink); } \
  NS_IMETHOD OnInterrupt(nsIRDFXMLSink *aSink) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->OnInterrupt(aSink); } \
  NS_IMETHOD OnResume(nsIRDFXMLSink *aSink) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->OnResume(aSink); } \
  NS_IMETHOD OnEndLoad(nsIRDFXMLSink *aSink) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->OnEndLoad(aSink); } \
  NS_IMETHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const char16_t * aErrorMsg) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->OnError(aSink, aStatus, aErrorMsg); } 

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

/* Header file */
class nsRDFXMLSinkObserver : public nsIRDFXMLSinkObserver
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIRDFXMLSINKOBSERVER

  nsRDFXMLSinkObserver();

private:
  ~nsRDFXMLSinkObserver();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsRDFXMLSinkObserver, nsIRDFXMLSinkObserver)

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

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

/* void onBeginLoad (in nsIRDFXMLSink aSink); */
NS_IMETHODIMP nsRDFXMLSinkObserver::OnBeginLoad(nsIRDFXMLSink *aSink)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onInterrupt (in nsIRDFXMLSink aSink); */
NS_IMETHODIMP nsRDFXMLSinkObserver::OnInterrupt(nsIRDFXMLSink *aSink)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onResume (in nsIRDFXMLSink aSink); */
NS_IMETHODIMP nsRDFXMLSinkObserver::OnResume(nsIRDFXMLSink *aSink)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onEndLoad (in nsIRDFXMLSink aSink); */
NS_IMETHODIMP nsRDFXMLSinkObserver::OnEndLoad(nsIRDFXMLSink *aSink)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onError (in nsIRDFXMLSink aSink, in nsresult aStatus, in wstring aErrorMsg); */
NS_IMETHODIMP nsRDFXMLSinkObserver::OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const char16_t * aErrorMsg)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIRDFXMLSink */
#define NS_IRDFXMLSINK_IID_STR "eb1a5d31-ab33-11d2-8ec6-00805f29f370"

#define NS_IRDFXMLSINK_IID \
  {0xeb1a5d31, 0xab33, 0x11d2, \
    { 0x8e, 0xc6, 0x00, 0x80, 0x5f, 0x29, 0xf3, 0x70 }}

class NS_NO_VTABLE nsIRDFXMLSink : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDFXMLSINK_IID)

  /* attribute boolean readOnly; */
  NS_IMETHOD GetReadOnly(bool *aReadOnly) = 0;
  NS_IMETHOD SetReadOnly(bool aReadOnly) = 0;

  /* void beginLoad (); */
  NS_IMETHOD BeginLoad(void) = 0;

  /* void interrupt (); */
  NS_IMETHOD Interrupt(void) = 0;

  /* void resume (); */
  NS_IMETHOD Resume(void) = 0;

  /* void endLoad (); */
  NS_IMETHOD EndLoad(void) = 0;

  /* [noscript] void addNameSpace (in nsIAtomPtr aPrefix, [const] in nsStringRef aURI); */
  NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsString & aURI) = 0;

  /* void addXMLSinkObserver (in nsIRDFXMLSinkObserver aObserver); */
  NS_IMETHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) = 0;

  /* void removeXMLSinkObserver (in nsIRDFXMLSinkObserver aObserver); */
  NS_IMETHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIRDFXMLSink, NS_IRDFXMLSINK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIRDFXMLSINK \
  NS_IMETHOD GetReadOnly(bool *aReadOnly) MOZ_OVERRIDE; \
  NS_IMETHOD SetReadOnly(bool aReadOnly) MOZ_OVERRIDE; \
  NS_IMETHOD BeginLoad(void) MOZ_OVERRIDE; \
  NS_IMETHOD Interrupt(void) MOZ_OVERRIDE; \
  NS_IMETHOD Resume(void) MOZ_OVERRIDE; \
  NS_IMETHOD EndLoad(void) MOZ_OVERRIDE; \
  NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsString & aURI) MOZ_OVERRIDE; \
  NS_IMETHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) MOZ_OVERRIDE; \
  NS_IMETHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) MOZ_OVERRIDE; 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIRDFXMLSINK(_to) \
  NS_IMETHOD GetReadOnly(bool *aReadOnly) MOZ_OVERRIDE { return _to GetReadOnly(aReadOnly); } \
  NS_IMETHOD SetReadOnly(bool aReadOnly) MOZ_OVERRIDE { return _to SetReadOnly(aReadOnly); } \
  NS_IMETHOD BeginLoad(void) MOZ_OVERRIDE { return _to BeginLoad(); } \
  NS_IMETHOD Interrupt(void) MOZ_OVERRIDE { return _to Interrupt(); } \
  NS_IMETHOD Resume(void) MOZ_OVERRIDE { return _to Resume(); } \
  NS_IMETHOD EndLoad(void) MOZ_OVERRIDE { return _to EndLoad(); } \
  NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsString & aURI) MOZ_OVERRIDE { return _to AddNameSpace(aPrefix, aURI); } \
  NS_IMETHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) MOZ_OVERRIDE { return _to AddXMLSinkObserver(aObserver); } \
  NS_IMETHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) MOZ_OVERRIDE { return _to RemoveXMLSinkObserver(aObserver); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIRDFXMLSINK(_to) \
  NS_IMETHOD GetReadOnly(bool *aReadOnly) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadOnly(aReadOnly); } \
  NS_IMETHOD SetReadOnly(bool aReadOnly) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReadOnly(aReadOnly); } \
  NS_IMETHOD BeginLoad(void) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginLoad(); } \
  NS_IMETHOD Interrupt(void) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->Interrupt(); } \
  NS_IMETHOD Resume(void) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->Resume(); } \
  NS_IMETHOD EndLoad(void) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->EndLoad(); } \
  NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsString & aURI) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->AddNameSpace(aPrefix, aURI); } \
  NS_IMETHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->AddXMLSinkObserver(aObserver); } \
  NS_IMETHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveXMLSinkObserver(aObserver); } 

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

/* Header file */
class nsRDFXMLSink : public nsIRDFXMLSink
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIRDFXMLSINK

  nsRDFXMLSink();

private:
  ~nsRDFXMLSink();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsRDFXMLSink, nsIRDFXMLSink)

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

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

/* attribute boolean readOnly; */
NS_IMETHODIMP nsRDFXMLSink::GetReadOnly(bool *aReadOnly)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsRDFXMLSink::SetReadOnly(bool aReadOnly)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void beginLoad (); */
NS_IMETHODIMP nsRDFXMLSink::BeginLoad()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void interrupt (); */
NS_IMETHODIMP nsRDFXMLSink::Interrupt()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void resume (); */
NS_IMETHODIMP nsRDFXMLSink::Resume()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void endLoad (); */
NS_IMETHODIMP nsRDFXMLSink::EndLoad()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] void addNameSpace (in nsIAtomPtr aPrefix, [const] in nsStringRef aURI); */
NS_IMETHODIMP nsRDFXMLSink::AddNameSpace(nsIAtom *aPrefix, const nsString & aURI)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void addXMLSinkObserver (in nsIRDFXMLSinkObserver aObserver); */
NS_IMETHODIMP nsRDFXMLSink::AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeXMLSinkObserver (in nsIRDFXMLSinkObserver aObserver); */
NS_IMETHODIMP nsRDFXMLSink::RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIRDFXMLSink_h__ */
