/usr/include/thunderbird-11.0.1/nsIJetpack.h is in thunderbird-dev 11.0.1+build1-0ubuntu2.
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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mozilla/js/jetpack/nsIJetpack.idl
*/
#ifndef __gen_nsIJetpack_h__
#define __gen_nsIJetpack_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#include "jspubtd.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIVariant; /* forward declaration */
/* starting interface: nsIJetpack */
#define NS_IJETPACK_IID_STR "61a5be65-faf2-4fd1-96df-b13a7ad7d88d"
#define NS_IJETPACK_IID \
{0x61a5be65, 0xfaf2, 0x4fd1, \
{ 0x96, 0xdf, 0xb1, 0x3a, 0x7a, 0xd7, 0xd8, 0x8d }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIJetpack : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IJETPACK_IID)
/* void sendMessage (in AString aMessageName); */
NS_SCRIPTABLE NS_IMETHOD SendMessage(const nsAString & aMessageName) = 0;
/* void registerReceiver (in AString aMessageName, in jsval aReceiver); */
NS_SCRIPTABLE NS_IMETHOD RegisterReceiver(const nsAString & aMessageName, const JS::Value & aReceiver) = 0;
/* void unregisterReceiver (in AString aMessageName, in jsval aReceiver); */
NS_SCRIPTABLE NS_IMETHOD UnregisterReceiver(const nsAString & aMessageName, const JS::Value & aReceiver) = 0;
/* void unregisterReceivers (in AString aMessageName); */
NS_SCRIPTABLE NS_IMETHOD UnregisterReceivers(const nsAString & aMessageName) = 0;
/* void evalScript (in AString aScript); */
NS_SCRIPTABLE NS_IMETHOD EvalScript(const nsAString & aScript) = 0;
/* nsIVariant createHandle (); */
NS_SCRIPTABLE NS_IMETHOD CreateHandle(nsIVariant * *_retval NS_OUTPARAM) = 0;
/* void destroy (); */
NS_SCRIPTABLE NS_IMETHOD Destroy(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIJetpack, NS_IJETPACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIJETPACK \
NS_SCRIPTABLE NS_IMETHOD SendMessage(const nsAString & aMessageName); \
NS_SCRIPTABLE NS_IMETHOD RegisterReceiver(const nsAString & aMessageName, const JS::Value & aReceiver); \
NS_SCRIPTABLE NS_IMETHOD UnregisterReceiver(const nsAString & aMessageName, const JS::Value & aReceiver); \
NS_SCRIPTABLE NS_IMETHOD UnregisterReceivers(const nsAString & aMessageName); \
NS_SCRIPTABLE NS_IMETHOD EvalScript(const nsAString & aScript); \
NS_SCRIPTABLE NS_IMETHOD CreateHandle(nsIVariant * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD Destroy(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIJETPACK(_to) \
NS_SCRIPTABLE NS_IMETHOD SendMessage(const nsAString & aMessageName) { return _to SendMessage(aMessageName); } \
NS_SCRIPTABLE NS_IMETHOD RegisterReceiver(const nsAString & aMessageName, const JS::Value & aReceiver) { return _to RegisterReceiver(aMessageName, aReceiver); } \
NS_SCRIPTABLE NS_IMETHOD UnregisterReceiver(const nsAString & aMessageName, const JS::Value & aReceiver) { return _to UnregisterReceiver(aMessageName, aReceiver); } \
NS_SCRIPTABLE NS_IMETHOD UnregisterReceivers(const nsAString & aMessageName) { return _to UnregisterReceivers(aMessageName); } \
NS_SCRIPTABLE NS_IMETHOD EvalScript(const nsAString & aScript) { return _to EvalScript(aScript); } \
NS_SCRIPTABLE NS_IMETHOD CreateHandle(nsIVariant * *_retval NS_OUTPARAM) { return _to CreateHandle(_retval); } \
NS_SCRIPTABLE NS_IMETHOD Destroy(void) { return _to Destroy(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIJETPACK(_to) \
NS_SCRIPTABLE NS_IMETHOD SendMessage(const nsAString & aMessageName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendMessage(aMessageName); } \
NS_SCRIPTABLE NS_IMETHOD RegisterReceiver(const nsAString & aMessageName, const JS::Value & aReceiver) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterReceiver(aMessageName, aReceiver); } \
NS_SCRIPTABLE NS_IMETHOD UnregisterReceiver(const nsAString & aMessageName, const JS::Value & aReceiver) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterReceiver(aMessageName, aReceiver); } \
NS_SCRIPTABLE NS_IMETHOD UnregisterReceivers(const nsAString & aMessageName) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterReceivers(aMessageName); } \
NS_SCRIPTABLE NS_IMETHOD EvalScript(const nsAString & aScript) { return !_to ? NS_ERROR_NULL_POINTER : _to->EvalScript(aScript); } \
NS_SCRIPTABLE NS_IMETHOD CreateHandle(nsIVariant * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateHandle(_retval); } \
NS_SCRIPTABLE NS_IMETHOD Destroy(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Destroy(); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsJetpack : public nsIJetpack
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIJETPACK
nsJetpack();
private:
~nsJetpack();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsJetpack, nsIJetpack)
nsJetpack::nsJetpack()
{
/* member initializers and constructor code */
}
nsJetpack::~nsJetpack()
{
/* destructor code */
}
/* void sendMessage (in AString aMessageName); */
NS_IMETHODIMP nsJetpack::SendMessage(const nsAString & aMessageName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void registerReceiver (in AString aMessageName, in jsval aReceiver); */
NS_IMETHODIMP nsJetpack::RegisterReceiver(const nsAString & aMessageName, const JS::Value & aReceiver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void unregisterReceiver (in AString aMessageName, in jsval aReceiver); */
NS_IMETHODIMP nsJetpack::UnregisterReceiver(const nsAString & aMessageName, const JS::Value & aReceiver)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void unregisterReceivers (in AString aMessageName); */
NS_IMETHODIMP nsJetpack::UnregisterReceivers(const nsAString & aMessageName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void evalScript (in AString aScript); */
NS_IMETHODIMP nsJetpack::EvalScript(const nsAString & aScript)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIVariant createHandle (); */
NS_IMETHODIMP nsJetpack::CreateHandle(nsIVariant * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void destroy (); */
NS_IMETHODIMP nsJetpack::Destroy()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIJetpack_h__ */
|