1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/core/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 4 : class NS_NO_VTABLE NS_SCRIPTABLE 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 : };
57 :
58 : /* readonly attribute unsigned short code; */
59 : NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode) = 0;
60 :
61 : };
62 :
63 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMDOMException, NS_IDOMDOMEXCEPTION_IID)
64 :
65 : /* Use this macro when declaring classes that implement this interface. */
66 : #define NS_DECL_NSIDOMDOMEXCEPTION \
67 : NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode);
68 :
69 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
70 : #define NS_FORWARD_NSIDOMDOMEXCEPTION(_to) \
71 : NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode) { return _to GetCode(aCode); }
72 :
73 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
74 : #define NS_FORWARD_SAFE_NSIDOMDOMEXCEPTION(_to) \
75 : NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCode(aCode); }
76 :
77 : #if 0
78 : /* Use the code below as a template for the implementation class for this interface. */
79 :
80 : /* Header file */
81 : class nsDOMDOMException : public nsIDOMDOMException
82 : {
83 : public:
84 : NS_DECL_ISUPPORTS
85 : NS_DECL_NSIDOMDOMEXCEPTION
86 :
87 : nsDOMDOMException();
88 :
89 : private:
90 : ~nsDOMDOMException();
91 :
92 : protected:
93 : /* additional members */
94 : };
95 :
96 : /* Implementation file */
97 : NS_IMPL_ISUPPORTS1(nsDOMDOMException, nsIDOMDOMException)
98 :
99 : nsDOMDOMException::nsDOMDOMException()
100 : {
101 : /* member initializers and constructor code */
102 : }
103 :
104 : nsDOMDOMException::~nsDOMDOMException()
105 : {
106 : /* destructor code */
107 : }
108 :
109 : /* readonly attribute unsigned short code; */
110 : NS_IMETHODIMP nsDOMDOMException::GetCode(PRUint16 *aCode)
111 : {
112 : return NS_ERROR_NOT_IMPLEMENTED;
113 : }
114 :
115 : /* End of implementation class template. */
116 : #endif
117 :
118 :
119 : #endif /* __gen_nsIDOMDOMException_h__ */
|