LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIAutoCompleteSimpleResult.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/nsIAutoCompleteSimpleResult.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIAutoCompleteSimpleResult_h__
       6             : #define __gen_nsIAutoCompleteSimpleResult_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : #ifndef __gen_nsIAutoCompleteResult_h__
      14             : #include "nsIAutoCompleteResult.h"
      15             : #endif
      16             : 
      17             : /* For IDL files that don't want to include root IDL files. */
      18             : #ifndef NS_NO_VTABLE
      19             : #define NS_NO_VTABLE
      20             : #endif
      21             : class nsIAutoCompleteSimpleResultListener; /* forward declaration */
      22             : 
      23             : 
      24             : /* starting interface:    nsIAutoCompleteSimpleResult */
      25             : #define NS_IAUTOCOMPLETESIMPLERESULT_IID_STR "23de9c96-becb-4d0d-a9bb-1d131ce361b5"
      26             : 
      27             : #define NS_IAUTOCOMPLETESIMPLERESULT_IID \
      28             :   {0x23de9c96, 0xbecb, 0x4d0d, \
      29             :     { 0xa9, 0xbb, 0x1d, 0x13, 0x1c, 0xe3, 0x61, 0xb5 }}
      30             : 
      31           0 : class NS_NO_VTABLE nsIAutoCompleteSimpleResult : public nsIAutoCompleteResult {
      32             :  public:
      33             : 
      34             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTOCOMPLETESIMPLERESULT_IID)
      35             : 
      36             :   /* void setSearchString (in AString aSearchString); */
      37             :   NS_IMETHOD SetSearchString(const nsAString & aSearchString) = 0;
      38             : 
      39             :   /* void setErrorDescription (in AString aErrorDescription); */
      40             :   NS_IMETHOD SetErrorDescription(const nsAString & aErrorDescription) = 0;
      41             : 
      42             :   /* void setDefaultIndex (in long aDefaultIndex); */
      43             :   NS_IMETHOD SetDefaultIndex(int32_t aDefaultIndex) = 0;
      44             : 
      45             :   /* void setSearchResult (in unsigned short aSearchResult); */
      46             :   NS_IMETHOD SetSearchResult(uint16_t aSearchResult) = 0;
      47             : 
      48             :   /* void insertMatchAt (in long aIndex, in AString aValue, in AString aComment, [optional] in AString aImage, [optional] in AString aStyle, [optional] in AString aFinalCompleteValue, [optional] in AString aLabel); */
      49             :   NS_IMETHOD InsertMatchAt(int32_t aIndex, const nsAString & aValue, const nsAString & aComment, const nsAString & aImage, const nsAString & aStyle, const nsAString & aFinalCompleteValue, const nsAString & aLabel) = 0;
      50             : 
      51             :   /* void appendMatch (in AString aValue, in AString aComment, [optional] in AString aImage, [optional] in AString aStyle, [optional] in AString aFinalCompleteValue, [optional] in AString aLabel); */
      52             :   NS_IMETHOD AppendMatch(const nsAString & aValue, const nsAString & aComment, const nsAString & aImage, const nsAString & aStyle, const nsAString & aFinalCompleteValue, const nsAString & aLabel) = 0;
      53             : 
      54             :   /* nsIAutoCompleteSimpleResultListener getListener (); */
      55             :   NS_IMETHOD GetListener(nsIAutoCompleteSimpleResultListener * *_retval) = 0;
      56             : 
      57             :   /* void setListener (in nsIAutoCompleteSimpleResultListener aListener); */
      58             :   NS_IMETHOD SetListener(nsIAutoCompleteSimpleResultListener *aListener) = 0;
      59             : 
      60             : };
      61             : 
      62             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIAutoCompleteSimpleResult, NS_IAUTOCOMPLETESIMPLERESULT_IID)
      63             : 
      64             : /* Use this macro when declaring classes that implement this interface. */
      65             : #define NS_DECL_NSIAUTOCOMPLETESIMPLERESULT \
      66             :   NS_IMETHOD SetSearchString(const nsAString & aSearchString) override; \
      67             :   NS_IMETHOD SetErrorDescription(const nsAString & aErrorDescription) override; \
      68             :   NS_IMETHOD SetDefaultIndex(int32_t aDefaultIndex) override; \
      69             :   NS_IMETHOD SetSearchResult(uint16_t aSearchResult) override; \
      70             :   NS_IMETHOD InsertMatchAt(int32_t aIndex, const nsAString & aValue, const nsAString & aComment, const nsAString & aImage, const nsAString & aStyle, const nsAString & aFinalCompleteValue, const nsAString & aLabel) override; \
      71             :   NS_IMETHOD AppendMatch(const nsAString & aValue, const nsAString & aComment, const nsAString & aImage, const nsAString & aStyle, const nsAString & aFinalCompleteValue, const nsAString & aLabel) override; \
      72             :   NS_IMETHOD GetListener(nsIAutoCompleteSimpleResultListener * *_retval) override; \
      73             :   NS_IMETHOD SetListener(nsIAutoCompleteSimpleResultListener *aListener) override; 
      74             : 
      75             : /* Use this macro when declaring the members of this interface when the
      76             :    class doesn't implement the interface. This is useful for forwarding. */
      77             : #define NS_DECL_NON_VIRTUAL_NSIAUTOCOMPLETESIMPLERESULT \
      78             :   nsresult SetSearchString(const nsAString & aSearchString); \
      79             :   nsresult SetErrorDescription(const nsAString & aErrorDescription); \
      80             :   nsresult SetDefaultIndex(int32_t aDefaultIndex); \
      81             :   nsresult SetSearchResult(uint16_t aSearchResult); \
      82             :   nsresult InsertMatchAt(int32_t aIndex, const nsAString & aValue, const nsAString & aComment, const nsAString & aImage, const nsAString & aStyle, const nsAString & aFinalCompleteValue, const nsAString & aLabel); \
      83             :   nsresult AppendMatch(const nsAString & aValue, const nsAString & aComment, const nsAString & aImage, const nsAString & aStyle, const nsAString & aFinalCompleteValue, const nsAString & aLabel); \
      84             :   nsresult GetListener(nsIAutoCompleteSimpleResultListener * *_retval); \
      85             :   nsresult SetListener(nsIAutoCompleteSimpleResultListener *aListener); 
      86             : 
      87             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      88             : #define NS_FORWARD_NSIAUTOCOMPLETESIMPLERESULT(_to) \
      89             :   NS_IMETHOD SetSearchString(const nsAString & aSearchString) override { return _to SetSearchString(aSearchString); } \
      90             :   NS_IMETHOD SetErrorDescription(const nsAString & aErrorDescription) override { return _to SetErrorDescription(aErrorDescription); } \
      91             :   NS_IMETHOD SetDefaultIndex(int32_t aDefaultIndex) override { return _to SetDefaultIndex(aDefaultIndex); } \
      92             :   NS_IMETHOD SetSearchResult(uint16_t aSearchResult) override { return _to SetSearchResult(aSearchResult); } \
      93             :   NS_IMETHOD InsertMatchAt(int32_t aIndex, const nsAString & aValue, const nsAString & aComment, const nsAString & aImage, const nsAString & aStyle, const nsAString & aFinalCompleteValue, const nsAString & aLabel) override { return _to InsertMatchAt(aIndex, aValue, aComment, aImage, aStyle, aFinalCompleteValue, aLabel); } \
      94             :   NS_IMETHOD AppendMatch(const nsAString & aValue, const nsAString & aComment, const nsAString & aImage, const nsAString & aStyle, const nsAString & aFinalCompleteValue, const nsAString & aLabel) override { return _to AppendMatch(aValue, aComment, aImage, aStyle, aFinalCompleteValue, aLabel); } \
      95             :   NS_IMETHOD GetListener(nsIAutoCompleteSimpleResultListener * *_retval) override { return _to GetListener(_retval); } \
      96             :   NS_IMETHOD SetListener(nsIAutoCompleteSimpleResultListener *aListener) override { return _to SetListener(aListener); } 
      97             : 
      98             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      99             : #define NS_FORWARD_SAFE_NSIAUTOCOMPLETESIMPLERESULT(_to) \
     100             :   NS_IMETHOD SetSearchString(const nsAString & aSearchString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchString(aSearchString); } \
     101             :   NS_IMETHOD SetErrorDescription(const nsAString & aErrorDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetErrorDescription(aErrorDescription); } \
     102             :   NS_IMETHOD SetDefaultIndex(int32_t aDefaultIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultIndex(aDefaultIndex); } \
     103             :   NS_IMETHOD SetSearchResult(uint16_t aSearchResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchResult(aSearchResult); } \
     104             :   NS_IMETHOD InsertMatchAt(int32_t aIndex, const nsAString & aValue, const nsAString & aComment, const nsAString & aImage, const nsAString & aStyle, const nsAString & aFinalCompleteValue, const nsAString & aLabel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertMatchAt(aIndex, aValue, aComment, aImage, aStyle, aFinalCompleteValue, aLabel); } \
     105             :   NS_IMETHOD AppendMatch(const nsAString & aValue, const nsAString & aComment, const nsAString & aImage, const nsAString & aStyle, const nsAString & aFinalCompleteValue, const nsAString & aLabel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendMatch(aValue, aComment, aImage, aStyle, aFinalCompleteValue, aLabel); } \
     106             :   NS_IMETHOD GetListener(nsIAutoCompleteSimpleResultListener * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListener(_retval); } \
     107             :   NS_IMETHOD SetListener(nsIAutoCompleteSimpleResultListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetListener(aListener); } 
     108             : 
     109             : #if 0
     110             : /* Use the code below as a template for the implementation class for this interface. */
     111             : 
     112             : /* Header file */
     113             : class nsAutoCompleteSimpleResult : public nsIAutoCompleteSimpleResult
     114             : {
     115             : public:
     116             :   NS_DECL_ISUPPORTS
     117             :   NS_DECL_NSIAUTOCOMPLETESIMPLERESULT
     118             : 
     119             :   nsAutoCompleteSimpleResult();
     120             : 
     121             : private:
     122             :   ~nsAutoCompleteSimpleResult();
     123             : 
     124             : protected:
     125             :   /* additional members */
     126             : };
     127             : 
     128             : /* Implementation file */
     129             : NS_IMPL_ISUPPORTS(nsAutoCompleteSimpleResult, nsIAutoCompleteSimpleResult)
     130             : 
     131             : nsAutoCompleteSimpleResult::nsAutoCompleteSimpleResult()
     132             : {
     133             :   /* member initializers and constructor code */
     134             : }
     135             : 
     136             : nsAutoCompleteSimpleResult::~nsAutoCompleteSimpleResult()
     137             : {
     138             :   /* destructor code */
     139             : }
     140             : 
     141             : /* void setSearchString (in AString aSearchString); */
     142             : NS_IMETHODIMP nsAutoCompleteSimpleResult::SetSearchString(const nsAString & aSearchString)
     143             : {
     144             :     return NS_ERROR_NOT_IMPLEMENTED;
     145             : }
     146             : 
     147             : /* void setErrorDescription (in AString aErrorDescription); */
     148             : NS_IMETHODIMP nsAutoCompleteSimpleResult::SetErrorDescription(const nsAString & aErrorDescription)
     149             : {
     150             :     return NS_ERROR_NOT_IMPLEMENTED;
     151             : }
     152             : 
     153             : /* void setDefaultIndex (in long aDefaultIndex); */
     154             : NS_IMETHODIMP nsAutoCompleteSimpleResult::SetDefaultIndex(int32_t aDefaultIndex)
     155             : {
     156             :     return NS_ERROR_NOT_IMPLEMENTED;
     157             : }
     158             : 
     159             : /* void setSearchResult (in unsigned short aSearchResult); */
     160             : NS_IMETHODIMP nsAutoCompleteSimpleResult::SetSearchResult(uint16_t aSearchResult)
     161             : {
     162             :     return NS_ERROR_NOT_IMPLEMENTED;
     163             : }
     164             : 
     165             : /* void insertMatchAt (in long aIndex, in AString aValue, in AString aComment, [optional] in AString aImage, [optional] in AString aStyle, [optional] in AString aFinalCompleteValue, [optional] in AString aLabel); */
     166             : NS_IMETHODIMP nsAutoCompleteSimpleResult::InsertMatchAt(int32_t aIndex, const nsAString & aValue, const nsAString & aComment, const nsAString & aImage, const nsAString & aStyle, const nsAString & aFinalCompleteValue, const nsAString & aLabel)
     167             : {
     168             :     return NS_ERROR_NOT_IMPLEMENTED;
     169             : }
     170             : 
     171             : /* void appendMatch (in AString aValue, in AString aComment, [optional] in AString aImage, [optional] in AString aStyle, [optional] in AString aFinalCompleteValue, [optional] in AString aLabel); */
     172             : NS_IMETHODIMP nsAutoCompleteSimpleResult::AppendMatch(const nsAString & aValue, const nsAString & aComment, const nsAString & aImage, const nsAString & aStyle, const nsAString & aFinalCompleteValue, const nsAString & aLabel)
     173             : {
     174             :     return NS_ERROR_NOT_IMPLEMENTED;
     175             : }
     176             : 
     177             : /* nsIAutoCompleteSimpleResultListener getListener (); */
     178             : NS_IMETHODIMP nsAutoCompleteSimpleResult::GetListener(nsIAutoCompleteSimpleResultListener * *_retval)
     179             : {
     180             :     return NS_ERROR_NOT_IMPLEMENTED;
     181             : }
     182             : 
     183             : /* void setListener (in nsIAutoCompleteSimpleResultListener aListener); */
     184             : NS_IMETHODIMP nsAutoCompleteSimpleResult::SetListener(nsIAutoCompleteSimpleResultListener *aListener)
     185             : {
     186             :     return NS_ERROR_NOT_IMPLEMENTED;
     187             : }
     188             : 
     189             : /* End of implementation class template. */
     190             : #endif
     191             : 
     192             : 
     193             : /* starting interface:    nsIAutoCompleteSimpleResultListener */
     194             : #define NS_IAUTOCOMPLETESIMPLERESULTLISTENER_IID_STR "004efdc5-1989-4874-8a7a-345bf2fa33af"
     195             : 
     196             : #define NS_IAUTOCOMPLETESIMPLERESULTLISTENER_IID \
     197             :   {0x004efdc5, 0x1989, 0x4874, \
     198             :     { 0x8a, 0x7a, 0x34, 0x5b, 0xf2, 0xfa, 0x33, 0xaf }}
     199             : 
     200             : class NS_NO_VTABLE nsIAutoCompleteSimpleResultListener : public nsISupports {
     201             :  public:
     202             : 
     203             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTOCOMPLETESIMPLERESULTLISTENER_IID)
     204             : 
     205             :   /* void onValueRemoved (in nsIAutoCompleteSimpleResult aResult, in AString aValue, in boolean aRemoveFromDb); */
     206             :   NS_IMETHOD OnValueRemoved(nsIAutoCompleteSimpleResult *aResult, const nsAString & aValue, bool aRemoveFromDb) = 0;
     207             : 
     208             : };
     209             : 
     210             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIAutoCompleteSimpleResultListener, NS_IAUTOCOMPLETESIMPLERESULTLISTENER_IID)
     211             : 
     212             : /* Use this macro when declaring classes that implement this interface. */
     213             : #define NS_DECL_NSIAUTOCOMPLETESIMPLERESULTLISTENER \
     214             :   NS_IMETHOD OnValueRemoved(nsIAutoCompleteSimpleResult *aResult, const nsAString & aValue, bool aRemoveFromDb) override; 
     215             : 
     216             : /* Use this macro when declaring the members of this interface when the
     217             :    class doesn't implement the interface. This is useful for forwarding. */
     218             : #define NS_DECL_NON_VIRTUAL_NSIAUTOCOMPLETESIMPLERESULTLISTENER \
     219             :   nsresult OnValueRemoved(nsIAutoCompleteSimpleResult *aResult, const nsAString & aValue, bool aRemoveFromDb); 
     220             : 
     221             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     222             : #define NS_FORWARD_NSIAUTOCOMPLETESIMPLERESULTLISTENER(_to) \
     223             :   NS_IMETHOD OnValueRemoved(nsIAutoCompleteSimpleResult *aResult, const nsAString & aValue, bool aRemoveFromDb) override { return _to OnValueRemoved(aResult, aValue, aRemoveFromDb); } 
     224             : 
     225             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     226             : #define NS_FORWARD_SAFE_NSIAUTOCOMPLETESIMPLERESULTLISTENER(_to) \
     227             :   NS_IMETHOD OnValueRemoved(nsIAutoCompleteSimpleResult *aResult, const nsAString & aValue, bool aRemoveFromDb) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnValueRemoved(aResult, aValue, aRemoveFromDb); } 
     228             : 
     229             : #if 0
     230             : /* Use the code below as a template for the implementation class for this interface. */
     231             : 
     232             : /* Header file */
     233             : class nsAutoCompleteSimpleResultListener : public nsIAutoCompleteSimpleResultListener
     234             : {
     235             : public:
     236             :   NS_DECL_ISUPPORTS
     237             :   NS_DECL_NSIAUTOCOMPLETESIMPLERESULTLISTENER
     238             : 
     239             :   nsAutoCompleteSimpleResultListener();
     240             : 
     241             : private:
     242             :   ~nsAutoCompleteSimpleResultListener();
     243             : 
     244             : protected:
     245             :   /* additional members */
     246             : };
     247             : 
     248             : /* Implementation file */
     249             : NS_IMPL_ISUPPORTS(nsAutoCompleteSimpleResultListener, nsIAutoCompleteSimpleResultListener)
     250             : 
     251             : nsAutoCompleteSimpleResultListener::nsAutoCompleteSimpleResultListener()
     252             : {
     253             :   /* member initializers and constructor code */
     254             : }
     255             : 
     256             : nsAutoCompleteSimpleResultListener::~nsAutoCompleteSimpleResultListener()
     257             : {
     258             :   /* destructor code */
     259             : }
     260             : 
     261             : /* void onValueRemoved (in nsIAutoCompleteSimpleResult aResult, in AString aValue, in boolean aRemoveFromDb); */
     262             : NS_IMETHODIMP nsAutoCompleteSimpleResultListener::OnValueRemoved(nsIAutoCompleteSimpleResult *aResult, const nsAString & aValue, bool aRemoveFromDb)
     263             : {
     264             :     return NS_ERROR_NOT_IMPLEMENTED;
     265             : }
     266             : 
     267             : /* End of implementation class template. */
     268             : #endif
     269             : 
     270             : 
     271             : #endif /* __gen_nsIAutoCompleteSimpleResult_h__ */

Generated by: LCOV version 1.13