Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMMediaList.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMMediaList_h__
6 : #define __gen_nsIDOMMediaList_h__
7 :
8 :
9 : #ifndef __gen_domstubs_h__
10 : #include "domstubs.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: nsIDOMMediaList */
19 : #define NS_IDOMMEDIALIST_IID_STR "9b0c2ed7-111c-4824-adf9-ef0da6dad371"
20 :
21 : #define NS_IDOMMEDIALIST_IID \
22 : {0x9b0c2ed7, 0x111c, 0x4824, \
23 : { 0xad, 0xf9, 0xef, 0x0d, 0xa6, 0xda, 0xd3, 0x71 }}
24 :
25 54 : class NS_NO_VTABLE nsIDOMMediaList : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMMEDIALIST_IID)
29 :
30 : /* attribute DOMString mediaText; */
31 : NS_IMETHOD GetMediaText(nsAString & aMediaText) = 0;
32 : NS_IMETHOD SetMediaText(const nsAString & aMediaText) = 0;
33 :
34 : /* readonly attribute unsigned long length; */
35 : NS_IMETHOD GetLength(uint32_t *aLength) = 0;
36 :
37 : /* DOMString item (in unsigned long index); */
38 : NS_IMETHOD Item(uint32_t index, nsAString & _retval) = 0;
39 :
40 : /* void deleteMedium (in DOMString oldMedium) raises (DOMException); */
41 : NS_IMETHOD DeleteMedium(const nsAString & oldMedium) = 0;
42 :
43 : /* void appendMedium (in DOMString newMedium) raises (DOMException); */
44 : NS_IMETHOD AppendMedium(const nsAString & newMedium) = 0;
45 :
46 : };
47 :
48 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMMediaList, NS_IDOMMEDIALIST_IID)
49 :
50 : /* Use this macro when declaring classes that implement this interface. */
51 : #define NS_DECL_NSIDOMMEDIALIST \
52 : NS_IMETHOD GetMediaText(nsAString & aMediaText) override; \
53 : NS_IMETHOD SetMediaText(const nsAString & aMediaText) override; \
54 : NS_IMETHOD GetLength(uint32_t *aLength) override; \
55 : NS_IMETHOD Item(uint32_t index, nsAString & _retval) override; \
56 : NS_IMETHOD DeleteMedium(const nsAString & oldMedium) override; \
57 : NS_IMETHOD AppendMedium(const nsAString & newMedium) override;
58 :
59 : /* Use this macro when declaring the members of this interface when the
60 : class doesn't implement the interface. This is useful for forwarding. */
61 : #define NS_DECL_NON_VIRTUAL_NSIDOMMEDIALIST \
62 : nsresult GetMediaText(nsAString & aMediaText); \
63 : nsresult SetMediaText(const nsAString & aMediaText); \
64 : nsresult GetLength(uint32_t *aLength); \
65 : nsresult Item(uint32_t index, nsAString & _retval); \
66 : nsresult DeleteMedium(const nsAString & oldMedium); \
67 : nsresult AppendMedium(const nsAString & newMedium);
68 :
69 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
70 : #define NS_FORWARD_NSIDOMMEDIALIST(_to) \
71 : NS_IMETHOD GetMediaText(nsAString & aMediaText) override { return _to GetMediaText(aMediaText); } \
72 : NS_IMETHOD SetMediaText(const nsAString & aMediaText) override { return _to SetMediaText(aMediaText); } \
73 : NS_IMETHOD GetLength(uint32_t *aLength) override { return _to GetLength(aLength); } \
74 : NS_IMETHOD Item(uint32_t index, nsAString & _retval) override { return _to Item(index, _retval); } \
75 : NS_IMETHOD DeleteMedium(const nsAString & oldMedium) override { return _to DeleteMedium(oldMedium); } \
76 : NS_IMETHOD AppendMedium(const nsAString & newMedium) override { return _to AppendMedium(newMedium); }
77 :
78 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
79 : #define NS_FORWARD_SAFE_NSIDOMMEDIALIST(_to) \
80 : NS_IMETHOD GetMediaText(nsAString & aMediaText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMediaText(aMediaText); } \
81 : NS_IMETHOD SetMediaText(const nsAString & aMediaText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMediaText(aMediaText); } \
82 : NS_IMETHOD GetLength(uint32_t *aLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
83 : NS_IMETHOD Item(uint32_t index, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
84 : NS_IMETHOD DeleteMedium(const nsAString & oldMedium) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteMedium(oldMedium); } \
85 : NS_IMETHOD AppendMedium(const nsAString & newMedium) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendMedium(newMedium); }
86 :
87 : #if 0
88 : /* Use the code below as a template for the implementation class for this interface. */
89 :
90 : /* Header file */
91 : class nsDOMMediaList : public nsIDOMMediaList
92 : {
93 : public:
94 : NS_DECL_ISUPPORTS
95 : NS_DECL_NSIDOMMEDIALIST
96 :
97 : nsDOMMediaList();
98 :
99 : private:
100 : ~nsDOMMediaList();
101 :
102 : protected:
103 : /* additional members */
104 : };
105 :
106 : /* Implementation file */
107 : NS_IMPL_ISUPPORTS(nsDOMMediaList, nsIDOMMediaList)
108 :
109 : nsDOMMediaList::nsDOMMediaList()
110 : {
111 : /* member initializers and constructor code */
112 : }
113 :
114 : nsDOMMediaList::~nsDOMMediaList()
115 : {
116 : /* destructor code */
117 : }
118 :
119 : /* attribute DOMString mediaText; */
120 : NS_IMETHODIMP nsDOMMediaList::GetMediaText(nsAString & aMediaText)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 : NS_IMETHODIMP nsDOMMediaList::SetMediaText(const nsAString & aMediaText)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* readonly attribute unsigned long length; */
130 : NS_IMETHODIMP nsDOMMediaList::GetLength(uint32_t *aLength)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* DOMString item (in unsigned long index); */
136 : NS_IMETHODIMP nsDOMMediaList::Item(uint32_t index, nsAString & _retval)
137 : {
138 : return NS_ERROR_NOT_IMPLEMENTED;
139 : }
140 :
141 : /* void deleteMedium (in DOMString oldMedium) raises (DOMException); */
142 : NS_IMETHODIMP nsDOMMediaList::DeleteMedium(const nsAString & oldMedium)
143 : {
144 : return NS_ERROR_NOT_IMPLEMENTED;
145 : }
146 :
147 : /* void appendMedium (in DOMString newMedium) raises (DOMException); */
148 : NS_IMETHODIMP nsDOMMediaList::AppendMedium(const nsAString & newMedium)
149 : {
150 : return NS_ERROR_NOT_IMPLEMENTED;
151 : }
152 :
153 : /* End of implementation class template. */
154 : #endif
155 :
156 :
157 : #endif /* __gen_nsIDOMMediaList_h__ */
|