Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIErrorService.idl
3 : */
4 :
5 : #ifndef __gen_nsIErrorService_h__
6 : #define __gen_nsIErrorService_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.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: nsIErrorService */
19 : #define NS_IERRORSERVICE_IID_STR "afe1f190-a3c2-11e3-a5e2-0800200c9a66"
20 :
21 : #define NS_IERRORSERVICE_IID \
22 : {0xafe1f190, 0xa3c2, 0x11e3, \
23 : { 0xa5, 0xe2, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}
24 :
25 3 : class NS_NO_VTABLE nsIErrorService : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IERRORSERVICE_IID)
29 :
30 : /* void registerErrorStringBundle (in short errorModule, in string stringBundleURL); */
31 : NS_IMETHOD RegisterErrorStringBundle(int16_t errorModule, const char * stringBundleURL) = 0;
32 :
33 : /* void unregisterErrorStringBundle (in short errorModule); */
34 : NS_IMETHOD UnregisterErrorStringBundle(int16_t errorModule) = 0;
35 :
36 : /* string getErrorStringBundle (in short errorModule); */
37 : NS_IMETHOD GetErrorStringBundle(int16_t errorModule, char * *_retval) = 0;
38 :
39 : };
40 :
41 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIErrorService, NS_IERRORSERVICE_IID)
42 :
43 : /* Use this macro when declaring classes that implement this interface. */
44 : #define NS_DECL_NSIERRORSERVICE \
45 : NS_IMETHOD RegisterErrorStringBundle(int16_t errorModule, const char * stringBundleURL) override; \
46 : NS_IMETHOD UnregisterErrorStringBundle(int16_t errorModule) override; \
47 : NS_IMETHOD GetErrorStringBundle(int16_t errorModule, char * *_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_NSIERRORSERVICE \
52 : nsresult RegisterErrorStringBundle(int16_t errorModule, const char * stringBundleURL); \
53 : nsresult UnregisterErrorStringBundle(int16_t errorModule); \
54 : nsresult GetErrorStringBundle(int16_t errorModule, char * *_retval);
55 :
56 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
57 : #define NS_FORWARD_NSIERRORSERVICE(_to) \
58 : NS_IMETHOD RegisterErrorStringBundle(int16_t errorModule, const char * stringBundleURL) override { return _to RegisterErrorStringBundle(errorModule, stringBundleURL); } \
59 : NS_IMETHOD UnregisterErrorStringBundle(int16_t errorModule) override { return _to UnregisterErrorStringBundle(errorModule); } \
60 : NS_IMETHOD GetErrorStringBundle(int16_t errorModule, char * *_retval) override { return _to GetErrorStringBundle(errorModule, _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_NSIERRORSERVICE(_to) \
64 : NS_IMETHOD RegisterErrorStringBundle(int16_t errorModule, const char * stringBundleURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterErrorStringBundle(errorModule, stringBundleURL); } \
65 : NS_IMETHOD UnregisterErrorStringBundle(int16_t errorModule) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterErrorStringBundle(errorModule); } \
66 : NS_IMETHOD GetErrorStringBundle(int16_t errorModule, char * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorStringBundle(errorModule, _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 nsErrorService : public nsIErrorService
73 : {
74 : public:
75 : NS_DECL_ISUPPORTS
76 : NS_DECL_NSIERRORSERVICE
77 :
78 : nsErrorService();
79 :
80 : private:
81 : ~nsErrorService();
82 :
83 : protected:
84 : /* additional members */
85 : };
86 :
87 : /* Implementation file */
88 : NS_IMPL_ISUPPORTS(nsErrorService, nsIErrorService)
89 :
90 : nsErrorService::nsErrorService()
91 : {
92 : /* member initializers and constructor code */
93 : }
94 :
95 : nsErrorService::~nsErrorService()
96 : {
97 : /* destructor code */
98 : }
99 :
100 : /* void registerErrorStringBundle (in short errorModule, in string stringBundleURL); */
101 : NS_IMETHODIMP nsErrorService::RegisterErrorStringBundle(int16_t errorModule, const char * stringBundleURL)
102 : {
103 : return NS_ERROR_NOT_IMPLEMENTED;
104 : }
105 :
106 : /* void unregisterErrorStringBundle (in short errorModule); */
107 : NS_IMETHODIMP nsErrorService::UnregisterErrorStringBundle(int16_t errorModule)
108 : {
109 : return NS_ERROR_NOT_IMPLEMENTED;
110 : }
111 :
112 : /* string getErrorStringBundle (in short errorModule); */
113 : NS_IMETHODIMP nsErrorService::GetErrorStringBundle(int16_t errorModule, char * *_retval)
114 : {
115 : return NS_ERROR_NOT_IMPLEMENTED;
116 : }
117 :
118 : /* End of implementation class template. */
119 : #endif
120 :
121 :
122 : // The global nsIErrorService:
123 : #define NS_ERRORSERVICE_NAME "Error Service"
124 : #define NS_ERRORSERVICE_CONTRACTID "@mozilla.org/xpcom/error-service;1"
125 : #define NS_ERRORSERVICE_CID \
126 : { /* 744afd5e-5f8c-11d4-9877-00c04fa0cf4a */ \
127 : 0x744afd5e, \
128 : 0x5f8c, \
129 : 0x11d4, \
130 : {0x98, 0x77, 0x00, 0xc0, 0x4f, 0xa0, 0xcf, 0x4a} \
131 : }
132 :
133 : #endif /* __gen_nsIErrorService_h__ */
|