/usr/include/thunderbird/nsIRDFService.h is in thunderbird-dev 1:38.6.0+build1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIRDFService.idl
*/
#ifndef __gen_nsIRDFService_h__
#define __gen_nsIRDFService_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsIRDFResource_h__
#include "nsIRDFResource.h"
#endif
#ifndef __gen_nsIRDFLiteral_h__
#include "nsIRDFLiteral.h"
#endif
#ifndef __gen_nsIRDFDataSource_h__
#include "nsIRDFDataSource.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIRDFService */
#define NS_IRDFSERVICE_IID_STR "bfd05261-834c-11d2-8eac-00805f29f370"
#define NS_IRDFSERVICE_IID \
{0xbfd05261, 0x834c, 0x11d2, \
{ 0x8e, 0xac, 0x00, 0x80, 0x5f, 0x29, 0xf3, 0x70 }}
class NS_NO_VTABLE nsIRDFService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDFSERVICE_IID)
/* nsIRDFResource GetResource (in AUTF8String aURI); */
NS_IMETHOD GetResource(const nsACString & aURI, nsIRDFResource * *_retval) = 0;
/* nsIRDFResource GetUnicodeResource (in AString aURI); */
NS_IMETHOD GetUnicodeResource(const nsAString & aURI, nsIRDFResource * *_retval) = 0;
/* nsIRDFResource GetAnonymousResource (); */
NS_IMETHOD GetAnonymousResource(nsIRDFResource * *_retval) = 0;
/* nsIRDFLiteral GetLiteral (in wstring aValue); */
NS_IMETHOD GetLiteral(const char16_t * aValue, nsIRDFLiteral * *_retval) = 0;
/* nsIRDFDate GetDateLiteral (in PRTime aValue); */
NS_IMETHOD GetDateLiteral(PRTime aValue, nsIRDFDate * *_retval) = 0;
/* nsIRDFInt GetIntLiteral (in long aValue); */
NS_IMETHOD GetIntLiteral(int32_t aValue, nsIRDFInt * *_retval) = 0;
/* [noscript] nsIRDFBlob getBlobLiteral (in const_octet_ptr aValue, in long aLength); */
NS_IMETHOD GetBlobLiteral(const uint8_t *aValue, int32_t aLength, nsIRDFBlob * *_retval) = 0;
/* boolean IsAnonymousResource (in nsIRDFResource aResource); */
NS_IMETHOD IsAnonymousResource(nsIRDFResource *aResource, bool *_retval) = 0;
/* void RegisterResource (in nsIRDFResource aResource, in boolean aReplace); */
NS_IMETHOD RegisterResource(nsIRDFResource *aResource, bool aReplace) = 0;
/* void UnregisterResource (in nsIRDFResource aResource); */
NS_IMETHOD UnregisterResource(nsIRDFResource *aResource) = 0;
/* void RegisterDataSource (in nsIRDFDataSource aDataSource, in boolean aReplace); */
NS_IMETHOD RegisterDataSource(nsIRDFDataSource *aDataSource, bool aReplace) = 0;
/* void UnregisterDataSource (in nsIRDFDataSource aDataSource); */
NS_IMETHOD UnregisterDataSource(nsIRDFDataSource *aDataSource) = 0;
/* nsIRDFDataSource GetDataSource (in string aURI); */
NS_IMETHOD GetDataSource(const char * aURI, nsIRDFDataSource * *_retval) = 0;
/* nsIRDFDataSource GetDataSourceBlocking (in string aURI); */
NS_IMETHOD GetDataSourceBlocking(const char * aURI, nsIRDFDataSource * *_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIRDFService, NS_IRDFSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIRDFSERVICE \
NS_IMETHOD GetResource(const nsACString & aURI, nsIRDFResource * *_retval) override; \
NS_IMETHOD GetUnicodeResource(const nsAString & aURI, nsIRDFResource * *_retval) override; \
NS_IMETHOD GetAnonymousResource(nsIRDFResource * *_retval) override; \
NS_IMETHOD GetLiteral(const char16_t * aValue, nsIRDFLiteral * *_retval) override; \
NS_IMETHOD GetDateLiteral(PRTime aValue, nsIRDFDate * *_retval) override; \
NS_IMETHOD GetIntLiteral(int32_t aValue, nsIRDFInt * *_retval) override; \
NS_IMETHOD GetBlobLiteral(const uint8_t *aValue, int32_t aLength, nsIRDFBlob * *_retval) override; \
NS_IMETHOD IsAnonymousResource(nsIRDFResource *aResource, bool *_retval) override; \
NS_IMETHOD RegisterResource(nsIRDFResource *aResource, bool aReplace) override; \
NS_IMETHOD UnregisterResource(nsIRDFResource *aResource) override; \
NS_IMETHOD RegisterDataSource(nsIRDFDataSource *aDataSource, bool aReplace) override; \
NS_IMETHOD UnregisterDataSource(nsIRDFDataSource *aDataSource) override; \
NS_IMETHOD GetDataSource(const char * aURI, nsIRDFDataSource * *_retval) override; \
NS_IMETHOD GetDataSourceBlocking(const char * aURI, nsIRDFDataSource * *_retval) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIRDFSERVICE(_to) \
NS_IMETHOD GetResource(const nsACString & aURI, nsIRDFResource * *_retval) override { return _to GetResource(aURI, _retval); } \
NS_IMETHOD GetUnicodeResource(const nsAString & aURI, nsIRDFResource * *_retval) override { return _to GetUnicodeResource(aURI, _retval); } \
NS_IMETHOD GetAnonymousResource(nsIRDFResource * *_retval) override { return _to GetAnonymousResource(_retval); } \
NS_IMETHOD GetLiteral(const char16_t * aValue, nsIRDFLiteral * *_retval) override { return _to GetLiteral(aValue, _retval); } \
NS_IMETHOD GetDateLiteral(PRTime aValue, nsIRDFDate * *_retval) override { return _to GetDateLiteral(aValue, _retval); } \
NS_IMETHOD GetIntLiteral(int32_t aValue, nsIRDFInt * *_retval) override { return _to GetIntLiteral(aValue, _retval); } \
NS_IMETHOD GetBlobLiteral(const uint8_t *aValue, int32_t aLength, nsIRDFBlob * *_retval) override { return _to GetBlobLiteral(aValue, aLength, _retval); } \
NS_IMETHOD IsAnonymousResource(nsIRDFResource *aResource, bool *_retval) override { return _to IsAnonymousResource(aResource, _retval); } \
NS_IMETHOD RegisterResource(nsIRDFResource *aResource, bool aReplace) override { return _to RegisterResource(aResource, aReplace); } \
NS_IMETHOD UnregisterResource(nsIRDFResource *aResource) override { return _to UnregisterResource(aResource); } \
NS_IMETHOD RegisterDataSource(nsIRDFDataSource *aDataSource, bool aReplace) override { return _to RegisterDataSource(aDataSource, aReplace); } \
NS_IMETHOD UnregisterDataSource(nsIRDFDataSource *aDataSource) override { return _to UnregisterDataSource(aDataSource); } \
NS_IMETHOD GetDataSource(const char * aURI, nsIRDFDataSource * *_retval) override { return _to GetDataSource(aURI, _retval); } \
NS_IMETHOD GetDataSourceBlocking(const char * aURI, nsIRDFDataSource * *_retval) override { return _to GetDataSourceBlocking(aURI, _retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIRDFSERVICE(_to) \
NS_IMETHOD GetResource(const nsACString & aURI, nsIRDFResource * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResource(aURI, _retval); } \
NS_IMETHOD GetUnicodeResource(const nsAString & aURI, nsIRDFResource * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnicodeResource(aURI, _retval); } \
NS_IMETHOD GetAnonymousResource(nsIRDFResource * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAnonymousResource(_retval); } \
NS_IMETHOD GetLiteral(const char16_t * aValue, nsIRDFLiteral * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLiteral(aValue, _retval); } \
NS_IMETHOD GetDateLiteral(PRTime aValue, nsIRDFDate * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDateLiteral(aValue, _retval); } \
NS_IMETHOD GetIntLiteral(int32_t aValue, nsIRDFInt * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIntLiteral(aValue, _retval); } \
NS_IMETHOD GetBlobLiteral(const uint8_t *aValue, int32_t aLength, nsIRDFBlob * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBlobLiteral(aValue, aLength, _retval); } \
NS_IMETHOD IsAnonymousResource(nsIRDFResource *aResource, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsAnonymousResource(aResource, _retval); } \
NS_IMETHOD RegisterResource(nsIRDFResource *aResource, bool aReplace) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterResource(aResource, aReplace); } \
NS_IMETHOD UnregisterResource(nsIRDFResource *aResource) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterResource(aResource); } \
NS_IMETHOD RegisterDataSource(nsIRDFDataSource *aDataSource, bool aReplace) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterDataSource(aDataSource, aReplace); } \
NS_IMETHOD UnregisterDataSource(nsIRDFDataSource *aDataSource) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterDataSource(aDataSource); } \
NS_IMETHOD GetDataSource(const char * aURI, nsIRDFDataSource * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDataSource(aURI, _retval); } \
NS_IMETHOD GetDataSourceBlocking(const char * aURI, nsIRDFDataSource * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDataSourceBlocking(aURI, _retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsRDFService : public nsIRDFService
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIRDFSERVICE
nsRDFService();
private:
~nsRDFService();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsRDFService, nsIRDFService)
nsRDFService::nsRDFService()
{
/* member initializers and constructor code */
}
nsRDFService::~nsRDFService()
{
/* destructor code */
}
/* nsIRDFResource GetResource (in AUTF8String aURI); */
NS_IMETHODIMP nsRDFService::GetResource(const nsACString & aURI, nsIRDFResource * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIRDFResource GetUnicodeResource (in AString aURI); */
NS_IMETHODIMP nsRDFService::GetUnicodeResource(const nsAString & aURI, nsIRDFResource * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIRDFResource GetAnonymousResource (); */
NS_IMETHODIMP nsRDFService::GetAnonymousResource(nsIRDFResource * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIRDFLiteral GetLiteral (in wstring aValue); */
NS_IMETHODIMP nsRDFService::GetLiteral(const char16_t * aValue, nsIRDFLiteral * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIRDFDate GetDateLiteral (in PRTime aValue); */
NS_IMETHODIMP nsRDFService::GetDateLiteral(PRTime aValue, nsIRDFDate * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIRDFInt GetIntLiteral (in long aValue); */
NS_IMETHODIMP nsRDFService::GetIntLiteral(int32_t aValue, nsIRDFInt * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] nsIRDFBlob getBlobLiteral (in const_octet_ptr aValue, in long aLength); */
NS_IMETHODIMP nsRDFService::GetBlobLiteral(const uint8_t *aValue, int32_t aLength, nsIRDFBlob * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean IsAnonymousResource (in nsIRDFResource aResource); */
NS_IMETHODIMP nsRDFService::IsAnonymousResource(nsIRDFResource *aResource, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void RegisterResource (in nsIRDFResource aResource, in boolean aReplace); */
NS_IMETHODIMP nsRDFService::RegisterResource(nsIRDFResource *aResource, bool aReplace)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void UnregisterResource (in nsIRDFResource aResource); */
NS_IMETHODIMP nsRDFService::UnregisterResource(nsIRDFResource *aResource)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void RegisterDataSource (in nsIRDFDataSource aDataSource, in boolean aReplace); */
NS_IMETHODIMP nsRDFService::RegisterDataSource(nsIRDFDataSource *aDataSource, bool aReplace)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void UnregisterDataSource (in nsIRDFDataSource aDataSource); */
NS_IMETHODIMP nsRDFService::UnregisterDataSource(nsIRDFDataSource *aDataSource)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIRDFDataSource GetDataSource (in string aURI); */
NS_IMETHODIMP nsRDFService::GetDataSource(const char * aURI, nsIRDFDataSource * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIRDFDataSource GetDataSourceBlocking (in string aURI); */
NS_IMETHODIMP nsRDFService::GetDataSourceBlocking(const char * aURI, nsIRDFDataSource * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
extern nsresult
NS_NewRDFService(nsIRDFService** result);
#endif /* __gen_nsIRDFService_h__ */
|