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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/mozIPersonalDictionary.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_mozIPersonalDictionary_h__
       6             : #define __gen_mozIPersonalDictionary_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 nsIStringEnumerator; /* forward declaration */
      18             : 
      19             : 
      20             : /* starting interface:    mozIPersonalDictionary */
      21             : #define MOZIPERSONALDICTIONARY_IID_STR "7ef52eaf-b7e1-462b-87e2-5d1dbaca9048"
      22             : 
      23             : #define MOZIPERSONALDICTIONARY_IID \
      24             :   {0x7ef52eaf, 0xb7e1, 0x462b, \
      25             :     { 0x87, 0xe2, 0x5d, 0x1d, 0xba, 0xca, 0x90, 0x48 }}
      26             : 
      27           1 : class NS_NO_VTABLE mozIPersonalDictionary : public nsISupports {
      28             :  public:
      29             : 
      30             :   NS_DECLARE_STATIC_IID_ACCESSOR(MOZIPERSONALDICTIONARY_IID)
      31             : 
      32             :   /* void load (); */
      33             :   NS_IMETHOD Load(void) = 0;
      34             : 
      35             :   /* void save (); */
      36             :   NS_IMETHOD Save(void) = 0;
      37             : 
      38             :   /* readonly attribute nsIStringEnumerator wordList; */
      39             :   NS_IMETHOD GetWordList(nsIStringEnumerator * *aWordList) = 0;
      40             : 
      41             :   /* boolean check (in wstring word, in wstring lang); */
      42             :   NS_IMETHOD Check(const char16_t * word, const char16_t * lang, bool *_retval) = 0;
      43             : 
      44             :   /* void addWord (in wstring word, in wstring lang); */
      45             :   NS_IMETHOD AddWord(const char16_t * word, const char16_t * lang) = 0;
      46             : 
      47             :   /* void removeWord (in wstring word, in wstring lang); */
      48             :   NS_IMETHOD RemoveWord(const char16_t * word, const char16_t * lang) = 0;
      49             : 
      50             :   /* void ignoreWord (in wstring word); */
      51             :   NS_IMETHOD IgnoreWord(const char16_t * word) = 0;
      52             : 
      53             :   /* void endSession (); */
      54             :   NS_IMETHOD EndSession(void) = 0;
      55             : 
      56             :   /* void addCorrection (in wstring word, in wstring correction, in wstring lang); */
      57             :   NS_IMETHOD AddCorrection(const char16_t * word, const char16_t * correction, const char16_t * lang) = 0;
      58             : 
      59             :   /* void removeCorrection (in wstring word, in wstring correction, in wstring lang); */
      60             :   NS_IMETHOD RemoveCorrection(const char16_t * word, const char16_t * correction, const char16_t * lang) = 0;
      61             : 
      62             :   /* void getCorrection (in wstring word, [array, size_is (count)] out wstring words, out uint32_t count); */
      63             :   NS_IMETHOD GetCorrection(const char16_t * word, char16_t * **words, uint32_t *count) = 0;
      64             : 
      65             : };
      66             : 
      67             :   NS_DEFINE_STATIC_IID_ACCESSOR(mozIPersonalDictionary, MOZIPERSONALDICTIONARY_IID)
      68             : 
      69             : /* Use this macro when declaring classes that implement this interface. */
      70             : #define NS_DECL_MOZIPERSONALDICTIONARY \
      71             :   NS_IMETHOD Load(void) override; \
      72             :   NS_IMETHOD Save(void) override; \
      73             :   NS_IMETHOD GetWordList(nsIStringEnumerator * *aWordList) override; \
      74             :   NS_IMETHOD Check(const char16_t * word, const char16_t * lang, bool *_retval) override; \
      75             :   NS_IMETHOD AddWord(const char16_t * word, const char16_t * lang) override; \
      76             :   NS_IMETHOD RemoveWord(const char16_t * word, const char16_t * lang) override; \
      77             :   NS_IMETHOD IgnoreWord(const char16_t * word) override; \
      78             :   NS_IMETHOD EndSession(void) override; \
      79             :   NS_IMETHOD AddCorrection(const char16_t * word, const char16_t * correction, const char16_t * lang) override; \
      80             :   NS_IMETHOD RemoveCorrection(const char16_t * word, const char16_t * correction, const char16_t * lang) override; \
      81             :   NS_IMETHOD GetCorrection(const char16_t * word, char16_t * **words, uint32_t *count) override; 
      82             : 
      83             : /* Use this macro when declaring the members of this interface when the
      84             :    class doesn't implement the interface. This is useful for forwarding. */
      85             : #define NS_DECL_NON_VIRTUAL_MOZIPERSONALDICTIONARY \
      86             :   nsresult Load(void); \
      87             :   nsresult Save(void); \
      88             :   nsresult GetWordList(nsIStringEnumerator * *aWordList); \
      89             :   nsresult Check(const char16_t * word, const char16_t * lang, bool *_retval); \
      90             :   nsresult AddWord(const char16_t * word, const char16_t * lang); \
      91             :   nsresult RemoveWord(const char16_t * word, const char16_t * lang); \
      92             :   nsresult IgnoreWord(const char16_t * word); \
      93             :   nsresult EndSession(void); \
      94             :   nsresult AddCorrection(const char16_t * word, const char16_t * correction, const char16_t * lang); \
      95             :   nsresult RemoveCorrection(const char16_t * word, const char16_t * correction, const char16_t * lang); \
      96             :   nsresult GetCorrection(const char16_t * word, char16_t * **words, uint32_t *count); 
      97             : 
      98             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      99             : #define NS_FORWARD_MOZIPERSONALDICTIONARY(_to) \
     100             :   NS_IMETHOD Load(void) override { return _to Load(); } \
     101             :   NS_IMETHOD Save(void) override { return _to Save(); } \
     102             :   NS_IMETHOD GetWordList(nsIStringEnumerator * *aWordList) override { return _to GetWordList(aWordList); } \
     103             :   NS_IMETHOD Check(const char16_t * word, const char16_t * lang, bool *_retval) override { return _to Check(word, lang, _retval); } \
     104             :   NS_IMETHOD AddWord(const char16_t * word, const char16_t * lang) override { return _to AddWord(word, lang); } \
     105             :   NS_IMETHOD RemoveWord(const char16_t * word, const char16_t * lang) override { return _to RemoveWord(word, lang); } \
     106             :   NS_IMETHOD IgnoreWord(const char16_t * word) override { return _to IgnoreWord(word); } \
     107             :   NS_IMETHOD EndSession(void) override { return _to EndSession(); } \
     108             :   NS_IMETHOD AddCorrection(const char16_t * word, const char16_t * correction, const char16_t * lang) override { return _to AddCorrection(word, correction, lang); } \
     109             :   NS_IMETHOD RemoveCorrection(const char16_t * word, const char16_t * correction, const char16_t * lang) override { return _to RemoveCorrection(word, correction, lang); } \
     110             :   NS_IMETHOD GetCorrection(const char16_t * word, char16_t * **words, uint32_t *count) override { return _to GetCorrection(word, words, count); } 
     111             : 
     112             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     113             : #define NS_FORWARD_SAFE_MOZIPERSONALDICTIONARY(_to) \
     114             :   NS_IMETHOD Load(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Load(); } \
     115             :   NS_IMETHOD Save(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Save(); } \
     116             :   NS_IMETHOD GetWordList(nsIStringEnumerator * *aWordList) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWordList(aWordList); } \
     117             :   NS_IMETHOD Check(const char16_t * word, const char16_t * lang, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Check(word, lang, _retval); } \
     118             :   NS_IMETHOD AddWord(const char16_t * word, const char16_t * lang) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddWord(word, lang); } \
     119             :   NS_IMETHOD RemoveWord(const char16_t * word, const char16_t * lang) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveWord(word, lang); } \
     120             :   NS_IMETHOD IgnoreWord(const char16_t * word) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IgnoreWord(word); } \
     121             :   NS_IMETHOD EndSession(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EndSession(); } \
     122             :   NS_IMETHOD AddCorrection(const char16_t * word, const char16_t * correction, const char16_t * lang) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCorrection(word, correction, lang); } \
     123             :   NS_IMETHOD RemoveCorrection(const char16_t * word, const char16_t * correction, const char16_t * lang) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveCorrection(word, correction, lang); } \
     124             :   NS_IMETHOD GetCorrection(const char16_t * word, char16_t * **words, uint32_t *count) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCorrection(word, words, count); } 
     125             : 
     126             : #if 0
     127             : /* Use the code below as a template for the implementation class for this interface. */
     128             : 
     129             : /* Header file */
     130             : class _MYCLASS_ : public mozIPersonalDictionary
     131             : {
     132             : public:
     133             :   NS_DECL_ISUPPORTS
     134             :   NS_DECL_MOZIPERSONALDICTIONARY
     135             : 
     136             :   _MYCLASS_();
     137             : 
     138             : private:
     139             :   ~_MYCLASS_();
     140             : 
     141             : protected:
     142             :   /* additional members */
     143             : };
     144             : 
     145             : /* Implementation file */
     146             : NS_IMPL_ISUPPORTS(_MYCLASS_, mozIPersonalDictionary)
     147             : 
     148             : _MYCLASS_::_MYCLASS_()
     149             : {
     150             :   /* member initializers and constructor code */
     151             : }
     152             : 
     153             : _MYCLASS_::~_MYCLASS_()
     154             : {
     155             :   /* destructor code */
     156             : }
     157             : 
     158             : /* void load (); */
     159             : NS_IMETHODIMP _MYCLASS_::Load()
     160             : {
     161             :     return NS_ERROR_NOT_IMPLEMENTED;
     162             : }
     163             : 
     164             : /* void save (); */
     165             : NS_IMETHODIMP _MYCLASS_::Save()
     166             : {
     167             :     return NS_ERROR_NOT_IMPLEMENTED;
     168             : }
     169             : 
     170             : /* readonly attribute nsIStringEnumerator wordList; */
     171             : NS_IMETHODIMP _MYCLASS_::GetWordList(nsIStringEnumerator * *aWordList)
     172             : {
     173             :     return NS_ERROR_NOT_IMPLEMENTED;
     174             : }
     175             : 
     176             : /* boolean check (in wstring word, in wstring lang); */
     177             : NS_IMETHODIMP _MYCLASS_::Check(const char16_t * word, const char16_t * lang, bool *_retval)
     178             : {
     179             :     return NS_ERROR_NOT_IMPLEMENTED;
     180             : }
     181             : 
     182             : /* void addWord (in wstring word, in wstring lang); */
     183             : NS_IMETHODIMP _MYCLASS_::AddWord(const char16_t * word, const char16_t * lang)
     184             : {
     185             :     return NS_ERROR_NOT_IMPLEMENTED;
     186             : }
     187             : 
     188             : /* void removeWord (in wstring word, in wstring lang); */
     189             : NS_IMETHODIMP _MYCLASS_::RemoveWord(const char16_t * word, const char16_t * lang)
     190             : {
     191             :     return NS_ERROR_NOT_IMPLEMENTED;
     192             : }
     193             : 
     194             : /* void ignoreWord (in wstring word); */
     195             : NS_IMETHODIMP _MYCLASS_::IgnoreWord(const char16_t * word)
     196             : {
     197             :     return NS_ERROR_NOT_IMPLEMENTED;
     198             : }
     199             : 
     200             : /* void endSession (); */
     201             : NS_IMETHODIMP _MYCLASS_::EndSession()
     202             : {
     203             :     return NS_ERROR_NOT_IMPLEMENTED;
     204             : }
     205             : 
     206             : /* void addCorrection (in wstring word, in wstring correction, in wstring lang); */
     207             : NS_IMETHODIMP _MYCLASS_::AddCorrection(const char16_t * word, const char16_t * correction, const char16_t * lang)
     208             : {
     209             :     return NS_ERROR_NOT_IMPLEMENTED;
     210             : }
     211             : 
     212             : /* void removeCorrection (in wstring word, in wstring correction, in wstring lang); */
     213             : NS_IMETHODIMP _MYCLASS_::RemoveCorrection(const char16_t * word, const char16_t * correction, const char16_t * lang)
     214             : {
     215             :     return NS_ERROR_NOT_IMPLEMENTED;
     216             : }
     217             : 
     218             : /* void getCorrection (in wstring word, [array, size_is (count)] out wstring words, out uint32_t count); */
     219             : NS_IMETHODIMP _MYCLASS_::GetCorrection(const char16_t * word, char16_t * **words, uint32_t *count)
     220             : {
     221             :     return NS_ERROR_NOT_IMPLEMENTED;
     222             : }
     223             : 
     224             : /* End of implementation class template. */
     225             : #endif
     226             : 
     227             : 
     228             : #endif /* __gen_mozIPersonalDictionary_h__ */

Generated by: LCOV version 1.13