Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMDOMException.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMDOMException_h__
6 : #define __gen_nsIDOMDOMException_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: nsIDOMDOMException */
19 : #define NS_IDOMDOMEXCEPTION_IID_STR "5bd766d3-57a9-4833-995d-dbe21da29595"
20 :
21 : #define NS_IDOMDOMEXCEPTION_IID \
22 : {0x5bd766d3, 0x57a9, 0x4833, \
23 : { 0x99, 0x5d, 0xdb, 0xe2, 0x1d, 0xa2, 0x95, 0x95 }}
24 :
25 0 : class NS_NO_VTABLE nsIDOMDOMException : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMDOMEXCEPTION_IID)
29 :
30 : enum {
31 : INDEX_SIZE_ERR = 1U,
32 : DOMSTRING_SIZE_ERR = 2U,
33 : HIERARCHY_REQUEST_ERR = 3U,
34 : WRONG_DOCUMENT_ERR = 4U,
35 : INVALID_CHARACTER_ERR = 5U,
36 : NO_DATA_ALLOWED_ERR = 6U,
37 : NO_MODIFICATION_ALLOWED_ERR = 7U,
38 : NOT_FOUND_ERR = 8U,
39 : NOT_SUPPORTED_ERR = 9U,
40 : INUSE_ATTRIBUTE_ERR = 10U,
41 : INVALID_STATE_ERR = 11U,
42 : SYNTAX_ERR = 12U,
43 : INVALID_MODIFICATION_ERR = 13U,
44 : NAMESPACE_ERR = 14U,
45 : INVALID_ACCESS_ERR = 15U,
46 : VALIDATION_ERR = 16U,
47 : TYPE_MISMATCH_ERR = 17U,
48 : SECURITY_ERR = 18U,
49 : NETWORK_ERR = 19U,
50 : ABORT_ERR = 20U,
51 : URL_MISMATCH_ERR = 21U,
52 : QUOTA_EXCEEDED_ERR = 22U,
53 : TIMEOUT_ERR = 23U,
54 : INVALID_NODE_TYPE_ERR = 24U,
55 : DATA_CLONE_ERR = 25U,
56 : INVALID_POINTER_ERR = 26U
57 : };
58 :
59 : /* readonly attribute unsigned short code; */
60 : NS_IMETHOD GetCode(uint16_t *aCode) = 0;
61 :
62 : };
63 :
64 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMDOMException, NS_IDOMDOMEXCEPTION_IID)
65 :
66 : /* Use this macro when declaring classes that implement this interface. */
67 : #define NS_DECL_NSIDOMDOMEXCEPTION \
68 : NS_IMETHOD GetCode(uint16_t *aCode) override;
69 :
70 : /* Use this macro when declaring the members of this interface when the
71 : class doesn't implement the interface. This is useful for forwarding. */
72 : #define NS_DECL_NON_VIRTUAL_NSIDOMDOMEXCEPTION \
73 : nsresult GetCode(uint16_t *aCode);
74 :
75 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
76 : #define NS_FORWARD_NSIDOMDOMEXCEPTION(_to) \
77 : NS_IMETHOD GetCode(uint16_t *aCode) override { return _to GetCode(aCode); }
78 :
79 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
80 : #define NS_FORWARD_SAFE_NSIDOMDOMEXCEPTION(_to) \
81 : NS_IMETHOD GetCode(uint16_t *aCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCode(aCode); }
82 :
83 : #if 0
84 : /* Use the code below as a template for the implementation class for this interface. */
85 :
86 : /* Header file */
87 : class nsDOMDOMException : public nsIDOMDOMException
88 : {
89 : public:
90 : NS_DECL_ISUPPORTS
91 : NS_DECL_NSIDOMDOMEXCEPTION
92 :
93 : nsDOMDOMException();
94 :
95 : private:
96 : ~nsDOMDOMException();
97 :
98 : protected:
99 : /* additional members */
100 : };
101 :
102 : /* Implementation file */
103 : NS_IMPL_ISUPPORTS(nsDOMDOMException, nsIDOMDOMException)
104 :
105 : nsDOMDOMException::nsDOMDOMException()
106 : {
107 : /* member initializers and constructor code */
108 : }
109 :
110 : nsDOMDOMException::~nsDOMDOMException()
111 : {
112 : /* destructor code */
113 : }
114 :
115 : /* readonly attribute unsigned short code; */
116 : NS_IMETHODIMP nsDOMDOMException::GetCode(uint16_t *aCode)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 :
121 : /* End of implementation class template. */
122 : #endif
123 :
124 :
125 : #endif /* __gen_nsIDOMDOMException_h__ */
|