/usr/include/thunderbird/nsIMobileMessageDatabaseService.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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIMobileMessageDatabaseService.idl
*/
#ifndef __gen_nsIMobileMessageDatabaseService_h__
#define __gen_nsIMobileMessageDatabaseService_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
#define MOBILE_MESSAGE_DATABASE_SERVICE_CID \
{ 0x0d84b9c2, 0x8f76, 0x4ba4, \
{ 0xa5, 0xcd, 0xdb, 0xfb, 0x01, 0xdf, 0xda, 0x99 } }
#define MOBILE_MESSAGE_DATABASE_SERVICE_CONTRACTID "@mozilla.org/mobilemessage/mobilemessagedatabaseservice;1"
class nsICursorContinueCallback; /* forward declaration */
class nsIMobileMessageCallback; /* forward declaration */
class nsIMobileMessageCursorCallback; /* forward declaration */
/* starting interface: nsIMobileMessageDatabaseService */
#define NS_IMOBILEMESSAGEDATABASESERVICE_IID_STR "ead626bc-f5b4-47e1-921c-0b956c9298e0"
#define NS_IMOBILEMESSAGEDATABASESERVICE_IID \
{0xead626bc, 0xf5b4, 0x47e1, \
{ 0x92, 0x1c, 0x0b, 0x95, 0x6c, 0x92, 0x98, 0xe0 }}
class NS_NO_VTABLE nsIMobileMessageDatabaseService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMOBILEMESSAGEDATABASESERVICE_IID)
/* [binaryname(GetMessageMoz)] void getMessage (in long messageId, in nsIMobileMessageCallback request); */
NS_IMETHOD GetMessageMoz(int32_t messageId, nsIMobileMessageCallback *request) = 0;
/* void deleteMessage ([array, size_is (count)] in long messageIds, in uint32_t count, in nsIMobileMessageCallback request); */
NS_IMETHOD DeleteMessage(int32_t *messageIds, uint32_t count, nsIMobileMessageCallback *request) = 0;
/* nsICursorContinueCallback createMessageCursor (in boolean hasStartDate, in unsigned long long startDate, in boolean hasEndDate, in unsigned long long endDate, [array, size_is (numbersCount)] in wstring numbers, in uint32_t numbersCount, [Null (Null), Undefined (Null)] in DOMString delivery, in boolean hasRead, in boolean read, in unsigned long long threadId, in boolean reverse, in nsIMobileMessageCursorCallback callback); */
NS_IMETHOD CreateMessageCursor(bool hasStartDate, uint64_t startDate, bool hasEndDate, uint64_t endDate, const char16_t * *numbers, uint32_t numbersCount, const nsAString & delivery, bool hasRead, bool read, uint64_t threadId, bool reverse, nsIMobileMessageCursorCallback *callback, nsICursorContinueCallback * *_retval) = 0;
/* void markMessageRead (in long messageId, in boolean value, in boolean sendReadReport, in nsIMobileMessageCallback request); */
NS_IMETHOD MarkMessageRead(int32_t messageId, bool value, bool sendReadReport, nsIMobileMessageCallback *request) = 0;
/* nsICursorContinueCallback createThreadCursor (in nsIMobileMessageCursorCallback callback); */
NS_IMETHOD CreateThreadCursor(nsIMobileMessageCursorCallback *callback, nsICursorContinueCallback * *_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMobileMessageDatabaseService, NS_IMOBILEMESSAGEDATABASESERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMOBILEMESSAGEDATABASESERVICE \
NS_IMETHOD GetMessageMoz(int32_t messageId, nsIMobileMessageCallback *request) override; \
NS_IMETHOD DeleteMessage(int32_t *messageIds, uint32_t count, nsIMobileMessageCallback *request) override; \
NS_IMETHOD CreateMessageCursor(bool hasStartDate, uint64_t startDate, bool hasEndDate, uint64_t endDate, const char16_t * *numbers, uint32_t numbersCount, const nsAString & delivery, bool hasRead, bool read, uint64_t threadId, bool reverse, nsIMobileMessageCursorCallback *callback, nsICursorContinueCallback * *_retval) override; \
NS_IMETHOD MarkMessageRead(int32_t messageId, bool value, bool sendReadReport, nsIMobileMessageCallback *request) override; \
NS_IMETHOD CreateThreadCursor(nsIMobileMessageCursorCallback *callback, nsICursorContinueCallback * *_retval) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMOBILEMESSAGEDATABASESERVICE(_to) \
NS_IMETHOD GetMessageMoz(int32_t messageId, nsIMobileMessageCallback *request) override { return _to GetMessageMoz(messageId, request); } \
NS_IMETHOD DeleteMessage(int32_t *messageIds, uint32_t count, nsIMobileMessageCallback *request) override { return _to DeleteMessage(messageIds, count, request); } \
NS_IMETHOD CreateMessageCursor(bool hasStartDate, uint64_t startDate, bool hasEndDate, uint64_t endDate, const char16_t * *numbers, uint32_t numbersCount, const nsAString & delivery, bool hasRead, bool read, uint64_t threadId, bool reverse, nsIMobileMessageCursorCallback *callback, nsICursorContinueCallback * *_retval) override { return _to CreateMessageCursor(hasStartDate, startDate, hasEndDate, endDate, numbers, numbersCount, delivery, hasRead, read, threadId, reverse, callback, _retval); } \
NS_IMETHOD MarkMessageRead(int32_t messageId, bool value, bool sendReadReport, nsIMobileMessageCallback *request) override { return _to MarkMessageRead(messageId, value, sendReadReport, request); } \
NS_IMETHOD CreateThreadCursor(nsIMobileMessageCursorCallback *callback, nsICursorContinueCallback * *_retval) override { return _to CreateThreadCursor(callback, _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_NSIMOBILEMESSAGEDATABASESERVICE(_to) \
NS_IMETHOD GetMessageMoz(int32_t messageId, nsIMobileMessageCallback *request) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageMoz(messageId, request); } \
NS_IMETHOD DeleteMessage(int32_t *messageIds, uint32_t count, nsIMobileMessageCallback *request) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteMessage(messageIds, count, request); } \
NS_IMETHOD CreateMessageCursor(bool hasStartDate, uint64_t startDate, bool hasEndDate, uint64_t endDate, const char16_t * *numbers, uint32_t numbersCount, const nsAString & delivery, bool hasRead, bool read, uint64_t threadId, bool reverse, nsIMobileMessageCursorCallback *callback, nsICursorContinueCallback * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateMessageCursor(hasStartDate, startDate, hasEndDate, endDate, numbers, numbersCount, delivery, hasRead, read, threadId, reverse, callback, _retval); } \
NS_IMETHOD MarkMessageRead(int32_t messageId, bool value, bool sendReadReport, nsIMobileMessageCallback *request) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkMessageRead(messageId, value, sendReadReport, request); } \
NS_IMETHOD CreateThreadCursor(nsIMobileMessageCursorCallback *callback, nsICursorContinueCallback * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateThreadCursor(callback, _retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsMobileMessageDatabaseService : public nsIMobileMessageDatabaseService
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIMOBILEMESSAGEDATABASESERVICE
nsMobileMessageDatabaseService();
private:
~nsMobileMessageDatabaseService();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsMobileMessageDatabaseService, nsIMobileMessageDatabaseService)
nsMobileMessageDatabaseService::nsMobileMessageDatabaseService()
{
/* member initializers and constructor code */
}
nsMobileMessageDatabaseService::~nsMobileMessageDatabaseService()
{
/* destructor code */
}
/* [binaryname(GetMessageMoz)] void getMessage (in long messageId, in nsIMobileMessageCallback request); */
NS_IMETHODIMP nsMobileMessageDatabaseService::GetMessageMoz(int32_t messageId, nsIMobileMessageCallback *request)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void deleteMessage ([array, size_is (count)] in long messageIds, in uint32_t count, in nsIMobileMessageCallback request); */
NS_IMETHODIMP nsMobileMessageDatabaseService::DeleteMessage(int32_t *messageIds, uint32_t count, nsIMobileMessageCallback *request)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsICursorContinueCallback createMessageCursor (in boolean hasStartDate, in unsigned long long startDate, in boolean hasEndDate, in unsigned long long endDate, [array, size_is (numbersCount)] in wstring numbers, in uint32_t numbersCount, [Null (Null), Undefined (Null)] in DOMString delivery, in boolean hasRead, in boolean read, in unsigned long long threadId, in boolean reverse, in nsIMobileMessageCursorCallback callback); */
NS_IMETHODIMP nsMobileMessageDatabaseService::CreateMessageCursor(bool hasStartDate, uint64_t startDate, bool hasEndDate, uint64_t endDate, const char16_t * *numbers, uint32_t numbersCount, const nsAString & delivery, bool hasRead, bool read, uint64_t threadId, bool reverse, nsIMobileMessageCursorCallback *callback, nsICursorContinueCallback * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void markMessageRead (in long messageId, in boolean value, in boolean sendReadReport, in nsIMobileMessageCallback request); */
NS_IMETHODIMP nsMobileMessageDatabaseService::MarkMessageRead(int32_t messageId, bool value, bool sendReadReport, nsIMobileMessageCallback *request)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsICursorContinueCallback createThreadCursor (in nsIMobileMessageCursorCallback callback); */
NS_IMETHODIMP nsMobileMessageDatabaseService::CreateThreadCursor(nsIMobileMessageCursorCallback *callback, nsICursorContinueCallback * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
template<typename T> struct already_AddRefed;
already_AddRefed<nsIMobileMessageDatabaseService>
NS_CreateMobileMessageDatabaseService();
#endif /* __gen_nsIMobileMessageDatabaseService_h__ */
|