Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIJARURI.idl
3 : */
4 :
5 : #ifndef __gen_nsIJARURI_h__
6 : #define __gen_nsIJARURI_h__
7 :
8 :
9 : #ifndef __gen_nsIURL_h__
10 : #include "nsIURL.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: nsIJARURI */
19 : #define NS_IJARURI_IID_STR "646a508c-f786-4e14-be6d-8dda2a633c60"
20 :
21 : #define NS_IJARURI_IID \
22 : {0x646a508c, 0xf786, 0x4e14, \
23 : { 0xbe, 0x6d, 0x8d, 0xda, 0x2a, 0x63, 0x3c, 0x60 }}
24 :
25 0 : class NS_NO_VTABLE nsIJARURI : public nsIURL {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IJARURI_IID)
29 :
30 : /* readonly attribute nsIURI JARFile; */
31 : NS_IMETHOD GetJARFile(nsIURI * *aJARFile) = 0;
32 :
33 : /* attribute AUTF8String JAREntry; */
34 : NS_IMETHOD GetJAREntry(nsACString & aJAREntry) = 0;
35 : NS_IMETHOD SetJAREntry(const nsACString & aJAREntry) = 0;
36 :
37 : /* nsIJARURI cloneWithJARFile (in nsIURI jarFile); */
38 : NS_IMETHOD CloneWithJARFile(nsIURI *jarFile, nsIJARURI * *_retval) = 0;
39 :
40 : };
41 :
42 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIJARURI, NS_IJARURI_IID)
43 :
44 : /* Use this macro when declaring classes that implement this interface. */
45 : #define NS_DECL_NSIJARURI \
46 : NS_IMETHOD GetJARFile(nsIURI * *aJARFile) override; \
47 : NS_IMETHOD GetJAREntry(nsACString & aJAREntry) override; \
48 : NS_IMETHOD SetJAREntry(const nsACString & aJAREntry) override; \
49 : NS_IMETHOD CloneWithJARFile(nsIURI *jarFile, nsIJARURI * *_retval) 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_NSIJARURI \
54 : nsresult GetJARFile(nsIURI * *aJARFile); \
55 : nsresult GetJAREntry(nsACString & aJAREntry); \
56 : nsresult SetJAREntry(const nsACString & aJAREntry); \
57 : nsresult CloneWithJARFile(nsIURI *jarFile, nsIJARURI * *_retval);
58 :
59 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
60 : #define NS_FORWARD_NSIJARURI(_to) \
61 : NS_IMETHOD GetJARFile(nsIURI * *aJARFile) override { return _to GetJARFile(aJARFile); } \
62 : NS_IMETHOD GetJAREntry(nsACString & aJAREntry) override { return _to GetJAREntry(aJAREntry); } \
63 : NS_IMETHOD SetJAREntry(const nsACString & aJAREntry) override { return _to SetJAREntry(aJAREntry); } \
64 : NS_IMETHOD CloneWithJARFile(nsIURI *jarFile, nsIJARURI * *_retval) override { return _to CloneWithJARFile(jarFile, _retval); }
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_NSIJARURI(_to) \
68 : NS_IMETHOD GetJARFile(nsIURI * *aJARFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJARFile(aJARFile); } \
69 : NS_IMETHOD GetJAREntry(nsACString & aJAREntry) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJAREntry(aJAREntry); } \
70 : NS_IMETHOD SetJAREntry(const nsACString & aJAREntry) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetJAREntry(aJAREntry); } \
71 : NS_IMETHOD CloneWithJARFile(nsIURI *jarFile, nsIJARURI * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloneWithJARFile(jarFile, _retval); }
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 nsJARURI : public nsIJARURI
78 : {
79 : public:
80 : NS_DECL_ISUPPORTS
81 : NS_DECL_NSIJARURI
82 :
83 : nsJARURI();
84 :
85 : private:
86 : ~nsJARURI();
87 :
88 : protected:
89 : /* additional members */
90 : };
91 :
92 : /* Implementation file */
93 : NS_IMPL_ISUPPORTS(nsJARURI, nsIJARURI)
94 :
95 : nsJARURI::nsJARURI()
96 : {
97 : /* member initializers and constructor code */
98 : }
99 :
100 : nsJARURI::~nsJARURI()
101 : {
102 : /* destructor code */
103 : }
104 :
105 : /* readonly attribute nsIURI JARFile; */
106 : NS_IMETHODIMP nsJARURI::GetJARFile(nsIURI * *aJARFile)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* attribute AUTF8String JAREntry; */
112 : NS_IMETHODIMP nsJARURI::GetJAREntry(nsACString & aJAREntry)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 : NS_IMETHODIMP nsJARURI::SetJAREntry(const nsACString & aJAREntry)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 :
121 : /* nsIJARURI cloneWithJARFile (in nsIURI jarFile); */
122 : NS_IMETHODIMP nsJARURI::CloneWithJARFile(nsIURI *jarFile, nsIJARURI * *_retval)
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 :
127 : /* End of implementation class template. */
128 : #endif
129 :
130 :
131 : #endif /* __gen_nsIJARURI_h__ */
|