Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsPIDNSService.idl
3 : */
4 :
5 : #ifndef __gen_nsPIDNSService_h__
6 : #define __gen_nsPIDNSService_h__
7 :
8 :
9 : #ifndef __gen_nsIDNSService_h__
10 : #include "nsIDNSService.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 :
18 : /* starting interface: nsPIDNSService */
19 : #define NS_PIDNSSERVICE_IID_STR "24e598fd-7b1a-436c-9154-14d8b38df8a5"
20 :
21 : #define NS_PIDNSSERVICE_IID \
22 : {0x24e598fd, 0x7b1a, 0x436c, \
23 : { 0x91, 0x54, 0x14, 0xd8, 0xb3, 0x8d, 0xf8, 0xa5 }}
24 :
25 3 : class NS_NO_VTABLE nsPIDNSService : public nsIDNSService {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_PIDNSSERVICE_IID)
29 :
30 : /* void init (); */
31 : NS_IMETHOD Init(void) = 0;
32 :
33 : /* void shutdown (); */
34 : NS_IMETHOD Shutdown(void) = 0;
35 :
36 : /* attribute boolean prefetchEnabled; */
37 : NS_IMETHOD GetPrefetchEnabled(bool *aPrefetchEnabled) = 0;
38 : NS_IMETHOD SetPrefetchEnabled(bool aPrefetchEnabled) = 0;
39 :
40 : };
41 :
42 : NS_DEFINE_STATIC_IID_ACCESSOR(nsPIDNSService, NS_PIDNSSERVICE_IID)
43 :
44 : /* Use this macro when declaring classes that implement this interface. */
45 : #define NS_DECL_NSPIDNSSERVICE \
46 : NS_IMETHOD Init(void) override; \
47 : NS_IMETHOD Shutdown(void) override; \
48 : NS_IMETHOD GetPrefetchEnabled(bool *aPrefetchEnabled) override; \
49 : NS_IMETHOD SetPrefetchEnabled(bool aPrefetchEnabled) override;
50 :
51 : /* Use this macro when declaring the members of this interface when the
52 : class doesn't implement the interface. This is useful for forwarding. */
53 : #define NS_DECL_NON_VIRTUAL_NSPIDNSSERVICE \
54 : nsresult Init(void); \
55 : nsresult Shutdown(void); \
56 : nsresult GetPrefetchEnabled(bool *aPrefetchEnabled); \
57 : nsresult SetPrefetchEnabled(bool aPrefetchEnabled);
58 :
59 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
60 : #define NS_FORWARD_NSPIDNSSERVICE(_to) \
61 : NS_IMETHOD Init(void) override { return _to Init(); } \
62 : NS_IMETHOD Shutdown(void) override { return _to Shutdown(); } \
63 : NS_IMETHOD GetPrefetchEnabled(bool *aPrefetchEnabled) override { return _to GetPrefetchEnabled(aPrefetchEnabled); } \
64 : NS_IMETHOD SetPrefetchEnabled(bool aPrefetchEnabled) override { return _to SetPrefetchEnabled(aPrefetchEnabled); }
65 :
66 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
67 : #define NS_FORWARD_SAFE_NSPIDNSSERVICE(_to) \
68 : NS_IMETHOD Init(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(); } \
69 : NS_IMETHOD Shutdown(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Shutdown(); } \
70 : NS_IMETHOD GetPrefetchEnabled(bool *aPrefetchEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrefetchEnabled(aPrefetchEnabled); } \
71 : NS_IMETHOD SetPrefetchEnabled(bool aPrefetchEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrefetchEnabled(aPrefetchEnabled); }
72 :
73 : #if 0
74 : /* Use the code below as a template for the implementation class for this interface. */
75 :
76 : /* Header file */
77 : class _MYCLASS_ : public nsPIDNSService
78 : {
79 : public:
80 : NS_DECL_ISUPPORTS
81 : NS_DECL_NSPIDNSSERVICE
82 :
83 : _MYCLASS_();
84 :
85 : private:
86 : ~_MYCLASS_();
87 :
88 : protected:
89 : /* additional members */
90 : };
91 :
92 : /* Implementation file */
93 : NS_IMPL_ISUPPORTS(_MYCLASS_, nsPIDNSService)
94 :
95 : _MYCLASS_::_MYCLASS_()
96 : {
97 : /* member initializers and constructor code */
98 : }
99 :
100 : _MYCLASS_::~_MYCLASS_()
101 : {
102 : /* destructor code */
103 : }
104 :
105 : /* void init (); */
106 : NS_IMETHODIMP _MYCLASS_::Init()
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* void shutdown (); */
112 : NS_IMETHODIMP _MYCLASS_::Shutdown()
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* attribute boolean prefetchEnabled; */
118 : NS_IMETHODIMP _MYCLASS_::GetPrefetchEnabled(bool *aPrefetchEnabled)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 : NS_IMETHODIMP _MYCLASS_::SetPrefetchEnabled(bool aPrefetchEnabled)
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 :
127 : /* End of implementation class template. */
128 : #endif
129 :
130 :
131 : #endif /* __gen_nsPIDNSService_h__ */
|