This file is indexed.

/usr/include/thunderbird/imIConversationsService.h is in thunderbird-dev 1:24.4.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
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /build/buildd/thunderbird-24.4.0+build1/chat/components/public/imIConversationsService.idl
 */

#ifndef __gen_imIConversationsService_h__
#define __gen_imIConversationsService_h__


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

#ifndef __gen_prplIConversation_h__
#include "prplIConversation.h"
#endif

#ifndef __gen_imIContactsService_h__
#include "imIContactsService.h"
#endif

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


/* starting interface:    imIConversation */
#define IMICONVERSATION_IID_STR "a09faf46-bb9d-402f-b460-89f8d7827ff1"

#define IMICONVERSATION_IID \
  {0xa09faf46, 0xbb9d, 0x402f, \
    { 0xb4, 0x60, 0x89, 0xf8, 0xd7, 0x82, 0x7f, 0xf1 }}

class NS_NO_VTABLE imIConversation : public prplIConversation {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(IMICONVERSATION_IID)

  /* readonly attribute imIContact contact; */
  NS_IMETHOD GetContact(imIContact * *aContact) = 0;

  /* void systemMessage (in AUTF8String aMessage, [optional] in boolean aIsError); */
  NS_IMETHOD SystemMessage(const nsACString & aMessage, bool aIsError) = 0;

  /* attribute prplIConversation target; */
  NS_IMETHOD GetTarget(prplIConversation * *aTarget) = 0;
  NS_IMETHOD SetTarget(prplIConversation *aTarget) = 0;

  /* readonly attribute unsigned long unreadMessageCount; */
  NS_IMETHOD GetUnreadMessageCount(uint32_t *aUnreadMessageCount) = 0;

  /* readonly attribute unsigned long unreadTargetedMessageCount; */
  NS_IMETHOD GetUnreadTargetedMessageCount(uint32_t *aUnreadTargetedMessageCount) = 0;

  /* readonly attribute unsigned long unreadIncomingMessageCount; */
  NS_IMETHOD GetUnreadIncomingMessageCount(uint32_t *aUnreadIncomingMessageCount) = 0;

  /* void markAsRead (); */
  NS_IMETHOD MarkAsRead(void) = 0;

  /* boolean checkClose (); */
  NS_IMETHOD CheckClose(bool *_retval) = 0;

  /* void getMessages ([optional] out unsigned long messageCount, [array, size_is (messageCount), retval] out prplIMessage messages); */
  NS_IMETHOD GetMessages(uint32_t *messageCount, prplIMessage * **messages) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(imIConversation, IMICONVERSATION_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMICONVERSATION \
  NS_IMETHOD GetContact(imIContact * *aContact); \
  NS_IMETHOD SystemMessage(const nsACString & aMessage, bool aIsError); \
  NS_IMETHOD GetTarget(prplIConversation * *aTarget); \
  NS_IMETHOD SetTarget(prplIConversation *aTarget); \
  NS_IMETHOD GetUnreadMessageCount(uint32_t *aUnreadMessageCount); \
  NS_IMETHOD GetUnreadTargetedMessageCount(uint32_t *aUnreadTargetedMessageCount); \
  NS_IMETHOD GetUnreadIncomingMessageCount(uint32_t *aUnreadIncomingMessageCount); \
  NS_IMETHOD MarkAsRead(void); \
  NS_IMETHOD CheckClose(bool *_retval); \
  NS_IMETHOD GetMessages(uint32_t *messageCount, prplIMessage * **messages); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMICONVERSATION(_to) \
  NS_IMETHOD GetContact(imIContact * *aContact) { return _to GetContact(aContact); } \
  NS_IMETHOD SystemMessage(const nsACString & aMessage, bool aIsError) { return _to SystemMessage(aMessage, aIsError); } \
  NS_IMETHOD GetTarget(prplIConversation * *aTarget) { return _to GetTarget(aTarget); } \
  NS_IMETHOD SetTarget(prplIConversation *aTarget) { return _to SetTarget(aTarget); } \
  NS_IMETHOD GetUnreadMessageCount(uint32_t *aUnreadMessageCount) { return _to GetUnreadMessageCount(aUnreadMessageCount); } \
  NS_IMETHOD GetUnreadTargetedMessageCount(uint32_t *aUnreadTargetedMessageCount) { return _to GetUnreadTargetedMessageCount(aUnreadTargetedMessageCount); } \
  NS_IMETHOD GetUnreadIncomingMessageCount(uint32_t *aUnreadIncomingMessageCount) { return _to GetUnreadIncomingMessageCount(aUnreadIncomingMessageCount); } \
  NS_IMETHOD MarkAsRead(void) { return _to MarkAsRead(); } \
  NS_IMETHOD CheckClose(bool *_retval) { return _to CheckClose(_retval); } \
  NS_IMETHOD GetMessages(uint32_t *messageCount, prplIMessage * **messages) { return _to GetMessages(messageCount, messages); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_IMICONVERSATION(_to) \
  NS_IMETHOD GetContact(imIContact * *aContact) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContact(aContact); } \
  NS_IMETHOD SystemMessage(const nsACString & aMessage, bool aIsError) { return !_to ? NS_ERROR_NULL_POINTER : _to->SystemMessage(aMessage, aIsError); } \
  NS_IMETHOD GetTarget(prplIConversation * *aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTarget(aTarget); } \
  NS_IMETHOD SetTarget(prplIConversation *aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTarget(aTarget); } \
  NS_IMETHOD GetUnreadMessageCount(uint32_t *aUnreadMessageCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnreadMessageCount(aUnreadMessageCount); } \
  NS_IMETHOD GetUnreadTargetedMessageCount(uint32_t *aUnreadTargetedMessageCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnreadTargetedMessageCount(aUnreadTargetedMessageCount); } \
  NS_IMETHOD GetUnreadIncomingMessageCount(uint32_t *aUnreadIncomingMessageCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnreadIncomingMessageCount(aUnreadIncomingMessageCount); } \
  NS_IMETHOD MarkAsRead(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkAsRead(); } \
  NS_IMETHOD CheckClose(bool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckClose(_retval); } \
  NS_IMETHOD GetMessages(uint32_t *messageCount, prplIMessage * **messages) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessages(messageCount, messages); } 

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

/* Header file */
class imConversation : public imIConversation
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_IMICONVERSATION

  imConversation();

private:
  ~imConversation();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(imConversation, imIConversation)

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

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

/* readonly attribute imIContact contact; */
NS_IMETHODIMP imConversation::GetContact(imIContact * *aContact)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void systemMessage (in AUTF8String aMessage, [optional] in boolean aIsError); */
NS_IMETHODIMP imConversation::SystemMessage(const nsACString & aMessage, bool aIsError)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute prplIConversation target; */
NS_IMETHODIMP imConversation::GetTarget(prplIConversation * *aTarget)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP imConversation::SetTarget(prplIConversation *aTarget)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long unreadMessageCount; */
NS_IMETHODIMP imConversation::GetUnreadMessageCount(uint32_t *aUnreadMessageCount)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long unreadTargetedMessageCount; */
NS_IMETHODIMP imConversation::GetUnreadTargetedMessageCount(uint32_t *aUnreadTargetedMessageCount)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long unreadIncomingMessageCount; */
NS_IMETHODIMP imConversation::GetUnreadIncomingMessageCount(uint32_t *aUnreadIncomingMessageCount)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void markAsRead (); */
NS_IMETHODIMP imConversation::MarkAsRead()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean checkClose (); */
NS_IMETHODIMP imConversation::CheckClose(bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getMessages ([optional] out unsigned long messageCount, [array, size_is (messageCount), retval] out prplIMessage messages); */
NS_IMETHODIMP imConversation::GetMessages(uint32_t *messageCount, prplIMessage * **messages)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    imIConversationsService */
#define IMICONVERSATIONSSERVICE_IID_STR "984e182c-d395-4fba-ba6e-cc80c71f57bf"

#define IMICONVERSATIONSSERVICE_IID \
  {0x984e182c, 0xd395, 0x4fba, \
    { 0xba, 0x6e, 0xcc, 0x80, 0xc7, 0x1f, 0x57, 0xbf }}

class NS_NO_VTABLE imIConversationsService : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(IMICONVERSATIONSSERVICE_IID)

  /* void initConversations (); */
  NS_IMETHOD InitConversations(void) = 0;

  /* void unInitConversations (); */
  NS_IMETHOD UnInitConversations(void) = 0;

  /* void addConversation (in prplIConversation aConversation); */
  NS_IMETHOD AddConversation(prplIConversation *aConversation) = 0;

  /* void removeConversation (in prplIConversation aConversation); */
  NS_IMETHOD RemoveConversation(prplIConversation *aConversation) = 0;

  /* void getUIConversations ([optional] out unsigned long conversationCount, [array, size_is (conversationCount), retval] out imIConversation conversations); */
  NS_IMETHOD GetUIConversations(uint32_t *conversationCount, imIConversation * **conversations) = 0;

  /* imIConversation getUIConversation (in prplIConversation aConversation); */
  NS_IMETHOD GetUIConversation(prplIConversation *aConversation, imIConversation * *_retval) = 0;

  /* imIConversation getUIConversationByContactId (in long aId); */
  NS_IMETHOD GetUIConversationByContactId(int32_t aId, imIConversation * *_retval) = 0;

  /* nsISimpleEnumerator getConversations (); */
  NS_IMETHOD GetConversations(nsISimpleEnumerator * *_retval) = 0;

  /* prplIConversation getConversationById (in unsigned long aId); */
  NS_IMETHOD GetConversationById(uint32_t aId, prplIConversation * *_retval) = 0;

  /* prplIConversation getConversationByNameAndAccount (in AUTF8String aName, in imIAccount aAccount, in boolean aIsChat); */
  NS_IMETHOD GetConversationByNameAndAccount(const nsACString & aName, imIAccount *aAccount, bool aIsChat, prplIConversation * *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(imIConversationsService, IMICONVERSATIONSSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMICONVERSATIONSSERVICE \
  NS_IMETHOD InitConversations(void); \
  NS_IMETHOD UnInitConversations(void); \
  NS_IMETHOD AddConversation(prplIConversation *aConversation); \
  NS_IMETHOD RemoveConversation(prplIConversation *aConversation); \
  NS_IMETHOD GetUIConversations(uint32_t *conversationCount, imIConversation * **conversations); \
  NS_IMETHOD GetUIConversation(prplIConversation *aConversation, imIConversation * *_retval); \
  NS_IMETHOD GetUIConversationByContactId(int32_t aId, imIConversation * *_retval); \
  NS_IMETHOD GetConversations(nsISimpleEnumerator * *_retval); \
  NS_IMETHOD GetConversationById(uint32_t aId, prplIConversation * *_retval); \
  NS_IMETHOD GetConversationByNameAndAccount(const nsACString & aName, imIAccount *aAccount, bool aIsChat, prplIConversation * *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMICONVERSATIONSSERVICE(_to) \
  NS_IMETHOD InitConversations(void) { return _to InitConversations(); } \
  NS_IMETHOD UnInitConversations(void) { return _to UnInitConversations(); } \
  NS_IMETHOD AddConversation(prplIConversation *aConversation) { return _to AddConversation(aConversation); } \
  NS_IMETHOD RemoveConversation(prplIConversation *aConversation) { return _to RemoveConversation(aConversation); } \
  NS_IMETHOD GetUIConversations(uint32_t *conversationCount, imIConversation * **conversations) { return _to GetUIConversations(conversationCount, conversations); } \
  NS_IMETHOD GetUIConversation(prplIConversation *aConversation, imIConversation * *_retval) { return _to GetUIConversation(aConversation, _retval); } \
  NS_IMETHOD GetUIConversationByContactId(int32_t aId, imIConversation * *_retval) { return _to GetUIConversationByContactId(aId, _retval); } \
  NS_IMETHOD GetConversations(nsISimpleEnumerator * *_retval) { return _to GetConversations(_retval); } \
  NS_IMETHOD GetConversationById(uint32_t aId, prplIConversation * *_retval) { return _to GetConversationById(aId, _retval); } \
  NS_IMETHOD GetConversationByNameAndAccount(const nsACString & aName, imIAccount *aAccount, bool aIsChat, prplIConversation * *_retval) { return _to GetConversationByNameAndAccount(aName, aAccount, aIsChat, _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_IMICONVERSATIONSSERVICE(_to) \
  NS_IMETHOD InitConversations(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitConversations(); } \
  NS_IMETHOD UnInitConversations(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnInitConversations(); } \
  NS_IMETHOD AddConversation(prplIConversation *aConversation) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddConversation(aConversation); } \
  NS_IMETHOD RemoveConversation(prplIConversation *aConversation) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveConversation(aConversation); } \
  NS_IMETHOD GetUIConversations(uint32_t *conversationCount, imIConversation * **conversations) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUIConversations(conversationCount, conversations); } \
  NS_IMETHOD GetUIConversation(prplIConversation *aConversation, imIConversation * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUIConversation(aConversation, _retval); } \
  NS_IMETHOD GetUIConversationByContactId(int32_t aId, imIConversation * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUIConversationByContactId(aId, _retval); } \
  NS_IMETHOD GetConversations(nsISimpleEnumerator * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConversations(_retval); } \
  NS_IMETHOD GetConversationById(uint32_t aId, prplIConversation * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConversationById(aId, _retval); } \
  NS_IMETHOD GetConversationByNameAndAccount(const nsACString & aName, imIAccount *aAccount, bool aIsChat, prplIConversation * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConversationByNameAndAccount(aName, aAccount, aIsChat, _retval); } 

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

/* Header file */
class imConversationsService : public imIConversationsService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_IMICONVERSATIONSSERVICE

  imConversationsService();

private:
  ~imConversationsService();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(imConversationsService, imIConversationsService)

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

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

/* void initConversations (); */
NS_IMETHODIMP imConversationsService::InitConversations()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void unInitConversations (); */
NS_IMETHODIMP imConversationsService::UnInitConversations()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void addConversation (in prplIConversation aConversation); */
NS_IMETHODIMP imConversationsService::AddConversation(prplIConversation *aConversation)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeConversation (in prplIConversation aConversation); */
NS_IMETHODIMP imConversationsService::RemoveConversation(prplIConversation *aConversation)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getUIConversations ([optional] out unsigned long conversationCount, [array, size_is (conversationCount), retval] out imIConversation conversations); */
NS_IMETHODIMP imConversationsService::GetUIConversations(uint32_t *conversationCount, imIConversation * **conversations)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* imIConversation getUIConversation (in prplIConversation aConversation); */
NS_IMETHODIMP imConversationsService::GetUIConversation(prplIConversation *aConversation, imIConversation * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* imIConversation getUIConversationByContactId (in long aId); */
NS_IMETHODIMP imConversationsService::GetUIConversationByContactId(int32_t aId, imIConversation * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsISimpleEnumerator getConversations (); */
NS_IMETHODIMP imConversationsService::GetConversations(nsISimpleEnumerator * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* prplIConversation getConversationById (in unsigned long aId); */
NS_IMETHODIMP imConversationsService::GetConversationById(uint32_t aId, prplIConversation * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* prplIConversation getConversationByNameAndAccount (in AUTF8String aName, in imIAccount aAccount, in boolean aIsChat); */
NS_IMETHODIMP imConversationsService::GetConversationByNameAndAccount(const nsACString & aName, imIAccount *aAccount, bool aIsChat, prplIConversation * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_imIConversationsService_h__ */