1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/content/base/public/nsIDOMFileException.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMFileException_h__
6 : #define __gen_nsIDOMFileException_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: nsIDOMFileException */
19 : #define NS_IDOMFILEEXCEPTION_IID_STR "b52356e1-45c5-4d61-b61a-fb9bd91690e1"
20 :
21 : #define NS_IDOMFILEEXCEPTION_IID \
22 : {0xb52356e1, 0x45c5, 0x4d61, \
23 : { 0xb6, 0x1a, 0xfb, 0x9b, 0xd9, 0x16, 0x90, 0xe1 }}
24 :
25 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMFileException : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMFILEEXCEPTION_IID)
29 :
30 : enum {
31 : NOT_FOUND_ERR = 1U,
32 : SECURITY_ERR = 2U,
33 : ABORT_ERR = 3U,
34 : NOT_READABLE_ERR = 4U,
35 : ENCODING_ERR = 5U
36 : };
37 :
38 : /* readonly attribute unsigned short code; */
39 : NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode) = 0;
40 :
41 : };
42 :
43 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMFileException, NS_IDOMFILEEXCEPTION_IID)
44 :
45 : /* Use this macro when declaring classes that implement this interface. */
46 : #define NS_DECL_NSIDOMFILEEXCEPTION \
47 : NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode);
48 :
49 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
50 : #define NS_FORWARD_NSIDOMFILEEXCEPTION(_to) \
51 : NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode) { return _to GetCode(aCode); }
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
54 : #define NS_FORWARD_SAFE_NSIDOMFILEEXCEPTION(_to) \
55 : NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCode(aCode); }
56 :
57 : #if 0
58 : /* Use the code below as a template for the implementation class for this interface. */
59 :
60 : /* Header file */
61 : class nsDOMFileException : public nsIDOMFileException
62 : {
63 : public:
64 : NS_DECL_ISUPPORTS
65 : NS_DECL_NSIDOMFILEEXCEPTION
66 :
67 : nsDOMFileException();
68 :
69 : private:
70 : ~nsDOMFileException();
71 :
72 : protected:
73 : /* additional members */
74 : };
75 :
76 : /* Implementation file */
77 : NS_IMPL_ISUPPORTS1(nsDOMFileException, nsIDOMFileException)
78 :
79 : nsDOMFileException::nsDOMFileException()
80 : {
81 : /* member initializers and constructor code */
82 : }
83 :
84 : nsDOMFileException::~nsDOMFileException()
85 : {
86 : /* destructor code */
87 : }
88 :
89 : /* readonly attribute unsigned short code; */
90 : NS_IMETHODIMP nsDOMFileException::GetCode(PRUint16 *aCode)
91 : {
92 : return NS_ERROR_NOT_IMPLEMENTED;
93 : }
94 :
95 : /* End of implementation class template. */
96 : #endif
97 :
98 :
99 : #endif /* __gen_nsIDOMFileException_h__ */
|