This file is indexed.

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

#ifndef __gen_nsIMobileMessageService_h__
#define __gen_nsIMobileMessageService_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.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 nsIDeletedMessageInfo; /* forward declaration */

class nsIDOMMozSmsMessage; /* forward declaration */

class nsIDOMMozMmsMessage; /* forward declaration */

class nsIDOMMozMobileMessageThread; /* forward declaration */

#define MOBILE_MESSAGE_SERVICE_CID { 0x829c1dd6, 0x0466, 0x4591, { 0x83, 0x6f, 0xb8, 0xf6, 0xfd, 0x1f, 0x7b, 0xa5 } }
#define MOBILE_MESSAGE_SERVICE_CONTRACTID "@mozilla.org/mobilemessage/mobilemessageservice;1"

/* starting interface:    nsIMobileMessageService */
#define NS_IMOBILEMESSAGESERVICE_IID_STR "bc28e604-53ee-4be9-af20-268ce9efc61a"

#define NS_IMOBILEMESSAGESERVICE_IID \
  {0xbc28e604, 0x53ee, 0x4be9, \
    { 0xaf, 0x20, 0x26, 0x8c, 0xe9, 0xef, 0xc6, 0x1a }}

class NS_NO_VTABLE nsIMobileMessageService : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMOBILEMESSAGESERVICE_IID)

  /* [implicit_jscontext] nsIDOMMozSmsMessage createSmsMessage (in long id, in unsigned long long threadId, in DOMString iccId, in DOMString delivery, in DOMString deliveryStatus, in DOMString sender, in DOMString receiver, in DOMString body, in DOMString messageClass, in unsigned long long timestamp, in unsigned long long sentTimestamp, in unsigned long long deliveryTimestamp, in bool read); */
  NS_IMETHOD CreateSmsMessage(int32_t id, uint64_t threadId, const nsAString & iccId, const nsAString & delivery, const nsAString & deliveryStatus, const nsAString & sender, const nsAString & receiver, const nsAString & body, const nsAString & messageClass, uint64_t timestamp, uint64_t sentTimestamp, uint64_t deliveryTimestamp, bool read, JSContext* cx, nsIDOMMozSmsMessage * *_retval) = 0;

  /* [implicit_jscontext] nsIDOMMozMmsMessage createMmsMessage (in long id, in unsigned long long threadId, in DOMString iccId, in DOMString delivery, in jsval deliveryInfo, in DOMString sender, in jsval receivers, in unsigned long long timestamp, in unsigned long long sentTimestamp, in boolean read, in DOMString subject, in DOMString smil, in jsval attachments, in unsigned long long expiryDate, in boolean readReportRequested); */
  NS_IMETHOD CreateMmsMessage(int32_t id, uint64_t threadId, const nsAString & iccId, const nsAString & delivery, JS::HandleValue deliveryInfo, const nsAString & sender, JS::HandleValue receivers, uint64_t timestamp, uint64_t sentTimestamp, bool read, const nsAString & subject, const nsAString & smil, JS::HandleValue attachments, uint64_t expiryDate, bool readReportRequested, JSContext* cx, nsIDOMMozMmsMessage * *_retval) = 0;

  /* [implicit_jscontext] nsIDOMMozMobileMessageThread createThread (in unsigned long long id, in jsval participants, in unsigned long long timestamp, in DOMString lastMessageSubject, in DOMString body, in unsigned long long unreadCount, in DOMString aLastMessageType); */
  NS_IMETHOD CreateThread(uint64_t id, JS::HandleValue participants, uint64_t timestamp, const nsAString & lastMessageSubject, const nsAString & body, uint64_t unreadCount, const nsAString & aLastMessageType, JSContext* cx, nsIDOMMozMobileMessageThread * *_retval) = 0;

  /* nsIDeletedMessageInfo createDeletedMessageInfo ([array, size_is (msgCount)] in long messageIds, in uint32_t msgCount, [array, size_is (threadCount)] in unsigned long long threadIds, in uint32_t threadCount); */
  NS_IMETHOD CreateDeletedMessageInfo(int32_t *messageIds, uint32_t msgCount, uint64_t *threadIds, uint32_t threadCount, nsIDeletedMessageInfo * *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMobileMessageService, NS_IMOBILEMESSAGESERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMOBILEMESSAGESERVICE \
  NS_IMETHOD CreateSmsMessage(int32_t id, uint64_t threadId, const nsAString & iccId, const nsAString & delivery, const nsAString & deliveryStatus, const nsAString & sender, const nsAString & receiver, const nsAString & body, const nsAString & messageClass, uint64_t timestamp, uint64_t sentTimestamp, uint64_t deliveryTimestamp, bool read, JSContext* cx, nsIDOMMozSmsMessage * *_retval) override; \
  NS_IMETHOD CreateMmsMessage(int32_t id, uint64_t threadId, const nsAString & iccId, const nsAString & delivery, JS::HandleValue deliveryInfo, const nsAString & sender, JS::HandleValue receivers, uint64_t timestamp, uint64_t sentTimestamp, bool read, const nsAString & subject, const nsAString & smil, JS::HandleValue attachments, uint64_t expiryDate, bool readReportRequested, JSContext* cx, nsIDOMMozMmsMessage * *_retval) override; \
  NS_IMETHOD CreateThread(uint64_t id, JS::HandleValue participants, uint64_t timestamp, const nsAString & lastMessageSubject, const nsAString & body, uint64_t unreadCount, const nsAString & aLastMessageType, JSContext* cx, nsIDOMMozMobileMessageThread * *_retval) override; \
  NS_IMETHOD CreateDeletedMessageInfo(int32_t *messageIds, uint32_t msgCount, uint64_t *threadIds, uint32_t threadCount, nsIDeletedMessageInfo * *_retval) override; 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMOBILEMESSAGESERVICE(_to) \
  NS_IMETHOD CreateSmsMessage(int32_t id, uint64_t threadId, const nsAString & iccId, const nsAString & delivery, const nsAString & deliveryStatus, const nsAString & sender, const nsAString & receiver, const nsAString & body, const nsAString & messageClass, uint64_t timestamp, uint64_t sentTimestamp, uint64_t deliveryTimestamp, bool read, JSContext* cx, nsIDOMMozSmsMessage * *_retval) override { return _to CreateSmsMessage(id, threadId, iccId, delivery, deliveryStatus, sender, receiver, body, messageClass, timestamp, sentTimestamp, deliveryTimestamp, read, cx, _retval); } \
  NS_IMETHOD CreateMmsMessage(int32_t id, uint64_t threadId, const nsAString & iccId, const nsAString & delivery, JS::HandleValue deliveryInfo, const nsAString & sender, JS::HandleValue receivers, uint64_t timestamp, uint64_t sentTimestamp, bool read, const nsAString & subject, const nsAString & smil, JS::HandleValue attachments, uint64_t expiryDate, bool readReportRequested, JSContext* cx, nsIDOMMozMmsMessage * *_retval) override { return _to CreateMmsMessage(id, threadId, iccId, delivery, deliveryInfo, sender, receivers, timestamp, sentTimestamp, read, subject, smil, attachments, expiryDate, readReportRequested, cx, _retval); } \
  NS_IMETHOD CreateThread(uint64_t id, JS::HandleValue participants, uint64_t timestamp, const nsAString & lastMessageSubject, const nsAString & body, uint64_t unreadCount, const nsAString & aLastMessageType, JSContext* cx, nsIDOMMozMobileMessageThread * *_retval) override { return _to CreateThread(id, participants, timestamp, lastMessageSubject, body, unreadCount, aLastMessageType, cx, _retval); } \
  NS_IMETHOD CreateDeletedMessageInfo(int32_t *messageIds, uint32_t msgCount, uint64_t *threadIds, uint32_t threadCount, nsIDeletedMessageInfo * *_retval) override { return _to CreateDeletedMessageInfo(messageIds, msgCount, threadIds, threadCount, _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_NSIMOBILEMESSAGESERVICE(_to) \
  NS_IMETHOD CreateSmsMessage(int32_t id, uint64_t threadId, const nsAString & iccId, const nsAString & delivery, const nsAString & deliveryStatus, const nsAString & sender, const nsAString & receiver, const nsAString & body, const nsAString & messageClass, uint64_t timestamp, uint64_t sentTimestamp, uint64_t deliveryTimestamp, bool read, JSContext* cx, nsIDOMMozSmsMessage * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateSmsMessage(id, threadId, iccId, delivery, deliveryStatus, sender, receiver, body, messageClass, timestamp, sentTimestamp, deliveryTimestamp, read, cx, _retval); } \
  NS_IMETHOD CreateMmsMessage(int32_t id, uint64_t threadId, const nsAString & iccId, const nsAString & delivery, JS::HandleValue deliveryInfo, const nsAString & sender, JS::HandleValue receivers, uint64_t timestamp, uint64_t sentTimestamp, bool read, const nsAString & subject, const nsAString & smil, JS::HandleValue attachments, uint64_t expiryDate, bool readReportRequested, JSContext* cx, nsIDOMMozMmsMessage * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateMmsMessage(id, threadId, iccId, delivery, deliveryInfo, sender, receivers, timestamp, sentTimestamp, read, subject, smil, attachments, expiryDate, readReportRequested, cx, _retval); } \
  NS_IMETHOD CreateThread(uint64_t id, JS::HandleValue participants, uint64_t timestamp, const nsAString & lastMessageSubject, const nsAString & body, uint64_t unreadCount, const nsAString & aLastMessageType, JSContext* cx, nsIDOMMozMobileMessageThread * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateThread(id, participants, timestamp, lastMessageSubject, body, unreadCount, aLastMessageType, cx, _retval); } \
  NS_IMETHOD CreateDeletedMessageInfo(int32_t *messageIds, uint32_t msgCount, uint64_t *threadIds, uint32_t threadCount, nsIDeletedMessageInfo * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateDeletedMessageInfo(messageIds, msgCount, threadIds, threadCount, _retval); } 

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

/* Header file */
class nsMobileMessageService : public nsIMobileMessageService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMOBILEMESSAGESERVICE

  nsMobileMessageService();

private:
  ~nsMobileMessageService();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsMobileMessageService, nsIMobileMessageService)

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

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

/* [implicit_jscontext] nsIDOMMozSmsMessage createSmsMessage (in long id, in unsigned long long threadId, in DOMString iccId, in DOMString delivery, in DOMString deliveryStatus, in DOMString sender, in DOMString receiver, in DOMString body, in DOMString messageClass, in unsigned long long timestamp, in unsigned long long sentTimestamp, in unsigned long long deliveryTimestamp, in bool read); */
NS_IMETHODIMP nsMobileMessageService::CreateSmsMessage(int32_t id, uint64_t threadId, const nsAString & iccId, const nsAString & delivery, const nsAString & deliveryStatus, const nsAString & sender, const nsAString & receiver, const nsAString & body, const nsAString & messageClass, uint64_t timestamp, uint64_t sentTimestamp, uint64_t deliveryTimestamp, bool read, JSContext* cx, nsIDOMMozSmsMessage * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext] nsIDOMMozMmsMessage createMmsMessage (in long id, in unsigned long long threadId, in DOMString iccId, in DOMString delivery, in jsval deliveryInfo, in DOMString sender, in jsval receivers, in unsigned long long timestamp, in unsigned long long sentTimestamp, in boolean read, in DOMString subject, in DOMString smil, in jsval attachments, in unsigned long long expiryDate, in boolean readReportRequested); */
NS_IMETHODIMP nsMobileMessageService::CreateMmsMessage(int32_t id, uint64_t threadId, const nsAString & iccId, const nsAString & delivery, JS::HandleValue deliveryInfo, const nsAString & sender, JS::HandleValue receivers, uint64_t timestamp, uint64_t sentTimestamp, bool read, const nsAString & subject, const nsAString & smil, JS::HandleValue attachments, uint64_t expiryDate, bool readReportRequested, JSContext* cx, nsIDOMMozMmsMessage * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext] nsIDOMMozMobileMessageThread createThread (in unsigned long long id, in jsval participants, in unsigned long long timestamp, in DOMString lastMessageSubject, in DOMString body, in unsigned long long unreadCount, in DOMString aLastMessageType); */
NS_IMETHODIMP nsMobileMessageService::CreateThread(uint64_t id, JS::HandleValue participants, uint64_t timestamp, const nsAString & lastMessageSubject, const nsAString & body, uint64_t unreadCount, const nsAString & aLastMessageType, JSContext* cx, nsIDOMMozMobileMessageThread * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIDeletedMessageInfo createDeletedMessageInfo ([array, size_is (msgCount)] in long messageIds, in uint32_t msgCount, [array, size_is (threadCount)] in unsigned long long threadIds, in uint32_t threadCount); */
NS_IMETHODIMP nsMobileMessageService::CreateDeletedMessageInfo(int32_t *messageIds, uint32_t msgCount, uint64_t *threadIds, uint32_t threadCount, nsIDeletedMessageInfo * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

template<typename T> struct already_AddRefed;
already_AddRefed<nsIMobileMessageService>
NS_CreateMobileMessageService();

#endif /* __gen_nsIMobileMessageService_h__ */