LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsISynthVoiceRegistry.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsISynthVoiceRegistry.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsISynthVoiceRegistry_h__
       6             : #define __gen_nsISynthVoiceRegistry_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : /* For IDL files that don't want to include root IDL files. */
      14             : #ifndef NS_NO_VTABLE
      15             : #define NS_NO_VTABLE
      16             : #endif
      17             : class nsISpeechService; /* forward declaration */
      18             : 
      19             : 
      20             : /* starting interface:    nsISynthVoiceRegistry */
      21             : #define NS_ISYNTHVOICEREGISTRY_IID_STR "5d7a0b38-77e5-4ee5-897c-ce5db9b85d44"
      22             : 
      23             : #define NS_ISYNTHVOICEREGISTRY_IID \
      24             :   {0x5d7a0b38, 0x77e5, 0x4ee5, \
      25             :     { 0x89, 0x7c, 0xce, 0x5d, 0xb9, 0xb8, 0x5d, 0x44 }}
      26             : 
      27           0 : class NS_NO_VTABLE nsISynthVoiceRegistry : public nsISupports {
      28             :  public:
      29             : 
      30             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISYNTHVOICEREGISTRY_IID)
      31             : 
      32             :   /* void addVoice (in nsISpeechService aService, in DOMString aUri, in DOMString aName, in DOMString aLang, in boolean aLocalService, in boolean aQueuesUtterances); */
      33             :   NS_IMETHOD AddVoice(nsISpeechService *aService, const nsAString & aUri, const nsAString & aName, const nsAString & aLang, bool aLocalService, bool aQueuesUtterances) = 0;
      34             : 
      35             :   /* void removeVoice (in nsISpeechService aService, in DOMString aUri); */
      36             :   NS_IMETHOD RemoveVoice(nsISpeechService *aService, const nsAString & aUri) = 0;
      37             : 
      38             :   /* void notifyVoicesChanged (); */
      39             :   NS_IMETHOD NotifyVoicesChanged(void) = 0;
      40             : 
      41             :   /* void setDefaultVoice (in DOMString aUri, in boolean aIsDefault); */
      42             :   NS_IMETHOD SetDefaultVoice(const nsAString & aUri, bool aIsDefault) = 0;
      43             : 
      44             :   /* readonly attribute uint32_t voiceCount; */
      45             :   NS_IMETHOD GetVoiceCount(uint32_t *aVoiceCount) = 0;
      46             : 
      47             :   /* AString getVoice (in uint32_t aIndex); */
      48             :   NS_IMETHOD GetVoice(uint32_t aIndex, nsAString & _retval) = 0;
      49             : 
      50             :   /* bool isDefaultVoice (in DOMString aUri); */
      51             :   NS_IMETHOD IsDefaultVoice(const nsAString & aUri, bool *_retval) = 0;
      52             : 
      53             :   /* bool isLocalVoice (in DOMString aUri); */
      54             :   NS_IMETHOD IsLocalVoice(const nsAString & aUri, bool *_retval) = 0;
      55             : 
      56             :   /* AString getVoiceLang (in DOMString aUri); */
      57             :   NS_IMETHOD GetVoiceLang(const nsAString & aUri, nsAString & _retval) = 0;
      58             : 
      59             :   /* AString getVoiceName (in DOMString aUri); */
      60             :   NS_IMETHOD GetVoiceName(const nsAString & aUri, nsAString & _retval) = 0;
      61             : 
      62             : };
      63             : 
      64             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISynthVoiceRegistry, NS_ISYNTHVOICEREGISTRY_IID)
      65             : 
      66             : /* Use this macro when declaring classes that implement this interface. */
      67             : #define NS_DECL_NSISYNTHVOICEREGISTRY \
      68             :   NS_IMETHOD AddVoice(nsISpeechService *aService, const nsAString & aUri, const nsAString & aName, const nsAString & aLang, bool aLocalService, bool aQueuesUtterances) override; \
      69             :   NS_IMETHOD RemoveVoice(nsISpeechService *aService, const nsAString & aUri) override; \
      70             :   NS_IMETHOD NotifyVoicesChanged(void) override; \
      71             :   NS_IMETHOD SetDefaultVoice(const nsAString & aUri, bool aIsDefault) override; \
      72             :   NS_IMETHOD GetVoiceCount(uint32_t *aVoiceCount) override; \
      73             :   NS_IMETHOD GetVoice(uint32_t aIndex, nsAString & _retval) override; \
      74             :   NS_IMETHOD IsDefaultVoice(const nsAString & aUri, bool *_retval) override; \
      75             :   NS_IMETHOD IsLocalVoice(const nsAString & aUri, bool *_retval) override; \
      76             :   NS_IMETHOD GetVoiceLang(const nsAString & aUri, nsAString & _retval) override; \
      77             :   NS_IMETHOD GetVoiceName(const nsAString & aUri, nsAString & _retval) override; 
      78             : 
      79             : /* Use this macro when declaring the members of this interface when the
      80             :    class doesn't implement the interface. This is useful for forwarding. */
      81             : #define NS_DECL_NON_VIRTUAL_NSISYNTHVOICEREGISTRY \
      82             :   nsresult AddVoice(nsISpeechService *aService, const nsAString & aUri, const nsAString & aName, const nsAString & aLang, bool aLocalService, bool aQueuesUtterances); \
      83             :   nsresult RemoveVoice(nsISpeechService *aService, const nsAString & aUri); \
      84             :   nsresult NotifyVoicesChanged(void); \
      85             :   nsresult SetDefaultVoice(const nsAString & aUri, bool aIsDefault); \
      86             :   nsresult GetVoiceCount(uint32_t *aVoiceCount); \
      87             :   nsresult GetVoice(uint32_t aIndex, nsAString & _retval); \
      88             :   nsresult IsDefaultVoice(const nsAString & aUri, bool *_retval); \
      89             :   nsresult IsLocalVoice(const nsAString & aUri, bool *_retval); \
      90             :   nsresult GetVoiceLang(const nsAString & aUri, nsAString & _retval); \
      91             :   nsresult GetVoiceName(const nsAString & aUri, nsAString & _retval); 
      92             : 
      93             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      94             : #define NS_FORWARD_NSISYNTHVOICEREGISTRY(_to) \
      95             :   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); } \
      96             :   NS_IMETHOD RemoveVoice(nsISpeechService *aService, const nsAString & aUri) override { return _to RemoveVoice(aService, aUri); } \
      97             :   NS_IMETHOD NotifyVoicesChanged(void) override { return _to NotifyVoicesChanged(); } \
      98             :   NS_IMETHOD SetDefaultVoice(const nsAString & aUri, bool aIsDefault) override { return _to SetDefaultVoice(aUri, aIsDefault); } \
      99             :   NS_IMETHOD GetVoiceCount(uint32_t *aVoiceCount) override { return _to GetVoiceCount(aVoiceCount); } \
     100             :   NS_IMETHOD GetVoice(uint32_t aIndex, nsAString & _retval) override { return _to GetVoice(aIndex, _retval); } \
     101             :   NS_IMETHOD IsDefaultVoice(const nsAString & aUri, bool *_retval) override { return _to IsDefaultVoice(aUri, _retval); } \
     102             :   NS_IMETHOD IsLocalVoice(const nsAString & aUri, bool *_retval) override { return _to IsLocalVoice(aUri, _retval); } \
     103             :   NS_IMETHOD GetVoiceLang(const nsAString & aUri, nsAString & _retval) override { return _to GetVoiceLang(aUri, _retval); } \
     104             :   NS_IMETHOD GetVoiceName(const nsAString & aUri, nsAString & _retval) override { return _to GetVoiceName(aUri, _retval); } 
     105             : 
     106             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     107             : #define NS_FORWARD_SAFE_NSISYNTHVOICEREGISTRY(_to) \
     108             :   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); } \
     109             :   NS_IMETHOD RemoveVoice(nsISpeechService *aService, const nsAString & aUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveVoice(aService, aUri); } \
     110             :   NS_IMETHOD NotifyVoicesChanged(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyVoicesChanged(); } \
     111             :   NS_IMETHOD SetDefaultVoice(const nsAString & aUri, bool aIsDefault) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultVoice(aUri, aIsDefault); } \
     112             :   NS_IMETHOD GetVoiceCount(uint32_t *aVoiceCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVoiceCount(aVoiceCount); } \
     113             :   NS_IMETHOD GetVoice(uint32_t aIndex, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVoice(aIndex, _retval); } \
     114             :   NS_IMETHOD IsDefaultVoice(const nsAString & aUri, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsDefaultVoice(aUri, _retval); } \
     115             :   NS_IMETHOD IsLocalVoice(const nsAString & aUri, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsLocalVoice(aUri, _retval); } \
     116             :   NS_IMETHOD GetVoiceLang(const nsAString & aUri, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVoiceLang(aUri, _retval); } \
     117             :   NS_IMETHOD GetVoiceName(const nsAString & aUri, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVoiceName(aUri, _retval); } 
     118             : 
     119             : #if 0
     120             : /* Use the code below as a template for the implementation class for this interface. */
     121             : 
     122             : /* Header file */
     123             : class nsSynthVoiceRegistry : public nsISynthVoiceRegistry
     124             : {
     125             : public:
     126             :   NS_DECL_ISUPPORTS
     127             :   NS_DECL_NSISYNTHVOICEREGISTRY
     128             : 
     129             :   nsSynthVoiceRegistry();
     130             : 
     131             : private:
     132             :   ~nsSynthVoiceRegistry();
     133             : 
     134             : protected:
     135             :   /* additional members */
     136             : };
     137             : 
     138             : /* Implementation file */
     139             : NS_IMPL_ISUPPORTS(nsSynthVoiceRegistry, nsISynthVoiceRegistry)
     140             : 
     141             : nsSynthVoiceRegistry::nsSynthVoiceRegistry()
     142             : {
     143             :   /* member initializers and constructor code */
     144             : }
     145             : 
     146             : nsSynthVoiceRegistry::~nsSynthVoiceRegistry()
     147             : {
     148             :   /* destructor code */
     149             : }
     150             : 
     151             : /* void addVoice (in nsISpeechService aService, in DOMString aUri, in DOMString aName, in DOMString aLang, in boolean aLocalService, in boolean aQueuesUtterances); */
     152             : NS_IMETHODIMP nsSynthVoiceRegistry::AddVoice(nsISpeechService *aService, const nsAString & aUri, const nsAString & aName, const nsAString & aLang, bool aLocalService, bool aQueuesUtterances)
     153             : {
     154             :     return NS_ERROR_NOT_IMPLEMENTED;
     155             : }
     156             : 
     157             : /* void removeVoice (in nsISpeechService aService, in DOMString aUri); */
     158             : NS_IMETHODIMP nsSynthVoiceRegistry::RemoveVoice(nsISpeechService *aService, const nsAString & aUri)
     159             : {
     160             :     return NS_ERROR_NOT_IMPLEMENTED;
     161             : }
     162             : 
     163             : /* void notifyVoicesChanged (); */
     164             : NS_IMETHODIMP nsSynthVoiceRegistry::NotifyVoicesChanged()
     165             : {
     166             :     return NS_ERROR_NOT_IMPLEMENTED;
     167             : }
     168             : 
     169             : /* void setDefaultVoice (in DOMString aUri, in boolean aIsDefault); */
     170             : NS_IMETHODIMP nsSynthVoiceRegistry::SetDefaultVoice(const nsAString & aUri, bool aIsDefault)
     171             : {
     172             :     return NS_ERROR_NOT_IMPLEMENTED;
     173             : }
     174             : 
     175             : /* readonly attribute uint32_t voiceCount; */
     176             : NS_IMETHODIMP nsSynthVoiceRegistry::GetVoiceCount(uint32_t *aVoiceCount)
     177             : {
     178             :     return NS_ERROR_NOT_IMPLEMENTED;
     179             : }
     180             : 
     181             : /* AString getVoice (in uint32_t aIndex); */
     182             : NS_IMETHODIMP nsSynthVoiceRegistry::GetVoice(uint32_t aIndex, nsAString & _retval)
     183             : {
     184             :     return NS_ERROR_NOT_IMPLEMENTED;
     185             : }
     186             : 
     187             : /* bool isDefaultVoice (in DOMString aUri); */
     188             : NS_IMETHODIMP nsSynthVoiceRegistry::IsDefaultVoice(const nsAString & aUri, bool *_retval)
     189             : {
     190             :     return NS_ERROR_NOT_IMPLEMENTED;
     191             : }
     192             : 
     193             : /* bool isLocalVoice (in DOMString aUri); */
     194             : NS_IMETHODIMP nsSynthVoiceRegistry::IsLocalVoice(const nsAString & aUri, bool *_retval)
     195             : {
     196             :     return NS_ERROR_NOT_IMPLEMENTED;
     197             : }
     198             : 
     199             : /* AString getVoiceLang (in DOMString aUri); */
     200             : NS_IMETHODIMP nsSynthVoiceRegistry::GetVoiceLang(const nsAString & aUri, nsAString & _retval)
     201             : {
     202             :     return NS_ERROR_NOT_IMPLEMENTED;
     203             : }
     204             : 
     205             : /* AString getVoiceName (in DOMString aUri); */
     206             : NS_IMETHODIMP nsSynthVoiceRegistry::GetVoiceName(const nsAString & aUri, nsAString & _retval)
     207             : {
     208             :     return NS_ERROR_NOT_IMPLEMENTED;
     209             : }
     210             : 
     211             : /* End of implementation class template. */
     212             : #endif
     213             : 
     214             : #define NS_SYNTHVOICEREGISTRY_CID                   \
     215             :   { /* {7090524d-5574-4492-a77f-d8d558ced59d} */       \
     216             :     0x7090524d,                                        \
     217             :     0x5574,                                            \
     218             :     0x4492,                                            \
     219             :     { 0xa7, 0x7f, 0xd8, 0xd5, 0x58, 0xce, 0xd5, 0x9d } \
     220             :   }
     221             : #define NS_SYNTHVOICEREGISTRY_CONTRACTID \
     222             :     "@mozilla.org/synth-voice-registry;1"
     223             : #define NS_SYNTHVOICEREGISTRY_CLASSNAME \
     224             :     "Speech Synthesis Voice Registry"
     225             : 
     226             : #endif /* __gen_nsISynthVoiceRegistry_h__ */

Generated by: LCOV version 1.13