LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIAlertsService.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 5 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 5 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAlertsService.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIAlertsService_h__
       6             : #define __gen_nsIAlertsService_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : #ifndef __gen_nsIObserver_h__
      14             : #include "nsIObserver.h"
      15             : #endif
      16             : 
      17             : /* For IDL files that don't want to include root IDL files. */
      18             : #ifndef NS_NO_VTABLE
      19             : #define NS_NO_VTABLE
      20             : #endif
      21             : class imgIRequest; /* forward declaration */
      22             : 
      23             : class nsICancelable; /* forward declaration */
      24             : 
      25             : class nsIPrincipal; /* forward declaration */
      26             : 
      27             : class nsIURI; /* forward declaration */
      28             : 
      29             : #define ALERT_NOTIFICATION_CONTRACTID "@mozilla.org/alert-notification;1"
      30             : 
      31             : /* starting interface:    nsIAlertNotificationImageListener */
      32             : #define NS_IALERTNOTIFICATIONIMAGELISTENER_IID_STR "a71a637d-de1d-47c6-a8d2-c60b2596f471"
      33             : 
      34             : #define NS_IALERTNOTIFICATIONIMAGELISTENER_IID \
      35             :   {0xa71a637d, 0xde1d, 0x47c6, \
      36             :     { 0xa8, 0xd2, 0xc6, 0x0b, 0x25, 0x96, 0xf4, 0x71 }}
      37             : 
      38           0 : class NS_NO_VTABLE nsIAlertNotificationImageListener : public nsISupports {
      39             :  public:
      40             : 
      41             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IALERTNOTIFICATIONIMAGELISTENER_IID)
      42             : 
      43             :   /* void onImageReady (in nsISupports aUserData, in imgIRequest aRequest); */
      44             :   NS_IMETHOD OnImageReady(nsISupports *aUserData, imgIRequest *aRequest) = 0;
      45             : 
      46             :   /* void onImageMissing (in nsISupports aUserData); */
      47             :   NS_IMETHOD OnImageMissing(nsISupports *aUserData) = 0;
      48             : 
      49             : };
      50             : 
      51             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIAlertNotificationImageListener, NS_IALERTNOTIFICATIONIMAGELISTENER_IID)
      52             : 
      53             : /* Use this macro when declaring classes that implement this interface. */
      54             : #define NS_DECL_NSIALERTNOTIFICATIONIMAGELISTENER \
      55             :   NS_IMETHOD OnImageReady(nsISupports *aUserData, imgIRequest *aRequest) override; \
      56             :   NS_IMETHOD OnImageMissing(nsISupports *aUserData) override; 
      57             : 
      58             : /* Use this macro when declaring the members of this interface when the
      59             :    class doesn't implement the interface. This is useful for forwarding. */
      60             : #define NS_DECL_NON_VIRTUAL_NSIALERTNOTIFICATIONIMAGELISTENER \
      61             :   nsresult OnImageReady(nsISupports *aUserData, imgIRequest *aRequest); \
      62             :   nsresult OnImageMissing(nsISupports *aUserData); 
      63             : 
      64             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      65             : #define NS_FORWARD_NSIALERTNOTIFICATIONIMAGELISTENER(_to) \
      66             :   NS_IMETHOD OnImageReady(nsISupports *aUserData, imgIRequest *aRequest) override { return _to OnImageReady(aUserData, aRequest); } \
      67             :   NS_IMETHOD OnImageMissing(nsISupports *aUserData) override { return _to OnImageMissing(aUserData); } 
      68             : 
      69             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      70             : #define NS_FORWARD_SAFE_NSIALERTNOTIFICATIONIMAGELISTENER(_to) \
      71             :   NS_IMETHOD OnImageReady(nsISupports *aUserData, imgIRequest *aRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnImageReady(aUserData, aRequest); } \
      72             :   NS_IMETHOD OnImageMissing(nsISupports *aUserData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnImageMissing(aUserData); } 
      73             : 
      74             : #if 0
      75             : /* Use the code below as a template for the implementation class for this interface. */
      76             : 
      77             : /* Header file */
      78             : class nsAlertNotificationImageListener : public nsIAlertNotificationImageListener
      79             : {
      80             : public:
      81             :   NS_DECL_ISUPPORTS
      82             :   NS_DECL_NSIALERTNOTIFICATIONIMAGELISTENER
      83             : 
      84             :   nsAlertNotificationImageListener();
      85             : 
      86             : private:
      87             :   ~nsAlertNotificationImageListener();
      88             : 
      89             : protected:
      90             :   /* additional members */
      91             : };
      92             : 
      93             : /* Implementation file */
      94             : NS_IMPL_ISUPPORTS(nsAlertNotificationImageListener, nsIAlertNotificationImageListener)
      95             : 
      96             : nsAlertNotificationImageListener::nsAlertNotificationImageListener()
      97             : {
      98             :   /* member initializers and constructor code */
      99             : }
     100             : 
     101             : nsAlertNotificationImageListener::~nsAlertNotificationImageListener()
     102             : {
     103             :   /* destructor code */
     104             : }
     105             : 
     106             : /* void onImageReady (in nsISupports aUserData, in imgIRequest aRequest); */
     107             : NS_IMETHODIMP nsAlertNotificationImageListener::OnImageReady(nsISupports *aUserData, imgIRequest *aRequest)
     108             : {
     109             :     return NS_ERROR_NOT_IMPLEMENTED;
     110             : }
     111             : 
     112             : /* void onImageMissing (in nsISupports aUserData); */
     113             : NS_IMETHODIMP nsAlertNotificationImageListener::OnImageMissing(nsISupports *aUserData)
     114             : {
     115             :     return NS_ERROR_NOT_IMPLEMENTED;
     116             : }
     117             : 
     118             : /* End of implementation class template. */
     119             : #endif
     120             : 
     121             : 
     122             : /* starting interface:    nsIAlertNotification */
     123             : #define NS_IALERTNOTIFICATION_IID_STR "cf2e4cb6-4b8f-4eca-aea9-d51a8f9f7a50"
     124             : 
     125             : #define NS_IALERTNOTIFICATION_IID \
     126             :   {0xcf2e4cb6, 0x4b8f, 0x4eca, \
     127             :     { 0xae, 0xa9, 0xd5, 0x1a, 0x8f, 0x9f, 0x7a, 0x50 }}
     128             : 
     129           0 : class NS_NO_VTABLE nsIAlertNotification : public nsISupports {
     130             :  public:
     131             : 
     132             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IALERTNOTIFICATION_IID)
     133             : 
     134             :   /* void init ([optional] in AString aName, [optional] in AString aImageURL, [optional] in AString aTitle, [optional] in AString aText, [optional] in boolean aTextClickable, [optional] in AString aCookie, [optional] in AString aDir, [optional] in AString aLang, [optional] in AString aData, [optional] in nsIPrincipal aPrincipal, [optional] in boolean aInPrivateBrowsing, [optional] in boolean aRequireInteraction); */
     135             :   NS_IMETHOD Init(const nsAString & aName, const nsAString & aImageURL, const nsAString & aTitle, const nsAString & aText, bool aTextClickable, const nsAString & aCookie, const nsAString & aDir, const nsAString & aLang, const nsAString & aData, nsIPrincipal *aPrincipal, bool aInPrivateBrowsing, bool aRequireInteraction) = 0;
     136             : 
     137             :   /* readonly attribute AString name; */
     138             :   NS_IMETHOD GetName(nsAString & aName) = 0;
     139             : 
     140             :   /* readonly attribute AString imageURL; */
     141             :   NS_IMETHOD GetImageURL(nsAString & aImageURL) = 0;
     142             : 
     143             :   /* readonly attribute AString title; */
     144             :   NS_IMETHOD GetTitle(nsAString & aTitle) = 0;
     145             : 
     146             :   /* readonly attribute AString text; */
     147             :   NS_IMETHOD GetText(nsAString & aText) = 0;
     148             : 
     149             :   /* readonly attribute boolean textClickable; */
     150             :   NS_IMETHOD GetTextClickable(bool *aTextClickable) = 0;
     151             : 
     152             :   /* readonly attribute AString cookie; */
     153             :   NS_IMETHOD GetCookie(nsAString & aCookie) = 0;
     154             : 
     155             :   /* readonly attribute AString dir; */
     156             :   NS_IMETHOD GetDir(nsAString & aDir) = 0;
     157             : 
     158             :   /* readonly attribute AString lang; */
     159             :   NS_IMETHOD GetLang(nsAString & aLang) = 0;
     160             : 
     161             :   /* readonly attribute AString data; */
     162             :   NS_IMETHOD GetData(nsAString & aData) = 0;
     163             : 
     164             :   /* readonly attribute nsIPrincipal principal; */
     165             :   NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) = 0;
     166             : 
     167             :   /* readonly attribute nsIURI URI; */
     168             :   NS_IMETHOD GetURI(nsIURI * *aURI) = 0;
     169             : 
     170             :   /* readonly attribute boolean inPrivateBrowsing; */
     171             :   NS_IMETHOD GetInPrivateBrowsing(bool *aInPrivateBrowsing) = 0;
     172             : 
     173             :   /* readonly attribute boolean requireInteraction; */
     174             :   NS_IMETHOD GetRequireInteraction(bool *aRequireInteraction) = 0;
     175             : 
     176             :   /* readonly attribute boolean actionable; */
     177             :   NS_IMETHOD GetActionable(bool *aActionable) = 0;
     178             : 
     179             :   /* readonly attribute AString source; */
     180             :   NS_IMETHOD GetSource(nsAString & aSource) = 0;
     181             : 
     182             :   /* nsICancelable loadImage (in unsigned long aTimeout, in nsIAlertNotificationImageListener aListener, [optional] in nsISupports aUserData); */
     183             :   NS_IMETHOD LoadImage(uint32_t aTimeout, nsIAlertNotificationImageListener *aListener, nsISupports *aUserData, nsICancelable * *_retval) = 0;
     184             : 
     185             : };
     186             : 
     187             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIAlertNotification, NS_IALERTNOTIFICATION_IID)
     188             : 
     189             : /* Use this macro when declaring classes that implement this interface. */
     190             : #define NS_DECL_NSIALERTNOTIFICATION \
     191             :   NS_IMETHOD Init(const nsAString & aName, const nsAString & aImageURL, const nsAString & aTitle, const nsAString & aText, bool aTextClickable, const nsAString & aCookie, const nsAString & aDir, const nsAString & aLang, const nsAString & aData, nsIPrincipal *aPrincipal, bool aInPrivateBrowsing, bool aRequireInteraction) override; \
     192             :   NS_IMETHOD GetName(nsAString & aName) override; \
     193             :   NS_IMETHOD GetImageURL(nsAString & aImageURL) override; \
     194             :   NS_IMETHOD GetTitle(nsAString & aTitle) override; \
     195             :   NS_IMETHOD GetText(nsAString & aText) override; \
     196             :   NS_IMETHOD GetTextClickable(bool *aTextClickable) override; \
     197             :   NS_IMETHOD GetCookie(nsAString & aCookie) override; \
     198             :   NS_IMETHOD GetDir(nsAString & aDir) override; \
     199             :   NS_IMETHOD GetLang(nsAString & aLang) override; \
     200             :   NS_IMETHOD GetData(nsAString & aData) override; \
     201             :   NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override; \
     202             :   NS_IMETHOD GetURI(nsIURI * *aURI) override; \
     203             :   NS_IMETHOD GetInPrivateBrowsing(bool *aInPrivateBrowsing) override; \
     204             :   NS_IMETHOD GetRequireInteraction(bool *aRequireInteraction) override; \
     205             :   NS_IMETHOD GetActionable(bool *aActionable) override; \
     206             :   NS_IMETHOD GetSource(nsAString & aSource) override; \
     207             :   NS_IMETHOD LoadImage(uint32_t aTimeout, nsIAlertNotificationImageListener *aListener, nsISupports *aUserData, nsICancelable * *_retval) override; 
     208             : 
     209             : /* Use this macro when declaring the members of this interface when the
     210             :    class doesn't implement the interface. This is useful for forwarding. */
     211             : #define NS_DECL_NON_VIRTUAL_NSIALERTNOTIFICATION \
     212             :   nsresult Init(const nsAString & aName, const nsAString & aImageURL, const nsAString & aTitle, const nsAString & aText, bool aTextClickable, const nsAString & aCookie, const nsAString & aDir, const nsAString & aLang, const nsAString & aData, nsIPrincipal *aPrincipal, bool aInPrivateBrowsing, bool aRequireInteraction); \
     213             :   nsresult GetName(nsAString & aName); \
     214             :   nsresult GetImageURL(nsAString & aImageURL); \
     215             :   nsresult GetTitle(nsAString & aTitle); \
     216             :   nsresult GetText(nsAString & aText); \
     217             :   nsresult GetTextClickable(bool *aTextClickable); \
     218             :   nsresult GetCookie(nsAString & aCookie); \
     219             :   nsresult GetDir(nsAString & aDir); \
     220             :   nsresult GetLang(nsAString & aLang); \
     221             :   nsresult GetData(nsAString & aData); \
     222             :   nsresult GetPrincipal(nsIPrincipal * *aPrincipal); \
     223             :   nsresult GetURI(nsIURI * *aURI); \
     224             :   nsresult GetInPrivateBrowsing(bool *aInPrivateBrowsing); \
     225             :   nsresult GetRequireInteraction(bool *aRequireInteraction); \
     226             :   nsresult GetActionable(bool *aActionable); \
     227             :   nsresult GetSource(nsAString & aSource); \
     228             :   nsresult LoadImage(uint32_t aTimeout, nsIAlertNotificationImageListener *aListener, nsISupports *aUserData, nsICancelable * *_retval); 
     229             : 
     230             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     231             : #define NS_FORWARD_NSIALERTNOTIFICATION(_to) \
     232             :   NS_IMETHOD Init(const nsAString & aName, const nsAString & aImageURL, const nsAString & aTitle, const nsAString & aText, bool aTextClickable, const nsAString & aCookie, const nsAString & aDir, const nsAString & aLang, const nsAString & aData, nsIPrincipal *aPrincipal, bool aInPrivateBrowsing, bool aRequireInteraction) override { return _to Init(aName, aImageURL, aTitle, aText, aTextClickable, aCookie, aDir, aLang, aData, aPrincipal, aInPrivateBrowsing, aRequireInteraction); } \
     233             :   NS_IMETHOD GetName(nsAString & aName) override { return _to GetName(aName); } \
     234             :   NS_IMETHOD GetImageURL(nsAString & aImageURL) override { return _to GetImageURL(aImageURL); } \
     235             :   NS_IMETHOD GetTitle(nsAString & aTitle) override { return _to GetTitle(aTitle); } \
     236             :   NS_IMETHOD GetText(nsAString & aText) override { return _to GetText(aText); } \
     237             :   NS_IMETHOD GetTextClickable(bool *aTextClickable) override { return _to GetTextClickable(aTextClickable); } \
     238             :   NS_IMETHOD GetCookie(nsAString & aCookie) override { return _to GetCookie(aCookie); } \
     239             :   NS_IMETHOD GetDir(nsAString & aDir) override { return _to GetDir(aDir); } \
     240             :   NS_IMETHOD GetLang(nsAString & aLang) override { return _to GetLang(aLang); } \
     241             :   NS_IMETHOD GetData(nsAString & aData) override { return _to GetData(aData); } \
     242             :   NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override { return _to GetPrincipal(aPrincipal); } \
     243             :   NS_IMETHOD GetURI(nsIURI * *aURI) override { return _to GetURI(aURI); } \
     244             :   NS_IMETHOD GetInPrivateBrowsing(bool *aInPrivateBrowsing) override { return _to GetInPrivateBrowsing(aInPrivateBrowsing); } \
     245             :   NS_IMETHOD GetRequireInteraction(bool *aRequireInteraction) override { return _to GetRequireInteraction(aRequireInteraction); } \
     246             :   NS_IMETHOD GetActionable(bool *aActionable) override { return _to GetActionable(aActionable); } \
     247             :   NS_IMETHOD GetSource(nsAString & aSource) override { return _to GetSource(aSource); } \
     248             :   NS_IMETHOD LoadImage(uint32_t aTimeout, nsIAlertNotificationImageListener *aListener, nsISupports *aUserData, nsICancelable * *_retval) override { return _to LoadImage(aTimeout, aListener, aUserData, _retval); } 
     249             : 
     250             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     251             : #define NS_FORWARD_SAFE_NSIALERTNOTIFICATION(_to) \
     252             :   NS_IMETHOD Init(const nsAString & aName, const nsAString & aImageURL, const nsAString & aTitle, const nsAString & aText, bool aTextClickable, const nsAString & aCookie, const nsAString & aDir, const nsAString & aLang, const nsAString & aData, nsIPrincipal *aPrincipal, bool aInPrivateBrowsing, bool aRequireInteraction) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aName, aImageURL, aTitle, aText, aTextClickable, aCookie, aDir, aLang, aData, aPrincipal, aInPrivateBrowsing, aRequireInteraction); } \
     253             :   NS_IMETHOD GetName(nsAString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
     254             :   NS_IMETHOD GetImageURL(nsAString & aImageURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageURL(aImageURL); } \
     255             :   NS_IMETHOD GetTitle(nsAString & aTitle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
     256             :   NS_IMETHOD GetText(nsAString & aText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetText(aText); } \
     257             :   NS_IMETHOD GetTextClickable(bool *aTextClickable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextClickable(aTextClickable); } \
     258             :   NS_IMETHOD GetCookie(nsAString & aCookie) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCookie(aCookie); } \
     259             :   NS_IMETHOD GetDir(nsAString & aDir) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDir(aDir); } \
     260             :   NS_IMETHOD GetLang(nsAString & aLang) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLang(aLang); } \
     261             :   NS_IMETHOD GetData(nsAString & aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
     262             :   NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrincipal(aPrincipal); } \
     263             :   NS_IMETHOD GetURI(nsIURI * *aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \
     264             :   NS_IMETHOD GetInPrivateBrowsing(bool *aInPrivateBrowsing) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInPrivateBrowsing(aInPrivateBrowsing); } \
     265             :   NS_IMETHOD GetRequireInteraction(bool *aRequireInteraction) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequireInteraction(aRequireInteraction); } \
     266             :   NS_IMETHOD GetActionable(bool *aActionable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActionable(aActionable); } \
     267             :   NS_IMETHOD GetSource(nsAString & aSource) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSource(aSource); } \
     268             :   NS_IMETHOD LoadImage(uint32_t aTimeout, nsIAlertNotificationImageListener *aListener, nsISupports *aUserData, nsICancelable * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadImage(aTimeout, aListener, aUserData, _retval); } 
     269             : 
     270             : #if 0
     271             : /* Use the code below as a template for the implementation class for this interface. */
     272             : 
     273             : /* Header file */
     274             : class nsAlertNotification : public nsIAlertNotification
     275             : {
     276             : public:
     277             :   NS_DECL_ISUPPORTS
     278             :   NS_DECL_NSIALERTNOTIFICATION
     279             : 
     280             :   nsAlertNotification();
     281             : 
     282             : private:
     283             :   ~nsAlertNotification();
     284             : 
     285             : protected:
     286             :   /* additional members */
     287             : };
     288             : 
     289             : /* Implementation file */
     290             : NS_IMPL_ISUPPORTS(nsAlertNotification, nsIAlertNotification)
     291             : 
     292             : nsAlertNotification::nsAlertNotification()
     293             : {
     294             :   /* member initializers and constructor code */
     295             : }
     296             : 
     297             : nsAlertNotification::~nsAlertNotification()
     298             : {
     299             :   /* destructor code */
     300             : }
     301             : 
     302             : /* void init ([optional] in AString aName, [optional] in AString aImageURL, [optional] in AString aTitle, [optional] in AString aText, [optional] in boolean aTextClickable, [optional] in AString aCookie, [optional] in AString aDir, [optional] in AString aLang, [optional] in AString aData, [optional] in nsIPrincipal aPrincipal, [optional] in boolean aInPrivateBrowsing, [optional] in boolean aRequireInteraction); */
     303             : NS_IMETHODIMP nsAlertNotification::Init(const nsAString & aName, const nsAString & aImageURL, const nsAString & aTitle, const nsAString & aText, bool aTextClickable, const nsAString & aCookie, const nsAString & aDir, const nsAString & aLang, const nsAString & aData, nsIPrincipal *aPrincipal, bool aInPrivateBrowsing, bool aRequireInteraction)
     304             : {
     305             :     return NS_ERROR_NOT_IMPLEMENTED;
     306             : }
     307             : 
     308             : /* readonly attribute AString name; */
     309             : NS_IMETHODIMP nsAlertNotification::GetName(nsAString & aName)
     310             : {
     311             :     return NS_ERROR_NOT_IMPLEMENTED;
     312             : }
     313             : 
     314             : /* readonly attribute AString imageURL; */
     315             : NS_IMETHODIMP nsAlertNotification::GetImageURL(nsAString & aImageURL)
     316             : {
     317             :     return NS_ERROR_NOT_IMPLEMENTED;
     318             : }
     319             : 
     320             : /* readonly attribute AString title; */
     321             : NS_IMETHODIMP nsAlertNotification::GetTitle(nsAString & aTitle)
     322             : {
     323             :     return NS_ERROR_NOT_IMPLEMENTED;
     324             : }
     325             : 
     326             : /* readonly attribute AString text; */
     327             : NS_IMETHODIMP nsAlertNotification::GetText(nsAString & aText)
     328             : {
     329             :     return NS_ERROR_NOT_IMPLEMENTED;
     330             : }
     331             : 
     332             : /* readonly attribute boolean textClickable; */
     333             : NS_IMETHODIMP nsAlertNotification::GetTextClickable(bool *aTextClickable)
     334             : {
     335             :     return NS_ERROR_NOT_IMPLEMENTED;
     336             : }
     337             : 
     338             : /* readonly attribute AString cookie; */
     339             : NS_IMETHODIMP nsAlertNotification::GetCookie(nsAString & aCookie)
     340             : {
     341             :     return NS_ERROR_NOT_IMPLEMENTED;
     342             : }
     343             : 
     344             : /* readonly attribute AString dir; */
     345             : NS_IMETHODIMP nsAlertNotification::GetDir(nsAString & aDir)
     346             : {
     347             :     return NS_ERROR_NOT_IMPLEMENTED;
     348             : }
     349             : 
     350             : /* readonly attribute AString lang; */
     351             : NS_IMETHODIMP nsAlertNotification::GetLang(nsAString & aLang)
     352             : {
     353             :     return NS_ERROR_NOT_IMPLEMENTED;
     354             : }
     355             : 
     356             : /* readonly attribute AString data; */
     357             : NS_IMETHODIMP nsAlertNotification::GetData(nsAString & aData)
     358             : {
     359             :     return NS_ERROR_NOT_IMPLEMENTED;
     360             : }
     361             : 
     362             : /* readonly attribute nsIPrincipal principal; */
     363             : NS_IMETHODIMP nsAlertNotification::GetPrincipal(nsIPrincipal * *aPrincipal)
     364             : {
     365             :     return NS_ERROR_NOT_IMPLEMENTED;
     366             : }
     367             : 
     368             : /* readonly attribute nsIURI URI; */
     369             : NS_IMETHODIMP nsAlertNotification::GetURI(nsIURI * *aURI)
     370             : {
     371             :     return NS_ERROR_NOT_IMPLEMENTED;
     372             : }
     373             : 
     374             : /* readonly attribute boolean inPrivateBrowsing; */
     375             : NS_IMETHODIMP nsAlertNotification::GetInPrivateBrowsing(bool *aInPrivateBrowsing)
     376             : {
     377             :     return NS_ERROR_NOT_IMPLEMENTED;
     378             : }
     379             : 
     380             : /* readonly attribute boolean requireInteraction; */
     381             : NS_IMETHODIMP nsAlertNotification::GetRequireInteraction(bool *aRequireInteraction)
     382             : {
     383             :     return NS_ERROR_NOT_IMPLEMENTED;
     384             : }
     385             : 
     386             : /* readonly attribute boolean actionable; */
     387             : NS_IMETHODIMP nsAlertNotification::GetActionable(bool *aActionable)
     388             : {
     389             :     return NS_ERROR_NOT_IMPLEMENTED;
     390             : }
     391             : 
     392             : /* readonly attribute AString source; */
     393             : NS_IMETHODIMP nsAlertNotification::GetSource(nsAString & aSource)
     394             : {
     395             :     return NS_ERROR_NOT_IMPLEMENTED;
     396             : }
     397             : 
     398             : /* nsICancelable loadImage (in unsigned long aTimeout, in nsIAlertNotificationImageListener aListener, [optional] in nsISupports aUserData); */
     399             : NS_IMETHODIMP nsAlertNotification::LoadImage(uint32_t aTimeout, nsIAlertNotificationImageListener *aListener, nsISupports *aUserData, nsICancelable * *_retval)
     400             : {
     401             :     return NS_ERROR_NOT_IMPLEMENTED;
     402             : }
     403             : 
     404             : /* End of implementation class template. */
     405             : #endif
     406             : 
     407             : 
     408             : /* starting interface:    nsIAlertsService */
     409             : #define NS_IALERTSSERVICE_IID_STR "f7a36392-d98b-4141-a7d7-4e46642684e3"
     410             : 
     411             : #define NS_IALERTSSERVICE_IID \
     412             :   {0xf7a36392, 0xd98b, 0x4141, \
     413             :     { 0xa7, 0xd7, 0x4e, 0x46, 0x64, 0x26, 0x84, 0xe3 }}
     414             : 
     415           0 : class NS_NO_VTABLE nsIAlertsService : public nsISupports {
     416             :  public:
     417             : 
     418             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IALERTSSERVICE_IID)
     419             : 
     420             :   /* void showPersistentNotification (in AString aPersistentData, in nsIAlertNotification aAlert, [optional] in nsIObserver aAlertListener); */
     421             :   NS_IMETHOD ShowPersistentNotification(const nsAString & aPersistentData, nsIAlertNotification *aAlert, nsIObserver *aAlertListener) = 0;
     422             : 
     423             :   /* void showAlert (in nsIAlertNotification aAlert, [optional] in nsIObserver aAlertListener); */
     424             :   NS_IMETHOD ShowAlert(nsIAlertNotification *aAlert, nsIObserver *aAlertListener) = 0;
     425             : 
     426             :   /* void showAlertNotification (in AString aImageURL, in AString aTitle, in AString aText, [optional] in boolean aTextClickable, [optional] in AString aCookie, [optional] in nsIObserver aAlertListener, [optional] in AString aName, [optional] in AString aDir, [optional] in AString aLang, [optional] in AString aData, [optional] in nsIPrincipal aPrincipal, [optional] in boolean aInPrivateBrowsing, [optional] in boolean aRequireInteraction); */
     427             :   NS_IMETHOD ShowAlertNotification(const nsAString & aImageURL, const nsAString & aTitle, const nsAString & aText, bool aTextClickable, const nsAString & aCookie, nsIObserver *aAlertListener, const nsAString & aName, const nsAString & aDir, const nsAString & aLang, const nsAString & aData, nsIPrincipal *aPrincipal, bool aInPrivateBrowsing, bool aRequireInteraction) = 0;
     428             : 
     429             :   /* void closeAlert ([optional] in AString aName, [optional] in nsIPrincipal aPrincipal); */
     430             :   NS_IMETHOD CloseAlert(const nsAString & aName, nsIPrincipal *aPrincipal) = 0;
     431             : 
     432             : };
     433             : 
     434             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIAlertsService, NS_IALERTSSERVICE_IID)
     435             : 
     436             : /* Use this macro when declaring classes that implement this interface. */
     437             : #define NS_DECL_NSIALERTSSERVICE \
     438             :   NS_IMETHOD ShowPersistentNotification(const nsAString & aPersistentData, nsIAlertNotification *aAlert, nsIObserver *aAlertListener) override; \
     439             :   NS_IMETHOD ShowAlert(nsIAlertNotification *aAlert, nsIObserver *aAlertListener) override; \
     440             :   NS_IMETHOD ShowAlertNotification(const nsAString & aImageURL, const nsAString & aTitle, const nsAString & aText, bool aTextClickable, const nsAString & aCookie, nsIObserver *aAlertListener, const nsAString & aName, const nsAString & aDir, const nsAString & aLang, const nsAString & aData, nsIPrincipal *aPrincipal, bool aInPrivateBrowsing, bool aRequireInteraction) override; \
     441             :   NS_IMETHOD CloseAlert(const nsAString & aName, nsIPrincipal *aPrincipal) override; 
     442             : 
     443             : /* Use this macro when declaring the members of this interface when the
     444             :    class doesn't implement the interface. This is useful for forwarding. */
     445             : #define NS_DECL_NON_VIRTUAL_NSIALERTSSERVICE \
     446             :   nsresult ShowPersistentNotification(const nsAString & aPersistentData, nsIAlertNotification *aAlert, nsIObserver *aAlertListener); \
     447             :   nsresult ShowAlert(nsIAlertNotification *aAlert, nsIObserver *aAlertListener); \
     448             :   nsresult ShowAlertNotification(const nsAString & aImageURL, const nsAString & aTitle, const nsAString & aText, bool aTextClickable, const nsAString & aCookie, nsIObserver *aAlertListener, const nsAString & aName, const nsAString & aDir, const nsAString & aLang, const nsAString & aData, nsIPrincipal *aPrincipal, bool aInPrivateBrowsing, bool aRequireInteraction); \
     449             :   nsresult CloseAlert(const nsAString & aName, nsIPrincipal *aPrincipal); 
     450             : 
     451             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     452             : #define NS_FORWARD_NSIALERTSSERVICE(_to) \
     453             :   NS_IMETHOD ShowPersistentNotification(const nsAString & aPersistentData, nsIAlertNotification *aAlert, nsIObserver *aAlertListener) override { return _to ShowPersistentNotification(aPersistentData, aAlert, aAlertListener); } \
     454             :   NS_IMETHOD ShowAlert(nsIAlertNotification *aAlert, nsIObserver *aAlertListener) override { return _to ShowAlert(aAlert, aAlertListener); } \
     455             :   NS_IMETHOD ShowAlertNotification(const nsAString & aImageURL, const nsAString & aTitle, const nsAString & aText, bool aTextClickable, const nsAString & aCookie, nsIObserver *aAlertListener, const nsAString & aName, const nsAString & aDir, const nsAString & aLang, const nsAString & aData, nsIPrincipal *aPrincipal, bool aInPrivateBrowsing, bool aRequireInteraction) override { return _to ShowAlertNotification(aImageURL, aTitle, aText, aTextClickable, aCookie, aAlertListener, aName, aDir, aLang, aData, aPrincipal, aInPrivateBrowsing, aRequireInteraction); } \
     456             :   NS_IMETHOD CloseAlert(const nsAString & aName, nsIPrincipal *aPrincipal) override { return _to CloseAlert(aName, aPrincipal); } 
     457             : 
     458             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     459             : #define NS_FORWARD_SAFE_NSIALERTSSERVICE(_to) \
     460             :   NS_IMETHOD ShowPersistentNotification(const nsAString & aPersistentData, nsIAlertNotification *aAlert, nsIObserver *aAlertListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowPersistentNotification(aPersistentData, aAlert, aAlertListener); } \
     461             :   NS_IMETHOD ShowAlert(nsIAlertNotification *aAlert, nsIObserver *aAlertListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowAlert(aAlert, aAlertListener); } \
     462             :   NS_IMETHOD ShowAlertNotification(const nsAString & aImageURL, const nsAString & aTitle, const nsAString & aText, bool aTextClickable, const nsAString & aCookie, nsIObserver *aAlertListener, const nsAString & aName, const nsAString & aDir, const nsAString & aLang, const nsAString & aData, nsIPrincipal *aPrincipal, bool aInPrivateBrowsing, bool aRequireInteraction) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowAlertNotification(aImageURL, aTitle, aText, aTextClickable, aCookie, aAlertListener, aName, aDir, aLang, aData, aPrincipal, aInPrivateBrowsing, aRequireInteraction); } \
     463             :   NS_IMETHOD CloseAlert(const nsAString & aName, nsIPrincipal *aPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseAlert(aName, aPrincipal); } 
     464             : 
     465             : #if 0
     466             : /* Use the code below as a template for the implementation class for this interface. */
     467             : 
     468             : /* Header file */
     469             : class nsAlertsService : public nsIAlertsService
     470             : {
     471             : public:
     472             :   NS_DECL_ISUPPORTS
     473             :   NS_DECL_NSIALERTSSERVICE
     474             : 
     475             :   nsAlertsService();
     476             : 
     477             : private:
     478             :   ~nsAlertsService();
     479             : 
     480             : protected:
     481             :   /* additional members */
     482             : };
     483             : 
     484             : /* Implementation file */
     485             : NS_IMPL_ISUPPORTS(nsAlertsService, nsIAlertsService)
     486             : 
     487             : nsAlertsService::nsAlertsService()
     488             : {
     489             :   /* member initializers and constructor code */
     490             : }
     491             : 
     492             : nsAlertsService::~nsAlertsService()
     493             : {
     494             :   /* destructor code */
     495             : }
     496             : 
     497             : /* void showPersistentNotification (in AString aPersistentData, in nsIAlertNotification aAlert, [optional] in nsIObserver aAlertListener); */
     498             : NS_IMETHODIMP nsAlertsService::ShowPersistentNotification(const nsAString & aPersistentData, nsIAlertNotification *aAlert, nsIObserver *aAlertListener)
     499             : {
     500             :     return NS_ERROR_NOT_IMPLEMENTED;
     501             : }
     502             : 
     503             : /* void showAlert (in nsIAlertNotification aAlert, [optional] in nsIObserver aAlertListener); */
     504             : NS_IMETHODIMP nsAlertsService::ShowAlert(nsIAlertNotification *aAlert, nsIObserver *aAlertListener)
     505             : {
     506             :     return NS_ERROR_NOT_IMPLEMENTED;
     507             : }
     508             : 
     509             : /* void showAlertNotification (in AString aImageURL, in AString aTitle, in AString aText, [optional] in boolean aTextClickable, [optional] in AString aCookie, [optional] in nsIObserver aAlertListener, [optional] in AString aName, [optional] in AString aDir, [optional] in AString aLang, [optional] in AString aData, [optional] in nsIPrincipal aPrincipal, [optional] in boolean aInPrivateBrowsing, [optional] in boolean aRequireInteraction); */
     510             : NS_IMETHODIMP nsAlertsService::ShowAlertNotification(const nsAString & aImageURL, const nsAString & aTitle, const nsAString & aText, bool aTextClickable, const nsAString & aCookie, nsIObserver *aAlertListener, const nsAString & aName, const nsAString & aDir, const nsAString & aLang, const nsAString & aData, nsIPrincipal *aPrincipal, bool aInPrivateBrowsing, bool aRequireInteraction)
     511             : {
     512             :     return NS_ERROR_NOT_IMPLEMENTED;
     513             : }
     514             : 
     515             : /* void closeAlert ([optional] in AString aName, [optional] in nsIPrincipal aPrincipal); */
     516             : NS_IMETHODIMP nsAlertsService::CloseAlert(const nsAString & aName, nsIPrincipal *aPrincipal)
     517             : {
     518             :     return NS_ERROR_NOT_IMPLEMENTED;
     519             : }
     520             : 
     521             : /* End of implementation class template. */
     522             : #endif
     523             : 
     524             : 
     525             : /* starting interface:    nsIAlertsDoNotDisturb */
     526             : #define NS_IALERTSDONOTDISTURB_IID_STR "c5d63e3a-259d-45a8-b964-8377967cb4d2"
     527             : 
     528             : #define NS_IALERTSDONOTDISTURB_IID \
     529             :   {0xc5d63e3a, 0x259d, 0x45a8, \
     530             :     { 0xb9, 0x64, 0x83, 0x77, 0x96, 0x7c, 0xb4, 0xd2 }}
     531             : 
     532           0 : class NS_NO_VTABLE nsIAlertsDoNotDisturb : public nsISupports {
     533             :  public:
     534             : 
     535             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IALERTSDONOTDISTURB_IID)
     536             : 
     537             :   /* attribute bool manualDoNotDisturb; */
     538             :   NS_IMETHOD GetManualDoNotDisturb(bool *aManualDoNotDisturb) = 0;
     539             :   NS_IMETHOD SetManualDoNotDisturb(bool aManualDoNotDisturb) = 0;
     540             : 
     541             : };
     542             : 
     543             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIAlertsDoNotDisturb, NS_IALERTSDONOTDISTURB_IID)
     544             : 
     545             : /* Use this macro when declaring classes that implement this interface. */
     546             : #define NS_DECL_NSIALERTSDONOTDISTURB \
     547             :   NS_IMETHOD GetManualDoNotDisturb(bool *aManualDoNotDisturb) override; \
     548             :   NS_IMETHOD SetManualDoNotDisturb(bool aManualDoNotDisturb) override; 
     549             : 
     550             : /* Use this macro when declaring the members of this interface when the
     551             :    class doesn't implement the interface. This is useful for forwarding. */
     552             : #define NS_DECL_NON_VIRTUAL_NSIALERTSDONOTDISTURB \
     553             :   nsresult GetManualDoNotDisturb(bool *aManualDoNotDisturb); \
     554             :   nsresult SetManualDoNotDisturb(bool aManualDoNotDisturb); 
     555             : 
     556             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     557             : #define NS_FORWARD_NSIALERTSDONOTDISTURB(_to) \
     558             :   NS_IMETHOD GetManualDoNotDisturb(bool *aManualDoNotDisturb) override { return _to GetManualDoNotDisturb(aManualDoNotDisturb); } \
     559             :   NS_IMETHOD SetManualDoNotDisturb(bool aManualDoNotDisturb) override { return _to SetManualDoNotDisturb(aManualDoNotDisturb); } 
     560             : 
     561             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     562             : #define NS_FORWARD_SAFE_NSIALERTSDONOTDISTURB(_to) \
     563             :   NS_IMETHOD GetManualDoNotDisturb(bool *aManualDoNotDisturb) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetManualDoNotDisturb(aManualDoNotDisturb); } \
     564             :   NS_IMETHOD SetManualDoNotDisturb(bool aManualDoNotDisturb) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetManualDoNotDisturb(aManualDoNotDisturb); } 
     565             : 
     566             : #if 0
     567             : /* Use the code below as a template for the implementation class for this interface. */
     568             : 
     569             : /* Header file */
     570             : class nsAlertsDoNotDisturb : public nsIAlertsDoNotDisturb
     571             : {
     572             : public:
     573             :   NS_DECL_ISUPPORTS
     574             :   NS_DECL_NSIALERTSDONOTDISTURB
     575             : 
     576             :   nsAlertsDoNotDisturb();
     577             : 
     578             : private:
     579             :   ~nsAlertsDoNotDisturb();
     580             : 
     581             : protected:
     582             :   /* additional members */
     583             : };
     584             : 
     585             : /* Implementation file */
     586             : NS_IMPL_ISUPPORTS(nsAlertsDoNotDisturb, nsIAlertsDoNotDisturb)
     587             : 
     588             : nsAlertsDoNotDisturb::nsAlertsDoNotDisturb()
     589             : {
     590             :   /* member initializers and constructor code */
     591             : }
     592             : 
     593             : nsAlertsDoNotDisturb::~nsAlertsDoNotDisturb()
     594             : {
     595             :   /* destructor code */
     596             : }
     597             : 
     598             : /* attribute bool manualDoNotDisturb; */
     599             : NS_IMETHODIMP nsAlertsDoNotDisturb::GetManualDoNotDisturb(bool *aManualDoNotDisturb)
     600             : {
     601             :     return NS_ERROR_NOT_IMPLEMENTED;
     602             : }
     603             : NS_IMETHODIMP nsAlertsDoNotDisturb::SetManualDoNotDisturb(bool aManualDoNotDisturb)
     604             : {
     605             :     return NS_ERROR_NOT_IMPLEMENTED;
     606             : }
     607             : 
     608             : /* End of implementation class template. */
     609             : #endif
     610             : 
     611             : 
     612             : /* starting interface:    nsIAlertsIconData */
     613             : #define NS_IALERTSICONDATA_IID_STR "fc6d7f0a-0cf6-4268-8c71-ab640842b9b1"
     614             : 
     615             : #define NS_IALERTSICONDATA_IID \
     616             :   {0xfc6d7f0a, 0x0cf6, 0x4268, \
     617             :     { 0x8c, 0x71, 0xab, 0x64, 0x08, 0x42, 0xb9, 0xb1 }}
     618             : 
     619             : class NS_NO_VTABLE nsIAlertsIconData : public nsISupports {
     620             :  public:
     621             : 
     622             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IALERTSICONDATA_IID)
     623             : 
     624             :   /* void showAlertWithIconData (in nsIAlertNotification aAlert, [optional] in nsIObserver aAlertListener, [optional] in uint32_t aIconSize, [array, size_is (aIconSize), const] in uint8_t aIconData); */
     625             :   NS_IMETHOD ShowAlertWithIconData(nsIAlertNotification *aAlert, nsIObserver *aAlertListener, uint32_t aIconSize, const uint8_t *aIconData) = 0;
     626             : 
     627             : };
     628             : 
     629             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIAlertsIconData, NS_IALERTSICONDATA_IID)
     630             : 
     631             : /* Use this macro when declaring classes that implement this interface. */
     632             : #define NS_DECL_NSIALERTSICONDATA \
     633             :   NS_IMETHOD ShowAlertWithIconData(nsIAlertNotification *aAlert, nsIObserver *aAlertListener, uint32_t aIconSize, const uint8_t *aIconData) override; 
     634             : 
     635             : /* Use this macro when declaring the members of this interface when the
     636             :    class doesn't implement the interface. This is useful for forwarding. */
     637             : #define NS_DECL_NON_VIRTUAL_NSIALERTSICONDATA \
     638             :   nsresult ShowAlertWithIconData(nsIAlertNotification *aAlert, nsIObserver *aAlertListener, uint32_t aIconSize, const uint8_t *aIconData); 
     639             : 
     640             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     641             : #define NS_FORWARD_NSIALERTSICONDATA(_to) \
     642             :   NS_IMETHOD ShowAlertWithIconData(nsIAlertNotification *aAlert, nsIObserver *aAlertListener, uint32_t aIconSize, const uint8_t *aIconData) override { return _to ShowAlertWithIconData(aAlert, aAlertListener, aIconSize, aIconData); } 
     643             : 
     644             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     645             : #define NS_FORWARD_SAFE_NSIALERTSICONDATA(_to) \
     646             :   NS_IMETHOD ShowAlertWithIconData(nsIAlertNotification *aAlert, nsIObserver *aAlertListener, uint32_t aIconSize, const uint8_t *aIconData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowAlertWithIconData(aAlert, aAlertListener, aIconSize, aIconData); } 
     647             : 
     648             : #if 0
     649             : /* Use the code below as a template for the implementation class for this interface. */
     650             : 
     651             : /* Header file */
     652             : class nsAlertsIconData : public nsIAlertsIconData
     653             : {
     654             : public:
     655             :   NS_DECL_ISUPPORTS
     656             :   NS_DECL_NSIALERTSICONDATA
     657             : 
     658             :   nsAlertsIconData();
     659             : 
     660             : private:
     661             :   ~nsAlertsIconData();
     662             : 
     663             : protected:
     664             :   /* additional members */
     665             : };
     666             : 
     667             : /* Implementation file */
     668             : NS_IMPL_ISUPPORTS(nsAlertsIconData, nsIAlertsIconData)
     669             : 
     670             : nsAlertsIconData::nsAlertsIconData()
     671             : {
     672             :   /* member initializers and constructor code */
     673             : }
     674             : 
     675             : nsAlertsIconData::~nsAlertsIconData()
     676             : {
     677             :   /* destructor code */
     678             : }
     679             : 
     680             : /* void showAlertWithIconData (in nsIAlertNotification aAlert, [optional] in nsIObserver aAlertListener, [optional] in uint32_t aIconSize, [array, size_is (aIconSize), const] in uint8_t aIconData); */
     681             : NS_IMETHODIMP nsAlertsIconData::ShowAlertWithIconData(nsIAlertNotification *aAlert, nsIObserver *aAlertListener, uint32_t aIconSize, const uint8_t *aIconData)
     682             : {
     683             :     return NS_ERROR_NOT_IMPLEMENTED;
     684             : }
     685             : 
     686             : /* End of implementation class template. */
     687             : #endif
     688             : 
     689             : 
     690             : /* starting interface:    nsIAlertsIconURI */
     691             : #define NS_IALERTSICONURI_IID_STR "f3c82915-bf60-41ea-91ce-6c46b22e381a"
     692             : 
     693             : #define NS_IALERTSICONURI_IID \
     694             :   {0xf3c82915, 0xbf60, 0x41ea, \
     695             :     { 0x91, 0xce, 0x6c, 0x46, 0xb2, 0x2e, 0x38, 0x1a }}
     696             : 
     697           0 : class NS_NO_VTABLE nsIAlertsIconURI : public nsISupports {
     698             :  public:
     699             : 
     700             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IALERTSICONURI_IID)
     701             : 
     702             :   /* void showAlertWithIconURI (in nsIAlertNotification aAlert, [optional] in nsIObserver aAlertListener, [optional] in nsIURI aIconURI); */
     703             :   NS_IMETHOD ShowAlertWithIconURI(nsIAlertNotification *aAlert, nsIObserver *aAlertListener, nsIURI *aIconURI) = 0;
     704             : 
     705             : };
     706             : 
     707             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIAlertsIconURI, NS_IALERTSICONURI_IID)
     708             : 
     709             : /* Use this macro when declaring classes that implement this interface. */
     710             : #define NS_DECL_NSIALERTSICONURI \
     711             :   NS_IMETHOD ShowAlertWithIconURI(nsIAlertNotification *aAlert, nsIObserver *aAlertListener, nsIURI *aIconURI) override; 
     712             : 
     713             : /* Use this macro when declaring the members of this interface when the
     714             :    class doesn't implement the interface. This is useful for forwarding. */
     715             : #define NS_DECL_NON_VIRTUAL_NSIALERTSICONURI \
     716             :   nsresult ShowAlertWithIconURI(nsIAlertNotification *aAlert, nsIObserver *aAlertListener, nsIURI *aIconURI); 
     717             : 
     718             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     719             : #define NS_FORWARD_NSIALERTSICONURI(_to) \
     720             :   NS_IMETHOD ShowAlertWithIconURI(nsIAlertNotification *aAlert, nsIObserver *aAlertListener, nsIURI *aIconURI) override { return _to ShowAlertWithIconURI(aAlert, aAlertListener, aIconURI); } 
     721             : 
     722             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     723             : #define NS_FORWARD_SAFE_NSIALERTSICONURI(_to) \
     724             :   NS_IMETHOD ShowAlertWithIconURI(nsIAlertNotification *aAlert, nsIObserver *aAlertListener, nsIURI *aIconURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowAlertWithIconURI(aAlert, aAlertListener, aIconURI); } 
     725             : 
     726             : #if 0
     727             : /* Use the code below as a template for the implementation class for this interface. */
     728             : 
     729             : /* Header file */
     730             : class nsAlertsIconURI : public nsIAlertsIconURI
     731             : {
     732             : public:
     733             :   NS_DECL_ISUPPORTS
     734             :   NS_DECL_NSIALERTSICONURI
     735             : 
     736             :   nsAlertsIconURI();
     737             : 
     738             : private:
     739             :   ~nsAlertsIconURI();
     740             : 
     741             : protected:
     742             :   /* additional members */
     743             : };
     744             : 
     745             : /* Implementation file */
     746             : NS_IMPL_ISUPPORTS(nsAlertsIconURI, nsIAlertsIconURI)
     747             : 
     748             : nsAlertsIconURI::nsAlertsIconURI()
     749             : {
     750             :   /* member initializers and constructor code */
     751             : }
     752             : 
     753             : nsAlertsIconURI::~nsAlertsIconURI()
     754             : {
     755             :   /* destructor code */
     756             : }
     757             : 
     758             : /* void showAlertWithIconURI (in nsIAlertNotification aAlert, [optional] in nsIObserver aAlertListener, [optional] in nsIURI aIconURI); */
     759             : NS_IMETHODIMP nsAlertsIconURI::ShowAlertWithIconURI(nsIAlertNotification *aAlert, nsIObserver *aAlertListener, nsIURI *aIconURI)
     760             : {
     761             :     return NS_ERROR_NOT_IMPLEMENTED;
     762             : }
     763             : 
     764             : /* End of implementation class template. */
     765             : #endif
     766             : 
     767             : 
     768             : #endif /* __gen_nsIAlertsService_h__ */

Generated by: LCOV version 1.13