/* * DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/dom/simpledb/nsISDBCallbacks.idl */ #ifndef __gen_nsISDBCallbacks_h__ #define __gen_nsISDBCallbacks_h__ #include "nsISupports.h" #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 nsISDBConnection; /* forward declaration */ class nsISDBRequest; /* forward declaration */ /* starting interface: nsISDBCallback */ #define NS_ISDBCALLBACK_IID_STR "8cbd576c-c6bf-42fd-96ee-3b824dafe1d4" #define NS_ISDBCALLBACK_IID \ {0x8cbd576c, 0xc6bf, 0x42fd, \ { 0x96, 0xee, 0x3b, 0x82, 0x4d, 0xaf, 0xe1, 0xd4 }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsISDBCallback) nsISDBCallback : public nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_ISDBCALLBACK_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsISDBCallback; /* void onComplete (in nsISDBRequest aRequest); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISDBCallback_onComplete) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnComplete(nsISDBRequest *aRequest) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISDBCALLBACK \ NS_IMETHOD OnComplete(nsISDBRequest *aRequest) 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_NSISDBCALLBACK \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISDBCallback_onComplete)\ nsresult OnComplete(nsISDBRequest *aRequest); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISDBCALLBACK(_to) \ NS_IMETHOD OnComplete(nsISDBRequest *aRequest) override { return _to OnComplete(aRequest); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISDBCALLBACK(_to) \ NS_IMETHOD OnComplete(nsISDBRequest *aRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnComplete(aRequest); } /* starting interface: nsISDBCloseCallback */ #define NS_ISDBCLOSECALLBACK_IID_STR "e0821d43-62b9-40fe-99f8-ff9ab3184cbf" #define NS_ISDBCLOSECALLBACK_IID \ {0xe0821d43, 0x62b9, 0x40fe, \ { 0x99, 0xf8, 0xff, 0x9a, 0xb3, 0x18, 0x4c, 0xbf }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsISDBCloseCallback) nsISDBCloseCallback : public nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_ISDBCLOSECALLBACK_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsISDBCloseCallback; /* void onClose (in nsISDBConnection aConnection); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISDBCloseCallback_onClose) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnClose(nsISDBConnection *aConnection) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISDBCLOSECALLBACK \ NS_IMETHOD OnClose(nsISDBConnection *aConnection) 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_NSISDBCLOSECALLBACK \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISDBCloseCallback_onClose)\ nsresult OnClose(nsISDBConnection *aConnection); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISDBCLOSECALLBACK(_to) \ NS_IMETHOD OnClose(nsISDBConnection *aConnection) override { return _to OnClose(aConnection); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISDBCLOSECALLBACK(_to) \ NS_IMETHOD OnClose(nsISDBConnection *aConnection) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnClose(aConnection); } #endif /* __gen_nsISDBCallbacks_h__ */