/usr/include/thunderbird/nsIAlertsService.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 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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAlertsService.idl
*/
#ifndef __gen_nsIAlertsService_h__
#define __gen_nsIAlertsService_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsIObserver_h__
#include "nsIObserver.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIPrincipal; /* forward declaration */
/* starting interface: nsIAlertsService */
#define NS_IALERTSSERVICE_IID_STR "9d0284bf-db40-42da-8f0d-c2769dbde7aa"
#define NS_IALERTSSERVICE_IID \
{0x9d0284bf, 0xdb40, 0x42da, \
{ 0x8f, 0x0d, 0xc2, 0x76, 0x9d, 0xbd, 0xe7, 0xaa }}
class NS_NO_VTABLE nsIAlertsService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IALERTSSERVICE_IID)
/* void showAlertNotification (in AString imageUrl, in AString title, in AString text, [optional] in boolean textClickable, [optional] in AString cookie, [optional] in nsIObserver alertListener, [optional] in AString name, [optional] in AString dir, [optional] in AString lang, [optional] in AString data, [optional] in nsIPrincipal principal, [optional] in boolean inPrivateBrowsing); */
NS_IMETHOD ShowAlertNotification(const nsAString & imageUrl, const nsAString & title, const nsAString & text, bool textClickable, const nsAString & cookie, nsIObserver *alertListener, const nsAString & name, const nsAString & dir, const nsAString & lang, const nsAString & data, nsIPrincipal *principal, bool inPrivateBrowsing) = 0;
/* void closeAlert ([optional] in AString name, [optional] in nsIPrincipal principal); */
NS_IMETHOD CloseAlert(const nsAString & name, nsIPrincipal *principal) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIAlertsService, NS_IALERTSSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIALERTSSERVICE \
NS_IMETHOD ShowAlertNotification(const nsAString & imageUrl, const nsAString & title, const nsAString & text, bool textClickable, const nsAString & cookie, nsIObserver *alertListener, const nsAString & name, const nsAString & dir, const nsAString & lang, const nsAString & data, nsIPrincipal *principal, bool inPrivateBrowsing) override; \
NS_IMETHOD CloseAlert(const nsAString & name, nsIPrincipal *principal) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIALERTSSERVICE(_to) \
NS_IMETHOD ShowAlertNotification(const nsAString & imageUrl, const nsAString & title, const nsAString & text, bool textClickable, const nsAString & cookie, nsIObserver *alertListener, const nsAString & name, const nsAString & dir, const nsAString & lang, const nsAString & data, nsIPrincipal *principal, bool inPrivateBrowsing) override { return _to ShowAlertNotification(imageUrl, title, text, textClickable, cookie, alertListener, name, dir, lang, data, principal, inPrivateBrowsing); } \
NS_IMETHOD CloseAlert(const nsAString & name, nsIPrincipal *principal) override { return _to CloseAlert(name, principal); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIALERTSSERVICE(_to) \
NS_IMETHOD ShowAlertNotification(const nsAString & imageUrl, const nsAString & title, const nsAString & text, bool textClickable, const nsAString & cookie, nsIObserver *alertListener, const nsAString & name, const nsAString & dir, const nsAString & lang, const nsAString & data, nsIPrincipal *principal, bool inPrivateBrowsing) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowAlertNotification(imageUrl, title, text, textClickable, cookie, alertListener, name, dir, lang, data, principal, inPrivateBrowsing); } \
NS_IMETHOD CloseAlert(const nsAString & name, nsIPrincipal *principal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseAlert(name, principal); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsAlertsService : public nsIAlertsService
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIALERTSSERVICE
nsAlertsService();
private:
~nsAlertsService();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsAlertsService, nsIAlertsService)
nsAlertsService::nsAlertsService()
{
/* member initializers and constructor code */
}
nsAlertsService::~nsAlertsService()
{
/* destructor code */
}
/* void showAlertNotification (in AString imageUrl, in AString title, in AString text, [optional] in boolean textClickable, [optional] in AString cookie, [optional] in nsIObserver alertListener, [optional] in AString name, [optional] in AString dir, [optional] in AString lang, [optional] in AString data, [optional] in nsIPrincipal principal, [optional] in boolean inPrivateBrowsing); */
NS_IMETHODIMP nsAlertsService::ShowAlertNotification(const nsAString & imageUrl, const nsAString & title, const nsAString & text, bool textClickable, const nsAString & cookie, nsIObserver *alertListener, const nsAString & name, const nsAString & dir, const nsAString & lang, const nsAString & data, nsIPrincipal *principal, bool inPrivateBrowsing)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void closeAlert ([optional] in AString name, [optional] in nsIPrincipal principal); */
NS_IMETHODIMP nsAlertsService::CloseAlert(const nsAString & name, nsIPrincipal *principal)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIAlertsProgressListener */
#define NS_IALERTSPROGRESSLISTENER_IID_STR "df1bd4b0-3a8c-40e6-806a-203f38b0bd9f"
#define NS_IALERTSPROGRESSLISTENER_IID \
{0xdf1bd4b0, 0x3a8c, 0x40e6, \
{ 0x80, 0x6a, 0x20, 0x3f, 0x38, 0xb0, 0xbd, 0x9f }}
class NS_NO_VTABLE nsIAlertsProgressListener : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IALERTSPROGRESSLISTENER_IID)
/* void onProgress (in AString name, in long long progress, in long long progressMax, [optional] in AString text); */
NS_IMETHOD OnProgress(const nsAString & name, int64_t progress, int64_t progressMax, const nsAString & text) = 0;
/* void onCancel (in AString name); */
NS_IMETHOD OnCancel(const nsAString & name) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIAlertsProgressListener, NS_IALERTSPROGRESSLISTENER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIALERTSPROGRESSLISTENER \
NS_IMETHOD OnProgress(const nsAString & name, int64_t progress, int64_t progressMax, const nsAString & text) override; \
NS_IMETHOD OnCancel(const nsAString & name) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIALERTSPROGRESSLISTENER(_to) \
NS_IMETHOD OnProgress(const nsAString & name, int64_t progress, int64_t progressMax, const nsAString & text) override { return _to OnProgress(name, progress, progressMax, text); } \
NS_IMETHOD OnCancel(const nsAString & name) override { return _to OnCancel(name); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIALERTSPROGRESSLISTENER(_to) \
NS_IMETHOD OnProgress(const nsAString & name, int64_t progress, int64_t progressMax, const nsAString & text) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnProgress(name, progress, progressMax, text); } \
NS_IMETHOD OnCancel(const nsAString & name) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCancel(name); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsAlertsProgressListener : public nsIAlertsProgressListener
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIALERTSPROGRESSLISTENER
nsAlertsProgressListener();
private:
~nsAlertsProgressListener();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsAlertsProgressListener, nsIAlertsProgressListener)
nsAlertsProgressListener::nsAlertsProgressListener()
{
/* member initializers and constructor code */
}
nsAlertsProgressListener::~nsAlertsProgressListener()
{
/* destructor code */
}
/* void onProgress (in AString name, in long long progress, in long long progressMax, [optional] in AString text); */
NS_IMETHODIMP nsAlertsProgressListener::OnProgress(const nsAString & name, int64_t progress, int64_t progressMax, const nsAString & text)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onCancel (in AString name); */
NS_IMETHODIMP nsAlertsProgressListener::OnCancel(const nsAString & name)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIAlertsService_h__ */
|