LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsISpeechRecognitionService.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/nsISpeechRecognitionService.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsISpeechRecognitionService_h__
       6             : #define __gen_nsISpeechRecognitionService_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             : #include "mozilla/WeakPtr.h"
      18             : namespace mozilla {
      19             : class AudioSegment;
      20             : namespace dom {
      21             : class SpeechRecognition;
      22             : class SpeechRecognitionResultList;
      23             : class SpeechGrammarList;
      24             : class SpeechGrammar;
      25             : }
      26             : }
      27             : 
      28             : /* starting interface:    nsISpeechGrammarCompilationCallback */
      29             : #define NS_ISPEECHGRAMMARCOMPILATIONCALLBACK_IID_STR "6fcb6ee8-a6db-49ba-9f06-355d7ee18ea7"
      30             : 
      31             : #define NS_ISPEECHGRAMMARCOMPILATIONCALLBACK_IID \
      32             :   {0x6fcb6ee8, 0xa6db, 0x49ba, \
      33             :     { 0x9f, 0x06, 0x35, 0x5d, 0x7e, 0xe1, 0x8e, 0xa7 }}
      34             : 
      35             : class NS_NO_VTABLE nsISpeechGrammarCompilationCallback : public nsISupports {
      36             :  public:
      37             : 
      38             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISPEECHGRAMMARCOMPILATIONCALLBACK_IID)
      39             : 
      40             :   /* void grammarCompilationEnd (in SpeechGrammarPtr grammarObject, in boolean success); */
      41             :   NS_IMETHOD GrammarCompilationEnd(mozilla::dom::SpeechGrammar *grammarObject, bool success) = 0;
      42             : 
      43             : };
      44             : 
      45             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISpeechGrammarCompilationCallback, NS_ISPEECHGRAMMARCOMPILATIONCALLBACK_IID)
      46             : 
      47             : /* Use this macro when declaring classes that implement this interface. */
      48             : #define NS_DECL_NSISPEECHGRAMMARCOMPILATIONCALLBACK \
      49             :   NS_IMETHOD GrammarCompilationEnd(mozilla::dom::SpeechGrammar *grammarObject, bool success) override; 
      50             : 
      51             : /* Use this macro when declaring the members of this interface when the
      52             :    class doesn't implement the interface. This is useful for forwarding. */
      53             : #define NS_DECL_NON_VIRTUAL_NSISPEECHGRAMMARCOMPILATIONCALLBACK \
      54             :   nsresult GrammarCompilationEnd(mozilla::dom::SpeechGrammar *grammarObject, bool success); 
      55             : 
      56             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      57             : #define NS_FORWARD_NSISPEECHGRAMMARCOMPILATIONCALLBACK(_to) \
      58             :   NS_IMETHOD GrammarCompilationEnd(mozilla::dom::SpeechGrammar *grammarObject, bool success) override { return _to GrammarCompilationEnd(grammarObject, success); } 
      59             : 
      60             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      61             : #define NS_FORWARD_SAFE_NSISPEECHGRAMMARCOMPILATIONCALLBACK(_to) \
      62             :   NS_IMETHOD GrammarCompilationEnd(mozilla::dom::SpeechGrammar *grammarObject, bool success) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GrammarCompilationEnd(grammarObject, success); } 
      63             : 
      64             : #if 0
      65             : /* Use the code below as a template for the implementation class for this interface. */
      66             : 
      67             : /* Header file */
      68             : class nsSpeechGrammarCompilationCallback : public nsISpeechGrammarCompilationCallback
      69             : {
      70             : public:
      71             :   NS_DECL_ISUPPORTS
      72             :   NS_DECL_NSISPEECHGRAMMARCOMPILATIONCALLBACK
      73             : 
      74             :   nsSpeechGrammarCompilationCallback();
      75             : 
      76             : private:
      77             :   ~nsSpeechGrammarCompilationCallback();
      78             : 
      79             : protected:
      80             :   /* additional members */
      81             : };
      82             : 
      83             : /* Implementation file */
      84             : NS_IMPL_ISUPPORTS(nsSpeechGrammarCompilationCallback, nsISpeechGrammarCompilationCallback)
      85             : 
      86             : nsSpeechGrammarCompilationCallback::nsSpeechGrammarCompilationCallback()
      87             : {
      88             :   /* member initializers and constructor code */
      89             : }
      90             : 
      91             : nsSpeechGrammarCompilationCallback::~nsSpeechGrammarCompilationCallback()
      92             : {
      93             :   /* destructor code */
      94             : }
      95             : 
      96             : /* void grammarCompilationEnd (in SpeechGrammarPtr grammarObject, in boolean success); */
      97             : NS_IMETHODIMP nsSpeechGrammarCompilationCallback::GrammarCompilationEnd(mozilla::dom::SpeechGrammar *grammarObject, bool success)
      98             : {
      99             :     return NS_ERROR_NOT_IMPLEMENTED;
     100             : }
     101             : 
     102             : /* End of implementation class template. */
     103             : #endif
     104             : 
     105             : 
     106             : /* starting interface:    nsISpeechRecognitionService */
     107             : #define NS_ISPEECHRECOGNITIONSERVICE_IID_STR "8e97f287-f322-44e8-8888-8344fa408ef8"
     108             : 
     109             : #define NS_ISPEECHRECOGNITIONSERVICE_IID \
     110             :   {0x8e97f287, 0xf322, 0x44e8, \
     111             :     { 0x88, 0x88, 0x83, 0x44, 0xfa, 0x40, 0x8e, 0xf8 }}
     112             : 
     113           0 : class NS_NO_VTABLE nsISpeechRecognitionService : public nsISupports {
     114             :  public:
     115             : 
     116             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISPEECHRECOGNITIONSERVICE_IID)
     117             : 
     118             :   /* void initialize (in SpeechRecognitionWeakPtr aSpeechRecognition); */
     119             :   NS_IMETHOD Initialize(mozilla::WeakPtr<mozilla::dom::SpeechRecognition> aSpeechRecognition) = 0;
     120             : 
     121             :   /* void processAudioSegment (in AudioSegmentPtr aAudioSegment, in long aSampleRate); */
     122             :   NS_IMETHOD ProcessAudioSegment(mozilla::AudioSegment *aAudioSegment, int32_t aSampleRate) = 0;
     123             : 
     124             :   /* void validateAndSetGrammarList (in SpeechGrammarPtr aSpeechGrammar, in nsISpeechGrammarCompilationCallback aCallback); */
     125             :   NS_IMETHOD ValidateAndSetGrammarList(mozilla::dom::SpeechGrammar *aSpeechGrammar, nsISpeechGrammarCompilationCallback *aCallback) = 0;
     126             : 
     127             :   /* void soundEnd (); */
     128             :   NS_IMETHOD SoundEnd(void) = 0;
     129             : 
     130             :   /* void abort (); */
     131             :   NS_IMETHOD Abort(void) = 0;
     132             : 
     133             : };
     134             : 
     135             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISpeechRecognitionService, NS_ISPEECHRECOGNITIONSERVICE_IID)
     136             : 
     137             : /* Use this macro when declaring classes that implement this interface. */
     138             : #define NS_DECL_NSISPEECHRECOGNITIONSERVICE \
     139             :   NS_IMETHOD Initialize(mozilla::WeakPtr<mozilla::dom::SpeechRecognition> aSpeechRecognition) override; \
     140             :   NS_IMETHOD ProcessAudioSegment(mozilla::AudioSegment *aAudioSegment, int32_t aSampleRate) override; \
     141             :   NS_IMETHOD ValidateAndSetGrammarList(mozilla::dom::SpeechGrammar *aSpeechGrammar, nsISpeechGrammarCompilationCallback *aCallback) override; \
     142             :   NS_IMETHOD SoundEnd(void) override; \
     143             :   NS_IMETHOD Abort(void) override; 
     144             : 
     145             : /* Use this macro when declaring the members of this interface when the
     146             :    class doesn't implement the interface. This is useful for forwarding. */
     147             : #define NS_DECL_NON_VIRTUAL_NSISPEECHRECOGNITIONSERVICE \
     148             :   nsresult Initialize(mozilla::WeakPtr<mozilla::dom::SpeechRecognition> aSpeechRecognition); \
     149             :   nsresult ProcessAudioSegment(mozilla::AudioSegment *aAudioSegment, int32_t aSampleRate); \
     150             :   nsresult ValidateAndSetGrammarList(mozilla::dom::SpeechGrammar *aSpeechGrammar, nsISpeechGrammarCompilationCallback *aCallback); \
     151             :   nsresult SoundEnd(void); \
     152             :   nsresult Abort(void); 
     153             : 
     154             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     155             : #define NS_FORWARD_NSISPEECHRECOGNITIONSERVICE(_to) \
     156             :   NS_IMETHOD Initialize(mozilla::WeakPtr<mozilla::dom::SpeechRecognition> aSpeechRecognition) override { return _to Initialize(aSpeechRecognition); } \
     157             :   NS_IMETHOD ProcessAudioSegment(mozilla::AudioSegment *aAudioSegment, int32_t aSampleRate) override { return _to ProcessAudioSegment(aAudioSegment, aSampleRate); } \
     158             :   NS_IMETHOD ValidateAndSetGrammarList(mozilla::dom::SpeechGrammar *aSpeechGrammar, nsISpeechGrammarCompilationCallback *aCallback) override { return _to ValidateAndSetGrammarList(aSpeechGrammar, aCallback); } \
     159             :   NS_IMETHOD SoundEnd(void) override { return _to SoundEnd(); } \
     160             :   NS_IMETHOD Abort(void) override { return _to Abort(); } 
     161             : 
     162             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     163             : #define NS_FORWARD_SAFE_NSISPEECHRECOGNITIONSERVICE(_to) \
     164             :   NS_IMETHOD Initialize(mozilla::WeakPtr<mozilla::dom::SpeechRecognition> aSpeechRecognition) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Initialize(aSpeechRecognition); } \
     165             :   NS_IMETHOD ProcessAudioSegment(mozilla::AudioSegment *aAudioSegment, int32_t aSampleRate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ProcessAudioSegment(aAudioSegment, aSampleRate); } \
     166             :   NS_IMETHOD ValidateAndSetGrammarList(mozilla::dom::SpeechGrammar *aSpeechGrammar, nsISpeechGrammarCompilationCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ValidateAndSetGrammarList(aSpeechGrammar, aCallback); } \
     167             :   NS_IMETHOD SoundEnd(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SoundEnd(); } \
     168             :   NS_IMETHOD Abort(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Abort(); } 
     169             : 
     170             : #if 0
     171             : /* Use the code below as a template for the implementation class for this interface. */
     172             : 
     173             : /* Header file */
     174             : class nsSpeechRecognitionService : public nsISpeechRecognitionService
     175             : {
     176             : public:
     177             :   NS_DECL_ISUPPORTS
     178             :   NS_DECL_NSISPEECHRECOGNITIONSERVICE
     179             : 
     180             :   nsSpeechRecognitionService();
     181             : 
     182             : private:
     183             :   ~nsSpeechRecognitionService();
     184             : 
     185             : protected:
     186             :   /* additional members */
     187             : };
     188             : 
     189             : /* Implementation file */
     190             : NS_IMPL_ISUPPORTS(nsSpeechRecognitionService, nsISpeechRecognitionService)
     191             : 
     192             : nsSpeechRecognitionService::nsSpeechRecognitionService()
     193             : {
     194             :   /* member initializers and constructor code */
     195             : }
     196             : 
     197             : nsSpeechRecognitionService::~nsSpeechRecognitionService()
     198             : {
     199             :   /* destructor code */
     200             : }
     201             : 
     202             : /* void initialize (in SpeechRecognitionWeakPtr aSpeechRecognition); */
     203             : NS_IMETHODIMP nsSpeechRecognitionService::Initialize(mozilla::WeakPtr<mozilla::dom::SpeechRecognition> aSpeechRecognition)
     204             : {
     205             :     return NS_ERROR_NOT_IMPLEMENTED;
     206             : }
     207             : 
     208             : /* void processAudioSegment (in AudioSegmentPtr aAudioSegment, in long aSampleRate); */
     209             : NS_IMETHODIMP nsSpeechRecognitionService::ProcessAudioSegment(mozilla::AudioSegment *aAudioSegment, int32_t aSampleRate)
     210             : {
     211             :     return NS_ERROR_NOT_IMPLEMENTED;
     212             : }
     213             : 
     214             : /* void validateAndSetGrammarList (in SpeechGrammarPtr aSpeechGrammar, in nsISpeechGrammarCompilationCallback aCallback); */
     215             : NS_IMETHODIMP nsSpeechRecognitionService::ValidateAndSetGrammarList(mozilla::dom::SpeechGrammar *aSpeechGrammar, nsISpeechGrammarCompilationCallback *aCallback)
     216             : {
     217             :     return NS_ERROR_NOT_IMPLEMENTED;
     218             : }
     219             : 
     220             : /* void soundEnd (); */
     221             : NS_IMETHODIMP nsSpeechRecognitionService::SoundEnd()
     222             : {
     223             :     return NS_ERROR_NOT_IMPLEMENTED;
     224             : }
     225             : 
     226             : /* void abort (); */
     227             : NS_IMETHODIMP nsSpeechRecognitionService::Abort()
     228             : {
     229             :     return NS_ERROR_NOT_IMPLEMENTED;
     230             : }
     231             : 
     232             : /* End of implementation class template. */
     233             : #endif
     234             : 
     235             : #define NS_SPEECH_RECOGNITION_SERVICE_CONTRACTID_PREFIX "@mozilla.org/webspeech/service;1?name="
     236             : 
     237             : #endif /* __gen_nsISpeechRecognitionService_h__ */

Generated by: LCOV version 1.13