/usr/include/thunderbird/nsIMmsService.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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIMmsService.idl
*/
#ifndef __gen_nsIMmsService_h__
#define __gen_nsIMmsService_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 nsIMobileMessageCallback; /* forward declaration */
class nsIDOMBlob; /* forward declaration */
#define MMS_SERVICE_CID { 0x06d9124b, 0x80e0, 0x40ed, \
{ 0x98, 0x71, 0x4d, 0x23, 0x4a, 0x0f, 0xd4, 0x31 } }
#define MMS_SERVICE_CONTRACTID "@mozilla.org/mms/mmsservice;1"
/* starting interface: nsIMmsService */
#define NS_IMMSSERVICE_IID_STR "543278b3-d926-4c65-84b8-b49ad7a17d21"
#define NS_IMMSSERVICE_IID \
{0x543278b3, 0xd926, 0x4c65, \
{ 0x84, 0xb8, 0xb4, 0x9a, 0xd7, 0xa1, 0x7d, 0x21 }}
class NS_NO_VTABLE nsIMmsService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMMSSERVICE_IID)
/* readonly attribute unsigned long mmsDefaultServiceId; */
NS_IMETHOD GetMmsDefaultServiceId(uint32_t *aMmsDefaultServiceId) = 0;
/* void send (in unsigned long serviceId, in jsval parameters, in nsIMobileMessageCallback request); */
NS_IMETHOD Send(uint32_t serviceId, JS::HandleValue parameters, nsIMobileMessageCallback *request) = 0;
/* void retrieve (in long id, in nsIMobileMessageCallback request); */
NS_IMETHOD Retrieve(int32_t id, nsIMobileMessageCallback *request) = 0;
/* void sendReadReport (in DOMString messageID, in DOMString toAddress, in DOMString iccId); */
NS_IMETHOD SendReadReport(const nsAString & messageID, const nsAString & toAddress, const nsAString & iccId) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMmsService, NS_IMMSSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMMSSERVICE \
NS_IMETHOD GetMmsDefaultServiceId(uint32_t *aMmsDefaultServiceId) override; \
NS_IMETHOD Send(uint32_t serviceId, JS::HandleValue parameters, nsIMobileMessageCallback *request) override; \
NS_IMETHOD Retrieve(int32_t id, nsIMobileMessageCallback *request) override; \
NS_IMETHOD SendReadReport(const nsAString & messageID, const nsAString & toAddress, const nsAString & iccId) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMMSSERVICE(_to) \
NS_IMETHOD GetMmsDefaultServiceId(uint32_t *aMmsDefaultServiceId) override { return _to GetMmsDefaultServiceId(aMmsDefaultServiceId); } \
NS_IMETHOD Send(uint32_t serviceId, JS::HandleValue parameters, nsIMobileMessageCallback *request) override { return _to Send(serviceId, parameters, request); } \
NS_IMETHOD Retrieve(int32_t id, nsIMobileMessageCallback *request) override { return _to Retrieve(id, request); } \
NS_IMETHOD SendReadReport(const nsAString & messageID, const nsAString & toAddress, const nsAString & iccId) override { return _to SendReadReport(messageID, toAddress, iccId); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMMSSERVICE(_to) \
NS_IMETHOD GetMmsDefaultServiceId(uint32_t *aMmsDefaultServiceId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMmsDefaultServiceId(aMmsDefaultServiceId); } \
NS_IMETHOD Send(uint32_t serviceId, JS::HandleValue parameters, nsIMobileMessageCallback *request) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Send(serviceId, parameters, request); } \
NS_IMETHOD Retrieve(int32_t id, nsIMobileMessageCallback *request) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Retrieve(id, request); } \
NS_IMETHOD SendReadReport(const nsAString & messageID, const nsAString & toAddress, const nsAString & iccId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendReadReport(messageID, toAddress, iccId); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsMmsService : public nsIMmsService
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIMMSSERVICE
nsMmsService();
private:
~nsMmsService();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsMmsService, nsIMmsService)
nsMmsService::nsMmsService()
{
/* member initializers and constructor code */
}
nsMmsService::~nsMmsService()
{
/* destructor code */
}
/* readonly attribute unsigned long mmsDefaultServiceId; */
NS_IMETHODIMP nsMmsService::GetMmsDefaultServiceId(uint32_t *aMmsDefaultServiceId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void send (in unsigned long serviceId, in jsval parameters, in nsIMobileMessageCallback request); */
NS_IMETHODIMP nsMmsService::Send(uint32_t serviceId, JS::HandleValue parameters, nsIMobileMessageCallback *request)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void retrieve (in long id, in nsIMobileMessageCallback request); */
NS_IMETHODIMP nsMmsService::Retrieve(int32_t id, nsIMobileMessageCallback *request)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void sendReadReport (in DOMString messageID, in DOMString toAddress, in DOMString iccId); */
NS_IMETHODIMP nsMmsService::SendReadReport(const nsAString & messageID, const nsAString & toAddress, const nsAString & iccId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
template<typename T> struct already_AddRefed;
already_AddRefed<nsIMmsService>
NS_CreateMmsService();
#endif /* __gen_nsIMmsService_h__ */
|