LCOV - code coverage report
Current view: directory - objdir/dist/include - mozIPersonalDictionary.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 0 0.0 %
Date: 2012-06-02 Functions: 1 0 0.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/extensions/spellcheck/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               0 : class NS_NO_VTABLE NS_SCRIPTABLE mozIPersonalDictionary : public nsISupports {
      28                 :  public: 
      29                 : 
      30                 :   NS_DECLARE_STATIC_IID_ACCESSOR(MOZIPERSONALDICTIONARY_IID)
      31                 : 
      32                 :   /* void load (); */
      33                 :   NS_SCRIPTABLE NS_IMETHOD Load(void) = 0;
      34                 : 
      35                 :   /* void save (); */
      36                 :   NS_SCRIPTABLE NS_IMETHOD Save(void) = 0;
      37                 : 
      38                 :   /* readonly attribute nsIStringEnumerator wordList; */
      39                 :   NS_SCRIPTABLE NS_IMETHOD GetWordList(nsIStringEnumerator * *aWordList) = 0;
      40                 : 
      41                 :   /* boolean check (in wstring word, in wstring lang); */
      42                 :   NS_SCRIPTABLE NS_IMETHOD Check(const PRUnichar * word, const PRUnichar * lang, bool *_retval NS_OUTPARAM) = 0;
      43                 : 
      44                 :   /* void addWord (in wstring word, in wstring lang); */
      45                 :   NS_SCRIPTABLE NS_IMETHOD AddWord(const PRUnichar * word, const PRUnichar * lang) = 0;
      46                 : 
      47                 :   /* void removeWord (in wstring word, in wstring lang); */
      48                 :   NS_SCRIPTABLE NS_IMETHOD RemoveWord(const PRUnichar * word, const PRUnichar * lang) = 0;
      49                 : 
      50                 :   /* void ignoreWord (in wstring word); */
      51                 :   NS_SCRIPTABLE NS_IMETHOD IgnoreWord(const PRUnichar * word) = 0;
      52                 : 
      53                 :   /* void endSession (); */
      54                 :   NS_SCRIPTABLE NS_IMETHOD EndSession(void) = 0;
      55                 : 
      56                 :   /* void addCorrection (in wstring word, in wstring correction, in wstring lang); */
      57                 :   NS_SCRIPTABLE NS_IMETHOD AddCorrection(const PRUnichar * word, const PRUnichar * correction, const PRUnichar * lang) = 0;
      58                 : 
      59                 :   /* void removeCorrection (in wstring word, in wstring correction, in wstring lang); */
      60                 :   NS_SCRIPTABLE NS_IMETHOD RemoveCorrection(const PRUnichar * word, const PRUnichar * correction, const PRUnichar * lang) = 0;
      61                 : 
      62                 :   /* void getCorrection (in wstring word, [array, size_is (count)] out wstring words, out PRUint32 count); */
      63                 :   NS_SCRIPTABLE NS_IMETHOD GetCorrection(const PRUnichar * word, PRUnichar * **words NS_OUTPARAM, PRUint32 *count NS_OUTPARAM) = 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_SCRIPTABLE NS_IMETHOD Load(void); \
      72                 :   NS_SCRIPTABLE NS_IMETHOD Save(void); \
      73                 :   NS_SCRIPTABLE NS_IMETHOD GetWordList(nsIStringEnumerator * *aWordList); \
      74                 :   NS_SCRIPTABLE NS_IMETHOD Check(const PRUnichar * word, const PRUnichar * lang, bool *_retval NS_OUTPARAM); \
      75                 :   NS_SCRIPTABLE NS_IMETHOD AddWord(const PRUnichar * word, const PRUnichar * lang); \
      76                 :   NS_SCRIPTABLE NS_IMETHOD RemoveWord(const PRUnichar * word, const PRUnichar * lang); \
      77                 :   NS_SCRIPTABLE NS_IMETHOD IgnoreWord(const PRUnichar * word); \
      78                 :   NS_SCRIPTABLE NS_IMETHOD EndSession(void); \
      79                 :   NS_SCRIPTABLE NS_IMETHOD AddCorrection(const PRUnichar * word, const PRUnichar * correction, const PRUnichar * lang); \
      80                 :   NS_SCRIPTABLE NS_IMETHOD RemoveCorrection(const PRUnichar * word, const PRUnichar * correction, const PRUnichar * lang); \
      81                 :   NS_SCRIPTABLE NS_IMETHOD GetCorrection(const PRUnichar * word, PRUnichar * **words NS_OUTPARAM, PRUint32 *count NS_OUTPARAM); 
      82                 : 
      83                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      84                 : #define NS_FORWARD_MOZIPERSONALDICTIONARY(_to) \
      85                 :   NS_SCRIPTABLE NS_IMETHOD Load(void) { return _to Load(); } \
      86                 :   NS_SCRIPTABLE NS_IMETHOD Save(void) { return _to Save(); } \
      87                 :   NS_SCRIPTABLE NS_IMETHOD GetWordList(nsIStringEnumerator * *aWordList) { return _to GetWordList(aWordList); } \
      88                 :   NS_SCRIPTABLE NS_IMETHOD Check(const PRUnichar * word, const PRUnichar * lang, bool *_retval NS_OUTPARAM) { return _to Check(word, lang, _retval); } \
      89                 :   NS_SCRIPTABLE NS_IMETHOD AddWord(const PRUnichar * word, const PRUnichar * lang) { return _to AddWord(word, lang); } \
      90                 :   NS_SCRIPTABLE NS_IMETHOD RemoveWord(const PRUnichar * word, const PRUnichar * lang) { return _to RemoveWord(word, lang); } \
      91                 :   NS_SCRIPTABLE NS_IMETHOD IgnoreWord(const PRUnichar * word) { return _to IgnoreWord(word); } \
      92                 :   NS_SCRIPTABLE NS_IMETHOD EndSession(void) { return _to EndSession(); } \
      93                 :   NS_SCRIPTABLE NS_IMETHOD AddCorrection(const PRUnichar * word, const PRUnichar * correction, const PRUnichar * lang) { return _to AddCorrection(word, correction, lang); } \
      94                 :   NS_SCRIPTABLE NS_IMETHOD RemoveCorrection(const PRUnichar * word, const PRUnichar * correction, const PRUnichar * lang) { return _to RemoveCorrection(word, correction, lang); } \
      95                 :   NS_SCRIPTABLE NS_IMETHOD GetCorrection(const PRUnichar * word, PRUnichar * **words NS_OUTPARAM, PRUint32 *count NS_OUTPARAM) { return _to GetCorrection(word, words, count); } 
      96                 : 
      97                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      98                 : #define NS_FORWARD_SAFE_MOZIPERSONALDICTIONARY(_to) \
      99                 :   NS_SCRIPTABLE NS_IMETHOD Load(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Load(); } \
     100                 :   NS_SCRIPTABLE NS_IMETHOD Save(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Save(); } \
     101                 :   NS_SCRIPTABLE NS_IMETHOD GetWordList(nsIStringEnumerator * *aWordList) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWordList(aWordList); } \
     102                 :   NS_SCRIPTABLE NS_IMETHOD Check(const PRUnichar * word, const PRUnichar * lang, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Check(word, lang, _retval); } \
     103                 :   NS_SCRIPTABLE NS_IMETHOD AddWord(const PRUnichar * word, const PRUnichar * lang) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddWord(word, lang); } \
     104                 :   NS_SCRIPTABLE NS_IMETHOD RemoveWord(const PRUnichar * word, const PRUnichar * lang) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveWord(word, lang); } \
     105                 :   NS_SCRIPTABLE NS_IMETHOD IgnoreWord(const PRUnichar * word) { return !_to ? NS_ERROR_NULL_POINTER : _to->IgnoreWord(word); } \
     106                 :   NS_SCRIPTABLE NS_IMETHOD EndSession(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->EndSession(); } \
     107                 :   NS_SCRIPTABLE NS_IMETHOD AddCorrection(const PRUnichar * word, const PRUnichar * correction, const PRUnichar * lang) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCorrection(word, correction, lang); } \
     108                 :   NS_SCRIPTABLE NS_IMETHOD RemoveCorrection(const PRUnichar * word, const PRUnichar * correction, const PRUnichar * lang) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveCorrection(word, correction, lang); } \
     109                 :   NS_SCRIPTABLE NS_IMETHOD GetCorrection(const PRUnichar * word, PRUnichar * **words NS_OUTPARAM, PRUint32 *count NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCorrection(word, words, count); } 
     110                 : 
     111                 : #if 0
     112                 : /* Use the code below as a template for the implementation class for this interface. */
     113                 : 
     114                 : /* Header file */
     115                 : class _MYCLASS_ : public mozIPersonalDictionary
     116                 : {
     117                 : public:
     118                 :   NS_DECL_ISUPPORTS
     119                 :   NS_DECL_MOZIPERSONALDICTIONARY
     120                 : 
     121                 :   _MYCLASS_();
     122                 : 
     123                 : private:
     124                 :   ~_MYCLASS_();
     125                 : 
     126                 : protected:
     127                 :   /* additional members */
     128                 : };
     129                 : 
     130                 : /* Implementation file */
     131                 : NS_IMPL_ISUPPORTS1(_MYCLASS_, mozIPersonalDictionary)
     132                 : 
     133                 : _MYCLASS_::_MYCLASS_()
     134                 : {
     135                 :   /* member initializers and constructor code */
     136                 : }
     137                 : 
     138                 : _MYCLASS_::~_MYCLASS_()
     139                 : {
     140                 :   /* destructor code */
     141                 : }
     142                 : 
     143                 : /* void load (); */
     144                 : NS_IMETHODIMP _MYCLASS_::Load()
     145                 : {
     146                 :     return NS_ERROR_NOT_IMPLEMENTED;
     147                 : }
     148                 : 
     149                 : /* void save (); */
     150                 : NS_IMETHODIMP _MYCLASS_::Save()
     151                 : {
     152                 :     return NS_ERROR_NOT_IMPLEMENTED;
     153                 : }
     154                 : 
     155                 : /* readonly attribute nsIStringEnumerator wordList; */
     156                 : NS_IMETHODIMP _MYCLASS_::GetWordList(nsIStringEnumerator * *aWordList)
     157                 : {
     158                 :     return NS_ERROR_NOT_IMPLEMENTED;
     159                 : }
     160                 : 
     161                 : /* boolean check (in wstring word, in wstring lang); */
     162                 : NS_IMETHODIMP _MYCLASS_::Check(const PRUnichar * word, const PRUnichar * lang, bool *_retval NS_OUTPARAM)
     163                 : {
     164                 :     return NS_ERROR_NOT_IMPLEMENTED;
     165                 : }
     166                 : 
     167                 : /* void addWord (in wstring word, in wstring lang); */
     168                 : NS_IMETHODIMP _MYCLASS_::AddWord(const PRUnichar * word, const PRUnichar * lang)
     169                 : {
     170                 :     return NS_ERROR_NOT_IMPLEMENTED;
     171                 : }
     172                 : 
     173                 : /* void removeWord (in wstring word, in wstring lang); */
     174                 : NS_IMETHODIMP _MYCLASS_::RemoveWord(const PRUnichar * word, const PRUnichar * lang)
     175                 : {
     176                 :     return NS_ERROR_NOT_IMPLEMENTED;
     177                 : }
     178                 : 
     179                 : /* void ignoreWord (in wstring word); */
     180                 : NS_IMETHODIMP _MYCLASS_::IgnoreWord(const PRUnichar * word)
     181                 : {
     182                 :     return NS_ERROR_NOT_IMPLEMENTED;
     183                 : }
     184                 : 
     185                 : /* void endSession (); */
     186                 : NS_IMETHODIMP _MYCLASS_::EndSession()
     187                 : {
     188                 :     return NS_ERROR_NOT_IMPLEMENTED;
     189                 : }
     190                 : 
     191                 : /* void addCorrection (in wstring word, in wstring correction, in wstring lang); */
     192                 : NS_IMETHODIMP _MYCLASS_::AddCorrection(const PRUnichar * word, const PRUnichar * correction, const PRUnichar * lang)
     193                 : {
     194                 :     return NS_ERROR_NOT_IMPLEMENTED;
     195                 : }
     196                 : 
     197                 : /* void removeCorrection (in wstring word, in wstring correction, in wstring lang); */
     198                 : NS_IMETHODIMP _MYCLASS_::RemoveCorrection(const PRUnichar * word, const PRUnichar * correction, const PRUnichar * lang)
     199                 : {
     200                 :     return NS_ERROR_NOT_IMPLEMENTED;
     201                 : }
     202                 : 
     203                 : /* void getCorrection (in wstring word, [array, size_is (count)] out wstring words, out PRUint32 count); */
     204                 : NS_IMETHODIMP _MYCLASS_::GetCorrection(const PRUnichar * word, PRUnichar * **words NS_OUTPARAM, PRUint32 *count NS_OUTPARAM)
     205                 : {
     206                 :     return NS_ERROR_NOT_IMPLEMENTED;
     207                 : }
     208                 : 
     209                 : /* End of implementation class template. */
     210                 : #endif
     211                 : 
     212                 : 
     213                 : #endif /* __gen_mozIPersonalDictionary_h__ */

Generated by: LCOV version 1.7