This file is indexed.

/usr/include/thunderbird-11.0.1/nsIImportFieldMap.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
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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mailnews/import/public/nsIImportFieldMap.idl
 */

#ifndef __gen_nsIImportFieldMap_h__
#define __gen_nsIImportFieldMap_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 nsIAddrDatabase; /* forward declaration */

class nsIMdbRow; /* forward declaration */

class nsIAbCard; /* forward declaration */


/* starting interface:    nsIImportFieldMap */
#define NS_IIMPORTFIELDMAP_IID_STR "0e376da3-e289-4d14-bdec-867764585eb7"

#define NS_IIMPORTFIELDMAP_IID \
  {0x0e376da3, 0xe289, 0x4d14, \
    { 0xbd, 0xec, 0x86, 0x77, 0x64, 0x58, 0x5e, 0xb7 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIImportFieldMap : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIMPORTFIELDMAP_IID)

  /* attribute boolean skipFirstRecord; */
  NS_SCRIPTABLE NS_IMETHOD GetSkipFirstRecord(bool *aSkipFirstRecord) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetSkipFirstRecord(bool aSkipFirstRecord) = 0;

  /* readonly attribute long numMozFields; */
  NS_SCRIPTABLE NS_IMETHOD GetNumMozFields(PRInt32 *aNumMozFields) = 0;

  /* readonly attribute long mapSize; */
  NS_SCRIPTABLE NS_IMETHOD GetMapSize(PRInt32 *aMapSize) = 0;

  /* wstring GetFieldDescription (in long index); */
  NS_SCRIPTABLE NS_IMETHOD GetFieldDescription(PRInt32 index, PRUnichar * *_retval NS_OUTPARAM) = 0;

  /* void SetFieldMapSize (in long size); */
  NS_SCRIPTABLE NS_IMETHOD SetFieldMapSize(PRInt32 size) = 0;

  /* void DefaultFieldMap (in long size); */
  NS_SCRIPTABLE NS_IMETHOD DefaultFieldMap(PRInt32 size) = 0;

  /* long GetFieldMap (in long index); */
  NS_SCRIPTABLE NS_IMETHOD GetFieldMap(PRInt32 index, PRInt32 *_retval NS_OUTPARAM) = 0;

  /* void SetFieldMap (in long index, in long fieldNum); */
  NS_SCRIPTABLE NS_IMETHOD SetFieldMap(PRInt32 index, PRInt32 fieldNum) = 0;

  /* void SetFieldMapByDescription (in long index, in wstring fieldDesc); */
  NS_SCRIPTABLE NS_IMETHOD SetFieldMapByDescription(PRInt32 index, const PRUnichar * fieldDesc) = 0;

  /* boolean GetFieldActive (in long index); */
  NS_SCRIPTABLE NS_IMETHOD GetFieldActive(PRInt32 index, bool *_retval NS_OUTPARAM) = 0;

  /* void SetFieldActive (in long index, in boolean active); */
  NS_SCRIPTABLE NS_IMETHOD SetFieldActive(PRInt32 index, bool active) = 0;

  /* void SetFieldValue (in nsIAddrDatabase database, in nsIMdbRow row, in long fieldNum, in wstring value); */
  NS_SCRIPTABLE NS_IMETHOD SetFieldValue(nsIAddrDatabase *database, nsIMdbRow *row, PRInt32 fieldNum, const PRUnichar * value) = 0;

  /* void SetFieldValueByDescription (in nsIAddrDatabase database, in nsIMdbRow row, in wstring fieldDesc, in wstring value); */
  NS_SCRIPTABLE NS_IMETHOD SetFieldValueByDescription(nsIAddrDatabase *database, nsIMdbRow *row, const PRUnichar * fieldDesc, const PRUnichar * value) = 0;

  /* wstring GetFieldValue (in nsIAbCard card, in long fieldNum); */
  NS_SCRIPTABLE NS_IMETHOD GetFieldValue(nsIAbCard *card, PRInt32 fieldNum, PRUnichar * *_retval NS_OUTPARAM) = 0;

  /* wstring GetFieldValueByDescription (in nsIAbCard card, in wstring fieldDesc); */
  NS_SCRIPTABLE NS_IMETHOD GetFieldValueByDescription(nsIAbCard *card, const PRUnichar * fieldDesc, PRUnichar * *_retval NS_OUTPARAM) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIImportFieldMap, NS_IIMPORTFIELDMAP_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIIMPORTFIELDMAP \
  NS_SCRIPTABLE NS_IMETHOD GetSkipFirstRecord(bool *aSkipFirstRecord); \
  NS_SCRIPTABLE NS_IMETHOD SetSkipFirstRecord(bool aSkipFirstRecord); \
  NS_SCRIPTABLE NS_IMETHOD GetNumMozFields(PRInt32 *aNumMozFields); \
  NS_SCRIPTABLE NS_IMETHOD GetMapSize(PRInt32 *aMapSize); \
  NS_SCRIPTABLE NS_IMETHOD GetFieldDescription(PRInt32 index, PRUnichar * *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD SetFieldMapSize(PRInt32 size); \
  NS_SCRIPTABLE NS_IMETHOD DefaultFieldMap(PRInt32 size); \
  NS_SCRIPTABLE NS_IMETHOD GetFieldMap(PRInt32 index, PRInt32 *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD SetFieldMap(PRInt32 index, PRInt32 fieldNum); \
  NS_SCRIPTABLE NS_IMETHOD SetFieldMapByDescription(PRInt32 index, const PRUnichar * fieldDesc); \
  NS_SCRIPTABLE NS_IMETHOD GetFieldActive(PRInt32 index, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD SetFieldActive(PRInt32 index, bool active); \
  NS_SCRIPTABLE NS_IMETHOD SetFieldValue(nsIAddrDatabase *database, nsIMdbRow *row, PRInt32 fieldNum, const PRUnichar * value); \
  NS_SCRIPTABLE NS_IMETHOD SetFieldValueByDescription(nsIAddrDatabase *database, nsIMdbRow *row, const PRUnichar * fieldDesc, const PRUnichar * value); \
  NS_SCRIPTABLE NS_IMETHOD GetFieldValue(nsIAbCard *card, PRInt32 fieldNum, PRUnichar * *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetFieldValueByDescription(nsIAbCard *card, const PRUnichar * fieldDesc, PRUnichar * *_retval NS_OUTPARAM); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIIMPORTFIELDMAP(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetSkipFirstRecord(bool *aSkipFirstRecord) { return _to GetSkipFirstRecord(aSkipFirstRecord); } \
  NS_SCRIPTABLE NS_IMETHOD SetSkipFirstRecord(bool aSkipFirstRecord) { return _to SetSkipFirstRecord(aSkipFirstRecord); } \
  NS_SCRIPTABLE NS_IMETHOD GetNumMozFields(PRInt32 *aNumMozFields) { return _to GetNumMozFields(aNumMozFields); } \
  NS_SCRIPTABLE NS_IMETHOD GetMapSize(PRInt32 *aMapSize) { return _to GetMapSize(aMapSize); } \
  NS_SCRIPTABLE NS_IMETHOD GetFieldDescription(PRInt32 index, PRUnichar * *_retval NS_OUTPARAM) { return _to GetFieldDescription(index, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetFieldMapSize(PRInt32 size) { return _to SetFieldMapSize(size); } \
  NS_SCRIPTABLE NS_IMETHOD DefaultFieldMap(PRInt32 size) { return _to DefaultFieldMap(size); } \
  NS_SCRIPTABLE NS_IMETHOD GetFieldMap(PRInt32 index, PRInt32 *_retval NS_OUTPARAM) { return _to GetFieldMap(index, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetFieldMap(PRInt32 index, PRInt32 fieldNum) { return _to SetFieldMap(index, fieldNum); } \
  NS_SCRIPTABLE NS_IMETHOD SetFieldMapByDescription(PRInt32 index, const PRUnichar * fieldDesc) { return _to SetFieldMapByDescription(index, fieldDesc); } \
  NS_SCRIPTABLE NS_IMETHOD GetFieldActive(PRInt32 index, bool *_retval NS_OUTPARAM) { return _to GetFieldActive(index, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetFieldActive(PRInt32 index, bool active) { return _to SetFieldActive(index, active); } \
  NS_SCRIPTABLE NS_IMETHOD SetFieldValue(nsIAddrDatabase *database, nsIMdbRow *row, PRInt32 fieldNum, const PRUnichar * value) { return _to SetFieldValue(database, row, fieldNum, value); } \
  NS_SCRIPTABLE NS_IMETHOD SetFieldValueByDescription(nsIAddrDatabase *database, nsIMdbRow *row, const PRUnichar * fieldDesc, const PRUnichar * value) { return _to SetFieldValueByDescription(database, row, fieldDesc, value); } \
  NS_SCRIPTABLE NS_IMETHOD GetFieldValue(nsIAbCard *card, PRInt32 fieldNum, PRUnichar * *_retval NS_OUTPARAM) { return _to GetFieldValue(card, fieldNum, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetFieldValueByDescription(nsIAbCard *card, const PRUnichar * fieldDesc, PRUnichar * *_retval NS_OUTPARAM) { return _to GetFieldValueByDescription(card, fieldDesc, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIIMPORTFIELDMAP(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetSkipFirstRecord(bool *aSkipFirstRecord) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSkipFirstRecord(aSkipFirstRecord); } \
  NS_SCRIPTABLE NS_IMETHOD SetSkipFirstRecord(bool aSkipFirstRecord) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSkipFirstRecord(aSkipFirstRecord); } \
  NS_SCRIPTABLE NS_IMETHOD GetNumMozFields(PRInt32 *aNumMozFields) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumMozFields(aNumMozFields); } \
  NS_SCRIPTABLE NS_IMETHOD GetMapSize(PRInt32 *aMapSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMapSize(aMapSize); } \
  NS_SCRIPTABLE NS_IMETHOD GetFieldDescription(PRInt32 index, PRUnichar * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFieldDescription(index, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetFieldMapSize(PRInt32 size) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFieldMapSize(size); } \
  NS_SCRIPTABLE NS_IMETHOD DefaultFieldMap(PRInt32 size) { return !_to ? NS_ERROR_NULL_POINTER : _to->DefaultFieldMap(size); } \
  NS_SCRIPTABLE NS_IMETHOD GetFieldMap(PRInt32 index, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFieldMap(index, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetFieldMap(PRInt32 index, PRInt32 fieldNum) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFieldMap(index, fieldNum); } \
  NS_SCRIPTABLE NS_IMETHOD SetFieldMapByDescription(PRInt32 index, const PRUnichar * fieldDesc) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFieldMapByDescription(index, fieldDesc); } \
  NS_SCRIPTABLE NS_IMETHOD GetFieldActive(PRInt32 index, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFieldActive(index, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetFieldActive(PRInt32 index, bool active) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFieldActive(index, active); } \
  NS_SCRIPTABLE NS_IMETHOD SetFieldValue(nsIAddrDatabase *database, nsIMdbRow *row, PRInt32 fieldNum, const PRUnichar * value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFieldValue(database, row, fieldNum, value); } \
  NS_SCRIPTABLE NS_IMETHOD SetFieldValueByDescription(nsIAddrDatabase *database, nsIMdbRow *row, const PRUnichar * fieldDesc, const PRUnichar * value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFieldValueByDescription(database, row, fieldDesc, value); } \
  NS_SCRIPTABLE NS_IMETHOD GetFieldValue(nsIAbCard *card, PRInt32 fieldNum, PRUnichar * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFieldValue(card, fieldNum, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetFieldValueByDescription(nsIAbCard *card, const PRUnichar * fieldDesc, PRUnichar * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFieldValueByDescription(card, fieldDesc, _retval); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsImportFieldMap : public nsIImportFieldMap
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIIMPORTFIELDMAP

  nsImportFieldMap();

private:
  ~nsImportFieldMap();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsImportFieldMap, nsIImportFieldMap)

nsImportFieldMap::nsImportFieldMap()
{
  /* member initializers and constructor code */
}

nsImportFieldMap::~nsImportFieldMap()
{
  /* destructor code */
}

/* attribute boolean skipFirstRecord; */
NS_IMETHODIMP nsImportFieldMap::GetSkipFirstRecord(bool *aSkipFirstRecord)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsImportFieldMap::SetSkipFirstRecord(bool aSkipFirstRecord)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute long numMozFields; */
NS_IMETHODIMP nsImportFieldMap::GetNumMozFields(PRInt32 *aNumMozFields)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute long mapSize; */
NS_IMETHODIMP nsImportFieldMap::GetMapSize(PRInt32 *aMapSize)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* wstring GetFieldDescription (in long index); */
NS_IMETHODIMP nsImportFieldMap::GetFieldDescription(PRInt32 index, PRUnichar * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void SetFieldMapSize (in long size); */
NS_IMETHODIMP nsImportFieldMap::SetFieldMapSize(PRInt32 size)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void DefaultFieldMap (in long size); */
NS_IMETHODIMP nsImportFieldMap::DefaultFieldMap(PRInt32 size)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* long GetFieldMap (in long index); */
NS_IMETHODIMP nsImportFieldMap::GetFieldMap(PRInt32 index, PRInt32 *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void SetFieldMap (in long index, in long fieldNum); */
NS_IMETHODIMP nsImportFieldMap::SetFieldMap(PRInt32 index, PRInt32 fieldNum)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void SetFieldMapByDescription (in long index, in wstring fieldDesc); */
NS_IMETHODIMP nsImportFieldMap::SetFieldMapByDescription(PRInt32 index, const PRUnichar * fieldDesc)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean GetFieldActive (in long index); */
NS_IMETHODIMP nsImportFieldMap::GetFieldActive(PRInt32 index, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void SetFieldActive (in long index, in boolean active); */
NS_IMETHODIMP nsImportFieldMap::SetFieldActive(PRInt32 index, bool active)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void SetFieldValue (in nsIAddrDatabase database, in nsIMdbRow row, in long fieldNum, in wstring value); */
NS_IMETHODIMP nsImportFieldMap::SetFieldValue(nsIAddrDatabase *database, nsIMdbRow *row, PRInt32 fieldNum, const PRUnichar * value)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void SetFieldValueByDescription (in nsIAddrDatabase database, in nsIMdbRow row, in wstring fieldDesc, in wstring value); */
NS_IMETHODIMP nsImportFieldMap::SetFieldValueByDescription(nsIAddrDatabase *database, nsIMdbRow *row, const PRUnichar * fieldDesc, const PRUnichar * value)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* wstring GetFieldValue (in nsIAbCard card, in long fieldNum); */
NS_IMETHODIMP nsImportFieldMap::GetFieldValue(nsIAbCard *card, PRInt32 fieldNum, PRUnichar * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* wstring GetFieldValueByDescription (in nsIAbCard card, in wstring fieldDesc); */
NS_IMETHODIMP nsImportFieldMap::GetFieldValueByDescription(nsIAbCard *card, const PRUnichar * fieldDesc, PRUnichar * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif



#endif /* __gen_nsIImportFieldMap_h__ */