1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/system/nsICrashReporter.idl
3 : */
4 :
5 : #ifndef __gen_nsICrashReporter_h__
6 : #define __gen_nsICrashReporter_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 : class nsILocalFile; /* forward declaration */
18 :
19 : class nsIURL; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsICrashReporter */
23 : #define NS_ICRASHREPORTER_IID_STR "56761088-57ad-4f5c-bd61-f678c2807fe0"
24 :
25 : #define NS_ICRASHREPORTER_IID \
26 : {0x56761088, 0x57ad, 0x4f5c, \
27 : { 0xbd, 0x61, 0xf6, 0x78, 0xc2, 0x80, 0x7f, 0xe0 }}
28 :
29 1464 : class NS_NO_VTABLE NS_SCRIPTABLE nsICrashReporter : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICRASHREPORTER_IID)
33 :
34 : /* attribute boolean enabled; */
35 : NS_SCRIPTABLE NS_IMETHOD GetEnabled(bool *aEnabled) = 0;
36 : NS_SCRIPTABLE NS_IMETHOD SetEnabled(bool aEnabled) = 0;
37 :
38 : /* attribute nsIURL serverURL; */
39 : NS_SCRIPTABLE NS_IMETHOD GetServerURL(nsIURL * *aServerURL) = 0;
40 : NS_SCRIPTABLE NS_IMETHOD SetServerURL(nsIURL *aServerURL) = 0;
41 :
42 : /* attribute nsILocalFile minidumpPath; */
43 : NS_SCRIPTABLE NS_IMETHOD GetMinidumpPath(nsILocalFile * *aMinidumpPath) = 0;
44 : NS_SCRIPTABLE NS_IMETHOD SetMinidumpPath(nsILocalFile *aMinidumpPath) = 0;
45 :
46 : /* void annotateCrashReport (in ACString key, in ACString data); */
47 : NS_SCRIPTABLE NS_IMETHOD AnnotateCrashReport(const nsACString & key, const nsACString & data) = 0;
48 :
49 : /* void appendAppNotesToCrashReport (in ACString data); */
50 : NS_SCRIPTABLE NS_IMETHOD AppendAppNotesToCrashReport(const nsACString & data) = 0;
51 :
52 : /* void registerAppMemory (in unsigned long long ptr, in unsigned long long size); */
53 : NS_SCRIPTABLE NS_IMETHOD RegisterAppMemory(PRUint64 ptr, PRUint64 size) = 0;
54 :
55 : /* [noscript] void writeMinidumpForException (in voidPtr aExceptionInfo); */
56 : NS_IMETHOD WriteMinidumpForException(void *aExceptionInfo) = 0;
57 :
58 : /* [noscript] void appendObjCExceptionInfoToAppNotes (in voidPtr aException); */
59 : NS_IMETHOD AppendObjCExceptionInfoToAppNotes(void *aException) = 0;
60 :
61 : /* attribute boolean submitReports; */
62 : NS_SCRIPTABLE NS_IMETHOD GetSubmitReports(bool *aSubmitReports) = 0;
63 : NS_SCRIPTABLE NS_IMETHOD SetSubmitReports(bool aSubmitReports) = 0;
64 :
65 : };
66 :
67 : NS_DEFINE_STATIC_IID_ACCESSOR(nsICrashReporter, NS_ICRASHREPORTER_IID)
68 :
69 : /* Use this macro when declaring classes that implement this interface. */
70 : #define NS_DECL_NSICRASHREPORTER \
71 : NS_SCRIPTABLE NS_IMETHOD GetEnabled(bool *aEnabled); \
72 : NS_SCRIPTABLE NS_IMETHOD SetEnabled(bool aEnabled); \
73 : NS_SCRIPTABLE NS_IMETHOD GetServerURL(nsIURL * *aServerURL); \
74 : NS_SCRIPTABLE NS_IMETHOD SetServerURL(nsIURL *aServerURL); \
75 : NS_SCRIPTABLE NS_IMETHOD GetMinidumpPath(nsILocalFile * *aMinidumpPath); \
76 : NS_SCRIPTABLE NS_IMETHOD SetMinidumpPath(nsILocalFile *aMinidumpPath); \
77 : NS_SCRIPTABLE NS_IMETHOD AnnotateCrashReport(const nsACString & key, const nsACString & data); \
78 : NS_SCRIPTABLE NS_IMETHOD AppendAppNotesToCrashReport(const nsACString & data); \
79 : NS_SCRIPTABLE NS_IMETHOD RegisterAppMemory(PRUint64 ptr, PRUint64 size); \
80 : NS_IMETHOD WriteMinidumpForException(void *aExceptionInfo); \
81 : NS_IMETHOD AppendObjCExceptionInfoToAppNotes(void *aException); \
82 : NS_SCRIPTABLE NS_IMETHOD GetSubmitReports(bool *aSubmitReports); \
83 : NS_SCRIPTABLE NS_IMETHOD SetSubmitReports(bool aSubmitReports);
84 :
85 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
86 : #define NS_FORWARD_NSICRASHREPORTER(_to) \
87 : NS_SCRIPTABLE NS_IMETHOD GetEnabled(bool *aEnabled) { return _to GetEnabled(aEnabled); } \
88 : NS_SCRIPTABLE NS_IMETHOD SetEnabled(bool aEnabled) { return _to SetEnabled(aEnabled); } \
89 : NS_SCRIPTABLE NS_IMETHOD GetServerURL(nsIURL * *aServerURL) { return _to GetServerURL(aServerURL); } \
90 : NS_SCRIPTABLE NS_IMETHOD SetServerURL(nsIURL *aServerURL) { return _to SetServerURL(aServerURL); } \
91 : NS_SCRIPTABLE NS_IMETHOD GetMinidumpPath(nsILocalFile * *aMinidumpPath) { return _to GetMinidumpPath(aMinidumpPath); } \
92 : NS_SCRIPTABLE NS_IMETHOD SetMinidumpPath(nsILocalFile *aMinidumpPath) { return _to SetMinidumpPath(aMinidumpPath); } \
93 : NS_SCRIPTABLE NS_IMETHOD AnnotateCrashReport(const nsACString & key, const nsACString & data) { return _to AnnotateCrashReport(key, data); } \
94 : NS_SCRIPTABLE NS_IMETHOD AppendAppNotesToCrashReport(const nsACString & data) { return _to AppendAppNotesToCrashReport(data); } \
95 : NS_SCRIPTABLE NS_IMETHOD RegisterAppMemory(PRUint64 ptr, PRUint64 size) { return _to RegisterAppMemory(ptr, size); } \
96 : NS_IMETHOD WriteMinidumpForException(void *aExceptionInfo) { return _to WriteMinidumpForException(aExceptionInfo); } \
97 : NS_IMETHOD AppendObjCExceptionInfoToAppNotes(void *aException) { return _to AppendObjCExceptionInfoToAppNotes(aException); } \
98 : NS_SCRIPTABLE NS_IMETHOD GetSubmitReports(bool *aSubmitReports) { return _to GetSubmitReports(aSubmitReports); } \
99 : NS_SCRIPTABLE NS_IMETHOD SetSubmitReports(bool aSubmitReports) { return _to SetSubmitReports(aSubmitReports); }
100 :
101 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
102 : #define NS_FORWARD_SAFE_NSICRASHREPORTER(_to) \
103 : NS_SCRIPTABLE NS_IMETHOD GetEnabled(bool *aEnabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnabled(aEnabled); } \
104 : NS_SCRIPTABLE NS_IMETHOD SetEnabled(bool aEnabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEnabled(aEnabled); } \
105 : NS_SCRIPTABLE NS_IMETHOD GetServerURL(nsIURL * *aServerURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServerURL(aServerURL); } \
106 : NS_SCRIPTABLE NS_IMETHOD SetServerURL(nsIURL *aServerURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetServerURL(aServerURL); } \
107 : NS_SCRIPTABLE NS_IMETHOD GetMinidumpPath(nsILocalFile * *aMinidumpPath) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMinidumpPath(aMinidumpPath); } \
108 : NS_SCRIPTABLE NS_IMETHOD SetMinidumpPath(nsILocalFile *aMinidumpPath) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMinidumpPath(aMinidumpPath); } \
109 : NS_SCRIPTABLE NS_IMETHOD AnnotateCrashReport(const nsACString & key, const nsACString & data) { return !_to ? NS_ERROR_NULL_POINTER : _to->AnnotateCrashReport(key, data); } \
110 : NS_SCRIPTABLE NS_IMETHOD AppendAppNotesToCrashReport(const nsACString & data) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendAppNotesToCrashReport(data); } \
111 : NS_SCRIPTABLE NS_IMETHOD RegisterAppMemory(PRUint64 ptr, PRUint64 size) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterAppMemory(ptr, size); } \
112 : NS_IMETHOD WriteMinidumpForException(void *aExceptionInfo) { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteMinidumpForException(aExceptionInfo); } \
113 : NS_IMETHOD AppendObjCExceptionInfoToAppNotes(void *aException) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendObjCExceptionInfoToAppNotes(aException); } \
114 : NS_SCRIPTABLE NS_IMETHOD GetSubmitReports(bool *aSubmitReports) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubmitReports(aSubmitReports); } \
115 : NS_SCRIPTABLE NS_IMETHOD SetSubmitReports(bool aSubmitReports) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSubmitReports(aSubmitReports); }
116 :
117 : #if 0
118 : /* Use the code below as a template for the implementation class for this interface. */
119 :
120 : /* Header file */
121 : class nsCrashReporter : public nsICrashReporter
122 : {
123 : public:
124 : NS_DECL_ISUPPORTS
125 : NS_DECL_NSICRASHREPORTER
126 :
127 : nsCrashReporter();
128 :
129 : private:
130 : ~nsCrashReporter();
131 :
132 : protected:
133 : /* additional members */
134 : };
135 :
136 : /* Implementation file */
137 : NS_IMPL_ISUPPORTS1(nsCrashReporter, nsICrashReporter)
138 :
139 : nsCrashReporter::nsCrashReporter()
140 : {
141 : /* member initializers and constructor code */
142 : }
143 :
144 : nsCrashReporter::~nsCrashReporter()
145 : {
146 : /* destructor code */
147 : }
148 :
149 : /* attribute boolean enabled; */
150 : NS_IMETHODIMP nsCrashReporter::GetEnabled(bool *aEnabled)
151 : {
152 : return NS_ERROR_NOT_IMPLEMENTED;
153 : }
154 : NS_IMETHODIMP nsCrashReporter::SetEnabled(bool aEnabled)
155 : {
156 : return NS_ERROR_NOT_IMPLEMENTED;
157 : }
158 :
159 : /* attribute nsIURL serverURL; */
160 : NS_IMETHODIMP nsCrashReporter::GetServerURL(nsIURL * *aServerURL)
161 : {
162 : return NS_ERROR_NOT_IMPLEMENTED;
163 : }
164 : NS_IMETHODIMP nsCrashReporter::SetServerURL(nsIURL *aServerURL)
165 : {
166 : return NS_ERROR_NOT_IMPLEMENTED;
167 : }
168 :
169 : /* attribute nsILocalFile minidumpPath; */
170 : NS_IMETHODIMP nsCrashReporter::GetMinidumpPath(nsILocalFile * *aMinidumpPath)
171 : {
172 : return NS_ERROR_NOT_IMPLEMENTED;
173 : }
174 : NS_IMETHODIMP nsCrashReporter::SetMinidumpPath(nsILocalFile *aMinidumpPath)
175 : {
176 : return NS_ERROR_NOT_IMPLEMENTED;
177 : }
178 :
179 : /* void annotateCrashReport (in ACString key, in ACString data); */
180 : NS_IMETHODIMP nsCrashReporter::AnnotateCrashReport(const nsACString & key, const nsACString & data)
181 : {
182 : return NS_ERROR_NOT_IMPLEMENTED;
183 : }
184 :
185 : /* void appendAppNotesToCrashReport (in ACString data); */
186 : NS_IMETHODIMP nsCrashReporter::AppendAppNotesToCrashReport(const nsACString & data)
187 : {
188 : return NS_ERROR_NOT_IMPLEMENTED;
189 : }
190 :
191 : /* void registerAppMemory (in unsigned long long ptr, in unsigned long long size); */
192 : NS_IMETHODIMP nsCrashReporter::RegisterAppMemory(PRUint64 ptr, PRUint64 size)
193 : {
194 : return NS_ERROR_NOT_IMPLEMENTED;
195 : }
196 :
197 : /* [noscript] void writeMinidumpForException (in voidPtr aExceptionInfo); */
198 : NS_IMETHODIMP nsCrashReporter::WriteMinidumpForException(void *aExceptionInfo)
199 : {
200 : return NS_ERROR_NOT_IMPLEMENTED;
201 : }
202 :
203 : /* [noscript] void appendObjCExceptionInfoToAppNotes (in voidPtr aException); */
204 : NS_IMETHODIMP nsCrashReporter::AppendObjCExceptionInfoToAppNotes(void *aException)
205 : {
206 : return NS_ERROR_NOT_IMPLEMENTED;
207 : }
208 :
209 : /* attribute boolean submitReports; */
210 : NS_IMETHODIMP nsCrashReporter::GetSubmitReports(bool *aSubmitReports)
211 : {
212 : return NS_ERROR_NOT_IMPLEMENTED;
213 : }
214 : NS_IMETHODIMP nsCrashReporter::SetSubmitReports(bool aSubmitReports)
215 : {
216 : return NS_ERROR_NOT_IMPLEMENTED;
217 : }
218 :
219 : /* End of implementation class template. */
220 : #endif
221 :
222 :
223 : #endif /* __gen_nsICrashReporter_h__ */
|