This file is indexed.

/usr/include/thunderbird/nsIPop3Service.h is in thunderbird-dev 1:38.6.0+build1-0ubuntu1.

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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPop3Service.idl
 */

#ifndef __gen_nsIPop3Service_h__
#define __gen_nsIPop3Service_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#ifndef __gen_nsIUrlListener_h__
#include "nsIUrlListener.h"
#endif

#ifndef __gen_nsIPop3IncomingServer_h__
#include "nsIPop3IncomingServer.h"
#endif

#ifndef __gen_nsIMsgFolder_h__
#include "nsIMsgFolder.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIURI; /* forward declaration */

class nsIMsgWindow; /* forward declaration */

class nsIMsgFolder; /* forward declaration */


/* starting interface:    nsIPop3ServiceListener */
#define NS_IPOP3SERVICELISTENER_IID_STR "7302fd8e-946f-4ae3-9468-0fb3a7706c51"

#define NS_IPOP3SERVICELISTENER_IID \
  {0x7302fd8e, 0x946f, 0x4ae3, \
    { 0x94, 0x68, 0x0f, 0xb3, 0xa7, 0x70, 0x6c, 0x51 }}

class NS_NO_VTABLE nsIPop3ServiceListener : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPOP3SERVICELISTENER_IID)

  /* void onDownloadStarted (in nsIMsgFolder aFolder); */
  NS_IMETHOD OnDownloadStarted(nsIMsgFolder *aFolder) = 0;

  /* void onDownloadProgress (in nsIMsgFolder aFolder, in unsigned long aNumDownloaded, in unsigned long aTotalToDownload); */
  NS_IMETHOD OnDownloadProgress(nsIMsgFolder *aFolder, uint32_t aNumDownloaded, uint32_t aTotalToDownload) = 0;

  /* void onDownloadCompleted (in nsIMsgFolder aFolder, in unsigned long aNumberOfMessages); */
  NS_IMETHOD OnDownloadCompleted(nsIMsgFolder *aFolder, uint32_t aNumberOfMessages) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIPop3ServiceListener, NS_IPOP3SERVICELISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPOP3SERVICELISTENER \
  NS_IMETHOD OnDownloadStarted(nsIMsgFolder *aFolder) override; \
  NS_IMETHOD OnDownloadProgress(nsIMsgFolder *aFolder, uint32_t aNumDownloaded, uint32_t aTotalToDownload) override; \
  NS_IMETHOD OnDownloadCompleted(nsIMsgFolder *aFolder, uint32_t aNumberOfMessages) override; 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPOP3SERVICELISTENER(_to) \
  NS_IMETHOD OnDownloadStarted(nsIMsgFolder *aFolder) override { return _to OnDownloadStarted(aFolder); } \
  NS_IMETHOD OnDownloadProgress(nsIMsgFolder *aFolder, uint32_t aNumDownloaded, uint32_t aTotalToDownload) override { return _to OnDownloadProgress(aFolder, aNumDownloaded, aTotalToDownload); } \
  NS_IMETHOD OnDownloadCompleted(nsIMsgFolder *aFolder, uint32_t aNumberOfMessages) override { return _to OnDownloadCompleted(aFolder, aNumberOfMessages); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPOP3SERVICELISTENER(_to) \
  NS_IMETHOD OnDownloadStarted(nsIMsgFolder *aFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDownloadStarted(aFolder); } \
  NS_IMETHOD OnDownloadProgress(nsIMsgFolder *aFolder, uint32_t aNumDownloaded, uint32_t aTotalToDownload) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDownloadProgress(aFolder, aNumDownloaded, aTotalToDownload); } \
  NS_IMETHOD OnDownloadCompleted(nsIMsgFolder *aFolder, uint32_t aNumberOfMessages) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDownloadCompleted(aFolder, aNumberOfMessages); } 

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

/* Header file */
class nsPop3ServiceListener : public nsIPop3ServiceListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPOP3SERVICELISTENER

  nsPop3ServiceListener();

private:
  ~nsPop3ServiceListener();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsPop3ServiceListener, nsIPop3ServiceListener)

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

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

/* void onDownloadStarted (in nsIMsgFolder aFolder); */
NS_IMETHODIMP nsPop3ServiceListener::OnDownloadStarted(nsIMsgFolder *aFolder)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onDownloadProgress (in nsIMsgFolder aFolder, in unsigned long aNumDownloaded, in unsigned long aTotalToDownload); */
NS_IMETHODIMP nsPop3ServiceListener::OnDownloadProgress(nsIMsgFolder *aFolder, uint32_t aNumDownloaded, uint32_t aTotalToDownload)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onDownloadCompleted (in nsIMsgFolder aFolder, in unsigned long aNumberOfMessages); */
NS_IMETHODIMP nsPop3ServiceListener::OnDownloadCompleted(nsIMsgFolder *aFolder, uint32_t aNumberOfMessages)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIPop3Service */
#define NS_IPOP3SERVICE_IID_STR "96d3cc14-a842-4cdf-98f8-a4cc695f8b3b"

#define NS_IPOP3SERVICE_IID \
  {0x96d3cc14, 0xa842, 0x4cdf, \
    { 0x98, 0xf8, 0xa4, 0xcc, 0x69, 0x5f, 0x8b, 0x3b }}

class NS_NO_VTABLE nsIPop3Service : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPOP3SERVICE_IID)

  /* nsIURI GetNewMail (in nsIMsgWindow aMsgWindow, in nsIUrlListener aUrlListener, in nsIMsgFolder aInbox, in nsIPop3IncomingServer popServer); */
  NS_IMETHOD GetNewMail(nsIMsgWindow *aMsgWindow, nsIUrlListener *aUrlListener, nsIMsgFolder *aInbox, nsIPop3IncomingServer *popServer, nsIURI * *_retval) = 0;

  /* nsIURI CheckForNewMail (in nsIMsgWindow aMsgWindow, in nsIUrlListener aUrlListener, in nsIMsgFolder inbox, in nsIPop3IncomingServer popServer); */
  NS_IMETHOD CheckForNewMail(nsIMsgWindow *aMsgWindow, nsIUrlListener *aUrlListener, nsIMsgFolder *inbox, nsIPop3IncomingServer *popServer, nsIURI * *_retval) = 0;

  /* nsIURI verifyLogon (in nsIMsgIncomingServer aServer, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
  NS_IMETHOD VerifyLogon(nsIMsgIncomingServer *aServer, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval) = 0;

  /* void addListener (in nsIPop3ServiceListener aListener); */
  NS_IMETHOD AddListener(nsIPop3ServiceListener *aListener) = 0;

  /* void removeListener (in nsIPop3ServiceListener aListener); */
  NS_IMETHOD RemoveListener(nsIPop3ServiceListener *aListener) = 0;

  /* void notifyDownloadStarted (in nsIMsgFolder aFolder); */
  NS_IMETHOD NotifyDownloadStarted(nsIMsgFolder *aFolder) = 0;

  /* void notifyDownloadProgress (in nsIMsgFolder aFolder, in unsigned long aNumDownloaded, in unsigned long aTotalToDownload); */
  NS_IMETHOD NotifyDownloadProgress(nsIMsgFolder *aFolder, uint32_t aNumDownloaded, uint32_t aTotalToDownload) = 0;

  /* void notifyDownloadCompleted (in nsIMsgFolder aFolder, in unsigned long aNumberOfMessages); */
  NS_IMETHOD NotifyDownloadCompleted(nsIMsgFolder *aFolder, uint32_t aNumberOfMessages) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIPop3Service, NS_IPOP3SERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPOP3SERVICE \
  NS_IMETHOD GetNewMail(nsIMsgWindow *aMsgWindow, nsIUrlListener *aUrlListener, nsIMsgFolder *aInbox, nsIPop3IncomingServer *popServer, nsIURI * *_retval) override; \
  NS_IMETHOD CheckForNewMail(nsIMsgWindow *aMsgWindow, nsIUrlListener *aUrlListener, nsIMsgFolder *inbox, nsIPop3IncomingServer *popServer, nsIURI * *_retval) override; \
  NS_IMETHOD VerifyLogon(nsIMsgIncomingServer *aServer, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval) override; \
  NS_IMETHOD AddListener(nsIPop3ServiceListener *aListener) override; \
  NS_IMETHOD RemoveListener(nsIPop3ServiceListener *aListener) override; \
  NS_IMETHOD NotifyDownloadStarted(nsIMsgFolder *aFolder) override; \
  NS_IMETHOD NotifyDownloadProgress(nsIMsgFolder *aFolder, uint32_t aNumDownloaded, uint32_t aTotalToDownload) override; \
  NS_IMETHOD NotifyDownloadCompleted(nsIMsgFolder *aFolder, uint32_t aNumberOfMessages) override; 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPOP3SERVICE(_to) \
  NS_IMETHOD GetNewMail(nsIMsgWindow *aMsgWindow, nsIUrlListener *aUrlListener, nsIMsgFolder *aInbox, nsIPop3IncomingServer *popServer, nsIURI * *_retval) override { return _to GetNewMail(aMsgWindow, aUrlListener, aInbox, popServer, _retval); } \
  NS_IMETHOD CheckForNewMail(nsIMsgWindow *aMsgWindow, nsIUrlListener *aUrlListener, nsIMsgFolder *inbox, nsIPop3IncomingServer *popServer, nsIURI * *_retval) override { return _to CheckForNewMail(aMsgWindow, aUrlListener, inbox, popServer, _retval); } \
  NS_IMETHOD VerifyLogon(nsIMsgIncomingServer *aServer, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval) override { return _to VerifyLogon(aServer, aUrlListener, aMsgWindow, _retval); } \
  NS_IMETHOD AddListener(nsIPop3ServiceListener *aListener) override { return _to AddListener(aListener); } \
  NS_IMETHOD RemoveListener(nsIPop3ServiceListener *aListener) override { return _to RemoveListener(aListener); } \
  NS_IMETHOD NotifyDownloadStarted(nsIMsgFolder *aFolder) override { return _to NotifyDownloadStarted(aFolder); } \
  NS_IMETHOD NotifyDownloadProgress(nsIMsgFolder *aFolder, uint32_t aNumDownloaded, uint32_t aTotalToDownload) override { return _to NotifyDownloadProgress(aFolder, aNumDownloaded, aTotalToDownload); } \
  NS_IMETHOD NotifyDownloadCompleted(nsIMsgFolder *aFolder, uint32_t aNumberOfMessages) override { return _to NotifyDownloadCompleted(aFolder, aNumberOfMessages); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPOP3SERVICE(_to) \
  NS_IMETHOD GetNewMail(nsIMsgWindow *aMsgWindow, nsIUrlListener *aUrlListener, nsIMsgFolder *aInbox, nsIPop3IncomingServer *popServer, nsIURI * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNewMail(aMsgWindow, aUrlListener, aInbox, popServer, _retval); } \
  NS_IMETHOD CheckForNewMail(nsIMsgWindow *aMsgWindow, nsIUrlListener *aUrlListener, nsIMsgFolder *inbox, nsIPop3IncomingServer *popServer, nsIURI * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckForNewMail(aMsgWindow, aUrlListener, inbox, popServer, _retval); } \
  NS_IMETHOD VerifyLogon(nsIMsgIncomingServer *aServer, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->VerifyLogon(aServer, aUrlListener, aMsgWindow, _retval); } \
  NS_IMETHOD AddListener(nsIPop3ServiceListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddListener(aListener); } \
  NS_IMETHOD RemoveListener(nsIPop3ServiceListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveListener(aListener); } \
  NS_IMETHOD NotifyDownloadStarted(nsIMsgFolder *aFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyDownloadStarted(aFolder); } \
  NS_IMETHOD NotifyDownloadProgress(nsIMsgFolder *aFolder, uint32_t aNumDownloaded, uint32_t aTotalToDownload) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyDownloadProgress(aFolder, aNumDownloaded, aTotalToDownload); } \
  NS_IMETHOD NotifyDownloadCompleted(nsIMsgFolder *aFolder, uint32_t aNumberOfMessages) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyDownloadCompleted(aFolder, aNumberOfMessages); } 

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

/* Header file */
class nsPop3Service : public nsIPop3Service
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPOP3SERVICE

  nsPop3Service();

private:
  ~nsPop3Service();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsPop3Service, nsIPop3Service)

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

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

/* nsIURI GetNewMail (in nsIMsgWindow aMsgWindow, in nsIUrlListener aUrlListener, in nsIMsgFolder aInbox, in nsIPop3IncomingServer popServer); */
NS_IMETHODIMP nsPop3Service::GetNewMail(nsIMsgWindow *aMsgWindow, nsIUrlListener *aUrlListener, nsIMsgFolder *aInbox, nsIPop3IncomingServer *popServer, nsIURI * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIURI CheckForNewMail (in nsIMsgWindow aMsgWindow, in nsIUrlListener aUrlListener, in nsIMsgFolder inbox, in nsIPop3IncomingServer popServer); */
NS_IMETHODIMP nsPop3Service::CheckForNewMail(nsIMsgWindow *aMsgWindow, nsIUrlListener *aUrlListener, nsIMsgFolder *inbox, nsIPop3IncomingServer *popServer, nsIURI * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIURI verifyLogon (in nsIMsgIncomingServer aServer, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
NS_IMETHODIMP nsPop3Service::VerifyLogon(nsIMsgIncomingServer *aServer, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void addListener (in nsIPop3ServiceListener aListener); */
NS_IMETHODIMP nsPop3Service::AddListener(nsIPop3ServiceListener *aListener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeListener (in nsIPop3ServiceListener aListener); */
NS_IMETHODIMP nsPop3Service::RemoveListener(nsIPop3ServiceListener *aListener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void notifyDownloadStarted (in nsIMsgFolder aFolder); */
NS_IMETHODIMP nsPop3Service::NotifyDownloadStarted(nsIMsgFolder *aFolder)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void notifyDownloadProgress (in nsIMsgFolder aFolder, in unsigned long aNumDownloaded, in unsigned long aTotalToDownload); */
NS_IMETHODIMP nsPop3Service::NotifyDownloadProgress(nsIMsgFolder *aFolder, uint32_t aNumDownloaded, uint32_t aTotalToDownload)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void notifyDownloadCompleted (in nsIMsgFolder aFolder, in unsigned long aNumberOfMessages); */
NS_IMETHODIMP nsPop3Service::NotifyDownloadCompleted(nsIMsgFolder *aFolder, uint32_t aNumberOfMessages)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIPop3Service_h__ */