This file is indexed.

/usr/include/thunderbird/imILogger.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
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
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/imILogger.idl
 */

#ifndef __gen_imILogger_h__
#define __gen_imILogger_h__


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

#ifndef __gen_nsISimpleEnumerator_h__
#include "nsISimpleEnumerator.h"
#endif

#ifndef __gen_nsIFile_h__
#include "nsIFile.h"
#endif

#include "js/Value.h"

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

class prplIAccountBuddy; /* forward declaration */

class imIBuddy; /* forward declaration */

class imIContact; /* forward declaration */

class imIMessage; /* forward declaration */

class prplIConversation; /* forward declaration */


/* starting interface:    imILogConversation */
#define IMILOGCONVERSATION_IID_STR "7771402c-ff55-41f5-86b4-59b93f9b0693"

#define IMILOGCONVERSATION_IID \
  {0x7771402c, 0xff55, 0x41f5, \
    { 0x86, 0xb4, 0x59, 0xb9, 0x3f, 0x9b, 0x06, 0x93 }}

class NS_NO_VTABLE imILogConversation : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(IMILOGCONVERSATION_IID)

  /* readonly attribute AUTF8String title; */
  NS_IMETHOD GetTitle(nsACString & aTitle) = 0;

  /* readonly attribute AUTF8String name; */
  NS_IMETHOD GetName(nsACString & aName) = 0;

  /* readonly attribute PRTime startDate; */
  NS_IMETHOD GetStartDate(PRTime *aStartDate) = 0;

  /* readonly attribute imIAccount account; */
  NS_IMETHOD GetAccount(imIAccount * *aAccount) = 0;

  /* readonly attribute boolean isChat; */
  NS_IMETHOD GetIsChat(bool *aIsChat) = 0;

  /* readonly attribute prplIAccountBuddy buddy; */
  NS_IMETHOD GetBuddy(prplIAccountBuddy * *aBuddy) = 0;

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

  /* nsISimpleEnumerator getMessagesEnumerator ([optional] out unsigned long messageCount); */
  NS_IMETHOD GetMessagesEnumerator(uint32_t *messageCount, nsISimpleEnumerator * *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(imILogConversation, IMILOGCONVERSATION_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMILOGCONVERSATION \
  NS_IMETHOD GetTitle(nsACString & aTitle) override; \
  NS_IMETHOD GetName(nsACString & aName) override; \
  NS_IMETHOD GetStartDate(PRTime *aStartDate) override; \
  NS_IMETHOD GetAccount(imIAccount * *aAccount) override; \
  NS_IMETHOD GetIsChat(bool *aIsChat) override; \
  NS_IMETHOD GetBuddy(prplIAccountBuddy * *aBuddy) override; \
  NS_IMETHOD GetMessages(uint32_t *messageCount, imIMessage * **messages) override; \
  NS_IMETHOD GetMessagesEnumerator(uint32_t *messageCount, nsISimpleEnumerator * *_retval) 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_IMILOGCONVERSATION \
  NS_METHOD GetTitle(nsACString & aTitle); \
  NS_METHOD GetName(nsACString & aName); \
  NS_METHOD GetStartDate(PRTime *aStartDate); \
  NS_METHOD GetAccount(imIAccount * *aAccount); \
  NS_METHOD GetIsChat(bool *aIsChat); \
  NS_METHOD GetBuddy(prplIAccountBuddy * *aBuddy); \
  NS_METHOD GetMessages(uint32_t *messageCount, imIMessage * **messages); \
  NS_METHOD GetMessagesEnumerator(uint32_t *messageCount, nsISimpleEnumerator * *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMILOGCONVERSATION(_to) \
  NS_IMETHOD GetTitle(nsACString & aTitle) override { return _to GetTitle(aTitle); } \
  NS_IMETHOD GetName(nsACString & aName) override { return _to GetName(aName); } \
  NS_IMETHOD GetStartDate(PRTime *aStartDate) override { return _to GetStartDate(aStartDate); } \
  NS_IMETHOD GetAccount(imIAccount * *aAccount) override { return _to GetAccount(aAccount); } \
  NS_IMETHOD GetIsChat(bool *aIsChat) override { return _to GetIsChat(aIsChat); } \
  NS_IMETHOD GetBuddy(prplIAccountBuddy * *aBuddy) override { return _to GetBuddy(aBuddy); } \
  NS_IMETHOD GetMessages(uint32_t *messageCount, imIMessage * **messages) override { return _to GetMessages(messageCount, messages); } \
  NS_IMETHOD GetMessagesEnumerator(uint32_t *messageCount, nsISimpleEnumerator * *_retval) override { return _to GetMessagesEnumerator(messageCount, _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_IMILOGCONVERSATION(_to) \
  NS_IMETHOD GetTitle(nsACString & aTitle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
  NS_IMETHOD GetName(nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_IMETHOD GetStartDate(PRTime *aStartDate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartDate(aStartDate); } \
  NS_IMETHOD GetAccount(imIAccount * *aAccount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccount(aAccount); } \
  NS_IMETHOD GetIsChat(bool *aIsChat) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsChat(aIsChat); } \
  NS_IMETHOD GetBuddy(prplIAccountBuddy * *aBuddy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBuddy(aBuddy); } \
  NS_IMETHOD GetMessages(uint32_t *messageCount, imIMessage * **messages) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessages(messageCount, messages); } \
  NS_IMETHOD GetMessagesEnumerator(uint32_t *messageCount, nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessagesEnumerator(messageCount, _retval); } 

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

/* Header file */
class imLogConversation : public imILogConversation
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_IMILOGCONVERSATION

  imLogConversation();

private:
  ~imLogConversation();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(imLogConversation, imILogConversation)

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

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

/* readonly attribute AUTF8String title; */
NS_IMETHODIMP imLogConversation::GetTitle(nsACString & aTitle)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AUTF8String name; */
NS_IMETHODIMP imLogConversation::GetName(nsACString & aName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute PRTime startDate; */
NS_IMETHODIMP imLogConversation::GetStartDate(PRTime *aStartDate)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute imIAccount account; */
NS_IMETHODIMP imLogConversation::GetAccount(imIAccount * *aAccount)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean isChat; */
NS_IMETHODIMP imLogConversation::GetIsChat(bool *aIsChat)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute prplIAccountBuddy buddy; */
NS_IMETHODIMP imLogConversation::GetBuddy(prplIAccountBuddy * *aBuddy)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

/* nsISimpleEnumerator getMessagesEnumerator ([optional] out unsigned long messageCount); */
NS_IMETHODIMP imLogConversation::GetMessagesEnumerator(uint32_t *messageCount, nsISimpleEnumerator * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    imILog */
#define IMILOG_IID_STR "27712ece-ad2c-4504-87d5-9e2c16d40fef"

#define IMILOG_IID \
  {0x27712ece, 0xad2c, 0x4504, \
    { 0x87, 0xd5, 0x9e, 0x2c, 0x16, 0xd4, 0x0f, 0xef }}

class NS_NO_VTABLE imILog : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(IMILOG_IID)

  /* readonly attribute AUTF8String path; */
  NS_IMETHOD GetPath(nsACString & aPath) = 0;

  /* readonly attribute PRTime time; */
  NS_IMETHOD GetTime(PRTime *aTime) = 0;

  /* readonly attribute AUTF8String format; */
  NS_IMETHOD GetFormat(nsACString & aFormat) = 0;

  /* jsval getConversation (); */
  NS_IMETHOD GetConversation(JS::MutableHandleValue _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(imILog, IMILOG_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMILOG \
  NS_IMETHOD GetPath(nsACString & aPath) override; \
  NS_IMETHOD GetTime(PRTime *aTime) override; \
  NS_IMETHOD GetFormat(nsACString & aFormat) override; \
  NS_IMETHOD GetConversation(JS::MutableHandleValue _retval) 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_IMILOG \
  NS_METHOD GetPath(nsACString & aPath); \
  NS_METHOD GetTime(PRTime *aTime); \
  NS_METHOD GetFormat(nsACString & aFormat); \
  NS_METHOD GetConversation(JS::MutableHandleValue _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMILOG(_to) \
  NS_IMETHOD GetPath(nsACString & aPath) override { return _to GetPath(aPath); } \
  NS_IMETHOD GetTime(PRTime *aTime) override { return _to GetTime(aTime); } \
  NS_IMETHOD GetFormat(nsACString & aFormat) override { return _to GetFormat(aFormat); } \
  NS_IMETHOD GetConversation(JS::MutableHandleValue _retval) override { return _to GetConversation(_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_IMILOG(_to) \
  NS_IMETHOD GetPath(nsACString & aPath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPath(aPath); } \
  NS_IMETHOD GetTime(PRTime *aTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTime(aTime); } \
  NS_IMETHOD GetFormat(nsACString & aFormat) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFormat(aFormat); } \
  NS_IMETHOD GetConversation(JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConversation(_retval); } 

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

/* Header file */
class imLog : public imILog
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_IMILOG

  imLog();

private:
  ~imLog();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(imLog, imILog)

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

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

/* readonly attribute AUTF8String path; */
NS_IMETHODIMP imLog::GetPath(nsACString & aPath)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute PRTime time; */
NS_IMETHODIMP imLog::GetTime(PRTime *aTime)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AUTF8String format; */
NS_IMETHODIMP imLog::GetFormat(nsACString & aFormat)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* jsval getConversation (); */
NS_IMETHODIMP imLog::GetConversation(JS::MutableHandleValue _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    imIProcessLogsCallback */
#define IMIPROCESSLOGSCALLBACK_IID_STR "2ab5f8ac-4b89-4954-9a4a-7c167f1e3b0d"

#define IMIPROCESSLOGSCALLBACK_IID \
  {0x2ab5f8ac, 0x4b89, 0x4954, \
    { 0x9a, 0x4a, 0x7c, 0x16, 0x7f, 0x1e, 0x3b, 0x0d }}

class NS_NO_VTABLE imIProcessLogsCallback : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(IMIPROCESSLOGSCALLBACK_IID)

  /* jsval processLog (in AUTF8String aLogPath); */
  NS_IMETHOD ProcessLog(const nsACString & aLogPath, JS::MutableHandleValue _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(imIProcessLogsCallback, IMIPROCESSLOGSCALLBACK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMIPROCESSLOGSCALLBACK \
  NS_IMETHOD ProcessLog(const nsACString & aLogPath, JS::MutableHandleValue _retval) 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_IMIPROCESSLOGSCALLBACK \
  NS_METHOD ProcessLog(const nsACString & aLogPath, JS::MutableHandleValue _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMIPROCESSLOGSCALLBACK(_to) \
  NS_IMETHOD ProcessLog(const nsACString & aLogPath, JS::MutableHandleValue _retval) override { return _to ProcessLog(aLogPath, _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_IMIPROCESSLOGSCALLBACK(_to) \
  NS_IMETHOD ProcessLog(const nsACString & aLogPath, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ProcessLog(aLogPath, _retval); } 

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

/* Header file */
class imProcessLogsCallback : public imIProcessLogsCallback
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_IMIPROCESSLOGSCALLBACK

  imProcessLogsCallback();

private:
  ~imProcessLogsCallback();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(imProcessLogsCallback, imIProcessLogsCallback)

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

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

/* jsval processLog (in AUTF8String aLogPath); */
NS_IMETHODIMP imProcessLogsCallback::ProcessLog(const nsACString & aLogPath, JS::MutableHandleValue _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    imILogger */
#define IMILOGGER_IID_STR "7e2476dc-8199-4454-9661-b78ee73fa49e"

#define IMILOGGER_IID \
  {0x7e2476dc, 0x8199, 0x4454, \
    { 0x96, 0x61, 0xb7, 0x8e, 0xe7, 0x3f, 0xa4, 0x9e }}

class NS_NO_VTABLE imILogger : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(IMILOGGER_IID)

  /* jsval getLogFromFile (in AUTF8String aFilePath, [optional] in boolean aGroupByDay); */
  NS_IMETHOD GetLogFromFile(const nsACString & aFilePath, bool aGroupByDay, JS::MutableHandleValue _retval) = 0;

  /* jsval getLogPathsForConversation (in prplIConversation aConversation); */
  NS_IMETHOD GetLogPathsForConversation(prplIConversation *aConversation, JS::MutableHandleValue _retval) = 0;

  /* jsval getLogsForAccountAndName (in imIAccount aAccount, in AUTF8String aNormalizedName, [optional] in boolean aGroupByDay); */
  NS_IMETHOD GetLogsForAccountAndName(imIAccount *aAccount, const nsACString & aNormalizedName, bool aGroupByDay, JS::MutableHandleValue _retval) = 0;

  /* jsval getLogsForAccountBuddy (in prplIAccountBuddy aAccountBuddy, [optional] in boolean aGroupByDay); */
  NS_IMETHOD GetLogsForAccountBuddy(prplIAccountBuddy *aAccountBuddy, bool aGroupByDay, JS::MutableHandleValue _retval) = 0;

  /* jsval getLogsForBuddy (in imIBuddy aBuddy, [optional] in boolean aGroupByDay); */
  NS_IMETHOD GetLogsForBuddy(imIBuddy *aBuddy, bool aGroupByDay, JS::MutableHandleValue _retval) = 0;

  /* jsval getLogsForContact (in imIContact aContact, [optional] in boolean aGroupByDay); */
  NS_IMETHOD GetLogsForContact(imIContact *aContact, bool aGroupByDay, JS::MutableHandleValue _retval) = 0;

  /* jsval getLogsForConversation (in prplIConversation aConversation, [optional] in boolean aGroupByDay); */
  NS_IMETHOD GetLogsForConversation(prplIConversation *aConversation, bool aGroupByDay, JS::MutableHandleValue _retval) = 0;

  /* jsval getSystemLogsForAccount (in imIAccount aAccount); */
  NS_IMETHOD GetSystemLogsForAccount(imIAccount *aAccount, JS::MutableHandleValue _retval) = 0;

  /* jsval getSimilarLogs (in imILog aLog, [optional] in boolean aGroupByDay); */
  NS_IMETHOD GetSimilarLogs(imILog *aLog, bool aGroupByDay, JS::MutableHandleValue _retval) = 0;

  /* jsval forEach (in imIProcessLogsCallback aCallback); */
  NS_IMETHOD ForEach(imIProcessLogsCallback *aCallback, JS::MutableHandleValue _retval) = 0;

  /* AUTF8String getLogFolderPathForAccount (in imIAccount aAccount); */
  NS_IMETHOD GetLogFolderPathForAccount(imIAccount *aAccount, nsACString & _retval) = 0;

  /* jsval deleteLogFolderForAccount (in imIAccount aAccount); */
  NS_IMETHOD DeleteLogFolderForAccount(imIAccount *aAccount, JS::MutableHandleValue _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(imILogger, IMILOGGER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_IMILOGGER \
  NS_IMETHOD GetLogFromFile(const nsACString & aFilePath, bool aGroupByDay, JS::MutableHandleValue _retval) override; \
  NS_IMETHOD GetLogPathsForConversation(prplIConversation *aConversation, JS::MutableHandleValue _retval) override; \
  NS_IMETHOD GetLogsForAccountAndName(imIAccount *aAccount, const nsACString & aNormalizedName, bool aGroupByDay, JS::MutableHandleValue _retval) override; \
  NS_IMETHOD GetLogsForAccountBuddy(prplIAccountBuddy *aAccountBuddy, bool aGroupByDay, JS::MutableHandleValue _retval) override; \
  NS_IMETHOD GetLogsForBuddy(imIBuddy *aBuddy, bool aGroupByDay, JS::MutableHandleValue _retval) override; \
  NS_IMETHOD GetLogsForContact(imIContact *aContact, bool aGroupByDay, JS::MutableHandleValue _retval) override; \
  NS_IMETHOD GetLogsForConversation(prplIConversation *aConversation, bool aGroupByDay, JS::MutableHandleValue _retval) override; \
  NS_IMETHOD GetSystemLogsForAccount(imIAccount *aAccount, JS::MutableHandleValue _retval) override; \
  NS_IMETHOD GetSimilarLogs(imILog *aLog, bool aGroupByDay, JS::MutableHandleValue _retval) override; \
  NS_IMETHOD ForEach(imIProcessLogsCallback *aCallback, JS::MutableHandleValue _retval) override; \
  NS_IMETHOD GetLogFolderPathForAccount(imIAccount *aAccount, nsACString & _retval) override; \
  NS_IMETHOD DeleteLogFolderForAccount(imIAccount *aAccount, JS::MutableHandleValue _retval) 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_IMILOGGER \
  NS_METHOD GetLogFromFile(const nsACString & aFilePath, bool aGroupByDay, JS::MutableHandleValue _retval); \
  NS_METHOD GetLogPathsForConversation(prplIConversation *aConversation, JS::MutableHandleValue _retval); \
  NS_METHOD GetLogsForAccountAndName(imIAccount *aAccount, const nsACString & aNormalizedName, bool aGroupByDay, JS::MutableHandleValue _retval); \
  NS_METHOD GetLogsForAccountBuddy(prplIAccountBuddy *aAccountBuddy, bool aGroupByDay, JS::MutableHandleValue _retval); \
  NS_METHOD GetLogsForBuddy(imIBuddy *aBuddy, bool aGroupByDay, JS::MutableHandleValue _retval); \
  NS_METHOD GetLogsForContact(imIContact *aContact, bool aGroupByDay, JS::MutableHandleValue _retval); \
  NS_METHOD GetLogsForConversation(prplIConversation *aConversation, bool aGroupByDay, JS::MutableHandleValue _retval); \
  NS_METHOD GetSystemLogsForAccount(imIAccount *aAccount, JS::MutableHandleValue _retval); \
  NS_METHOD GetSimilarLogs(imILog *aLog, bool aGroupByDay, JS::MutableHandleValue _retval); \
  NS_METHOD ForEach(imIProcessLogsCallback *aCallback, JS::MutableHandleValue _retval); \
  NS_METHOD GetLogFolderPathForAccount(imIAccount *aAccount, nsACString & _retval); \
  NS_METHOD DeleteLogFolderForAccount(imIAccount *aAccount, JS::MutableHandleValue _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_IMILOGGER(_to) \
  NS_IMETHOD GetLogFromFile(const nsACString & aFilePath, bool aGroupByDay, JS::MutableHandleValue _retval) override { return _to GetLogFromFile(aFilePath, aGroupByDay, _retval); } \
  NS_IMETHOD GetLogPathsForConversation(prplIConversation *aConversation, JS::MutableHandleValue _retval) override { return _to GetLogPathsForConversation(aConversation, _retval); } \
  NS_IMETHOD GetLogsForAccountAndName(imIAccount *aAccount, const nsACString & aNormalizedName, bool aGroupByDay, JS::MutableHandleValue _retval) override { return _to GetLogsForAccountAndName(aAccount, aNormalizedName, aGroupByDay, _retval); } \
  NS_IMETHOD GetLogsForAccountBuddy(prplIAccountBuddy *aAccountBuddy, bool aGroupByDay, JS::MutableHandleValue _retval) override { return _to GetLogsForAccountBuddy(aAccountBuddy, aGroupByDay, _retval); } \
  NS_IMETHOD GetLogsForBuddy(imIBuddy *aBuddy, bool aGroupByDay, JS::MutableHandleValue _retval) override { return _to GetLogsForBuddy(aBuddy, aGroupByDay, _retval); } \
  NS_IMETHOD GetLogsForContact(imIContact *aContact, bool aGroupByDay, JS::MutableHandleValue _retval) override { return _to GetLogsForContact(aContact, aGroupByDay, _retval); } \
  NS_IMETHOD GetLogsForConversation(prplIConversation *aConversation, bool aGroupByDay, JS::MutableHandleValue _retval) override { return _to GetLogsForConversation(aConversation, aGroupByDay, _retval); } \
  NS_IMETHOD GetSystemLogsForAccount(imIAccount *aAccount, JS::MutableHandleValue _retval) override { return _to GetSystemLogsForAccount(aAccount, _retval); } \
  NS_IMETHOD GetSimilarLogs(imILog *aLog, bool aGroupByDay, JS::MutableHandleValue _retval) override { return _to GetSimilarLogs(aLog, aGroupByDay, _retval); } \
  NS_IMETHOD ForEach(imIProcessLogsCallback *aCallback, JS::MutableHandleValue _retval) override { return _to ForEach(aCallback, _retval); } \
  NS_IMETHOD GetLogFolderPathForAccount(imIAccount *aAccount, nsACString & _retval) override { return _to GetLogFolderPathForAccount(aAccount, _retval); } \
  NS_IMETHOD DeleteLogFolderForAccount(imIAccount *aAccount, JS::MutableHandleValue _retval) override { return _to DeleteLogFolderForAccount(aAccount, _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_IMILOGGER(_to) \
  NS_IMETHOD GetLogFromFile(const nsACString & aFilePath, bool aGroupByDay, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLogFromFile(aFilePath, aGroupByDay, _retval); } \
  NS_IMETHOD GetLogPathsForConversation(prplIConversation *aConversation, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLogPathsForConversation(aConversation, _retval); } \
  NS_IMETHOD GetLogsForAccountAndName(imIAccount *aAccount, const nsACString & aNormalizedName, bool aGroupByDay, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLogsForAccountAndName(aAccount, aNormalizedName, aGroupByDay, _retval); } \
  NS_IMETHOD GetLogsForAccountBuddy(prplIAccountBuddy *aAccountBuddy, bool aGroupByDay, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLogsForAccountBuddy(aAccountBuddy, aGroupByDay, _retval); } \
  NS_IMETHOD GetLogsForBuddy(imIBuddy *aBuddy, bool aGroupByDay, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLogsForBuddy(aBuddy, aGroupByDay, _retval); } \
  NS_IMETHOD GetLogsForContact(imIContact *aContact, bool aGroupByDay, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLogsForContact(aContact, aGroupByDay, _retval); } \
  NS_IMETHOD GetLogsForConversation(prplIConversation *aConversation, bool aGroupByDay, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLogsForConversation(aConversation, aGroupByDay, _retval); } \
  NS_IMETHOD GetSystemLogsForAccount(imIAccount *aAccount, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSystemLogsForAccount(aAccount, _retval); } \
  NS_IMETHOD GetSimilarLogs(imILog *aLog, bool aGroupByDay, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSimilarLogs(aLog, aGroupByDay, _retval); } \
  NS_IMETHOD ForEach(imIProcessLogsCallback *aCallback, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ForEach(aCallback, _retval); } \
  NS_IMETHOD GetLogFolderPathForAccount(imIAccount *aAccount, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLogFolderPathForAccount(aAccount, _retval); } \
  NS_IMETHOD DeleteLogFolderForAccount(imIAccount *aAccount, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteLogFolderForAccount(aAccount, _retval); } 

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

/* Header file */
class imLogger : public imILogger
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_IMILOGGER

  imLogger();

private:
  ~imLogger();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(imLogger, imILogger)

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

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

/* jsval getLogFromFile (in AUTF8String aFilePath, [optional] in boolean aGroupByDay); */
NS_IMETHODIMP imLogger::GetLogFromFile(const nsACString & aFilePath, bool aGroupByDay, JS::MutableHandleValue _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* jsval getLogPathsForConversation (in prplIConversation aConversation); */
NS_IMETHODIMP imLogger::GetLogPathsForConversation(prplIConversation *aConversation, JS::MutableHandleValue _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* jsval getLogsForAccountAndName (in imIAccount aAccount, in AUTF8String aNormalizedName, [optional] in boolean aGroupByDay); */
NS_IMETHODIMP imLogger::GetLogsForAccountAndName(imIAccount *aAccount, const nsACString & aNormalizedName, bool aGroupByDay, JS::MutableHandleValue _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* jsval getLogsForAccountBuddy (in prplIAccountBuddy aAccountBuddy, [optional] in boolean aGroupByDay); */
NS_IMETHODIMP imLogger::GetLogsForAccountBuddy(prplIAccountBuddy *aAccountBuddy, bool aGroupByDay, JS::MutableHandleValue _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* jsval getLogsForBuddy (in imIBuddy aBuddy, [optional] in boolean aGroupByDay); */
NS_IMETHODIMP imLogger::GetLogsForBuddy(imIBuddy *aBuddy, bool aGroupByDay, JS::MutableHandleValue _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* jsval getLogsForContact (in imIContact aContact, [optional] in boolean aGroupByDay); */
NS_IMETHODIMP imLogger::GetLogsForContact(imIContact *aContact, bool aGroupByDay, JS::MutableHandleValue _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* jsval getLogsForConversation (in prplIConversation aConversation, [optional] in boolean aGroupByDay); */
NS_IMETHODIMP imLogger::GetLogsForConversation(prplIConversation *aConversation, bool aGroupByDay, JS::MutableHandleValue _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* jsval getSystemLogsForAccount (in imIAccount aAccount); */
NS_IMETHODIMP imLogger::GetSystemLogsForAccount(imIAccount *aAccount, JS::MutableHandleValue _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* jsval getSimilarLogs (in imILog aLog, [optional] in boolean aGroupByDay); */
NS_IMETHODIMP imLogger::GetSimilarLogs(imILog *aLog, bool aGroupByDay, JS::MutableHandleValue _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* jsval forEach (in imIProcessLogsCallback aCallback); */
NS_IMETHODIMP imLogger::ForEach(imIProcessLogsCallback *aCallback, JS::MutableHandleValue _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AUTF8String getLogFolderPathForAccount (in imIAccount aAccount); */
NS_IMETHODIMP imLogger::GetLogFolderPathForAccount(imIAccount *aAccount, nsACString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* jsval deleteLogFolderForAccount (in imIAccount aAccount); */
NS_IMETHODIMP imLogger::DeleteLogFolderForAccount(imIAccount *aAccount, JS::MutableHandleValue _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_imILogger_h__ */