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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/toolkit/components/autocomplete/nsIAutoCompleteSearch.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIAutoCompleteSearch_h__
       6                 : #define __gen_nsIAutoCompleteSearch_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 nsIAutoCompleteResult; /* forward declaration */
      18                 : 
      19                 : class nsIAutoCompleteObserver; /* forward declaration */
      20                 : 
      21                 : 
      22                 : /* starting interface:    nsIAutoCompleteSearch */
      23                 : #define NS_IAUTOCOMPLETESEARCH_IID_STR "de8db85f-c1de-4d87-94ba-7844890f91fe"
      24                 : 
      25                 : #define NS_IAUTOCOMPLETESEARCH_IID \
      26                 :   {0xde8db85f, 0xc1de, 0x4d87, \
      27                 :     { 0x94, 0xba, 0x78, 0x44, 0x89, 0x0f, 0x91, 0xfe }}
      28                 : 
      29               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIAutoCompleteSearch : public nsISupports {
      30                 :  public: 
      31                 : 
      32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTOCOMPLETESEARCH_IID)
      33                 : 
      34                 :   /* void startSearch (in AString searchString, in AString searchParam, in nsIAutoCompleteResult previousResult, in nsIAutoCompleteObserver listener); */
      35                 :   NS_SCRIPTABLE NS_IMETHOD StartSearch(const nsAString & searchString, const nsAString & searchParam, nsIAutoCompleteResult *previousResult, nsIAutoCompleteObserver *listener) = 0;
      36                 : 
      37                 :   /* void stopSearch (); */
      38                 :   NS_SCRIPTABLE NS_IMETHOD StopSearch(void) = 0;
      39                 : 
      40                 : };
      41                 : 
      42                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIAutoCompleteSearch, NS_IAUTOCOMPLETESEARCH_IID)
      43                 : 
      44                 : /* Use this macro when declaring classes that implement this interface. */
      45                 : #define NS_DECL_NSIAUTOCOMPLETESEARCH \
      46                 :   NS_SCRIPTABLE NS_IMETHOD StartSearch(const nsAString & searchString, const nsAString & searchParam, nsIAutoCompleteResult *previousResult, nsIAutoCompleteObserver *listener); \
      47                 :   NS_SCRIPTABLE NS_IMETHOD StopSearch(void); 
      48                 : 
      49                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      50                 : #define NS_FORWARD_NSIAUTOCOMPLETESEARCH(_to) \
      51                 :   NS_SCRIPTABLE NS_IMETHOD StartSearch(const nsAString & searchString, const nsAString & searchParam, nsIAutoCompleteResult *previousResult, nsIAutoCompleteObserver *listener) { return _to StartSearch(searchString, searchParam, previousResult, listener); } \
      52                 :   NS_SCRIPTABLE NS_IMETHOD StopSearch(void) { return _to StopSearch(); } 
      53                 : 
      54                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      55                 : #define NS_FORWARD_SAFE_NSIAUTOCOMPLETESEARCH(_to) \
      56                 :   NS_SCRIPTABLE NS_IMETHOD StartSearch(const nsAString & searchString, const nsAString & searchParam, nsIAutoCompleteResult *previousResult, nsIAutoCompleteObserver *listener) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartSearch(searchString, searchParam, previousResult, listener); } \
      57                 :   NS_SCRIPTABLE NS_IMETHOD StopSearch(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->StopSearch(); } 
      58                 : 
      59                 : #if 0
      60                 : /* Use the code below as a template for the implementation class for this interface. */
      61                 : 
      62                 : /* Header file */
      63                 : class nsAutoCompleteSearch : public nsIAutoCompleteSearch
      64                 : {
      65                 : public:
      66                 :   NS_DECL_ISUPPORTS
      67                 :   NS_DECL_NSIAUTOCOMPLETESEARCH
      68                 : 
      69                 :   nsAutoCompleteSearch();
      70                 : 
      71                 : private:
      72                 :   ~nsAutoCompleteSearch();
      73                 : 
      74                 : protected:
      75                 :   /* additional members */
      76                 : };
      77                 : 
      78                 : /* Implementation file */
      79                 : NS_IMPL_ISUPPORTS1(nsAutoCompleteSearch, nsIAutoCompleteSearch)
      80                 : 
      81                 : nsAutoCompleteSearch::nsAutoCompleteSearch()
      82                 : {
      83                 :   /* member initializers and constructor code */
      84                 : }
      85                 : 
      86                 : nsAutoCompleteSearch::~nsAutoCompleteSearch()
      87                 : {
      88                 :   /* destructor code */
      89                 : }
      90                 : 
      91                 : /* void startSearch (in AString searchString, in AString searchParam, in nsIAutoCompleteResult previousResult, in nsIAutoCompleteObserver listener); */
      92                 : NS_IMETHODIMP nsAutoCompleteSearch::StartSearch(const nsAString & searchString, const nsAString & searchParam, nsIAutoCompleteResult *previousResult, nsIAutoCompleteObserver *listener)
      93                 : {
      94                 :     return NS_ERROR_NOT_IMPLEMENTED;
      95                 : }
      96                 : 
      97                 : /* void stopSearch (); */
      98                 : NS_IMETHODIMP nsAutoCompleteSearch::StopSearch()
      99                 : {
     100                 :     return NS_ERROR_NOT_IMPLEMENTED;
     101                 : }
     102                 : 
     103                 : /* End of implementation class template. */
     104                 : #endif
     105                 : 
     106                 : 
     107                 : /* starting interface:    nsIAutoCompleteObserver */
     108                 : #define NS_IAUTOCOMPLETEOBSERVER_IID_STR "8bd1dbbc-dcce-4007-9afa-b551eb687b61"
     109                 : 
     110                 : #define NS_IAUTOCOMPLETEOBSERVER_IID \
     111                 :   {0x8bd1dbbc, 0xdcce, 0x4007, \
     112                 :     { 0x9a, 0xfa, 0xb5, 0x51, 0xeb, 0x68, 0x7b, 0x61 }}
     113                 : 
     114              41 : class NS_NO_VTABLE NS_SCRIPTABLE nsIAutoCompleteObserver : public nsISupports {
     115                 :  public: 
     116                 : 
     117                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTOCOMPLETEOBSERVER_IID)
     118                 : 
     119                 :   /* void onSearchResult (in nsIAutoCompleteSearch search, in nsIAutoCompleteResult result); */
     120                 :   NS_SCRIPTABLE NS_IMETHOD OnSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) = 0;
     121                 : 
     122                 :   /* void onUpdateSearchResult (in nsIAutoCompleteSearch search, in nsIAutoCompleteResult result); */
     123                 :   NS_SCRIPTABLE NS_IMETHOD OnUpdateSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) = 0;
     124                 : 
     125                 : };
     126                 : 
     127                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIAutoCompleteObserver, NS_IAUTOCOMPLETEOBSERVER_IID)
     128                 : 
     129                 : /* Use this macro when declaring classes that implement this interface. */
     130                 : #define NS_DECL_NSIAUTOCOMPLETEOBSERVER \
     131                 :   NS_SCRIPTABLE NS_IMETHOD OnSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result); \
     132                 :   NS_SCRIPTABLE NS_IMETHOD OnUpdateSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result); 
     133                 : 
     134                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     135                 : #define NS_FORWARD_NSIAUTOCOMPLETEOBSERVER(_to) \
     136                 :   NS_SCRIPTABLE NS_IMETHOD OnSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) { return _to OnSearchResult(search, result); } \
     137                 :   NS_SCRIPTABLE NS_IMETHOD OnUpdateSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) { return _to OnUpdateSearchResult(search, result); } 
     138                 : 
     139                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     140                 : #define NS_FORWARD_SAFE_NSIAUTOCOMPLETEOBSERVER(_to) \
     141                 :   NS_SCRIPTABLE NS_IMETHOD OnSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSearchResult(search, result); } \
     142                 :   NS_SCRIPTABLE NS_IMETHOD OnUpdateSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnUpdateSearchResult(search, result); } 
     143                 : 
     144                 : #if 0
     145                 : /* Use the code below as a template for the implementation class for this interface. */
     146                 : 
     147                 : /* Header file */
     148                 : class nsAutoCompleteObserver : public nsIAutoCompleteObserver
     149                 : {
     150                 : public:
     151                 :   NS_DECL_ISUPPORTS
     152                 :   NS_DECL_NSIAUTOCOMPLETEOBSERVER
     153                 : 
     154                 :   nsAutoCompleteObserver();
     155                 : 
     156                 : private:
     157                 :   ~nsAutoCompleteObserver();
     158                 : 
     159                 : protected:
     160                 :   /* additional members */
     161                 : };
     162                 : 
     163                 : /* Implementation file */
     164                 : NS_IMPL_ISUPPORTS1(nsAutoCompleteObserver, nsIAutoCompleteObserver)
     165                 : 
     166                 : nsAutoCompleteObserver::nsAutoCompleteObserver()
     167                 : {
     168                 :   /* member initializers and constructor code */
     169                 : }
     170                 : 
     171                 : nsAutoCompleteObserver::~nsAutoCompleteObserver()
     172                 : {
     173                 :   /* destructor code */
     174                 : }
     175                 : 
     176                 : /* void onSearchResult (in nsIAutoCompleteSearch search, in nsIAutoCompleteResult result); */
     177                 : NS_IMETHODIMP nsAutoCompleteObserver::OnSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result)
     178                 : {
     179                 :     return NS_ERROR_NOT_IMPLEMENTED;
     180                 : }
     181                 : 
     182                 : /* void onUpdateSearchResult (in nsIAutoCompleteSearch search, in nsIAutoCompleteResult result); */
     183                 : NS_IMETHODIMP nsAutoCompleteObserver::OnUpdateSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result)
     184                 : {
     185                 :     return NS_ERROR_NOT_IMPLEMENTED;
     186                 : }
     187                 : 
     188                 : /* End of implementation class template. */
     189                 : #endif
     190                 : 
     191                 : 
     192                 : /* starting interface:    nsIAutoCompleteSearchDescriptor */
     193                 : #define NS_IAUTOCOMPLETESEARCHDESCRIPTOR_IID_STR "02314d6e-b730-40cc-a215-221554d77064"
     194                 : 
     195                 : #define NS_IAUTOCOMPLETESEARCHDESCRIPTOR_IID \
     196                 :   {0x02314d6e, 0xb730, 0x40cc, \
     197                 :     { 0xa2, 0x15, 0x22, 0x15, 0x54, 0xd7, 0x70, 0x64 }}
     198                 : 
     199                 : class NS_NO_VTABLE NS_SCRIPTABLE nsIAutoCompleteSearchDescriptor : public nsISupports {
     200                 :  public: 
     201                 : 
     202                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTOCOMPLETESEARCHDESCRIPTOR_IID)
     203                 : 
     204                 :   enum {
     205                 :     SEARCH_TYPE_DELAYED = 0U,
     206                 :     SEARCH_TYPE_IMMEDIATE = 1U
     207                 :   };
     208                 : 
     209                 :   /* readonly attribute unsigned short searchType; */
     210                 :   NS_SCRIPTABLE NS_IMETHOD GetSearchType(PRUint16 *aSearchType) = 0;
     211                 : 
     212                 : };
     213                 : 
     214                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIAutoCompleteSearchDescriptor, NS_IAUTOCOMPLETESEARCHDESCRIPTOR_IID)
     215                 : 
     216                 : /* Use this macro when declaring classes that implement this interface. */
     217                 : #define NS_DECL_NSIAUTOCOMPLETESEARCHDESCRIPTOR \
     218                 :   NS_SCRIPTABLE NS_IMETHOD GetSearchType(PRUint16 *aSearchType); 
     219                 : 
     220                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     221                 : #define NS_FORWARD_NSIAUTOCOMPLETESEARCHDESCRIPTOR(_to) \
     222                 :   NS_SCRIPTABLE NS_IMETHOD GetSearchType(PRUint16 *aSearchType) { return _to GetSearchType(aSearchType); } 
     223                 : 
     224                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     225                 : #define NS_FORWARD_SAFE_NSIAUTOCOMPLETESEARCHDESCRIPTOR(_to) \
     226                 :   NS_SCRIPTABLE NS_IMETHOD GetSearchType(PRUint16 *aSearchType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchType(aSearchType); } 
     227                 : 
     228                 : #if 0
     229                 : /* Use the code below as a template for the implementation class for this interface. */
     230                 : 
     231                 : /* Header file */
     232                 : class nsAutoCompleteSearchDescriptor : public nsIAutoCompleteSearchDescriptor
     233                 : {
     234                 : public:
     235                 :   NS_DECL_ISUPPORTS
     236                 :   NS_DECL_NSIAUTOCOMPLETESEARCHDESCRIPTOR
     237                 : 
     238                 :   nsAutoCompleteSearchDescriptor();
     239                 : 
     240                 : private:
     241                 :   ~nsAutoCompleteSearchDescriptor();
     242                 : 
     243                 : protected:
     244                 :   /* additional members */
     245                 : };
     246                 : 
     247                 : /* Implementation file */
     248                 : NS_IMPL_ISUPPORTS1(nsAutoCompleteSearchDescriptor, nsIAutoCompleteSearchDescriptor)
     249                 : 
     250                 : nsAutoCompleteSearchDescriptor::nsAutoCompleteSearchDescriptor()
     251                 : {
     252                 :   /* member initializers and constructor code */
     253                 : }
     254                 : 
     255                 : nsAutoCompleteSearchDescriptor::~nsAutoCompleteSearchDescriptor()
     256                 : {
     257                 :   /* destructor code */
     258                 : }
     259                 : 
     260                 : /* readonly attribute unsigned short searchType; */
     261                 : NS_IMETHODIMP nsAutoCompleteSearchDescriptor::GetSearchType(PRUint16 *aSearchType)
     262                 : {
     263                 :     return NS_ERROR_NOT_IMPLEMENTED;
     264                 : }
     265                 : 
     266                 : /* End of implementation class template. */
     267                 : #endif
     268                 : 
     269                 : 
     270                 : #endif /* __gen_nsIAutoCompleteSearch_h__ */

Generated by: LCOV version 1.7