1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/dns/nsIDNSListener.idl
3 : */
4 :
5 : #ifndef __gen_nsIDNSListener_h__
6 : #define __gen_nsIDNSListener_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 : class nsICancelable; /* forward declaration */
18 :
19 : class nsIDNSRecord; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIDNSListener */
23 : #define NS_IDNSLISTENER_IID_STR "41466a9f-f027-487d-a96c-af39e629b8d2"
24 :
25 : #define NS_IDNSLISTENER_IID \
26 : {0x41466a9f, 0xf027, 0x487d, \
27 : { 0xa9, 0x6c, 0xaf, 0x39, 0xe6, 0x29, 0xb8, 0xd2 }}
28 :
29 10780 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDNSListener : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDNSLISTENER_IID)
33 :
34 : /* void onLookupComplete (in nsICancelable aRequest, in nsIDNSRecord aRecord, in nsresult aStatus); */
35 : NS_SCRIPTABLE NS_IMETHOD OnLookupComplete(nsICancelable *aRequest, nsIDNSRecord *aRecord, nsresult aStatus) = 0;
36 :
37 : };
38 :
39 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDNSListener, NS_IDNSLISTENER_IID)
40 :
41 : /* Use this macro when declaring classes that implement this interface. */
42 : #define NS_DECL_NSIDNSLISTENER \
43 : NS_SCRIPTABLE NS_IMETHOD OnLookupComplete(nsICancelable *aRequest, nsIDNSRecord *aRecord, nsresult aStatus);
44 :
45 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
46 : #define NS_FORWARD_NSIDNSLISTENER(_to) \
47 : NS_SCRIPTABLE NS_IMETHOD OnLookupComplete(nsICancelable *aRequest, nsIDNSRecord *aRecord, nsresult aStatus) { return _to OnLookupComplete(aRequest, aRecord, aStatus); }
48 :
49 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
50 : #define NS_FORWARD_SAFE_NSIDNSLISTENER(_to) \
51 : NS_SCRIPTABLE NS_IMETHOD OnLookupComplete(nsICancelable *aRequest, nsIDNSRecord *aRecord, nsresult aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnLookupComplete(aRequest, aRecord, aStatus); }
52 :
53 : #if 0
54 : /* Use the code below as a template for the implementation class for this interface. */
55 :
56 : /* Header file */
57 : class nsDNSListener : public nsIDNSListener
58 : {
59 : public:
60 : NS_DECL_ISUPPORTS
61 : NS_DECL_NSIDNSLISTENER
62 :
63 : nsDNSListener();
64 :
65 : private:
66 : ~nsDNSListener();
67 :
68 : protected:
69 : /* additional members */
70 : };
71 :
72 : /* Implementation file */
73 : NS_IMPL_ISUPPORTS1(nsDNSListener, nsIDNSListener)
74 :
75 : nsDNSListener::nsDNSListener()
76 : {
77 : /* member initializers and constructor code */
78 : }
79 :
80 : nsDNSListener::~nsDNSListener()
81 : {
82 : /* destructor code */
83 : }
84 :
85 : /* void onLookupComplete (in nsICancelable aRequest, in nsIDNSRecord aRecord, in nsresult aStatus); */
86 : NS_IMETHODIMP nsDNSListener::OnLookupComplete(nsICancelable *aRequest, nsIDNSRecord *aRecord, nsresult aStatus)
87 : {
88 : return NS_ERROR_NOT_IMPLEMENTED;
89 : }
90 :
91 : /* End of implementation class template. */
92 : #endif
93 :
94 :
95 : #endif /* __gen_nsIDNSListener_h__ */
|