/usr/include/thunderbird/nsIScriptableUConv.h is in thunderbird-dev 1:52.8.0-1~deb8u1.
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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIScriptableUConv.idl
*/
#ifndef __gen_nsIScriptableUConv_h__
#define __gen_nsIScriptableUConv_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIInputStream; /* forward declaration */
// {0A698C44-3BFF-11d4-9649-00C0CA135B4E}
#define NS_ISCRIPTABLEUNICODECONVERTER_CID { 0x0A698C44, 0x3BFF, 0x11d4, { 0x96, 0x49, 0x00, 0xC0, 0xCA, 0x13, 0x5B, 0x4E } }
#define NS_ISCRIPTABLEUNICODECONVERTER_CONTRACTID "@mozilla.org/intl/scriptableunicodeconverter"
/* starting interface: nsIScriptableUnicodeConverter */
#define NS_ISCRIPTABLEUNICODECONVERTER_IID_STR "f36ee324-5c1c-437f-ba10-2b4db7a18031"
#define NS_ISCRIPTABLEUNICODECONVERTER_IID \
{0xf36ee324, 0x5c1c, 0x437f, \
{ 0xba, 0x10, 0x2b, 0x4d, 0xb7, 0xa1, 0x80, 0x31 }}
class NS_NO_VTABLE nsIScriptableUnicodeConverter : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTABLEUNICODECONVERTER_IID)
/* ACString ConvertFromUnicode (in AString aSrc); */
NS_IMETHOD ConvertFromUnicode(const nsAString & aSrc, nsACString & _retval) = 0;
/* ACString Finish (); */
NS_IMETHOD Finish(nsACString & _retval) = 0;
/* AString ConvertToUnicode (in ACString aSrc); */
NS_IMETHOD ConvertToUnicode(const nsACString & aSrc, nsAString & _retval) = 0;
/* AString convertFromByteArray ([array, size_is (aCount), const] in octet aData, in unsigned long aCount); */
NS_IMETHOD ConvertFromByteArray(const uint8_t *aData, uint32_t aCount, nsAString & _retval) = 0;
/* void convertToByteArray (in AString aString, [optional] out unsigned long aLen, [array, size_is (aLen), retval] out octet aData); */
NS_IMETHOD ConvertToByteArray(const nsAString & aString, uint32_t *aLen, uint8_t **aData) = 0;
/* nsIInputStream convertToInputStream (in AString aString); */
NS_IMETHOD ConvertToInputStream(const nsAString & aString, nsIInputStream * *_retval) = 0;
/* attribute string charset; */
NS_IMETHOD GetCharset(char * *aCharset) = 0;
NS_IMETHOD SetCharset(const char * aCharset) = 0;
/* attribute boolean isInternal; */
NS_IMETHOD GetIsInternal(bool *aIsInternal) = 0;
NS_IMETHOD SetIsInternal(bool aIsInternal) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIScriptableUnicodeConverter, NS_ISCRIPTABLEUNICODECONVERTER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISCRIPTABLEUNICODECONVERTER \
NS_IMETHOD ConvertFromUnicode(const nsAString & aSrc, nsACString & _retval) override; \
NS_IMETHOD Finish(nsACString & _retval) override; \
NS_IMETHOD ConvertToUnicode(const nsACString & aSrc, nsAString & _retval) override; \
NS_IMETHOD ConvertFromByteArray(const uint8_t *aData, uint32_t aCount, nsAString & _retval) override; \
NS_IMETHOD ConvertToByteArray(const nsAString & aString, uint32_t *aLen, uint8_t **aData) override; \
NS_IMETHOD ConvertToInputStream(const nsAString & aString, nsIInputStream * *_retval) override; \
NS_IMETHOD GetCharset(char * *aCharset) override; \
NS_IMETHOD SetCharset(const char * aCharset) override; \
NS_IMETHOD GetIsInternal(bool *aIsInternal) override; \
NS_IMETHOD SetIsInternal(bool aIsInternal) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSISCRIPTABLEUNICODECONVERTER \
NS_METHOD ConvertFromUnicode(const nsAString & aSrc, nsACString & _retval); \
NS_METHOD Finish(nsACString & _retval); \
NS_METHOD ConvertToUnicode(const nsACString & aSrc, nsAString & _retval); \
NS_METHOD ConvertFromByteArray(const uint8_t *aData, uint32_t aCount, nsAString & _retval); \
NS_METHOD ConvertToByteArray(const nsAString & aString, uint32_t *aLen, uint8_t **aData); \
NS_METHOD ConvertToInputStream(const nsAString & aString, nsIInputStream * *_retval); \
NS_METHOD GetCharset(char * *aCharset); \
NS_METHOD SetCharset(const char * aCharset); \
NS_METHOD GetIsInternal(bool *aIsInternal); \
NS_METHOD SetIsInternal(bool aIsInternal);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISCRIPTABLEUNICODECONVERTER(_to) \
NS_IMETHOD ConvertFromUnicode(const nsAString & aSrc, nsACString & _retval) override { return _to ConvertFromUnicode(aSrc, _retval); } \
NS_IMETHOD Finish(nsACString & _retval) override { return _to Finish(_retval); } \
NS_IMETHOD ConvertToUnicode(const nsACString & aSrc, nsAString & _retval) override { return _to ConvertToUnicode(aSrc, _retval); } \
NS_IMETHOD ConvertFromByteArray(const uint8_t *aData, uint32_t aCount, nsAString & _retval) override { return _to ConvertFromByteArray(aData, aCount, _retval); } \
NS_IMETHOD ConvertToByteArray(const nsAString & aString, uint32_t *aLen, uint8_t **aData) override { return _to ConvertToByteArray(aString, aLen, aData); } \
NS_IMETHOD ConvertToInputStream(const nsAString & aString, nsIInputStream * *_retval) override { return _to ConvertToInputStream(aString, _retval); } \
NS_IMETHOD GetCharset(char * *aCharset) override { return _to GetCharset(aCharset); } \
NS_IMETHOD SetCharset(const char * aCharset) override { return _to SetCharset(aCharset); } \
NS_IMETHOD GetIsInternal(bool *aIsInternal) override { return _to GetIsInternal(aIsInternal); } \
NS_IMETHOD SetIsInternal(bool aIsInternal) override { return _to SetIsInternal(aIsInternal); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISCRIPTABLEUNICODECONVERTER(_to) \
NS_IMETHOD ConvertFromUnicode(const nsAString & aSrc, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ConvertFromUnicode(aSrc, _retval); } \
NS_IMETHOD Finish(nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Finish(_retval); } \
NS_IMETHOD ConvertToUnicode(const nsACString & aSrc, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ConvertToUnicode(aSrc, _retval); } \
NS_IMETHOD ConvertFromByteArray(const uint8_t *aData, uint32_t aCount, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ConvertFromByteArray(aData, aCount, _retval); } \
NS_IMETHOD ConvertToByteArray(const nsAString & aString, uint32_t *aLen, uint8_t **aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ConvertToByteArray(aString, aLen, aData); } \
NS_IMETHOD ConvertToInputStream(const nsAString & aString, nsIInputStream * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ConvertToInputStream(aString, _retval); } \
NS_IMETHOD GetCharset(char * *aCharset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharset(aCharset); } \
NS_IMETHOD SetCharset(const char * aCharset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCharset(aCharset); } \
NS_IMETHOD GetIsInternal(bool *aIsInternal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsInternal(aIsInternal); } \
NS_IMETHOD SetIsInternal(bool aIsInternal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsInternal(aIsInternal); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsScriptableUnicodeConverter : public nsIScriptableUnicodeConverter
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISCRIPTABLEUNICODECONVERTER
nsScriptableUnicodeConverter();
private:
~nsScriptableUnicodeConverter();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsScriptableUnicodeConverter, nsIScriptableUnicodeConverter)
nsScriptableUnicodeConverter::nsScriptableUnicodeConverter()
{
/* member initializers and constructor code */
}
nsScriptableUnicodeConverter::~nsScriptableUnicodeConverter()
{
/* destructor code */
}
/* ACString ConvertFromUnicode (in AString aSrc); */
NS_IMETHODIMP nsScriptableUnicodeConverter::ConvertFromUnicode(const nsAString & aSrc, nsACString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* ACString Finish (); */
NS_IMETHODIMP nsScriptableUnicodeConverter::Finish(nsACString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AString ConvertToUnicode (in ACString aSrc); */
NS_IMETHODIMP nsScriptableUnicodeConverter::ConvertToUnicode(const nsACString & aSrc, nsAString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AString convertFromByteArray ([array, size_is (aCount), const] in octet aData, in unsigned long aCount); */
NS_IMETHODIMP nsScriptableUnicodeConverter::ConvertFromByteArray(const uint8_t *aData, uint32_t aCount, nsAString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void convertToByteArray (in AString aString, [optional] out unsigned long aLen, [array, size_is (aLen), retval] out octet aData); */
NS_IMETHODIMP nsScriptableUnicodeConverter::ConvertToByteArray(const nsAString & aString, uint32_t *aLen, uint8_t **aData)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIInputStream convertToInputStream (in AString aString); */
NS_IMETHODIMP nsScriptableUnicodeConverter::ConvertToInputStream(const nsAString & aString, nsIInputStream * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute string charset; */
NS_IMETHODIMP nsScriptableUnicodeConverter::GetCharset(char * *aCharset)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsScriptableUnicodeConverter::SetCharset(const char * aCharset)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean isInternal; */
NS_IMETHODIMP nsScriptableUnicodeConverter::GetIsInternal(bool *aIsInternal)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsScriptableUnicodeConverter::SetIsInternal(bool aIsInternal)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIScriptableUConv_h__ */
|