/work/obj-fuzz/dist/include/nsIPropertyBag2.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * DO NOT EDIT. THIS FILE IS GENERATED FROM /src/mozilla-central/xpcom/ds/nsIPropertyBag2.idl |
3 | | */ |
4 | | |
5 | | #ifndef __gen_nsIPropertyBag2_h__ |
6 | | #define __gen_nsIPropertyBag2_h__ |
7 | | |
8 | | |
9 | | #ifndef __gen_nsIPropertyBag_h__ |
10 | | #include "nsIPropertyBag.h" |
11 | | #endif |
12 | | |
13 | | #include "js/GCAnnotations.h" |
14 | | |
15 | | /* For IDL files that don't want to include root IDL files. */ |
16 | | #ifndef NS_NO_VTABLE |
17 | | #define NS_NO_VTABLE |
18 | | #endif |
19 | | |
20 | | /* starting interface: nsIPropertyBag2 */ |
21 | | #define NS_IPROPERTYBAG2_IID_STR "625cfd1e-da1e-4417-9ee9-dbc8e0b3fd79" |
22 | | |
23 | | #define NS_IPROPERTYBAG2_IID \ |
24 | | {0x625cfd1e, 0xda1e, 0x4417, \ |
25 | | { 0x9e, 0xe9, 0xdb, 0xc8, 0xe0, 0xb3, 0xfd, 0x79 }} |
26 | | |
27 | | class NS_NO_VTABLE nsIPropertyBag2 : public nsIPropertyBag { |
28 | | public: |
29 | | |
30 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROPERTYBAG2_IID) |
31 | | |
32 | | /* int32_t getPropertyAsInt32 (in AString prop); */ |
33 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPropertyAsInt32(const nsAString& prop, int32_t *_retval) = 0; |
34 | | |
35 | | /* uint32_t getPropertyAsUint32 (in AString prop); */ |
36 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPropertyAsUint32(const nsAString& prop, uint32_t *_retval) = 0; |
37 | | |
38 | | /* int64_t getPropertyAsInt64 (in AString prop); */ |
39 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPropertyAsInt64(const nsAString& prop, int64_t *_retval) = 0; |
40 | | |
41 | | /* uint64_t getPropertyAsUint64 (in AString prop); */ |
42 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPropertyAsUint64(const nsAString& prop, uint64_t *_retval) = 0; |
43 | | |
44 | | /* double getPropertyAsDouble (in AString prop); */ |
45 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPropertyAsDouble(const nsAString& prop, double *_retval) = 0; |
46 | | |
47 | | /* AString getPropertyAsAString (in AString prop); */ |
48 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPropertyAsAString(const nsAString& prop, nsAString& _retval) = 0; |
49 | | |
50 | | /* ACString getPropertyAsACString (in AString prop); */ |
51 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPropertyAsACString(const nsAString& prop, nsACString& _retval) = 0; |
52 | | |
53 | | /* AUTF8String getPropertyAsAUTF8String (in AString prop); */ |
54 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPropertyAsAUTF8String(const nsAString& prop, nsACString& _retval) = 0; |
55 | | |
56 | | /* boolean getPropertyAsBool (in AString prop); */ |
57 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPropertyAsBool(const nsAString& prop, bool *_retval) = 0; |
58 | | |
59 | | /* void getPropertyAsInterface (in AString prop, in nsIIDRef iid, [iid_is (iid), retval] out nsQIResult result); */ |
60 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPropertyAsInterface(const nsAString& prop, const nsIID & iid, void * * result) = 0; |
61 | | |
62 | | /* nsIVariant get (in AString prop); */ |
63 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Get(const nsAString& prop, nsIVariant **_retval) = 0; |
64 | | |
65 | | /* boolean hasKey (in AString prop); */ |
66 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HasKey(const nsAString& prop, bool *_retval) = 0; |
67 | | |
68 | | }; |
69 | | |
70 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsIPropertyBag2, NS_IPROPERTYBAG2_IID) |
71 | | |
72 | | /* Use this macro when declaring classes that implement this interface. */ |
73 | | #define NS_DECL_NSIPROPERTYBAG2 \ |
74 | | NS_IMETHOD GetPropertyAsInt32(const nsAString& prop, int32_t *_retval) override; \ |
75 | | NS_IMETHOD GetPropertyAsUint32(const nsAString& prop, uint32_t *_retval) override; \ |
76 | | NS_IMETHOD GetPropertyAsInt64(const nsAString& prop, int64_t *_retval) override; \ |
77 | | NS_IMETHOD GetPropertyAsUint64(const nsAString& prop, uint64_t *_retval) override; \ |
78 | | NS_IMETHOD GetPropertyAsDouble(const nsAString& prop, double *_retval) override; \ |
79 | | NS_IMETHOD GetPropertyAsAString(const nsAString& prop, nsAString& _retval) override; \ |
80 | | NS_IMETHOD GetPropertyAsACString(const nsAString& prop, nsACString& _retval) override; \ |
81 | | NS_IMETHOD GetPropertyAsAUTF8String(const nsAString& prop, nsACString& _retval) override; \ |
82 | | NS_IMETHOD GetPropertyAsBool(const nsAString& prop, bool *_retval) override; \ |
83 | | NS_IMETHOD GetPropertyAsInterface(const nsAString& prop, const nsIID & iid, void * * result) override; \ |
84 | | NS_IMETHOD Get(const nsAString& prop, nsIVariant **_retval) override; \ |
85 | | NS_IMETHOD HasKey(const nsAString& prop, bool *_retval) override; |
86 | | |
87 | | /* Use this macro when declaring the members of this interface when the |
88 | | class doesn't implement the interface. This is useful for forwarding. */ |
89 | | #define NS_DECL_NON_VIRTUAL_NSIPROPERTYBAG2 \ |
90 | | nsresult GetPropertyAsInt32(const nsAString& prop, int32_t *_retval); \ |
91 | | nsresult GetPropertyAsUint32(const nsAString& prop, uint32_t *_retval); \ |
92 | | nsresult GetPropertyAsInt64(const nsAString& prop, int64_t *_retval); \ |
93 | | nsresult GetPropertyAsUint64(const nsAString& prop, uint64_t *_retval); \ |
94 | | nsresult GetPropertyAsDouble(const nsAString& prop, double *_retval); \ |
95 | | nsresult GetPropertyAsAString(const nsAString& prop, nsAString& _retval); \ |
96 | | nsresult GetPropertyAsACString(const nsAString& prop, nsACString& _retval); \ |
97 | | nsresult GetPropertyAsAUTF8String(const nsAString& prop, nsACString& _retval); \ |
98 | | nsresult GetPropertyAsBool(const nsAString& prop, bool *_retval); \ |
99 | | nsresult GetPropertyAsInterface(const nsAString& prop, const nsIID & iid, void * * result); \ |
100 | | nsresult Get(const nsAString& prop, nsIVariant **_retval); \ |
101 | | nsresult HasKey(const nsAString& prop, bool *_retval); |
102 | | |
103 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
104 | | #define NS_FORWARD_NSIPROPERTYBAG2(_to) \ |
105 | | NS_IMETHOD GetPropertyAsInt32(const nsAString& prop, int32_t *_retval) override { return _to GetPropertyAsInt32(prop, _retval); } \ |
106 | | NS_IMETHOD GetPropertyAsUint32(const nsAString& prop, uint32_t *_retval) override { return _to GetPropertyAsUint32(prop, _retval); } \ |
107 | | NS_IMETHOD GetPropertyAsInt64(const nsAString& prop, int64_t *_retval) override { return _to GetPropertyAsInt64(prop, _retval); } \ |
108 | | NS_IMETHOD GetPropertyAsUint64(const nsAString& prop, uint64_t *_retval) override { return _to GetPropertyAsUint64(prop, _retval); } \ |
109 | | NS_IMETHOD GetPropertyAsDouble(const nsAString& prop, double *_retval) override { return _to GetPropertyAsDouble(prop, _retval); } \ |
110 | | NS_IMETHOD GetPropertyAsAString(const nsAString& prop, nsAString& _retval) override { return _to GetPropertyAsAString(prop, _retval); } \ |
111 | | NS_IMETHOD GetPropertyAsACString(const nsAString& prop, nsACString& _retval) override { return _to GetPropertyAsACString(prop, _retval); } \ |
112 | | NS_IMETHOD GetPropertyAsAUTF8String(const nsAString& prop, nsACString& _retval) override { return _to GetPropertyAsAUTF8String(prop, _retval); } \ |
113 | | NS_IMETHOD GetPropertyAsBool(const nsAString& prop, bool *_retval) override { return _to GetPropertyAsBool(prop, _retval); } \ |
114 | | NS_IMETHOD GetPropertyAsInterface(const nsAString& prop, const nsIID & iid, void * * result) override { return _to GetPropertyAsInterface(prop, iid, result); } \ |
115 | | NS_IMETHOD Get(const nsAString& prop, nsIVariant **_retval) override { return _to Get(prop, _retval); } \ |
116 | | NS_IMETHOD HasKey(const nsAString& prop, bool *_retval) override { return _to HasKey(prop, _retval); } |
117 | | |
118 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
119 | | #define NS_FORWARD_SAFE_NSIPROPERTYBAG2(_to) \ |
120 | 0 | NS_IMETHOD GetPropertyAsInt32(const nsAString& prop, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsInt32(prop, _retval); } \ |
121 | 0 | NS_IMETHOD GetPropertyAsUint32(const nsAString& prop, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsUint32(prop, _retval); } \ |
122 | 0 | NS_IMETHOD GetPropertyAsInt64(const nsAString& prop, int64_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsInt64(prop, _retval); } \ |
123 | 0 | NS_IMETHOD GetPropertyAsUint64(const nsAString& prop, uint64_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsUint64(prop, _retval); } \ |
124 | 0 | NS_IMETHOD GetPropertyAsDouble(const nsAString& prop, double *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsDouble(prop, _retval); } \ |
125 | 0 | NS_IMETHOD GetPropertyAsAString(const nsAString& prop, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsAString(prop, _retval); } \ |
126 | 0 | NS_IMETHOD GetPropertyAsACString(const nsAString& prop, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsACString(prop, _retval); } \ |
127 | 0 | NS_IMETHOD GetPropertyAsAUTF8String(const nsAString& prop, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsAUTF8String(prop, _retval); } \ |
128 | 0 | NS_IMETHOD GetPropertyAsBool(const nsAString& prop, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsBool(prop, _retval); } \ |
129 | 0 | NS_IMETHOD GetPropertyAsInterface(const nsAString& prop, const nsIID & iid, void * * result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsInterface(prop, iid, result); } \ |
130 | 0 | NS_IMETHOD Get(const nsAString& prop, nsIVariant **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Get(prop, _retval); } \ |
131 | 0 | NS_IMETHOD HasKey(const nsAString& prop, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasKey(prop, _retval); } |
132 | | |
133 | | |
134 | | #endif /* __gen_nsIPropertyBag2_h__ */ |