|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21571/root/usr/include/xulrunner-17.0.10/ |
Upload File : |
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /builddir/build/BUILD/xulrunner-17.0.10/mozilla-esr17/rdf/base/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 PRUnichar * 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); \
NS_IMETHOD OnInterrupt(nsIRDFXMLSink *aSink); \
NS_IMETHOD OnResume(nsIRDFXMLSink *aSink); \
NS_IMETHOD OnEndLoad(nsIRDFXMLSink *aSink); \
NS_IMETHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const PRUnichar * aErrorMsg);
/* 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) { return _to OnBeginLoad(aSink); } \
NS_IMETHOD OnInterrupt(nsIRDFXMLSink *aSink) { return _to OnInterrupt(aSink); } \
NS_IMETHOD OnResume(nsIRDFXMLSink *aSink) { return _to OnResume(aSink); } \
NS_IMETHOD OnEndLoad(nsIRDFXMLSink *aSink) { return _to OnEndLoad(aSink); } \
NS_IMETHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const PRUnichar * aErrorMsg) { 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) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnBeginLoad(aSink); } \
NS_IMETHOD OnInterrupt(nsIRDFXMLSink *aSink) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnInterrupt(aSink); } \
NS_IMETHOD OnResume(nsIRDFXMLSink *aSink) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnResume(aSink); } \
NS_IMETHOD OnEndLoad(nsIRDFXMLSink *aSink) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnEndLoad(aSink); } \
NS_IMETHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const PRUnichar * aErrorMsg) { 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_ISUPPORTS1(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 PRUnichar * 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); \
NS_IMETHOD SetReadOnly(bool aReadOnly); \
NS_IMETHOD BeginLoad(void); \
NS_IMETHOD Interrupt(void); \
NS_IMETHOD Resume(void); \
NS_IMETHOD EndLoad(void); \
NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsString & aURI); \
NS_IMETHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver); \
NS_IMETHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver);
/* 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) { return _to GetReadOnly(aReadOnly); } \
NS_IMETHOD SetReadOnly(bool aReadOnly) { return _to SetReadOnly(aReadOnly); } \
NS_IMETHOD BeginLoad(void) { return _to BeginLoad(); } \
NS_IMETHOD Interrupt(void) { return _to Interrupt(); } \
NS_IMETHOD Resume(void) { return _to Resume(); } \
NS_IMETHOD EndLoad(void) { return _to EndLoad(); } \
NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsString & aURI) { return _to AddNameSpace(aPrefix, aURI); } \
NS_IMETHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) { return _to AddXMLSinkObserver(aObserver); } \
NS_IMETHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) { 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) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadOnly(aReadOnly); } \
NS_IMETHOD SetReadOnly(bool aReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReadOnly(aReadOnly); } \
NS_IMETHOD BeginLoad(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginLoad(); } \
NS_IMETHOD Interrupt(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Interrupt(); } \
NS_IMETHOD Resume(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Resume(); } \
NS_IMETHOD EndLoad(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->EndLoad(); } \
NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsString & aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddNameSpace(aPrefix, aURI); } \
NS_IMETHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddXMLSinkObserver(aObserver); } \
NS_IMETHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) { 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_ISUPPORTS1(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__ */