/usr/include/thunderbird/nsIAutoCompleteSearch.h is in thunderbird-dev 1:52.8.0-1~deb8u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAutoCompleteSearch.idl
*/
#ifndef __gen_nsIAutoCompleteSearch_h__
#define __gen_nsIAutoCompleteSearch_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIAutoCompleteResult; /* forward declaration */
class nsIAutoCompleteObserver; /* forward declaration */
/* starting interface: nsIAutoCompleteSearch */
#define NS_IAUTOCOMPLETESEARCH_IID_STR "de8db85f-c1de-4d87-94ba-7844890f91fe"
#define NS_IAUTOCOMPLETESEARCH_IID \
{0xde8db85f, 0xc1de, 0x4d87, \
{ 0x94, 0xba, 0x78, 0x44, 0x89, 0x0f, 0x91, 0xfe }}
class NS_NO_VTABLE nsIAutoCompleteSearch : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTOCOMPLETESEARCH_IID)
/* void startSearch (in AString searchString, in AString searchParam, in nsIAutoCompleteResult previousResult, in nsIAutoCompleteObserver listener); */
NS_IMETHOD StartSearch(const nsAString & searchString, const nsAString & searchParam, nsIAutoCompleteResult *previousResult, nsIAutoCompleteObserver *listener) = 0;
/* void stopSearch (); */
NS_IMETHOD StopSearch(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIAutoCompleteSearch, NS_IAUTOCOMPLETESEARCH_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIAUTOCOMPLETESEARCH \
NS_IMETHOD StartSearch(const nsAString & searchString, const nsAString & searchParam, nsIAutoCompleteResult *previousResult, nsIAutoCompleteObserver *listener) override; \
NS_IMETHOD StopSearch(void) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIAUTOCOMPLETESEARCH \
NS_METHOD StartSearch(const nsAString & searchString, const nsAString & searchParam, nsIAutoCompleteResult *previousResult, nsIAutoCompleteObserver *listener); \
NS_METHOD StopSearch(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIAUTOCOMPLETESEARCH(_to) \
NS_IMETHOD StartSearch(const nsAString & searchString, const nsAString & searchParam, nsIAutoCompleteResult *previousResult, nsIAutoCompleteObserver *listener) override { return _to StartSearch(searchString, searchParam, previousResult, listener); } \
NS_IMETHOD StopSearch(void) override { return _to StopSearch(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIAUTOCOMPLETESEARCH(_to) \
NS_IMETHOD StartSearch(const nsAString & searchString, const nsAString & searchParam, nsIAutoCompleteResult *previousResult, nsIAutoCompleteObserver *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartSearch(searchString, searchParam, previousResult, listener); } \
NS_IMETHOD StopSearch(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StopSearch(); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsAutoCompleteSearch : public nsIAutoCompleteSearch
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIAUTOCOMPLETESEARCH
nsAutoCompleteSearch();
private:
~nsAutoCompleteSearch();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsAutoCompleteSearch, nsIAutoCompleteSearch)
nsAutoCompleteSearch::nsAutoCompleteSearch()
{
/* member initializers and constructor code */
}
nsAutoCompleteSearch::~nsAutoCompleteSearch()
{
/* destructor code */
}
/* void startSearch (in AString searchString, in AString searchParam, in nsIAutoCompleteResult previousResult, in nsIAutoCompleteObserver listener); */
NS_IMETHODIMP nsAutoCompleteSearch::StartSearch(const nsAString & searchString, const nsAString & searchParam, nsIAutoCompleteResult *previousResult, nsIAutoCompleteObserver *listener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void stopSearch (); */
NS_IMETHODIMP nsAutoCompleteSearch::StopSearch()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIAutoCompleteObserver */
#define NS_IAUTOCOMPLETEOBSERVER_IID_STR "8bd1dbbc-dcce-4007-9afa-b551eb687b61"
#define NS_IAUTOCOMPLETEOBSERVER_IID \
{0x8bd1dbbc, 0xdcce, 0x4007, \
{ 0x9a, 0xfa, 0xb5, 0x51, 0xeb, 0x68, 0x7b, 0x61 }}
class NS_NO_VTABLE nsIAutoCompleteObserver : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTOCOMPLETEOBSERVER_IID)
/* void onSearchResult (in nsIAutoCompleteSearch search, in nsIAutoCompleteResult result); */
NS_IMETHOD OnSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) = 0;
/* void onUpdateSearchResult (in nsIAutoCompleteSearch search, in nsIAutoCompleteResult result); */
NS_IMETHOD OnUpdateSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIAutoCompleteObserver, NS_IAUTOCOMPLETEOBSERVER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIAUTOCOMPLETEOBSERVER \
NS_IMETHOD OnSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) override; \
NS_IMETHOD OnUpdateSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIAUTOCOMPLETEOBSERVER \
NS_METHOD OnSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result); \
NS_METHOD OnUpdateSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIAUTOCOMPLETEOBSERVER(_to) \
NS_IMETHOD OnSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) override { return _to OnSearchResult(search, result); } \
NS_IMETHOD OnUpdateSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) override { return _to OnUpdateSearchResult(search, result); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIAUTOCOMPLETEOBSERVER(_to) \
NS_IMETHOD OnSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSearchResult(search, result); } \
NS_IMETHOD OnUpdateSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnUpdateSearchResult(search, result); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsAutoCompleteObserver : public nsIAutoCompleteObserver
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIAUTOCOMPLETEOBSERVER
nsAutoCompleteObserver();
private:
~nsAutoCompleteObserver();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsAutoCompleteObserver, nsIAutoCompleteObserver)
nsAutoCompleteObserver::nsAutoCompleteObserver()
{
/* member initializers and constructor code */
}
nsAutoCompleteObserver::~nsAutoCompleteObserver()
{
/* destructor code */
}
/* void onSearchResult (in nsIAutoCompleteSearch search, in nsIAutoCompleteResult result); */
NS_IMETHODIMP nsAutoCompleteObserver::OnSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onUpdateSearchResult (in nsIAutoCompleteSearch search, in nsIAutoCompleteResult result); */
NS_IMETHODIMP nsAutoCompleteObserver::OnUpdateSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIAutoCompleteSearchDescriptor */
#define NS_IAUTOCOMPLETESEARCHDESCRIPTOR_IID_STR "4c3e7462-fbfb-4310-8f4b-239238392b75"
#define NS_IAUTOCOMPLETESEARCHDESCRIPTOR_IID \
{0x4c3e7462, 0xfbfb, 0x4310, \
{ 0x8f, 0x4b, 0x23, 0x92, 0x38, 0x39, 0x2b, 0x75 }}
class NS_NO_VTABLE nsIAutoCompleteSearchDescriptor : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTOCOMPLETESEARCHDESCRIPTOR_IID)
enum {
SEARCH_TYPE_DELAYED = 0U,
SEARCH_TYPE_IMMEDIATE = 1U
};
/* readonly attribute unsigned short searchType; */
NS_IMETHOD GetSearchType(uint16_t *aSearchType) = 0;
/* readonly attribute boolean clearingAutoFillSearchesAgain; */
NS_IMETHOD GetClearingAutoFillSearchesAgain(bool *aClearingAutoFillSearchesAgain) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIAutoCompleteSearchDescriptor, NS_IAUTOCOMPLETESEARCHDESCRIPTOR_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIAUTOCOMPLETESEARCHDESCRIPTOR \
NS_IMETHOD GetSearchType(uint16_t *aSearchType) override; \
NS_IMETHOD GetClearingAutoFillSearchesAgain(bool *aClearingAutoFillSearchesAgain) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIAUTOCOMPLETESEARCHDESCRIPTOR \
NS_METHOD GetSearchType(uint16_t *aSearchType); \
NS_METHOD GetClearingAutoFillSearchesAgain(bool *aClearingAutoFillSearchesAgain);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIAUTOCOMPLETESEARCHDESCRIPTOR(_to) \
NS_IMETHOD GetSearchType(uint16_t *aSearchType) override { return _to GetSearchType(aSearchType); } \
NS_IMETHOD GetClearingAutoFillSearchesAgain(bool *aClearingAutoFillSearchesAgain) override { return _to GetClearingAutoFillSearchesAgain(aClearingAutoFillSearchesAgain); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIAUTOCOMPLETESEARCHDESCRIPTOR(_to) \
NS_IMETHOD GetSearchType(uint16_t *aSearchType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchType(aSearchType); } \
NS_IMETHOD GetClearingAutoFillSearchesAgain(bool *aClearingAutoFillSearchesAgain) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClearingAutoFillSearchesAgain(aClearingAutoFillSearchesAgain); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsAutoCompleteSearchDescriptor : public nsIAutoCompleteSearchDescriptor
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIAUTOCOMPLETESEARCHDESCRIPTOR
nsAutoCompleteSearchDescriptor();
private:
~nsAutoCompleteSearchDescriptor();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsAutoCompleteSearchDescriptor, nsIAutoCompleteSearchDescriptor)
nsAutoCompleteSearchDescriptor::nsAutoCompleteSearchDescriptor()
{
/* member initializers and constructor code */
}
nsAutoCompleteSearchDescriptor::~nsAutoCompleteSearchDescriptor()
{
/* destructor code */
}
/* readonly attribute unsigned short searchType; */
NS_IMETHODIMP nsAutoCompleteSearchDescriptor::GetSearchType(uint16_t *aSearchType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean clearingAutoFillSearchesAgain; */
NS_IMETHODIMP nsAutoCompleteSearchDescriptor::GetClearingAutoFillSearchesAgain(bool *aClearingAutoFillSearchesAgain)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIAutoCompleteSearch_h__ */
|