/usr/include/thunderbird/nsIStringBundle.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 262 263 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIStringBundle.idl
*/
#ifndef __gen_nsIStringBundle_h__
#define __gen_nsIStringBundle_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsISimpleEnumerator_h__
#include "nsISimpleEnumerator.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
// Define Contractid and CID
// {D85A17C1-AA7C-11d2-9B8C-00805F8A16D9}
#define NS_STRINGBUNDLESERVICE_CID \
{ 0xd85a17c1, 0xaa7c, 0x11d2, \
{ 0x9b, 0x8c, 0x0, 0x80, 0x5f, 0x8a, 0x16, 0xd9 } }
#define NS_STRINGBUNDLE_CONTRACTID "@mozilla.org/intl/stringbundle;1"
/**
* observer needs to check if the bundle handle matches
*/
#define NS_STRBUNDLE_LOADED_TOPIC "strbundle-loaded"
/* starting interface: nsIStringBundle */
#define NS_ISTRINGBUNDLE_IID_STR "d85a17c2-aa7c-11d2-9b8c-00805f8a16d9"
#define NS_ISTRINGBUNDLE_IID \
{0xd85a17c2, 0xaa7c, 0x11d2, \
{ 0x9b, 0x8c, 0x00, 0x80, 0x5f, 0x8a, 0x16, 0xd9 }}
class NS_NO_VTABLE nsIStringBundle : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTRINGBUNDLE_IID)
/* wstring GetStringFromID (in long aID); */
NS_IMETHOD GetStringFromID(int32_t aID, char16_t * *_retval) = 0;
/* wstring GetStringFromName (in wstring aName); */
NS_IMETHOD GetStringFromName(const char16_t * aName, char16_t * *_retval) = 0;
/* wstring formatStringFromID (in long aID, [array, size_is (length)] in wstring params, in unsigned long length); */
NS_IMETHOD FormatStringFromID(int32_t aID, const char16_t * *params, uint32_t length, char16_t * *_retval) = 0;
/* wstring formatStringFromName (in wstring aName, [array, size_is (length)] in wstring params, in unsigned long length); */
NS_IMETHOD FormatStringFromName(const char16_t * aName, const char16_t * *params, uint32_t length, char16_t * *_retval) = 0;
/* nsISimpleEnumerator getSimpleEnumeration (); */
NS_IMETHOD GetSimpleEnumeration(nsISimpleEnumerator * *_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIStringBundle, NS_ISTRINGBUNDLE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISTRINGBUNDLE \
NS_IMETHOD GetStringFromID(int32_t aID, char16_t * *_retval) override; \
NS_IMETHOD GetStringFromName(const char16_t * aName, char16_t * *_retval) override; \
NS_IMETHOD FormatStringFromID(int32_t aID, const char16_t * *params, uint32_t length, char16_t * *_retval) override; \
NS_IMETHOD FormatStringFromName(const char16_t * aName, const char16_t * *params, uint32_t length, char16_t * *_retval) override; \
NS_IMETHOD GetSimpleEnumeration(nsISimpleEnumerator * *_retval) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISTRINGBUNDLE(_to) \
NS_IMETHOD GetStringFromID(int32_t aID, char16_t * *_retval) override { return _to GetStringFromID(aID, _retval); } \
NS_IMETHOD GetStringFromName(const char16_t * aName, char16_t * *_retval) override { return _to GetStringFromName(aName, _retval); } \
NS_IMETHOD FormatStringFromID(int32_t aID, const char16_t * *params, uint32_t length, char16_t * *_retval) override { return _to FormatStringFromID(aID, params, length, _retval); } \
NS_IMETHOD FormatStringFromName(const char16_t * aName, const char16_t * *params, uint32_t length, char16_t * *_retval) override { return _to FormatStringFromName(aName, params, length, _retval); } \
NS_IMETHOD GetSimpleEnumeration(nsISimpleEnumerator * *_retval) override { return _to GetSimpleEnumeration(_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_NSISTRINGBUNDLE(_to) \
NS_IMETHOD GetStringFromID(int32_t aID, char16_t * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringFromID(aID, _retval); } \
NS_IMETHOD GetStringFromName(const char16_t * aName, char16_t * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringFromName(aName, _retval); } \
NS_IMETHOD FormatStringFromID(int32_t aID, const char16_t * *params, uint32_t length, char16_t * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatStringFromID(aID, params, length, _retval); } \
NS_IMETHOD FormatStringFromName(const char16_t * aName, const char16_t * *params, uint32_t length, char16_t * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatStringFromName(aName, params, length, _retval); } \
NS_IMETHOD GetSimpleEnumeration(nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSimpleEnumeration(_retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsStringBundle : public nsIStringBundle
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISTRINGBUNDLE
nsStringBundle();
private:
~nsStringBundle();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsStringBundle, nsIStringBundle)
nsStringBundle::nsStringBundle()
{
/* member initializers and constructor code */
}
nsStringBundle::~nsStringBundle()
{
/* destructor code */
}
/* wstring GetStringFromID (in long aID); */
NS_IMETHODIMP nsStringBundle::GetStringFromID(int32_t aID, char16_t * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring GetStringFromName (in wstring aName); */
NS_IMETHODIMP nsStringBundle::GetStringFromName(const char16_t * aName, char16_t * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring formatStringFromID (in long aID, [array, size_is (length)] in wstring params, in unsigned long length); */
NS_IMETHODIMP nsStringBundle::FormatStringFromID(int32_t aID, const char16_t * *params, uint32_t length, char16_t * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring formatStringFromName (in wstring aName, [array, size_is (length)] in wstring params, in unsigned long length); */
NS_IMETHODIMP nsStringBundle::FormatStringFromName(const char16_t * aName, const char16_t * *params, uint32_t length, char16_t * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISimpleEnumerator getSimpleEnumeration (); */
NS_IMETHODIMP nsStringBundle::GetSimpleEnumeration(nsISimpleEnumerator * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIStringBundleService */
#define NS_ISTRINGBUNDLESERVICE_IID_STR "d85a17c0-aa7c-11d2-9b8c-00805f8a16d9"
#define NS_ISTRINGBUNDLESERVICE_IID \
{0xd85a17c0, 0xaa7c, 0x11d2, \
{ 0x9b, 0x8c, 0x00, 0x80, 0x5f, 0x8a, 0x16, 0xd9 }}
class NS_NO_VTABLE nsIStringBundleService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTRINGBUNDLESERVICE_IID)
/* nsIStringBundle createBundle (in string aURLSpec); */
NS_IMETHOD CreateBundle(const char * aURLSpec, nsIStringBundle * *_retval) = 0;
/* nsIStringBundle createExtensibleBundle (in string aRegistryKey); */
NS_IMETHOD CreateExtensibleBundle(const char * aRegistryKey, nsIStringBundle * *_retval) = 0;
/* wstring formatStatusMessage (in nsresult aStatus, in wstring aStatusArg); */
NS_IMETHOD FormatStatusMessage(nsresult aStatus, const char16_t * aStatusArg, char16_t * *_retval) = 0;
/* void flushBundles (); */
NS_IMETHOD FlushBundles(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIStringBundleService, NS_ISTRINGBUNDLESERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISTRINGBUNDLESERVICE \
NS_IMETHOD CreateBundle(const char * aURLSpec, nsIStringBundle * *_retval) override; \
NS_IMETHOD CreateExtensibleBundle(const char * aRegistryKey, nsIStringBundle * *_retval) override; \
NS_IMETHOD FormatStatusMessage(nsresult aStatus, const char16_t * aStatusArg, char16_t * *_retval) override; \
NS_IMETHOD FlushBundles(void) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISTRINGBUNDLESERVICE(_to) \
NS_IMETHOD CreateBundle(const char * aURLSpec, nsIStringBundle * *_retval) override { return _to CreateBundle(aURLSpec, _retval); } \
NS_IMETHOD CreateExtensibleBundle(const char * aRegistryKey, nsIStringBundle * *_retval) override { return _to CreateExtensibleBundle(aRegistryKey, _retval); } \
NS_IMETHOD FormatStatusMessage(nsresult aStatus, const char16_t * aStatusArg, char16_t * *_retval) override { return _to FormatStatusMessage(aStatus, aStatusArg, _retval); } \
NS_IMETHOD FlushBundles(void) override { return _to FlushBundles(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISTRINGBUNDLESERVICE(_to) \
NS_IMETHOD CreateBundle(const char * aURLSpec, nsIStringBundle * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateBundle(aURLSpec, _retval); } \
NS_IMETHOD CreateExtensibleBundle(const char * aRegistryKey, nsIStringBundle * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateExtensibleBundle(aRegistryKey, _retval); } \
NS_IMETHOD FormatStatusMessage(nsresult aStatus, const char16_t * aStatusArg, char16_t * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatStatusMessage(aStatus, aStatusArg, _retval); } \
NS_IMETHOD FlushBundles(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FlushBundles(); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsStringBundleService : public nsIStringBundleService
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISTRINGBUNDLESERVICE
nsStringBundleService();
private:
~nsStringBundleService();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsStringBundleService, nsIStringBundleService)
nsStringBundleService::nsStringBundleService()
{
/* member initializers and constructor code */
}
nsStringBundleService::~nsStringBundleService()
{
/* destructor code */
}
/* nsIStringBundle createBundle (in string aURLSpec); */
NS_IMETHODIMP nsStringBundleService::CreateBundle(const char * aURLSpec, nsIStringBundle * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIStringBundle createExtensibleBundle (in string aRegistryKey); */
NS_IMETHODIMP nsStringBundleService::CreateExtensibleBundle(const char * aRegistryKey, nsIStringBundle * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring formatStatusMessage (in nsresult aStatus, in wstring aStatusArg); */
NS_IMETHODIMP nsStringBundleService::FormatStatusMessage(nsresult aStatus, const char16_t * aStatusArg, char16_t * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void flushBundles (); */
NS_IMETHODIMP nsStringBundleService::FlushBundles()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIStringBundle_h__ */
|