/usr/include/thunderbird-11.0.1/nsIMsgSearchAdapter.h is in thunderbird-dev 11.0.1+build1-0ubuntu2.
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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mailnews/base/search/public/nsIMsgSearchAdapter.idl
*/
#ifndef __gen_nsIMsgSearchAdapter_h__
#define __gen_nsIMsgSearchAdapter_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsMsgSearchCore_h__
#include "nsMsgSearchCore.h"
#endif
#ifndef __gen_nsIMsgSearchScopeTerm_h__
#include "nsIMsgSearchScopeTerm.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsMsgResultElement;
/* starting interface: nsIMsgSearchAdapter */
#define NS_IMSGSEARCHADAPTER_IID_STR "b9f49d4c-a494-41f6-9d70-ab6cb5670485"
#define NS_IMSGSEARCHADAPTER_IID \
{0xb9f49d4c, 0xa494, 0x41f6, \
{ 0x9d, 0x70, 0xab, 0x6c, 0xb5, 0x67, 0x04, 0x85 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIMsgSearchAdapter : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGSEARCHADAPTER_IID)
/* void ValidateTerms (); */
NS_SCRIPTABLE NS_IMETHOD ValidateTerms(void) = 0;
/* void Search (out boolean done); */
NS_SCRIPTABLE NS_IMETHOD Search(bool *done NS_OUTPARAM) = 0;
/* void SendUrl (); */
NS_SCRIPTABLE NS_IMETHOD SendUrl(void) = 0;
/* void CurrentUrlDone (in long exitCode); */
NS_SCRIPTABLE NS_IMETHOD CurrentUrlDone(PRInt32 exitCode) = 0;
/* void AddHit (in nsMsgKey key); */
NS_SCRIPTABLE NS_IMETHOD AddHit(nsMsgKey key) = 0;
/* void AddResultElement (in nsIMsgDBHdr aHdr); */
NS_SCRIPTABLE NS_IMETHOD AddResultElement(nsIMsgDBHdr *aHdr) = 0;
/* [noscript] void OpenResultElement (in nsMsgResultElement element); */
NS_IMETHOD OpenResultElement(nsMsgResultElement *element) = 0;
/* [noscript] void ModifyResultElement (in nsMsgResultElement element, in nsMsgSearchValue value); */
NS_IMETHOD ModifyResultElement(nsMsgResultElement *element, nsMsgSearchValue *value) = 0;
/* readonly attribute string encoding; */
NS_SCRIPTABLE NS_IMETHOD GetEncoding(char * *aEncoding) = 0;
/* [noscript] nsIMsgFolder FindTargetFolder ([const] in nsMsgResultElement element); */
NS_IMETHOD FindTargetFolder(const nsMsgResultElement *element, nsIMsgFolder * *_retval NS_OUTPARAM) = 0;
/* void Abort (); */
NS_SCRIPTABLE NS_IMETHOD Abort(void) = 0;
/* void getSearchCharsets (out AString srcCharset, out AString destCharset); */
NS_SCRIPTABLE NS_IMETHOD GetSearchCharsets(nsAString & srcCharset NS_OUTPARAM, nsAString & destCharset NS_OUTPARAM) = 0;
/* void clearScope (); */
NS_SCRIPTABLE NS_IMETHOD ClearScope(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgSearchAdapter, NS_IMSGSEARCHADAPTER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGSEARCHADAPTER \
NS_SCRIPTABLE NS_IMETHOD ValidateTerms(void); \
NS_SCRIPTABLE NS_IMETHOD Search(bool *done NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD SendUrl(void); \
NS_SCRIPTABLE NS_IMETHOD CurrentUrlDone(PRInt32 exitCode); \
NS_SCRIPTABLE NS_IMETHOD AddHit(nsMsgKey key); \
NS_SCRIPTABLE NS_IMETHOD AddResultElement(nsIMsgDBHdr *aHdr); \
NS_IMETHOD OpenResultElement(nsMsgResultElement *element); \
NS_IMETHOD ModifyResultElement(nsMsgResultElement *element, nsMsgSearchValue *value); \
NS_SCRIPTABLE NS_IMETHOD GetEncoding(char * *aEncoding); \
NS_IMETHOD FindTargetFolder(const nsMsgResultElement *element, nsIMsgFolder * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD Abort(void); \
NS_SCRIPTABLE NS_IMETHOD GetSearchCharsets(nsAString & srcCharset NS_OUTPARAM, nsAString & destCharset NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD ClearScope(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGSEARCHADAPTER(_to) \
NS_SCRIPTABLE NS_IMETHOD ValidateTerms(void) { return _to ValidateTerms(); } \
NS_SCRIPTABLE NS_IMETHOD Search(bool *done NS_OUTPARAM) { return _to Search(done); } \
NS_SCRIPTABLE NS_IMETHOD SendUrl(void) { return _to SendUrl(); } \
NS_SCRIPTABLE NS_IMETHOD CurrentUrlDone(PRInt32 exitCode) { return _to CurrentUrlDone(exitCode); } \
NS_SCRIPTABLE NS_IMETHOD AddHit(nsMsgKey key) { return _to AddHit(key); } \
NS_SCRIPTABLE NS_IMETHOD AddResultElement(nsIMsgDBHdr *aHdr) { return _to AddResultElement(aHdr); } \
NS_IMETHOD OpenResultElement(nsMsgResultElement *element) { return _to OpenResultElement(element); } \
NS_IMETHOD ModifyResultElement(nsMsgResultElement *element, nsMsgSearchValue *value) { return _to ModifyResultElement(element, value); } \
NS_SCRIPTABLE NS_IMETHOD GetEncoding(char * *aEncoding) { return _to GetEncoding(aEncoding); } \
NS_IMETHOD FindTargetFolder(const nsMsgResultElement *element, nsIMsgFolder * *_retval NS_OUTPARAM) { return _to FindTargetFolder(element, _retval); } \
NS_SCRIPTABLE NS_IMETHOD Abort(void) { return _to Abort(); } \
NS_SCRIPTABLE NS_IMETHOD GetSearchCharsets(nsAString & srcCharset NS_OUTPARAM, nsAString & destCharset NS_OUTPARAM) { return _to GetSearchCharsets(srcCharset, destCharset); } \
NS_SCRIPTABLE NS_IMETHOD ClearScope(void) { return _to ClearScope(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGSEARCHADAPTER(_to) \
NS_SCRIPTABLE NS_IMETHOD ValidateTerms(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ValidateTerms(); } \
NS_SCRIPTABLE NS_IMETHOD Search(bool *done NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Search(done); } \
NS_SCRIPTABLE NS_IMETHOD SendUrl(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendUrl(); } \
NS_SCRIPTABLE NS_IMETHOD CurrentUrlDone(PRInt32 exitCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->CurrentUrlDone(exitCode); } \
NS_SCRIPTABLE NS_IMETHOD AddHit(nsMsgKey key) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddHit(key); } \
NS_SCRIPTABLE NS_IMETHOD AddResultElement(nsIMsgDBHdr *aHdr) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddResultElement(aHdr); } \
NS_IMETHOD OpenResultElement(nsMsgResultElement *element) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenResultElement(element); } \
NS_IMETHOD ModifyResultElement(nsMsgResultElement *element, nsMsgSearchValue *value) { return !_to ? NS_ERROR_NULL_POINTER : _to->ModifyResultElement(element, value); } \
NS_SCRIPTABLE NS_IMETHOD GetEncoding(char * *aEncoding) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEncoding(aEncoding); } \
NS_IMETHOD FindTargetFolder(const nsMsgResultElement *element, nsIMsgFolder * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindTargetFolder(element, _retval); } \
NS_SCRIPTABLE NS_IMETHOD Abort(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Abort(); } \
NS_SCRIPTABLE NS_IMETHOD GetSearchCharsets(nsAString & srcCharset NS_OUTPARAM, nsAString & destCharset NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchCharsets(srcCharset, destCharset); } \
NS_SCRIPTABLE NS_IMETHOD ClearScope(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearScope(); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsMsgSearchAdapter : public nsIMsgSearchAdapter
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIMSGSEARCHADAPTER
nsMsgSearchAdapter();
private:
~nsMsgSearchAdapter();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgSearchAdapter, nsIMsgSearchAdapter)
nsMsgSearchAdapter::nsMsgSearchAdapter()
{
/* member initializers and constructor code */
}
nsMsgSearchAdapter::~nsMsgSearchAdapter()
{
/* destructor code */
}
/* void ValidateTerms (); */
NS_IMETHODIMP nsMsgSearchAdapter::ValidateTerms()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void Search (out boolean done); */
NS_IMETHODIMP nsMsgSearchAdapter::Search(bool *done NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void SendUrl (); */
NS_IMETHODIMP nsMsgSearchAdapter::SendUrl()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void CurrentUrlDone (in long exitCode); */
NS_IMETHODIMP nsMsgSearchAdapter::CurrentUrlDone(PRInt32 exitCode)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void AddHit (in nsMsgKey key); */
NS_IMETHODIMP nsMsgSearchAdapter::AddHit(nsMsgKey key)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void AddResultElement (in nsIMsgDBHdr aHdr); */
NS_IMETHODIMP nsMsgSearchAdapter::AddResultElement(nsIMsgDBHdr *aHdr)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] void OpenResultElement (in nsMsgResultElement element); */
NS_IMETHODIMP nsMsgSearchAdapter::OpenResultElement(nsMsgResultElement *element)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] void ModifyResultElement (in nsMsgResultElement element, in nsMsgSearchValue value); */
NS_IMETHODIMP nsMsgSearchAdapter::ModifyResultElement(nsMsgResultElement *element, nsMsgSearchValue *value)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute string encoding; */
NS_IMETHODIMP nsMsgSearchAdapter::GetEncoding(char * *aEncoding)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] nsIMsgFolder FindTargetFolder ([const] in nsMsgResultElement element); */
NS_IMETHODIMP nsMsgSearchAdapter::FindTargetFolder(const nsMsgResultElement *element, nsIMsgFolder * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void Abort (); */
NS_IMETHODIMP nsMsgSearchAdapter::Abort()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getSearchCharsets (out AString srcCharset, out AString destCharset); */
NS_IMETHODIMP nsMsgSearchAdapter::GetSearchCharsets(nsAString & srcCharset NS_OUTPARAM, nsAString & destCharset NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void clearScope (); */
NS_IMETHODIMP nsMsgSearchAdapter::ClearScope()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIMsgSearchAdapter_h__ */
|