Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMTimeRanges.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMTimeRanges_h__
6 : #define __gen_nsIDOMTimeRanges_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: nsIDOMTimeRanges */
19 : #define NS_IDOMTIMERANGES_IID_STR "c43448db-0bab-461d-b648-1ca14a967f7e"
20 :
21 : #define NS_IDOMTIMERANGES_IID \
22 : {0xc43448db, 0x0bab, 0x461d, \
23 : { 0xb6, 0x48, 0x1c, 0xa1, 0x4a, 0x96, 0x7f, 0x7e }}
24 :
25 1 : class NS_NO_VTABLE nsIDOMTimeRanges : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMTIMERANGES_IID)
29 :
30 : /* readonly attribute unsigned long length; */
31 : NS_IMETHOD GetLength(uint32_t *aLength) = 0;
32 :
33 : /* double start (in unsigned long index); */
34 : NS_IMETHOD Start(uint32_t index, double *_retval) = 0;
35 :
36 : /* double end (in unsigned long index); */
37 : NS_IMETHOD End(uint32_t index, double *_retval) = 0;
38 :
39 : };
40 :
41 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMTimeRanges, NS_IDOMTIMERANGES_IID)
42 :
43 : /* Use this macro when declaring classes that implement this interface. */
44 : #define NS_DECL_NSIDOMTIMERANGES \
45 : NS_IMETHOD GetLength(uint32_t *aLength) override; \
46 : NS_IMETHOD Start(uint32_t index, double *_retval) override; \
47 : NS_IMETHOD End(uint32_t index, double *_retval) override;
48 :
49 : /* Use this macro when declaring the members of this interface when the
50 : class doesn't implement the interface. This is useful for forwarding. */
51 : #define NS_DECL_NON_VIRTUAL_NSIDOMTIMERANGES \
52 : nsresult GetLength(uint32_t *aLength); \
53 : nsresult Start(uint32_t index, double *_retval); \
54 : nsresult End(uint32_t index, double *_retval);
55 :
56 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
57 : #define NS_FORWARD_NSIDOMTIMERANGES(_to) \
58 : NS_IMETHOD GetLength(uint32_t *aLength) override { return _to GetLength(aLength); } \
59 : NS_IMETHOD Start(uint32_t index, double *_retval) override { return _to Start(index, _retval); } \
60 : NS_IMETHOD End(uint32_t index, double *_retval) override { return _to End(index, _retval); }
61 :
62 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
63 : #define NS_FORWARD_SAFE_NSIDOMTIMERANGES(_to) \
64 : NS_IMETHOD GetLength(uint32_t *aLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
65 : NS_IMETHOD Start(uint32_t index, double *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Start(index, _retval); } \
66 : NS_IMETHOD End(uint32_t index, double *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->End(index, _retval); }
67 :
68 : #if 0
69 : /* Use the code below as a template for the implementation class for this interface. */
70 :
71 : /* Header file */
72 : class nsDOMTimeRanges : public nsIDOMTimeRanges
73 : {
74 : public:
75 : NS_DECL_ISUPPORTS
76 : NS_DECL_NSIDOMTIMERANGES
77 :
78 : nsDOMTimeRanges();
79 :
80 : private:
81 : ~nsDOMTimeRanges();
82 :
83 : protected:
84 : /* additional members */
85 : };
86 :
87 : /* Implementation file */
88 : NS_IMPL_ISUPPORTS(nsDOMTimeRanges, nsIDOMTimeRanges)
89 :
90 : nsDOMTimeRanges::nsDOMTimeRanges()
91 : {
92 : /* member initializers and constructor code */
93 : }
94 :
95 : nsDOMTimeRanges::~nsDOMTimeRanges()
96 : {
97 : /* destructor code */
98 : }
99 :
100 : /* readonly attribute unsigned long length; */
101 : NS_IMETHODIMP nsDOMTimeRanges::GetLength(uint32_t *aLength)
102 : {
103 : return NS_ERROR_NOT_IMPLEMENTED;
104 : }
105 :
106 : /* double start (in unsigned long index); */
107 : NS_IMETHODIMP nsDOMTimeRanges::Start(uint32_t index, double *_retval)
108 : {
109 : return NS_ERROR_NOT_IMPLEMENTED;
110 : }
111 :
112 : /* double end (in unsigned long index); */
113 : NS_IMETHODIMP nsDOMTimeRanges::End(uint32_t index, double *_retval)
114 : {
115 : return NS_ERROR_NOT_IMPLEMENTED;
116 : }
117 :
118 : /* End of implementation class template. */
119 : #endif
120 :
121 :
122 : #endif /* __gen_nsIDOMTimeRanges_h__ */
|