/usr/include/thunderbird/nsISynthVoiceRegistry.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 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsISynthVoiceRegistry.idl
*/
#ifndef __gen_nsISynthVoiceRegistry_h__
#define __gen_nsISynthVoiceRegistry_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 nsISpeechService; /* forward declaration */
/* starting interface: nsISynthVoiceRegistry */
#define NS_ISYNTHVOICEREGISTRY_IID_STR "5d7a0b38-77e5-4ee5-897c-ce5db9b85d44"
#define NS_ISYNTHVOICEREGISTRY_IID \
{0x5d7a0b38, 0x77e5, 0x4ee5, \
{ 0x89, 0x7c, 0xce, 0x5d, 0xb9, 0xb8, 0x5d, 0x44 }}
class NS_NO_VTABLE nsISynthVoiceRegistry : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISYNTHVOICEREGISTRY_IID)
/* void addVoice (in nsISpeechService aService, in DOMString aUri, in DOMString aName, in DOMString aLang, in boolean aLocalService, in boolean aQueuesUtterances); */
NS_IMETHOD AddVoice(nsISpeechService *aService, const nsAString & aUri, const nsAString & aName, const nsAString & aLang, bool aLocalService, bool aQueuesUtterances) = 0;
/* void removeVoice (in nsISpeechService aService, in DOMString aUri); */
NS_IMETHOD RemoveVoice(nsISpeechService *aService, const nsAString & aUri) = 0;
/* void notifyVoicesChanged (); */
NS_IMETHOD NotifyVoicesChanged(void) = 0;
/* void setDefaultVoice (in DOMString aUri, in boolean aIsDefault); */
NS_IMETHOD SetDefaultVoice(const nsAString & aUri, bool aIsDefault) = 0;
/* readonly attribute uint32_t voiceCount; */
NS_IMETHOD GetVoiceCount(uint32_t *aVoiceCount) = 0;
/* AString getVoice (in uint32_t aIndex); */
NS_IMETHOD GetVoice(uint32_t aIndex, nsAString & _retval) = 0;
/* bool isDefaultVoice (in DOMString aUri); */
NS_IMETHOD IsDefaultVoice(const nsAString & aUri, bool *_retval) = 0;
/* bool isLocalVoice (in DOMString aUri); */
NS_IMETHOD IsLocalVoice(const nsAString & aUri, bool *_retval) = 0;
/* AString getVoiceLang (in DOMString aUri); */
NS_IMETHOD GetVoiceLang(const nsAString & aUri, nsAString & _retval) = 0;
/* AString getVoiceName (in DOMString aUri); */
NS_IMETHOD GetVoiceName(const nsAString & aUri, nsAString & _retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsISynthVoiceRegistry, NS_ISYNTHVOICEREGISTRY_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISYNTHVOICEREGISTRY \
NS_IMETHOD AddVoice(nsISpeechService *aService, const nsAString & aUri, const nsAString & aName, const nsAString & aLang, bool aLocalService, bool aQueuesUtterances) override; \
NS_IMETHOD RemoveVoice(nsISpeechService *aService, const nsAString & aUri) override; \
NS_IMETHOD NotifyVoicesChanged(void) override; \
NS_IMETHOD SetDefaultVoice(const nsAString & aUri, bool aIsDefault) override; \
NS_IMETHOD GetVoiceCount(uint32_t *aVoiceCount) override; \
NS_IMETHOD GetVoice(uint32_t aIndex, nsAString & _retval) override; \
NS_IMETHOD IsDefaultVoice(const nsAString & aUri, bool *_retval) override; \
NS_IMETHOD IsLocalVoice(const nsAString & aUri, bool *_retval) override; \
NS_IMETHOD GetVoiceLang(const nsAString & aUri, nsAString & _retval) override; \
NS_IMETHOD GetVoiceName(const nsAString & aUri, nsAString & _retval) 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_NSISYNTHVOICEREGISTRY \
NS_METHOD AddVoice(nsISpeechService *aService, const nsAString & aUri, const nsAString & aName, const nsAString & aLang, bool aLocalService, bool aQueuesUtterances); \
NS_METHOD RemoveVoice(nsISpeechService *aService, const nsAString & aUri); \
NS_METHOD NotifyVoicesChanged(void); \
NS_METHOD SetDefaultVoice(const nsAString & aUri, bool aIsDefault); \
NS_METHOD GetVoiceCount(uint32_t *aVoiceCount); \
NS_METHOD GetVoice(uint32_t aIndex, nsAString & _retval); \
NS_METHOD IsDefaultVoice(const nsAString & aUri, bool *_retval); \
NS_METHOD IsLocalVoice(const nsAString & aUri, bool *_retval); \
NS_METHOD GetVoiceLang(const nsAString & aUri, nsAString & _retval); \
NS_METHOD GetVoiceName(const nsAString & aUri, nsAString & _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISYNTHVOICEREGISTRY(_to) \
NS_IMETHOD AddVoice(nsISpeechService *aService, const nsAString & aUri, const nsAString & aName, const nsAString & aLang, bool aLocalService, bool aQueuesUtterances) override { return _to AddVoice(aService, aUri, aName, aLang, aLocalService, aQueuesUtterances); } \
NS_IMETHOD RemoveVoice(nsISpeechService *aService, const nsAString & aUri) override { return _to RemoveVoice(aService, aUri); } \
NS_IMETHOD NotifyVoicesChanged(void) override { return _to NotifyVoicesChanged(); } \
NS_IMETHOD SetDefaultVoice(const nsAString & aUri, bool aIsDefault) override { return _to SetDefaultVoice(aUri, aIsDefault); } \
NS_IMETHOD GetVoiceCount(uint32_t *aVoiceCount) override { return _to GetVoiceCount(aVoiceCount); } \
NS_IMETHOD GetVoice(uint32_t aIndex, nsAString & _retval) override { return _to GetVoice(aIndex, _retval); } \
NS_IMETHOD IsDefaultVoice(const nsAString & aUri, bool *_retval) override { return _to IsDefaultVoice(aUri, _retval); } \
NS_IMETHOD IsLocalVoice(const nsAString & aUri, bool *_retval) override { return _to IsLocalVoice(aUri, _retval); } \
NS_IMETHOD GetVoiceLang(const nsAString & aUri, nsAString & _retval) override { return _to GetVoiceLang(aUri, _retval); } \
NS_IMETHOD GetVoiceName(const nsAString & aUri, nsAString & _retval) override { return _to GetVoiceName(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_NSISYNTHVOICEREGISTRY(_to) \
NS_IMETHOD AddVoice(nsISpeechService *aService, const nsAString & aUri, const nsAString & aName, const nsAString & aLang, bool aLocalService, bool aQueuesUtterances) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddVoice(aService, aUri, aName, aLang, aLocalService, aQueuesUtterances); } \
NS_IMETHOD RemoveVoice(nsISpeechService *aService, const nsAString & aUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveVoice(aService, aUri); } \
NS_IMETHOD NotifyVoicesChanged(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyVoicesChanged(); } \
NS_IMETHOD SetDefaultVoice(const nsAString & aUri, bool aIsDefault) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultVoice(aUri, aIsDefault); } \
NS_IMETHOD GetVoiceCount(uint32_t *aVoiceCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVoiceCount(aVoiceCount); } \
NS_IMETHOD GetVoice(uint32_t aIndex, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVoice(aIndex, _retval); } \
NS_IMETHOD IsDefaultVoice(const nsAString & aUri, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsDefaultVoice(aUri, _retval); } \
NS_IMETHOD IsLocalVoice(const nsAString & aUri, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsLocalVoice(aUri, _retval); } \
NS_IMETHOD GetVoiceLang(const nsAString & aUri, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVoiceLang(aUri, _retval); } \
NS_IMETHOD GetVoiceName(const nsAString & aUri, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVoiceName(aUri, _retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsSynthVoiceRegistry : public nsISynthVoiceRegistry
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISYNTHVOICEREGISTRY
nsSynthVoiceRegistry();
private:
~nsSynthVoiceRegistry();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsSynthVoiceRegistry, nsISynthVoiceRegistry)
nsSynthVoiceRegistry::nsSynthVoiceRegistry()
{
/* member initializers and constructor code */
}
nsSynthVoiceRegistry::~nsSynthVoiceRegistry()
{
/* destructor code */
}
/* void addVoice (in nsISpeechService aService, in DOMString aUri, in DOMString aName, in DOMString aLang, in boolean aLocalService, in boolean aQueuesUtterances); */
NS_IMETHODIMP nsSynthVoiceRegistry::AddVoice(nsISpeechService *aService, const nsAString & aUri, const nsAString & aName, const nsAString & aLang, bool aLocalService, bool aQueuesUtterances)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeVoice (in nsISpeechService aService, in DOMString aUri); */
NS_IMETHODIMP nsSynthVoiceRegistry::RemoveVoice(nsISpeechService *aService, const nsAString & aUri)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyVoicesChanged (); */
NS_IMETHODIMP nsSynthVoiceRegistry::NotifyVoicesChanged()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setDefaultVoice (in DOMString aUri, in boolean aIsDefault); */
NS_IMETHODIMP nsSynthVoiceRegistry::SetDefaultVoice(const nsAString & aUri, bool aIsDefault)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute uint32_t voiceCount; */
NS_IMETHODIMP nsSynthVoiceRegistry::GetVoiceCount(uint32_t *aVoiceCount)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AString getVoice (in uint32_t aIndex); */
NS_IMETHODIMP nsSynthVoiceRegistry::GetVoice(uint32_t aIndex, nsAString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* bool isDefaultVoice (in DOMString aUri); */
NS_IMETHODIMP nsSynthVoiceRegistry::IsDefaultVoice(const nsAString & aUri, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* bool isLocalVoice (in DOMString aUri); */
NS_IMETHODIMP nsSynthVoiceRegistry::IsLocalVoice(const nsAString & aUri, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AString getVoiceLang (in DOMString aUri); */
NS_IMETHODIMP nsSynthVoiceRegistry::GetVoiceLang(const nsAString & aUri, nsAString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AString getVoiceName (in DOMString aUri); */
NS_IMETHODIMP nsSynthVoiceRegistry::GetVoiceName(const nsAString & aUri, nsAString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#define NS_SYNTHVOICEREGISTRY_CID \
{ /* {7090524d-5574-4492-a77f-d8d558ced59d} */ \
0x7090524d, \
0x5574, \
0x4492, \
{ 0xa7, 0x7f, 0xd8, 0xd5, 0x58, 0xce, 0xd5, 0x9d } \
}
#define NS_SYNTHVOICEREGISTRY_CONTRACTID \
"@mozilla.org/synth-voice-registry;1"
#define NS_SYNTHVOICEREGISTRY_CLASSNAME \
"Speech Synthesis Voice Registry"
#endif /* __gen_nsISynthVoiceRegistry_h__ */
|