DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/rdf/base/nsIRDFXMLSink.idl
 */

#ifndef __gen_nsIRDFXMLSink_h__
#define __gen_nsIRDFXMLSink_h__


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

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsAtom;
#include "nsStringFwd.h"
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); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnBeginLoad(nsIRDFXMLSink *aSink) = 0;

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

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

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

  /* void onError (in nsIRDFXMLSink aSink, in nsresult aStatus, in wstring aErrorMsg); */
  JS_HAZ_CAN_RUN_SCRIPT 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) override; \
  NS_IMETHOD OnInterrupt(nsIRDFXMLSink *aSink) override; \
  NS_IMETHOD OnResume(nsIRDFXMLSink *aSink) override; \
  NS_IMETHOD OnEndLoad(nsIRDFXMLSink *aSink) override; \
  NS_IMETHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const char16_t * aErrorMsg) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIRDFXMLSINKOBSERVER \
  nsresult OnBeginLoad(nsIRDFXMLSink *aSink); \
  nsresult OnInterrupt(nsIRDFXMLSink *aSink); \
  nsresult OnResume(nsIRDFXMLSink *aSink); \
  nsresult OnEndLoad(nsIRDFXMLSink *aSink); \
  nsresult OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const char16_t * 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) override { return _to OnBeginLoad(aSink); } \
  NS_IMETHOD OnInterrupt(nsIRDFXMLSink *aSink) override { return _to OnInterrupt(aSink); } \
  NS_IMETHOD OnResume(nsIRDFXMLSink *aSink) override { return _to OnResume(aSink); } \
  NS_IMETHOD OnEndLoad(nsIRDFXMLSink *aSink) override { return _to OnEndLoad(aSink); } \
  NS_IMETHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const char16_t * aErrorMsg) 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) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnBeginLoad(aSink); } \
  NS_IMETHOD OnInterrupt(nsIRDFXMLSink *aSink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnInterrupt(aSink); } \
  NS_IMETHOD OnResume(nsIRDFXMLSink *aSink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnResume(aSink); } \
  NS_IMETHOD OnEndLoad(nsIRDFXMLSink *aSink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnEndLoad(aSink); } \
  NS_IMETHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const char16_t * aErrorMsg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnError(aSink, aStatus, aErrorMsg); } 


/* 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; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetReadOnly(bool *aReadOnly) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetReadOnly(bool aReadOnly) = 0;

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

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

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

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

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

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

  /* void removeXMLSinkObserver (in nsIRDFXMLSinkObserver aObserver); */
  JS_HAZ_CAN_RUN_SCRIPT 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) override; \
  NS_IMETHOD SetReadOnly(bool aReadOnly) override; \
  NS_IMETHOD BeginLoad(void) override; \
  NS_IMETHOD Interrupt(void) override; \
  NS_IMETHOD Resume(void) override; \
  NS_IMETHOD EndLoad(void) override; \
  NS_IMETHOD AddNameSpace(nsAtom * aPrefix, const nsString & aURI) override; \
  NS_IMETHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) override; \
  NS_IMETHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIRDFXMLSINK \
  nsresult GetReadOnly(bool *aReadOnly); \
  nsresult SetReadOnly(bool aReadOnly); \
  nsresult BeginLoad(void); \
  nsresult Interrupt(void); \
  nsresult Resume(void); \
  nsresult EndLoad(void); \
  nsresult AddNameSpace(nsAtom * aPrefix, const nsString & aURI); \
  nsresult AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver); \
  nsresult 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) override { return _to GetReadOnly(aReadOnly); } \
  NS_IMETHOD SetReadOnly(bool aReadOnly) override { return _to SetReadOnly(aReadOnly); } \
  NS_IMETHOD BeginLoad(void) override { return _to BeginLoad(); } \
  NS_IMETHOD Interrupt(void) override { return _to Interrupt(); } \
  NS_IMETHOD Resume(void) override { return _to Resume(); } \
  NS_IMETHOD EndLoad(void) override { return _to EndLoad(); } \
  NS_IMETHOD AddNameSpace(nsAtom * aPrefix, const nsString & aURI) override { return _to AddNameSpace(aPrefix, aURI); } \
  NS_IMETHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) override { return _to AddXMLSinkObserver(aObserver); } \
  NS_IMETHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) 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) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadOnly(aReadOnly); } \
  NS_IMETHOD SetReadOnly(bool aReadOnly) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReadOnly(aReadOnly); } \
  NS_IMETHOD BeginLoad(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginLoad(); } \
  NS_IMETHOD Interrupt(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Interrupt(); } \
  NS_IMETHOD Resume(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Resume(); } \
  NS_IMETHOD EndLoad(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EndLoad(); } \
  NS_IMETHOD AddNameSpace(nsAtom * aPrefix, const nsString & aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddNameSpace(aPrefix, aURI); } \
  NS_IMETHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddXMLSinkObserver(aObserver); } \
  NS_IMETHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveXMLSinkObserver(aObserver); } 


#endif /* __gen_nsIRDFXMLSink_h__ */