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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIUpdateService.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIUpdateService_h__
       6             : #define __gen_nsIUpdateService_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : #include "js/Value.h"
      14             : 
      15             : /* For IDL files that don't want to include root IDL files. */
      16             : #ifndef NS_NO_VTABLE
      17             : #define NS_NO_VTABLE
      18             : #endif
      19             : class nsIDOMDocument; /* forward declaration */
      20             : 
      21             : class nsIDOMElement; /* forward declaration */
      22             : 
      23             : class nsIDOMWindow; /* forward declaration */
      24             : 
      25             : class nsIRequest; /* forward declaration */
      26             : 
      27             : class nsIRequestObserver; /* forward declaration */
      28             : 
      29             : class nsISimpleEnumerator; /* forward declaration */
      30             : 
      31             : class nsIFile; /* forward declaration */
      32             : 
      33             : 
      34             : /* starting interface:    nsIUpdatePatch */
      35             : #define NS_IUPDATEPATCH_IID_STR "dc8fb8a9-3a53-4031-9469-2a5197ea30e7"
      36             : 
      37             : #define NS_IUPDATEPATCH_IID \
      38             :   {0xdc8fb8a9, 0x3a53, 0x4031, \
      39             :     { 0x94, 0x69, 0x2a, 0x51, 0x97, 0xea, 0x30, 0xe7 }}
      40             : 
      41             : class NS_NO_VTABLE nsIUpdatePatch : public nsISupports {
      42             :  public:
      43             : 
      44             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUPDATEPATCH_IID)
      45             : 
      46             :   /* attribute AString type; */
      47             :   NS_IMETHOD GetType(nsAString & aType) = 0;
      48             :   NS_IMETHOD SetType(const nsAString & aType) = 0;
      49             : 
      50             :   /* attribute AString URL; */
      51             :   NS_IMETHOD GetURL(nsAString & aURL) = 0;
      52             :   NS_IMETHOD SetURL(const nsAString & aURL) = 0;
      53             : 
      54             :   /* attribute AString finalURL; */
      55             :   NS_IMETHOD GetFinalURL(nsAString & aFinalURL) = 0;
      56             :   NS_IMETHOD SetFinalURL(const nsAString & aFinalURL) = 0;
      57             : 
      58             :   /* attribute unsigned long size; */
      59             :   NS_IMETHOD GetSize(uint32_t *aSize) = 0;
      60             :   NS_IMETHOD SetSize(uint32_t aSize) = 0;
      61             : 
      62             :   /* attribute AString state; */
      63             :   NS_IMETHOD GetState(nsAString & aState) = 0;
      64             :   NS_IMETHOD SetState(const nsAString & aState) = 0;
      65             : 
      66             :   /* attribute boolean selected; */
      67             :   NS_IMETHOD GetSelected(bool *aSelected) = 0;
      68             :   NS_IMETHOD SetSelected(bool aSelected) = 0;
      69             : 
      70             :   /* nsIDOMElement serialize (in nsIDOMDocument updates); */
      71             :   NS_IMETHOD Serialize(nsIDOMDocument *updates, nsIDOMElement * *_retval) = 0;
      72             : 
      73             : };
      74             : 
      75             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIUpdatePatch, NS_IUPDATEPATCH_IID)
      76             : 
      77             : /* Use this macro when declaring classes that implement this interface. */
      78             : #define NS_DECL_NSIUPDATEPATCH \
      79             :   NS_IMETHOD GetType(nsAString & aType) override; \
      80             :   NS_IMETHOD SetType(const nsAString & aType) override; \
      81             :   NS_IMETHOD GetURL(nsAString & aURL) override; \
      82             :   NS_IMETHOD SetURL(const nsAString & aURL) override; \
      83             :   NS_IMETHOD GetFinalURL(nsAString & aFinalURL) override; \
      84             :   NS_IMETHOD SetFinalURL(const nsAString & aFinalURL) override; \
      85             :   NS_IMETHOD GetSize(uint32_t *aSize) override; \
      86             :   NS_IMETHOD SetSize(uint32_t aSize) override; \
      87             :   NS_IMETHOD GetState(nsAString & aState) override; \
      88             :   NS_IMETHOD SetState(const nsAString & aState) override; \
      89             :   NS_IMETHOD GetSelected(bool *aSelected) override; \
      90             :   NS_IMETHOD SetSelected(bool aSelected) override; \
      91             :   NS_IMETHOD Serialize(nsIDOMDocument *updates, nsIDOMElement * *_retval) override; 
      92             : 
      93             : /* Use this macro when declaring the members of this interface when the
      94             :    class doesn't implement the interface. This is useful for forwarding. */
      95             : #define NS_DECL_NON_VIRTUAL_NSIUPDATEPATCH \
      96             :   nsresult GetType(nsAString & aType); \
      97             :   nsresult SetType(const nsAString & aType); \
      98             :   nsresult GetURL(nsAString & aURL); \
      99             :   nsresult SetURL(const nsAString & aURL); \
     100             :   nsresult GetFinalURL(nsAString & aFinalURL); \
     101             :   nsresult SetFinalURL(const nsAString & aFinalURL); \
     102             :   nsresult GetSize(uint32_t *aSize); \
     103             :   nsresult SetSize(uint32_t aSize); \
     104             :   nsresult GetState(nsAString & aState); \
     105             :   nsresult SetState(const nsAString & aState); \
     106             :   nsresult GetSelected(bool *aSelected); \
     107             :   nsresult SetSelected(bool aSelected); \
     108             :   nsresult Serialize(nsIDOMDocument *updates, nsIDOMElement * *_retval); 
     109             : 
     110             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     111             : #define NS_FORWARD_NSIUPDATEPATCH(_to) \
     112             :   NS_IMETHOD GetType(nsAString & aType) override { return _to GetType(aType); } \
     113             :   NS_IMETHOD SetType(const nsAString & aType) override { return _to SetType(aType); } \
     114             :   NS_IMETHOD GetURL(nsAString & aURL) override { return _to GetURL(aURL); } \
     115             :   NS_IMETHOD SetURL(const nsAString & aURL) override { return _to SetURL(aURL); } \
     116             :   NS_IMETHOD GetFinalURL(nsAString & aFinalURL) override { return _to GetFinalURL(aFinalURL); } \
     117             :   NS_IMETHOD SetFinalURL(const nsAString & aFinalURL) override { return _to SetFinalURL(aFinalURL); } \
     118             :   NS_IMETHOD GetSize(uint32_t *aSize) override { return _to GetSize(aSize); } \
     119             :   NS_IMETHOD SetSize(uint32_t aSize) override { return _to SetSize(aSize); } \
     120             :   NS_IMETHOD GetState(nsAString & aState) override { return _to GetState(aState); } \
     121             :   NS_IMETHOD SetState(const nsAString & aState) override { return _to SetState(aState); } \
     122             :   NS_IMETHOD GetSelected(bool *aSelected) override { return _to GetSelected(aSelected); } \
     123             :   NS_IMETHOD SetSelected(bool aSelected) override { return _to SetSelected(aSelected); } \
     124             :   NS_IMETHOD Serialize(nsIDOMDocument *updates, nsIDOMElement * *_retval) override { return _to Serialize(updates, _retval); } 
     125             : 
     126             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     127             : #define NS_FORWARD_SAFE_NSIUPDATEPATCH(_to) \
     128             :   NS_IMETHOD GetType(nsAString & aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
     129             :   NS_IMETHOD SetType(const nsAString & aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); } \
     130             :   NS_IMETHOD GetURL(nsAString & aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURL(aURL); } \
     131             :   NS_IMETHOD SetURL(const nsAString & aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetURL(aURL); } \
     132             :   NS_IMETHOD GetFinalURL(nsAString & aFinalURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFinalURL(aFinalURL); } \
     133             :   NS_IMETHOD SetFinalURL(const nsAString & aFinalURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFinalURL(aFinalURL); } \
     134             :   NS_IMETHOD GetSize(uint32_t *aSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(aSize); } \
     135             :   NS_IMETHOD SetSize(uint32_t aSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSize(aSize); } \
     136             :   NS_IMETHOD GetState(nsAString & aState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetState(aState); } \
     137             :   NS_IMETHOD SetState(const nsAString & aState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetState(aState); } \
     138             :   NS_IMETHOD GetSelected(bool *aSelected) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelected(aSelected); } \
     139             :   NS_IMETHOD SetSelected(bool aSelected) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelected(aSelected); } \
     140             :   NS_IMETHOD Serialize(nsIDOMDocument *updates, nsIDOMElement * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Serialize(updates, _retval); } 
     141             : 
     142             : #if 0
     143             : /* Use the code below as a template for the implementation class for this interface. */
     144             : 
     145             : /* Header file */
     146             : class nsUpdatePatch : public nsIUpdatePatch
     147             : {
     148             : public:
     149             :   NS_DECL_ISUPPORTS
     150             :   NS_DECL_NSIUPDATEPATCH
     151             : 
     152             :   nsUpdatePatch();
     153             : 
     154             : private:
     155             :   ~nsUpdatePatch();
     156             : 
     157             : protected:
     158             :   /* additional members */
     159             : };
     160             : 
     161             : /* Implementation file */
     162             : NS_IMPL_ISUPPORTS(nsUpdatePatch, nsIUpdatePatch)
     163             : 
     164             : nsUpdatePatch::nsUpdatePatch()
     165             : {
     166             :   /* member initializers and constructor code */
     167             : }
     168             : 
     169             : nsUpdatePatch::~nsUpdatePatch()
     170             : {
     171             :   /* destructor code */
     172             : }
     173             : 
     174             : /* attribute AString type; */
     175             : NS_IMETHODIMP nsUpdatePatch::GetType(nsAString & aType)
     176             : {
     177             :     return NS_ERROR_NOT_IMPLEMENTED;
     178             : }
     179             : NS_IMETHODIMP nsUpdatePatch::SetType(const nsAString & aType)
     180             : {
     181             :     return NS_ERROR_NOT_IMPLEMENTED;
     182             : }
     183             : 
     184             : /* attribute AString URL; */
     185             : NS_IMETHODIMP nsUpdatePatch::GetURL(nsAString & aURL)
     186             : {
     187             :     return NS_ERROR_NOT_IMPLEMENTED;
     188             : }
     189             : NS_IMETHODIMP nsUpdatePatch::SetURL(const nsAString & aURL)
     190             : {
     191             :     return NS_ERROR_NOT_IMPLEMENTED;
     192             : }
     193             : 
     194             : /* attribute AString finalURL; */
     195             : NS_IMETHODIMP nsUpdatePatch::GetFinalURL(nsAString & aFinalURL)
     196             : {
     197             :     return NS_ERROR_NOT_IMPLEMENTED;
     198             : }
     199             : NS_IMETHODIMP nsUpdatePatch::SetFinalURL(const nsAString & aFinalURL)
     200             : {
     201             :     return NS_ERROR_NOT_IMPLEMENTED;
     202             : }
     203             : 
     204             : /* attribute unsigned long size; */
     205             : NS_IMETHODIMP nsUpdatePatch::GetSize(uint32_t *aSize)
     206             : {
     207             :     return NS_ERROR_NOT_IMPLEMENTED;
     208             : }
     209             : NS_IMETHODIMP nsUpdatePatch::SetSize(uint32_t aSize)
     210             : {
     211             :     return NS_ERROR_NOT_IMPLEMENTED;
     212             : }
     213             : 
     214             : /* attribute AString state; */
     215             : NS_IMETHODIMP nsUpdatePatch::GetState(nsAString & aState)
     216             : {
     217             :     return NS_ERROR_NOT_IMPLEMENTED;
     218             : }
     219             : NS_IMETHODIMP nsUpdatePatch::SetState(const nsAString & aState)
     220             : {
     221             :     return NS_ERROR_NOT_IMPLEMENTED;
     222             : }
     223             : 
     224             : /* attribute boolean selected; */
     225             : NS_IMETHODIMP nsUpdatePatch::GetSelected(bool *aSelected)
     226             : {
     227             :     return NS_ERROR_NOT_IMPLEMENTED;
     228             : }
     229             : NS_IMETHODIMP nsUpdatePatch::SetSelected(bool aSelected)
     230             : {
     231             :     return NS_ERROR_NOT_IMPLEMENTED;
     232             : }
     233             : 
     234             : /* nsIDOMElement serialize (in nsIDOMDocument updates); */
     235             : NS_IMETHODIMP nsUpdatePatch::Serialize(nsIDOMDocument *updates, nsIDOMElement * *_retval)
     236             : {
     237             :     return NS_ERROR_NOT_IMPLEMENTED;
     238             : }
     239             : 
     240             : /* End of implementation class template. */
     241             : #endif
     242             : 
     243             : 
     244             : /* starting interface:    nsIUpdate */
     245             : #define NS_IUPDATE_IID_STR "e094c045-f4ff-41fd-92da-cd2effd2c7c9"
     246             : 
     247             : #define NS_IUPDATE_IID \
     248             :   {0xe094c045, 0xf4ff, 0x41fd, \
     249             :     { 0x92, 0xda, 0xcd, 0x2e, 0xff, 0xd2, 0xc7, 0xc9 }}
     250             : 
     251             : class NS_NO_VTABLE nsIUpdate : public nsISupports {
     252             :  public:
     253             : 
     254             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUPDATE_IID)
     255             : 
     256             :   /* attribute AString type; */
     257             :   NS_IMETHOD GetType(nsAString & aType) = 0;
     258             :   NS_IMETHOD SetType(const nsAString & aType) = 0;
     259             : 
     260             :   /* attribute AString name; */
     261             :   NS_IMETHOD GetName(nsAString & aName) = 0;
     262             :   NS_IMETHOD SetName(const nsAString & aName) = 0;
     263             : 
     264             :   /* attribute AString displayVersion; */
     265             :   NS_IMETHOD GetDisplayVersion(nsAString & aDisplayVersion) = 0;
     266             :   NS_IMETHOD SetDisplayVersion(const nsAString & aDisplayVersion) = 0;
     267             : 
     268             :   /* attribute AString appVersion; */
     269             :   NS_IMETHOD GetAppVersion(nsAString & aAppVersion) = 0;
     270             :   NS_IMETHOD SetAppVersion(const nsAString & aAppVersion) = 0;
     271             : 
     272             :   /* attribute AString previousAppVersion; */
     273             :   NS_IMETHOD GetPreviousAppVersion(nsAString & aPreviousAppVersion) = 0;
     274             :   NS_IMETHOD SetPreviousAppVersion(const nsAString & aPreviousAppVersion) = 0;
     275             : 
     276             :   /* attribute AString buildID; */
     277             :   NS_IMETHOD GetBuildID(nsAString & aBuildID) = 0;
     278             :   NS_IMETHOD SetBuildID(const nsAString & aBuildID) = 0;
     279             : 
     280             :   /* attribute AString detailsURL; */
     281             :   NS_IMETHOD GetDetailsURL(nsAString & aDetailsURL) = 0;
     282             :   NS_IMETHOD SetDetailsURL(const nsAString & aDetailsURL) = 0;
     283             : 
     284             :   /* attribute AString serviceURL; */
     285             :   NS_IMETHOD GetServiceURL(nsAString & aServiceURL) = 0;
     286             :   NS_IMETHOD SetServiceURL(const nsAString & aServiceURL) = 0;
     287             : 
     288             :   /* attribute AString channel; */
     289             :   NS_IMETHOD GetChannel(nsAString & aChannel) = 0;
     290             :   NS_IMETHOD SetChannel(const nsAString & aChannel) = 0;
     291             : 
     292             :   /* attribute boolean unsupported; */
     293             :   NS_IMETHOD GetUnsupported(bool *aUnsupported) = 0;
     294             :   NS_IMETHOD SetUnsupported(bool aUnsupported) = 0;
     295             : 
     296             :   /* attribute long long promptWaitTime; */
     297             :   NS_IMETHOD GetPromptWaitTime(int64_t *aPromptWaitTime) = 0;
     298             :   NS_IMETHOD SetPromptWaitTime(int64_t aPromptWaitTime) = 0;
     299             : 
     300             :   /* attribute boolean isCompleteUpdate; */
     301             :   NS_IMETHOD GetIsCompleteUpdate(bool *aIsCompleteUpdate) = 0;
     302             :   NS_IMETHOD SetIsCompleteUpdate(bool aIsCompleteUpdate) = 0;
     303             : 
     304             :   /* attribute long long installDate; */
     305             :   NS_IMETHOD GetInstallDate(int64_t *aInstallDate) = 0;
     306             :   NS_IMETHOD SetInstallDate(int64_t aInstallDate) = 0;
     307             : 
     308             :   /* attribute AString statusText; */
     309             :   NS_IMETHOD GetStatusText(nsAString & aStatusText) = 0;
     310             :   NS_IMETHOD SetStatusText(const nsAString & aStatusText) = 0;
     311             : 
     312             :   /* readonly attribute nsIUpdatePatch selectedPatch; */
     313             :   NS_IMETHOD GetSelectedPatch(nsIUpdatePatch * *aSelectedPatch) = 0;
     314             : 
     315             :   /* attribute AString state; */
     316             :   NS_IMETHOD GetState(nsAString & aState) = 0;
     317             :   NS_IMETHOD SetState(const nsAString & aState) = 0;
     318             : 
     319             :   /* attribute long errorCode; */
     320             :   NS_IMETHOD GetErrorCode(int32_t *aErrorCode) = 0;
     321             :   NS_IMETHOD SetErrorCode(int32_t aErrorCode) = 0;
     322             : 
     323             :   /* attribute boolean elevationFailure; */
     324             :   NS_IMETHOD GetElevationFailure(bool *aElevationFailure) = 0;
     325             :   NS_IMETHOD SetElevationFailure(bool aElevationFailure) = 0;
     326             : 
     327             :   /* readonly attribute unsigned long patchCount; */
     328             :   NS_IMETHOD GetPatchCount(uint32_t *aPatchCount) = 0;
     329             : 
     330             :   /* nsIUpdatePatch getPatchAt (in unsigned long index); */
     331             :   NS_IMETHOD GetPatchAt(uint32_t index, nsIUpdatePatch * *_retval) = 0;
     332             : 
     333             :   /* nsIDOMElement serialize (in nsIDOMDocument updates); */
     334             :   NS_IMETHOD Serialize(nsIDOMDocument *updates, nsIDOMElement * *_retval) = 0;
     335             : 
     336             : };
     337             : 
     338             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIUpdate, NS_IUPDATE_IID)
     339             : 
     340             : /* Use this macro when declaring classes that implement this interface. */
     341             : #define NS_DECL_NSIUPDATE \
     342             :   NS_IMETHOD GetType(nsAString & aType) override; \
     343             :   NS_IMETHOD SetType(const nsAString & aType) override; \
     344             :   NS_IMETHOD GetName(nsAString & aName) override; \
     345             :   NS_IMETHOD SetName(const nsAString & aName) override; \
     346             :   NS_IMETHOD GetDisplayVersion(nsAString & aDisplayVersion) override; \
     347             :   NS_IMETHOD SetDisplayVersion(const nsAString & aDisplayVersion) override; \
     348             :   NS_IMETHOD GetAppVersion(nsAString & aAppVersion) override; \
     349             :   NS_IMETHOD SetAppVersion(const nsAString & aAppVersion) override; \
     350             :   NS_IMETHOD GetPreviousAppVersion(nsAString & aPreviousAppVersion) override; \
     351             :   NS_IMETHOD SetPreviousAppVersion(const nsAString & aPreviousAppVersion) override; \
     352             :   NS_IMETHOD GetBuildID(nsAString & aBuildID) override; \
     353             :   NS_IMETHOD SetBuildID(const nsAString & aBuildID) override; \
     354             :   NS_IMETHOD GetDetailsURL(nsAString & aDetailsURL) override; \
     355             :   NS_IMETHOD SetDetailsURL(const nsAString & aDetailsURL) override; \
     356             :   NS_IMETHOD GetServiceURL(nsAString & aServiceURL) override; \
     357             :   NS_IMETHOD SetServiceURL(const nsAString & aServiceURL) override; \
     358             :   NS_IMETHOD GetChannel(nsAString & aChannel) override; \
     359             :   NS_IMETHOD SetChannel(const nsAString & aChannel) override; \
     360             :   NS_IMETHOD GetUnsupported(bool *aUnsupported) override; \
     361             :   NS_IMETHOD SetUnsupported(bool aUnsupported) override; \
     362             :   NS_IMETHOD GetPromptWaitTime(int64_t *aPromptWaitTime) override; \
     363             :   NS_IMETHOD SetPromptWaitTime(int64_t aPromptWaitTime) override; \
     364             :   NS_IMETHOD GetIsCompleteUpdate(bool *aIsCompleteUpdate) override; \
     365             :   NS_IMETHOD SetIsCompleteUpdate(bool aIsCompleteUpdate) override; \
     366             :   NS_IMETHOD GetInstallDate(int64_t *aInstallDate) override; \
     367             :   NS_IMETHOD SetInstallDate(int64_t aInstallDate) override; \
     368             :   NS_IMETHOD GetStatusText(nsAString & aStatusText) override; \
     369             :   NS_IMETHOD SetStatusText(const nsAString & aStatusText) override; \
     370             :   NS_IMETHOD GetSelectedPatch(nsIUpdatePatch * *aSelectedPatch) override; \
     371             :   NS_IMETHOD GetState(nsAString & aState) override; \
     372             :   NS_IMETHOD SetState(const nsAString & aState) override; \
     373             :   NS_IMETHOD GetErrorCode(int32_t *aErrorCode) override; \
     374             :   NS_IMETHOD SetErrorCode(int32_t aErrorCode) override; \
     375             :   NS_IMETHOD GetElevationFailure(bool *aElevationFailure) override; \
     376             :   NS_IMETHOD SetElevationFailure(bool aElevationFailure) override; \
     377             :   NS_IMETHOD GetPatchCount(uint32_t *aPatchCount) override; \
     378             :   NS_IMETHOD GetPatchAt(uint32_t index, nsIUpdatePatch * *_retval) override; \
     379             :   NS_IMETHOD Serialize(nsIDOMDocument *updates, nsIDOMElement * *_retval) override; 
     380             : 
     381             : /* Use this macro when declaring the members of this interface when the
     382             :    class doesn't implement the interface. This is useful for forwarding. */
     383             : #define NS_DECL_NON_VIRTUAL_NSIUPDATE \
     384             :   nsresult GetType(nsAString & aType); \
     385             :   nsresult SetType(const nsAString & aType); \
     386             :   nsresult GetName(nsAString & aName); \
     387             :   nsresult SetName(const nsAString & aName); \
     388             :   nsresult GetDisplayVersion(nsAString & aDisplayVersion); \
     389             :   nsresult SetDisplayVersion(const nsAString & aDisplayVersion); \
     390             :   nsresult GetAppVersion(nsAString & aAppVersion); \
     391             :   nsresult SetAppVersion(const nsAString & aAppVersion); \
     392             :   nsresult GetPreviousAppVersion(nsAString & aPreviousAppVersion); \
     393             :   nsresult SetPreviousAppVersion(const nsAString & aPreviousAppVersion); \
     394             :   nsresult GetBuildID(nsAString & aBuildID); \
     395             :   nsresult SetBuildID(const nsAString & aBuildID); \
     396             :   nsresult GetDetailsURL(nsAString & aDetailsURL); \
     397             :   nsresult SetDetailsURL(const nsAString & aDetailsURL); \
     398             :   nsresult GetServiceURL(nsAString & aServiceURL); \
     399             :   nsresult SetServiceURL(const nsAString & aServiceURL); \
     400             :   nsresult GetChannel(nsAString & aChannel); \
     401             :   nsresult SetChannel(const nsAString & aChannel); \
     402             :   nsresult GetUnsupported(bool *aUnsupported); \
     403             :   nsresult SetUnsupported(bool aUnsupported); \
     404             :   nsresult GetPromptWaitTime(int64_t *aPromptWaitTime); \
     405             :   nsresult SetPromptWaitTime(int64_t aPromptWaitTime); \
     406             :   nsresult GetIsCompleteUpdate(bool *aIsCompleteUpdate); \
     407             :   nsresult SetIsCompleteUpdate(bool aIsCompleteUpdate); \
     408             :   nsresult GetInstallDate(int64_t *aInstallDate); \
     409             :   nsresult SetInstallDate(int64_t aInstallDate); \
     410             :   nsresult GetStatusText(nsAString & aStatusText); \
     411             :   nsresult SetStatusText(const nsAString & aStatusText); \
     412             :   nsresult GetSelectedPatch(nsIUpdatePatch * *aSelectedPatch); \
     413             :   nsresult GetState(nsAString & aState); \
     414             :   nsresult SetState(const nsAString & aState); \
     415             :   nsresult GetErrorCode(int32_t *aErrorCode); \
     416             :   nsresult SetErrorCode(int32_t aErrorCode); \
     417             :   nsresult GetElevationFailure(bool *aElevationFailure); \
     418             :   nsresult SetElevationFailure(bool aElevationFailure); \
     419             :   nsresult GetPatchCount(uint32_t *aPatchCount); \
     420             :   nsresult GetPatchAt(uint32_t index, nsIUpdatePatch * *_retval); \
     421             :   nsresult Serialize(nsIDOMDocument *updates, nsIDOMElement * *_retval); 
     422             : 
     423             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     424             : #define NS_FORWARD_NSIUPDATE(_to) \
     425             :   NS_IMETHOD GetType(nsAString & aType) override { return _to GetType(aType); } \
     426             :   NS_IMETHOD SetType(const nsAString & aType) override { return _to SetType(aType); } \
     427             :   NS_IMETHOD GetName(nsAString & aName) override { return _to GetName(aName); } \
     428             :   NS_IMETHOD SetName(const nsAString & aName) override { return _to SetName(aName); } \
     429             :   NS_IMETHOD GetDisplayVersion(nsAString & aDisplayVersion) override { return _to GetDisplayVersion(aDisplayVersion); } \
     430             :   NS_IMETHOD SetDisplayVersion(const nsAString & aDisplayVersion) override { return _to SetDisplayVersion(aDisplayVersion); } \
     431             :   NS_IMETHOD GetAppVersion(nsAString & aAppVersion) override { return _to GetAppVersion(aAppVersion); } \
     432             :   NS_IMETHOD SetAppVersion(const nsAString & aAppVersion) override { return _to SetAppVersion(aAppVersion); } \
     433             :   NS_IMETHOD GetPreviousAppVersion(nsAString & aPreviousAppVersion) override { return _to GetPreviousAppVersion(aPreviousAppVersion); } \
     434             :   NS_IMETHOD SetPreviousAppVersion(const nsAString & aPreviousAppVersion) override { return _to SetPreviousAppVersion(aPreviousAppVersion); } \
     435             :   NS_IMETHOD GetBuildID(nsAString & aBuildID) override { return _to GetBuildID(aBuildID); } \
     436             :   NS_IMETHOD SetBuildID(const nsAString & aBuildID) override { return _to SetBuildID(aBuildID); } \
     437             :   NS_IMETHOD GetDetailsURL(nsAString & aDetailsURL) override { return _to GetDetailsURL(aDetailsURL); } \
     438             :   NS_IMETHOD SetDetailsURL(const nsAString & aDetailsURL) override { return _to SetDetailsURL(aDetailsURL); } \
     439             :   NS_IMETHOD GetServiceURL(nsAString & aServiceURL) override { return _to GetServiceURL(aServiceURL); } \
     440             :   NS_IMETHOD SetServiceURL(const nsAString & aServiceURL) override { return _to SetServiceURL(aServiceURL); } \
     441             :   NS_IMETHOD GetChannel(nsAString & aChannel) override { return _to GetChannel(aChannel); } \
     442             :   NS_IMETHOD SetChannel(const nsAString & aChannel) override { return _to SetChannel(aChannel); } \
     443             :   NS_IMETHOD GetUnsupported(bool *aUnsupported) override { return _to GetUnsupported(aUnsupported); } \
     444             :   NS_IMETHOD SetUnsupported(bool aUnsupported) override { return _to SetUnsupported(aUnsupported); } \
     445             :   NS_IMETHOD GetPromptWaitTime(int64_t *aPromptWaitTime) override { return _to GetPromptWaitTime(aPromptWaitTime); } \
     446             :   NS_IMETHOD SetPromptWaitTime(int64_t aPromptWaitTime) override { return _to SetPromptWaitTime(aPromptWaitTime); } \
     447             :   NS_IMETHOD GetIsCompleteUpdate(bool *aIsCompleteUpdate) override { return _to GetIsCompleteUpdate(aIsCompleteUpdate); } \
     448             :   NS_IMETHOD SetIsCompleteUpdate(bool aIsCompleteUpdate) override { return _to SetIsCompleteUpdate(aIsCompleteUpdate); } \
     449             :   NS_IMETHOD GetInstallDate(int64_t *aInstallDate) override { return _to GetInstallDate(aInstallDate); } \
     450             :   NS_IMETHOD SetInstallDate(int64_t aInstallDate) override { return _to SetInstallDate(aInstallDate); } \
     451             :   NS_IMETHOD GetStatusText(nsAString & aStatusText) override { return _to GetStatusText(aStatusText); } \
     452             :   NS_IMETHOD SetStatusText(const nsAString & aStatusText) override { return _to SetStatusText(aStatusText); } \
     453             :   NS_IMETHOD GetSelectedPatch(nsIUpdatePatch * *aSelectedPatch) override { return _to GetSelectedPatch(aSelectedPatch); } \
     454             :   NS_IMETHOD GetState(nsAString & aState) override { return _to GetState(aState); } \
     455             :   NS_IMETHOD SetState(const nsAString & aState) override { return _to SetState(aState); } \
     456             :   NS_IMETHOD GetErrorCode(int32_t *aErrorCode) override { return _to GetErrorCode(aErrorCode); } \
     457             :   NS_IMETHOD SetErrorCode(int32_t aErrorCode) override { return _to SetErrorCode(aErrorCode); } \
     458             :   NS_IMETHOD GetElevationFailure(bool *aElevationFailure) override { return _to GetElevationFailure(aElevationFailure); } \
     459             :   NS_IMETHOD SetElevationFailure(bool aElevationFailure) override { return _to SetElevationFailure(aElevationFailure); } \
     460             :   NS_IMETHOD GetPatchCount(uint32_t *aPatchCount) override { return _to GetPatchCount(aPatchCount); } \
     461             :   NS_IMETHOD GetPatchAt(uint32_t index, nsIUpdatePatch * *_retval) override { return _to GetPatchAt(index, _retval); } \
     462             :   NS_IMETHOD Serialize(nsIDOMDocument *updates, nsIDOMElement * *_retval) override { return _to Serialize(updates, _retval); } 
     463             : 
     464             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     465             : #define NS_FORWARD_SAFE_NSIUPDATE(_to) \
     466             :   NS_IMETHOD GetType(nsAString & aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
     467             :   NS_IMETHOD SetType(const nsAString & aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); } \
     468             :   NS_IMETHOD GetName(nsAString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
     469             :   NS_IMETHOD SetName(const nsAString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } \
     470             :   NS_IMETHOD GetDisplayVersion(nsAString & aDisplayVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayVersion(aDisplayVersion); } \
     471             :   NS_IMETHOD SetDisplayVersion(const nsAString & aDisplayVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisplayVersion(aDisplayVersion); } \
     472             :   NS_IMETHOD GetAppVersion(nsAString & aAppVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppVersion(aAppVersion); } \
     473             :   NS_IMETHOD SetAppVersion(const nsAString & aAppVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAppVersion(aAppVersion); } \
     474             :   NS_IMETHOD GetPreviousAppVersion(nsAString & aPreviousAppVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreviousAppVersion(aPreviousAppVersion); } \
     475             :   NS_IMETHOD SetPreviousAppVersion(const nsAString & aPreviousAppVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPreviousAppVersion(aPreviousAppVersion); } \
     476             :   NS_IMETHOD GetBuildID(nsAString & aBuildID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBuildID(aBuildID); } \
     477             :   NS_IMETHOD SetBuildID(const nsAString & aBuildID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBuildID(aBuildID); } \
     478             :   NS_IMETHOD GetDetailsURL(nsAString & aDetailsURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDetailsURL(aDetailsURL); } \
     479             :   NS_IMETHOD SetDetailsURL(const nsAString & aDetailsURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDetailsURL(aDetailsURL); } \
     480             :   NS_IMETHOD GetServiceURL(nsAString & aServiceURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServiceURL(aServiceURL); } \
     481             :   NS_IMETHOD SetServiceURL(const nsAString & aServiceURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetServiceURL(aServiceURL); } \
     482             :   NS_IMETHOD GetChannel(nsAString & aChannel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChannel(aChannel); } \
     483             :   NS_IMETHOD SetChannel(const nsAString & aChannel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetChannel(aChannel); } \
     484             :   NS_IMETHOD GetUnsupported(bool *aUnsupported) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnsupported(aUnsupported); } \
     485             :   NS_IMETHOD SetUnsupported(bool aUnsupported) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUnsupported(aUnsupported); } \
     486             :   NS_IMETHOD GetPromptWaitTime(int64_t *aPromptWaitTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPromptWaitTime(aPromptWaitTime); } \
     487             :   NS_IMETHOD SetPromptWaitTime(int64_t aPromptWaitTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPromptWaitTime(aPromptWaitTime); } \
     488             :   NS_IMETHOD GetIsCompleteUpdate(bool *aIsCompleteUpdate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsCompleteUpdate(aIsCompleteUpdate); } \
     489             :   NS_IMETHOD SetIsCompleteUpdate(bool aIsCompleteUpdate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsCompleteUpdate(aIsCompleteUpdate); } \
     490             :   NS_IMETHOD GetInstallDate(int64_t *aInstallDate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInstallDate(aInstallDate); } \
     491             :   NS_IMETHOD SetInstallDate(int64_t aInstallDate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInstallDate(aInstallDate); } \
     492             :   NS_IMETHOD GetStatusText(nsAString & aStatusText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatusText(aStatusText); } \
     493             :   NS_IMETHOD SetStatusText(const nsAString & aStatusText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStatusText(aStatusText); } \
     494             :   NS_IMETHOD GetSelectedPatch(nsIUpdatePatch * *aSelectedPatch) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedPatch(aSelectedPatch); } \
     495             :   NS_IMETHOD GetState(nsAString & aState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetState(aState); } \
     496             :   NS_IMETHOD SetState(const nsAString & aState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetState(aState); } \
     497             :   NS_IMETHOD GetErrorCode(int32_t *aErrorCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorCode(aErrorCode); } \
     498             :   NS_IMETHOD SetErrorCode(int32_t aErrorCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetErrorCode(aErrorCode); } \
     499             :   NS_IMETHOD GetElevationFailure(bool *aElevationFailure) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElevationFailure(aElevationFailure); } \
     500             :   NS_IMETHOD SetElevationFailure(bool aElevationFailure) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetElevationFailure(aElevationFailure); } \
     501             :   NS_IMETHOD GetPatchCount(uint32_t *aPatchCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPatchCount(aPatchCount); } \
     502             :   NS_IMETHOD GetPatchAt(uint32_t index, nsIUpdatePatch * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPatchAt(index, _retval); } \
     503             :   NS_IMETHOD Serialize(nsIDOMDocument *updates, nsIDOMElement * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Serialize(updates, _retval); } 
     504             : 
     505             : #if 0
     506             : /* Use the code below as a template for the implementation class for this interface. */
     507             : 
     508             : /* Header file */
     509             : class nsUpdate : public nsIUpdate
     510             : {
     511             : public:
     512             :   NS_DECL_ISUPPORTS
     513             :   NS_DECL_NSIUPDATE
     514             : 
     515             :   nsUpdate();
     516             : 
     517             : private:
     518             :   ~nsUpdate();
     519             : 
     520             : protected:
     521             :   /* additional members */
     522             : };
     523             : 
     524             : /* Implementation file */
     525             : NS_IMPL_ISUPPORTS(nsUpdate, nsIUpdate)
     526             : 
     527             : nsUpdate::nsUpdate()
     528             : {
     529             :   /* member initializers and constructor code */
     530             : }
     531             : 
     532             : nsUpdate::~nsUpdate()
     533             : {
     534             :   /* destructor code */
     535             : }
     536             : 
     537             : /* attribute AString type; */
     538             : NS_IMETHODIMP nsUpdate::GetType(nsAString & aType)
     539             : {
     540             :     return NS_ERROR_NOT_IMPLEMENTED;
     541             : }
     542             : NS_IMETHODIMP nsUpdate::SetType(const nsAString & aType)
     543             : {
     544             :     return NS_ERROR_NOT_IMPLEMENTED;
     545             : }
     546             : 
     547             : /* attribute AString name; */
     548             : NS_IMETHODIMP nsUpdate::GetName(nsAString & aName)
     549             : {
     550             :     return NS_ERROR_NOT_IMPLEMENTED;
     551             : }
     552             : NS_IMETHODIMP nsUpdate::SetName(const nsAString & aName)
     553             : {
     554             :     return NS_ERROR_NOT_IMPLEMENTED;
     555             : }
     556             : 
     557             : /* attribute AString displayVersion; */
     558             : NS_IMETHODIMP nsUpdate::GetDisplayVersion(nsAString & aDisplayVersion)
     559             : {
     560             :     return NS_ERROR_NOT_IMPLEMENTED;
     561             : }
     562             : NS_IMETHODIMP nsUpdate::SetDisplayVersion(const nsAString & aDisplayVersion)
     563             : {
     564             :     return NS_ERROR_NOT_IMPLEMENTED;
     565             : }
     566             : 
     567             : /* attribute AString appVersion; */
     568             : NS_IMETHODIMP nsUpdate::GetAppVersion(nsAString & aAppVersion)
     569             : {
     570             :     return NS_ERROR_NOT_IMPLEMENTED;
     571             : }
     572             : NS_IMETHODIMP nsUpdate::SetAppVersion(const nsAString & aAppVersion)
     573             : {
     574             :     return NS_ERROR_NOT_IMPLEMENTED;
     575             : }
     576             : 
     577             : /* attribute AString previousAppVersion; */
     578             : NS_IMETHODIMP nsUpdate::GetPreviousAppVersion(nsAString & aPreviousAppVersion)
     579             : {
     580             :     return NS_ERROR_NOT_IMPLEMENTED;
     581             : }
     582             : NS_IMETHODIMP nsUpdate::SetPreviousAppVersion(const nsAString & aPreviousAppVersion)
     583             : {
     584             :     return NS_ERROR_NOT_IMPLEMENTED;
     585             : }
     586             : 
     587             : /* attribute AString buildID; */
     588             : NS_IMETHODIMP nsUpdate::GetBuildID(nsAString & aBuildID)
     589             : {
     590             :     return NS_ERROR_NOT_IMPLEMENTED;
     591             : }
     592             : NS_IMETHODIMP nsUpdate::SetBuildID(const nsAString & aBuildID)
     593             : {
     594             :     return NS_ERROR_NOT_IMPLEMENTED;
     595             : }
     596             : 
     597             : /* attribute AString detailsURL; */
     598             : NS_IMETHODIMP nsUpdate::GetDetailsURL(nsAString & aDetailsURL)
     599             : {
     600             :     return NS_ERROR_NOT_IMPLEMENTED;
     601             : }
     602             : NS_IMETHODIMP nsUpdate::SetDetailsURL(const nsAString & aDetailsURL)
     603             : {
     604             :     return NS_ERROR_NOT_IMPLEMENTED;
     605             : }
     606             : 
     607             : /* attribute AString serviceURL; */
     608             : NS_IMETHODIMP nsUpdate::GetServiceURL(nsAString & aServiceURL)
     609             : {
     610             :     return NS_ERROR_NOT_IMPLEMENTED;
     611             : }
     612             : NS_IMETHODIMP nsUpdate::SetServiceURL(const nsAString & aServiceURL)
     613             : {
     614             :     return NS_ERROR_NOT_IMPLEMENTED;
     615             : }
     616             : 
     617             : /* attribute AString channel; */
     618             : NS_IMETHODIMP nsUpdate::GetChannel(nsAString & aChannel)
     619             : {
     620             :     return NS_ERROR_NOT_IMPLEMENTED;
     621             : }
     622             : NS_IMETHODIMP nsUpdate::SetChannel(const nsAString & aChannel)
     623             : {
     624             :     return NS_ERROR_NOT_IMPLEMENTED;
     625             : }
     626             : 
     627             : /* attribute boolean unsupported; */
     628             : NS_IMETHODIMP nsUpdate::GetUnsupported(bool *aUnsupported)
     629             : {
     630             :     return NS_ERROR_NOT_IMPLEMENTED;
     631             : }
     632             : NS_IMETHODIMP nsUpdate::SetUnsupported(bool aUnsupported)
     633             : {
     634             :     return NS_ERROR_NOT_IMPLEMENTED;
     635             : }
     636             : 
     637             : /* attribute long long promptWaitTime; */
     638             : NS_IMETHODIMP nsUpdate::GetPromptWaitTime(int64_t *aPromptWaitTime)
     639             : {
     640             :     return NS_ERROR_NOT_IMPLEMENTED;
     641             : }
     642             : NS_IMETHODIMP nsUpdate::SetPromptWaitTime(int64_t aPromptWaitTime)
     643             : {
     644             :     return NS_ERROR_NOT_IMPLEMENTED;
     645             : }
     646             : 
     647             : /* attribute boolean isCompleteUpdate; */
     648             : NS_IMETHODIMP nsUpdate::GetIsCompleteUpdate(bool *aIsCompleteUpdate)
     649             : {
     650             :     return NS_ERROR_NOT_IMPLEMENTED;
     651             : }
     652             : NS_IMETHODIMP nsUpdate::SetIsCompleteUpdate(bool aIsCompleteUpdate)
     653             : {
     654             :     return NS_ERROR_NOT_IMPLEMENTED;
     655             : }
     656             : 
     657             : /* attribute long long installDate; */
     658             : NS_IMETHODIMP nsUpdate::GetInstallDate(int64_t *aInstallDate)
     659             : {
     660             :     return NS_ERROR_NOT_IMPLEMENTED;
     661             : }
     662             : NS_IMETHODIMP nsUpdate::SetInstallDate(int64_t aInstallDate)
     663             : {
     664             :     return NS_ERROR_NOT_IMPLEMENTED;
     665             : }
     666             : 
     667             : /* attribute AString statusText; */
     668             : NS_IMETHODIMP nsUpdate::GetStatusText(nsAString & aStatusText)
     669             : {
     670             :     return NS_ERROR_NOT_IMPLEMENTED;
     671             : }
     672             : NS_IMETHODIMP nsUpdate::SetStatusText(const nsAString & aStatusText)
     673             : {
     674             :     return NS_ERROR_NOT_IMPLEMENTED;
     675             : }
     676             : 
     677             : /* readonly attribute nsIUpdatePatch selectedPatch; */
     678             : NS_IMETHODIMP nsUpdate::GetSelectedPatch(nsIUpdatePatch * *aSelectedPatch)
     679             : {
     680             :     return NS_ERROR_NOT_IMPLEMENTED;
     681             : }
     682             : 
     683             : /* attribute AString state; */
     684             : NS_IMETHODIMP nsUpdate::GetState(nsAString & aState)
     685             : {
     686             :     return NS_ERROR_NOT_IMPLEMENTED;
     687             : }
     688             : NS_IMETHODIMP nsUpdate::SetState(const nsAString & aState)
     689             : {
     690             :     return NS_ERROR_NOT_IMPLEMENTED;
     691             : }
     692             : 
     693             : /* attribute long errorCode; */
     694             : NS_IMETHODIMP nsUpdate::GetErrorCode(int32_t *aErrorCode)
     695             : {
     696             :     return NS_ERROR_NOT_IMPLEMENTED;
     697             : }
     698             : NS_IMETHODIMP nsUpdate::SetErrorCode(int32_t aErrorCode)
     699             : {
     700             :     return NS_ERROR_NOT_IMPLEMENTED;
     701             : }
     702             : 
     703             : /* attribute boolean elevationFailure; */
     704             : NS_IMETHODIMP nsUpdate::GetElevationFailure(bool *aElevationFailure)
     705             : {
     706             :     return NS_ERROR_NOT_IMPLEMENTED;
     707             : }
     708             : NS_IMETHODIMP nsUpdate::SetElevationFailure(bool aElevationFailure)
     709             : {
     710             :     return NS_ERROR_NOT_IMPLEMENTED;
     711             : }
     712             : 
     713             : /* readonly attribute unsigned long patchCount; */
     714             : NS_IMETHODIMP nsUpdate::GetPatchCount(uint32_t *aPatchCount)
     715             : {
     716             :     return NS_ERROR_NOT_IMPLEMENTED;
     717             : }
     718             : 
     719             : /* nsIUpdatePatch getPatchAt (in unsigned long index); */
     720             : NS_IMETHODIMP nsUpdate::GetPatchAt(uint32_t index, nsIUpdatePatch * *_retval)
     721             : {
     722             :     return NS_ERROR_NOT_IMPLEMENTED;
     723             : }
     724             : 
     725             : /* nsIDOMElement serialize (in nsIDOMDocument updates); */
     726             : NS_IMETHODIMP nsUpdate::Serialize(nsIDOMDocument *updates, nsIDOMElement * *_retval)
     727             : {
     728             :     return NS_ERROR_NOT_IMPLEMENTED;
     729             : }
     730             : 
     731             : /* End of implementation class template. */
     732             : #endif
     733             : 
     734             : 
     735             : /* starting interface:    nsIUpdateCheckListener */
     736             : #define NS_IUPDATECHECKLISTENER_IID_STR "4aa2b4bb-39ea-407b-98ff-89f19134d4c0"
     737             : 
     738             : #define NS_IUPDATECHECKLISTENER_IID \
     739             :   {0x4aa2b4bb, 0x39ea, 0x407b, \
     740             :     { 0x98, 0xff, 0x89, 0xf1, 0x91, 0x34, 0xd4, 0xc0 }}
     741             : 
     742             : class NS_NO_VTABLE nsIUpdateCheckListener : public nsISupports {
     743             :  public:
     744             : 
     745             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUPDATECHECKLISTENER_IID)
     746             : 
     747             :   /* void onCheckComplete (in jsval request, [array, size_is (updateCount)] in nsIUpdate updates, in unsigned long updateCount); */
     748             :   NS_IMETHOD OnCheckComplete(JS::HandleValue request, nsIUpdate **updates, uint32_t updateCount) = 0;
     749             : 
     750             :   /* void onError (in jsval request, in nsIUpdate update); */
     751             :   NS_IMETHOD OnError(JS::HandleValue request, nsIUpdate *update) = 0;
     752             : 
     753             : };
     754             : 
     755             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIUpdateCheckListener, NS_IUPDATECHECKLISTENER_IID)
     756             : 
     757             : /* Use this macro when declaring classes that implement this interface. */
     758             : #define NS_DECL_NSIUPDATECHECKLISTENER \
     759             :   NS_IMETHOD OnCheckComplete(JS::HandleValue request, nsIUpdate **updates, uint32_t updateCount) override; \
     760             :   NS_IMETHOD OnError(JS::HandleValue request, nsIUpdate *update) override; 
     761             : 
     762             : /* Use this macro when declaring the members of this interface when the
     763             :    class doesn't implement the interface. This is useful for forwarding. */
     764             : #define NS_DECL_NON_VIRTUAL_NSIUPDATECHECKLISTENER \
     765             :   nsresult OnCheckComplete(JS::HandleValue request, nsIUpdate **updates, uint32_t updateCount); \
     766             :   nsresult OnError(JS::HandleValue request, nsIUpdate *update); 
     767             : 
     768             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     769             : #define NS_FORWARD_NSIUPDATECHECKLISTENER(_to) \
     770             :   NS_IMETHOD OnCheckComplete(JS::HandleValue request, nsIUpdate **updates, uint32_t updateCount) override { return _to OnCheckComplete(request, updates, updateCount); } \
     771             :   NS_IMETHOD OnError(JS::HandleValue request, nsIUpdate *update) override { return _to OnError(request, update); } 
     772             : 
     773             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     774             : #define NS_FORWARD_SAFE_NSIUPDATECHECKLISTENER(_to) \
     775             :   NS_IMETHOD OnCheckComplete(JS::HandleValue request, nsIUpdate **updates, uint32_t updateCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCheckComplete(request, updates, updateCount); } \
     776             :   NS_IMETHOD OnError(JS::HandleValue request, nsIUpdate *update) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnError(request, update); } 
     777             : 
     778             : #if 0
     779             : /* Use the code below as a template for the implementation class for this interface. */
     780             : 
     781             : /* Header file */
     782             : class nsUpdateCheckListener : public nsIUpdateCheckListener
     783             : {
     784             : public:
     785             :   NS_DECL_ISUPPORTS
     786             :   NS_DECL_NSIUPDATECHECKLISTENER
     787             : 
     788             :   nsUpdateCheckListener();
     789             : 
     790             : private:
     791             :   ~nsUpdateCheckListener();
     792             : 
     793             : protected:
     794             :   /* additional members */
     795             : };
     796             : 
     797             : /* Implementation file */
     798             : NS_IMPL_ISUPPORTS(nsUpdateCheckListener, nsIUpdateCheckListener)
     799             : 
     800             : nsUpdateCheckListener::nsUpdateCheckListener()
     801             : {
     802             :   /* member initializers and constructor code */
     803             : }
     804             : 
     805             : nsUpdateCheckListener::~nsUpdateCheckListener()
     806             : {
     807             :   /* destructor code */
     808             : }
     809             : 
     810             : /* void onCheckComplete (in jsval request, [array, size_is (updateCount)] in nsIUpdate updates, in unsigned long updateCount); */
     811             : NS_IMETHODIMP nsUpdateCheckListener::OnCheckComplete(JS::HandleValue request, nsIUpdate **updates, uint32_t updateCount)
     812             : {
     813             :     return NS_ERROR_NOT_IMPLEMENTED;
     814             : }
     815             : 
     816             : /* void onError (in jsval request, in nsIUpdate update); */
     817             : NS_IMETHODIMP nsUpdateCheckListener::OnError(JS::HandleValue request, nsIUpdate *update)
     818             : {
     819             :     return NS_ERROR_NOT_IMPLEMENTED;
     820             : }
     821             : 
     822             : /* End of implementation class template. */
     823             : #endif
     824             : 
     825             : 
     826             : /* starting interface:    nsIUpdateChecker */
     827             : #define NS_IUPDATECHECKER_IID_STR "877ace25-8bc5-452a-8586-9c1cf2871994"
     828             : 
     829             : #define NS_IUPDATECHECKER_IID \
     830             :   {0x877ace25, 0x8bc5, 0x452a, \
     831             :     { 0x85, 0x86, 0x9c, 0x1c, 0xf2, 0x87, 0x19, 0x94 }}
     832             : 
     833             : class NS_NO_VTABLE nsIUpdateChecker : public nsISupports {
     834             :  public:
     835             : 
     836             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUPDATECHECKER_IID)
     837             : 
     838             :   /* void checkForUpdates (in nsIUpdateCheckListener listener, in boolean force); */
     839             :   NS_IMETHOD CheckForUpdates(nsIUpdateCheckListener *listener, bool force) = 0;
     840             : 
     841             :   enum {
     842             :     CURRENT_CHECK = 1U,
     843             :     CURRENT_SESSION = 2U,
     844             :     ANY_CHECKS = 3U
     845             :   };
     846             : 
     847             :   /* void stopChecking (in unsigned short duration); */
     848             :   NS_IMETHOD StopChecking(uint16_t duration) = 0;
     849             : 
     850             : };
     851             : 
     852             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIUpdateChecker, NS_IUPDATECHECKER_IID)
     853             : 
     854             : /* Use this macro when declaring classes that implement this interface. */
     855             : #define NS_DECL_NSIUPDATECHECKER \
     856             :   NS_IMETHOD CheckForUpdates(nsIUpdateCheckListener *listener, bool force) override; \
     857             :   NS_IMETHOD StopChecking(uint16_t duration) override; 
     858             : 
     859             : /* Use this macro when declaring the members of this interface when the
     860             :    class doesn't implement the interface. This is useful for forwarding. */
     861             : #define NS_DECL_NON_VIRTUAL_NSIUPDATECHECKER \
     862             :   nsresult CheckForUpdates(nsIUpdateCheckListener *listener, bool force); \
     863             :   nsresult StopChecking(uint16_t duration); 
     864             : 
     865             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     866             : #define NS_FORWARD_NSIUPDATECHECKER(_to) \
     867             :   NS_IMETHOD CheckForUpdates(nsIUpdateCheckListener *listener, bool force) override { return _to CheckForUpdates(listener, force); } \
     868             :   NS_IMETHOD StopChecking(uint16_t duration) override { return _to StopChecking(duration); } 
     869             : 
     870             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     871             : #define NS_FORWARD_SAFE_NSIUPDATECHECKER(_to) \
     872             :   NS_IMETHOD CheckForUpdates(nsIUpdateCheckListener *listener, bool force) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckForUpdates(listener, force); } \
     873             :   NS_IMETHOD StopChecking(uint16_t duration) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StopChecking(duration); } 
     874             : 
     875             : #if 0
     876             : /* Use the code below as a template for the implementation class for this interface. */
     877             : 
     878             : /* Header file */
     879             : class nsUpdateChecker : public nsIUpdateChecker
     880             : {
     881             : public:
     882             :   NS_DECL_ISUPPORTS
     883             :   NS_DECL_NSIUPDATECHECKER
     884             : 
     885             :   nsUpdateChecker();
     886             : 
     887             : private:
     888             :   ~nsUpdateChecker();
     889             : 
     890             : protected:
     891             :   /* additional members */
     892             : };
     893             : 
     894             : /* Implementation file */
     895             : NS_IMPL_ISUPPORTS(nsUpdateChecker, nsIUpdateChecker)
     896             : 
     897             : nsUpdateChecker::nsUpdateChecker()
     898             : {
     899             :   /* member initializers and constructor code */
     900             : }
     901             : 
     902             : nsUpdateChecker::~nsUpdateChecker()
     903             : {
     904             :   /* destructor code */
     905             : }
     906             : 
     907             : /* void checkForUpdates (in nsIUpdateCheckListener listener, in boolean force); */
     908             : NS_IMETHODIMP nsUpdateChecker::CheckForUpdates(nsIUpdateCheckListener *listener, bool force)
     909             : {
     910             :     return NS_ERROR_NOT_IMPLEMENTED;
     911             : }
     912             : 
     913             : /* void stopChecking (in unsigned short duration); */
     914             : NS_IMETHODIMP nsUpdateChecker::StopChecking(uint16_t duration)
     915             : {
     916             :     return NS_ERROR_NOT_IMPLEMENTED;
     917             : }
     918             : 
     919             : /* End of implementation class template. */
     920             : #endif
     921             : 
     922             : 
     923             : /* starting interface:    nsIApplicationUpdateService */
     924             : #define NS_IAPPLICATIONUPDATESERVICE_IID_STR "1107d207-a263-403a-b268-05772ec10757"
     925             : 
     926             : #define NS_IAPPLICATIONUPDATESERVICE_IID \
     927             :   {0x1107d207, 0xa263, 0x403a, \
     928             :     { 0xb2, 0x68, 0x05, 0x77, 0x2e, 0xc1, 0x07, 0x57 }}
     929             : 
     930             : class NS_NO_VTABLE nsIApplicationUpdateService : public nsISupports {
     931             :  public:
     932             : 
     933             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAPPLICATIONUPDATESERVICE_IID)
     934             : 
     935             :   /* void checkForBackgroundUpdates (); */
     936             :   NS_IMETHOD CheckForBackgroundUpdates(void) = 0;
     937             : 
     938             :   /* readonly attribute nsIUpdateChecker backgroundChecker; */
     939             :   NS_IMETHOD GetBackgroundChecker(nsIUpdateChecker * *aBackgroundChecker) = 0;
     940             : 
     941             :   /* nsIUpdate selectUpdate ([array, size_is (updateCount)] in nsIUpdate updates, in unsigned long updateCount); */
     942             :   NS_IMETHOD SelectUpdate(nsIUpdate **updates, uint32_t updateCount, nsIUpdate * *_retval) = 0;
     943             : 
     944             :   /* void addDownloadListener (in nsIRequestObserver listener); */
     945             :   NS_IMETHOD AddDownloadListener(nsIRequestObserver *listener) = 0;
     946             : 
     947             :   /* void removeDownloadListener (in nsIRequestObserver listener); */
     948             :   NS_IMETHOD RemoveDownloadListener(nsIRequestObserver *listener) = 0;
     949             : 
     950             :   /* AString downloadUpdate (in nsIUpdate update, in boolean background); */
     951             :   NS_IMETHOD DownloadUpdate(nsIUpdate *update, bool background, nsAString & _retval) = 0;
     952             : 
     953             :   /* nsIFile getUpdatesDirectory (); */
     954             :   NS_IMETHOD GetUpdatesDirectory(nsIFile * *_retval) = 0;
     955             : 
     956             :   /* void pauseDownload (); */
     957             :   NS_IMETHOD PauseDownload(void) = 0;
     958             : 
     959             :   /* readonly attribute boolean isDownloading; */
     960             :   NS_IMETHOD GetIsDownloading(bool *aIsDownloading) = 0;
     961             : 
     962             :   /* readonly attribute boolean canCheckForUpdates; */
     963             :   NS_IMETHOD GetCanCheckForUpdates(bool *aCanCheckForUpdates) = 0;
     964             : 
     965             :   /* readonly attribute boolean elevationRequired; */
     966             :   NS_IMETHOD GetElevationRequired(bool *aElevationRequired) = 0;
     967             : 
     968             :   /* readonly attribute boolean canApplyUpdates; */
     969             :   NS_IMETHOD GetCanApplyUpdates(bool *aCanApplyUpdates) = 0;
     970             : 
     971             :   /* readonly attribute boolean isOtherInstanceHandlingUpdates; */
     972             :   NS_IMETHOD GetIsOtherInstanceHandlingUpdates(bool *aIsOtherInstanceHandlingUpdates) = 0;
     973             : 
     974             :   /* readonly attribute boolean canStageUpdates; */
     975             :   NS_IMETHOD GetCanStageUpdates(bool *aCanStageUpdates) = 0;
     976             : 
     977             : };
     978             : 
     979             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIApplicationUpdateService, NS_IAPPLICATIONUPDATESERVICE_IID)
     980             : 
     981             : /* Use this macro when declaring classes that implement this interface. */
     982             : #define NS_DECL_NSIAPPLICATIONUPDATESERVICE \
     983             :   NS_IMETHOD CheckForBackgroundUpdates(void) override; \
     984             :   NS_IMETHOD GetBackgroundChecker(nsIUpdateChecker * *aBackgroundChecker) override; \
     985             :   NS_IMETHOD SelectUpdate(nsIUpdate **updates, uint32_t updateCount, nsIUpdate * *_retval) override; \
     986             :   NS_IMETHOD AddDownloadListener(nsIRequestObserver *listener) override; \
     987             :   NS_IMETHOD RemoveDownloadListener(nsIRequestObserver *listener) override; \
     988             :   NS_IMETHOD DownloadUpdate(nsIUpdate *update, bool background, nsAString & _retval) override; \
     989             :   NS_IMETHOD GetUpdatesDirectory(nsIFile * *_retval) override; \
     990             :   NS_IMETHOD PauseDownload(void) override; \
     991             :   NS_IMETHOD GetIsDownloading(bool *aIsDownloading) override; \
     992             :   NS_IMETHOD GetCanCheckForUpdates(bool *aCanCheckForUpdates) override; \
     993             :   NS_IMETHOD GetElevationRequired(bool *aElevationRequired) override; \
     994             :   NS_IMETHOD GetCanApplyUpdates(bool *aCanApplyUpdates) override; \
     995             :   NS_IMETHOD GetIsOtherInstanceHandlingUpdates(bool *aIsOtherInstanceHandlingUpdates) override; \
     996             :   NS_IMETHOD GetCanStageUpdates(bool *aCanStageUpdates) override; 
     997             : 
     998             : /* Use this macro when declaring the members of this interface when the
     999             :    class doesn't implement the interface. This is useful for forwarding. */
    1000             : #define NS_DECL_NON_VIRTUAL_NSIAPPLICATIONUPDATESERVICE \
    1001             :   nsresult CheckForBackgroundUpdates(void); \
    1002             :   nsresult GetBackgroundChecker(nsIUpdateChecker * *aBackgroundChecker); \
    1003             :   nsresult SelectUpdate(nsIUpdate **updates, uint32_t updateCount, nsIUpdate * *_retval); \
    1004             :   nsresult AddDownloadListener(nsIRequestObserver *listener); \
    1005             :   nsresult RemoveDownloadListener(nsIRequestObserver *listener); \
    1006             :   nsresult DownloadUpdate(nsIUpdate *update, bool background, nsAString & _retval); \
    1007             :   nsresult GetUpdatesDirectory(nsIFile * *_retval); \
    1008             :   nsresult PauseDownload(void); \
    1009             :   nsresult GetIsDownloading(bool *aIsDownloading); \
    1010             :   nsresult GetCanCheckForUpdates(bool *aCanCheckForUpdates); \
    1011             :   nsresult GetElevationRequired(bool *aElevationRequired); \
    1012             :   nsresult GetCanApplyUpdates(bool *aCanApplyUpdates); \
    1013             :   nsresult GetIsOtherInstanceHandlingUpdates(bool *aIsOtherInstanceHandlingUpdates); \
    1014             :   nsresult GetCanStageUpdates(bool *aCanStageUpdates); 
    1015             : 
    1016             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
    1017             : #define NS_FORWARD_NSIAPPLICATIONUPDATESERVICE(_to) \
    1018             :   NS_IMETHOD CheckForBackgroundUpdates(void) override { return _to CheckForBackgroundUpdates(); } \
    1019             :   NS_IMETHOD GetBackgroundChecker(nsIUpdateChecker * *aBackgroundChecker) override { return _to GetBackgroundChecker(aBackgroundChecker); } \
    1020             :   NS_IMETHOD SelectUpdate(nsIUpdate **updates, uint32_t updateCount, nsIUpdate * *_retval) override { return _to SelectUpdate(updates, updateCount, _retval); } \
    1021             :   NS_IMETHOD AddDownloadListener(nsIRequestObserver *listener) override { return _to AddDownloadListener(listener); } \
    1022             :   NS_IMETHOD RemoveDownloadListener(nsIRequestObserver *listener) override { return _to RemoveDownloadListener(listener); } \
    1023             :   NS_IMETHOD DownloadUpdate(nsIUpdate *update, bool background, nsAString & _retval) override { return _to DownloadUpdate(update, background, _retval); } \
    1024             :   NS_IMETHOD GetUpdatesDirectory(nsIFile * *_retval) override { return _to GetUpdatesDirectory(_retval); } \
    1025             :   NS_IMETHOD PauseDownload(void) override { return _to PauseDownload(); } \
    1026             :   NS_IMETHOD GetIsDownloading(bool *aIsDownloading) override { return _to GetIsDownloading(aIsDownloading); } \
    1027             :   NS_IMETHOD GetCanCheckForUpdates(bool *aCanCheckForUpdates) override { return _to GetCanCheckForUpdates(aCanCheckForUpdates); } \
    1028             :   NS_IMETHOD GetElevationRequired(bool *aElevationRequired) override { return _to GetElevationRequired(aElevationRequired); } \
    1029             :   NS_IMETHOD GetCanApplyUpdates(bool *aCanApplyUpdates) override { return _to GetCanApplyUpdates(aCanApplyUpdates); } \
    1030             :   NS_IMETHOD GetIsOtherInstanceHandlingUpdates(bool *aIsOtherInstanceHandlingUpdates) override { return _to GetIsOtherInstanceHandlingUpdates(aIsOtherInstanceHandlingUpdates); } \
    1031             :   NS_IMETHOD GetCanStageUpdates(bool *aCanStageUpdates) override { return _to GetCanStageUpdates(aCanStageUpdates); } 
    1032             : 
    1033             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
    1034             : #define NS_FORWARD_SAFE_NSIAPPLICATIONUPDATESERVICE(_to) \
    1035             :   NS_IMETHOD CheckForBackgroundUpdates(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckForBackgroundUpdates(); } \
    1036             :   NS_IMETHOD GetBackgroundChecker(nsIUpdateChecker * *aBackgroundChecker) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBackgroundChecker(aBackgroundChecker); } \
    1037             :   NS_IMETHOD SelectUpdate(nsIUpdate **updates, uint32_t updateCount, nsIUpdate * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectUpdate(updates, updateCount, _retval); } \
    1038             :   NS_IMETHOD AddDownloadListener(nsIRequestObserver *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddDownloadListener(listener); } \
    1039             :   NS_IMETHOD RemoveDownloadListener(nsIRequestObserver *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveDownloadListener(listener); } \
    1040             :   NS_IMETHOD DownloadUpdate(nsIUpdate *update, bool background, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DownloadUpdate(update, background, _retval); } \
    1041             :   NS_IMETHOD GetUpdatesDirectory(nsIFile * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUpdatesDirectory(_retval); } \
    1042             :   NS_IMETHOD PauseDownload(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PauseDownload(); } \
    1043             :   NS_IMETHOD GetIsDownloading(bool *aIsDownloading) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsDownloading(aIsDownloading); } \
    1044             :   NS_IMETHOD GetCanCheckForUpdates(bool *aCanCheckForUpdates) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanCheckForUpdates(aCanCheckForUpdates); } \
    1045             :   NS_IMETHOD GetElevationRequired(bool *aElevationRequired) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElevationRequired(aElevationRequired); } \
    1046             :   NS_IMETHOD GetCanApplyUpdates(bool *aCanApplyUpdates) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanApplyUpdates(aCanApplyUpdates); } \
    1047             :   NS_IMETHOD GetIsOtherInstanceHandlingUpdates(bool *aIsOtherInstanceHandlingUpdates) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsOtherInstanceHandlingUpdates(aIsOtherInstanceHandlingUpdates); } \
    1048             :   NS_IMETHOD GetCanStageUpdates(bool *aCanStageUpdates) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanStageUpdates(aCanStageUpdates); } 
    1049             : 
    1050             : #if 0
    1051             : /* Use the code below as a template for the implementation class for this interface. */
    1052             : 
    1053             : /* Header file */
    1054             : class nsApplicationUpdateService : public nsIApplicationUpdateService
    1055             : {
    1056             : public:
    1057             :   NS_DECL_ISUPPORTS
    1058             :   NS_DECL_NSIAPPLICATIONUPDATESERVICE
    1059             : 
    1060             :   nsApplicationUpdateService();
    1061             : 
    1062             : private:
    1063             :   ~nsApplicationUpdateService();
    1064             : 
    1065             : protected:
    1066             :   /* additional members */
    1067             : };
    1068             : 
    1069             : /* Implementation file */
    1070             : NS_IMPL_ISUPPORTS(nsApplicationUpdateService, nsIApplicationUpdateService)
    1071             : 
    1072             : nsApplicationUpdateService::nsApplicationUpdateService()
    1073             : {
    1074             :   /* member initializers and constructor code */
    1075             : }
    1076             : 
    1077             : nsApplicationUpdateService::~nsApplicationUpdateService()
    1078             : {
    1079             :   /* destructor code */
    1080             : }
    1081             : 
    1082             : /* void checkForBackgroundUpdates (); */
    1083             : NS_IMETHODIMP nsApplicationUpdateService::CheckForBackgroundUpdates()
    1084             : {
    1085             :     return NS_ERROR_NOT_IMPLEMENTED;
    1086             : }
    1087             : 
    1088             : /* readonly attribute nsIUpdateChecker backgroundChecker; */
    1089             : NS_IMETHODIMP nsApplicationUpdateService::GetBackgroundChecker(nsIUpdateChecker * *aBackgroundChecker)
    1090             : {
    1091             :     return NS_ERROR_NOT_IMPLEMENTED;
    1092             : }
    1093             : 
    1094             : /* nsIUpdate selectUpdate ([array, size_is (updateCount)] in nsIUpdate updates, in unsigned long updateCount); */
    1095             : NS_IMETHODIMP nsApplicationUpdateService::SelectUpdate(nsIUpdate **updates, uint32_t updateCount, nsIUpdate * *_retval)
    1096             : {
    1097             :     return NS_ERROR_NOT_IMPLEMENTED;
    1098             : }
    1099             : 
    1100             : /* void addDownloadListener (in nsIRequestObserver listener); */
    1101             : NS_IMETHODIMP nsApplicationUpdateService::AddDownloadListener(nsIRequestObserver *listener)
    1102             : {
    1103             :     return NS_ERROR_NOT_IMPLEMENTED;
    1104             : }
    1105             : 
    1106             : /* void removeDownloadListener (in nsIRequestObserver listener); */
    1107             : NS_IMETHODIMP nsApplicationUpdateService::RemoveDownloadListener(nsIRequestObserver *listener)
    1108             : {
    1109             :     return NS_ERROR_NOT_IMPLEMENTED;
    1110             : }
    1111             : 
    1112             : /* AString downloadUpdate (in nsIUpdate update, in boolean background); */
    1113             : NS_IMETHODIMP nsApplicationUpdateService::DownloadUpdate(nsIUpdate *update, bool background, nsAString & _retval)
    1114             : {
    1115             :     return NS_ERROR_NOT_IMPLEMENTED;
    1116             : }
    1117             : 
    1118             : /* nsIFile getUpdatesDirectory (); */
    1119             : NS_IMETHODIMP nsApplicationUpdateService::GetUpdatesDirectory(nsIFile * *_retval)
    1120             : {
    1121             :     return NS_ERROR_NOT_IMPLEMENTED;
    1122             : }
    1123             : 
    1124             : /* void pauseDownload (); */
    1125             : NS_IMETHODIMP nsApplicationUpdateService::PauseDownload()
    1126             : {
    1127             :     return NS_ERROR_NOT_IMPLEMENTED;
    1128             : }
    1129             : 
    1130             : /* readonly attribute boolean isDownloading; */
    1131             : NS_IMETHODIMP nsApplicationUpdateService::GetIsDownloading(bool *aIsDownloading)
    1132             : {
    1133             :     return NS_ERROR_NOT_IMPLEMENTED;
    1134             : }
    1135             : 
    1136             : /* readonly attribute boolean canCheckForUpdates; */
    1137             : NS_IMETHODIMP nsApplicationUpdateService::GetCanCheckForUpdates(bool *aCanCheckForUpdates)
    1138             : {
    1139             :     return NS_ERROR_NOT_IMPLEMENTED;
    1140             : }
    1141             : 
    1142             : /* readonly attribute boolean elevationRequired; */
    1143             : NS_IMETHODIMP nsApplicationUpdateService::GetElevationRequired(bool *aElevationRequired)
    1144             : {
    1145             :     return NS_ERROR_NOT_IMPLEMENTED;
    1146             : }
    1147             : 
    1148             : /* readonly attribute boolean canApplyUpdates; */
    1149             : NS_IMETHODIMP nsApplicationUpdateService::GetCanApplyUpdates(bool *aCanApplyUpdates)
    1150             : {
    1151             :     return NS_ERROR_NOT_IMPLEMENTED;
    1152             : }
    1153             : 
    1154             : /* readonly attribute boolean isOtherInstanceHandlingUpdates; */
    1155             : NS_IMETHODIMP nsApplicationUpdateService::GetIsOtherInstanceHandlingUpdates(bool *aIsOtherInstanceHandlingUpdates)
    1156             : {
    1157             :     return NS_ERROR_NOT_IMPLEMENTED;
    1158             : }
    1159             : 
    1160             : /* readonly attribute boolean canStageUpdates; */
    1161             : NS_IMETHODIMP nsApplicationUpdateService::GetCanStageUpdates(bool *aCanStageUpdates)
    1162             : {
    1163             :     return NS_ERROR_NOT_IMPLEMENTED;
    1164             : }
    1165             : 
    1166             : /* End of implementation class template. */
    1167             : #endif
    1168             : 
    1169             : 
    1170             : /* starting interface:    nsIUpdateProcessor */
    1171             : #define NS_IUPDATEPROCESSOR_IID_STR "74439497-d796-4915-8cef-3dfe43027e4d"
    1172             : 
    1173             : #define NS_IUPDATEPROCESSOR_IID \
    1174             :   {0x74439497, 0xd796, 0x4915, \
    1175             :     { 0x8c, 0xef, 0x3d, 0xfe, 0x43, 0x02, 0x7e, 0x4d }}
    1176             : 
    1177           0 : class NS_NO_VTABLE nsIUpdateProcessor : public nsISupports {
    1178             :  public:
    1179             : 
    1180             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUPDATEPROCESSOR_IID)
    1181             : 
    1182             :   /* void processUpdate (in nsIUpdate update); */
    1183             :   NS_IMETHOD ProcessUpdate(nsIUpdate *update) = 0;
    1184             : 
    1185             : };
    1186             : 
    1187             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIUpdateProcessor, NS_IUPDATEPROCESSOR_IID)
    1188             : 
    1189             : /* Use this macro when declaring classes that implement this interface. */
    1190             : #define NS_DECL_NSIUPDATEPROCESSOR \
    1191             :   NS_IMETHOD ProcessUpdate(nsIUpdate *update) override; 
    1192             : 
    1193             : /* Use this macro when declaring the members of this interface when the
    1194             :    class doesn't implement the interface. This is useful for forwarding. */
    1195             : #define NS_DECL_NON_VIRTUAL_NSIUPDATEPROCESSOR \
    1196             :   nsresult ProcessUpdate(nsIUpdate *update); 
    1197             : 
    1198             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
    1199             : #define NS_FORWARD_NSIUPDATEPROCESSOR(_to) \
    1200             :   NS_IMETHOD ProcessUpdate(nsIUpdate *update) override { return _to ProcessUpdate(update); } 
    1201             : 
    1202             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
    1203             : #define NS_FORWARD_SAFE_NSIUPDATEPROCESSOR(_to) \
    1204             :   NS_IMETHOD ProcessUpdate(nsIUpdate *update) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ProcessUpdate(update); } 
    1205             : 
    1206             : #if 0
    1207             : /* Use the code below as a template for the implementation class for this interface. */
    1208             : 
    1209             : /* Header file */
    1210             : class nsUpdateProcessor : public nsIUpdateProcessor
    1211             : {
    1212             : public:
    1213             :   NS_DECL_ISUPPORTS
    1214             :   NS_DECL_NSIUPDATEPROCESSOR
    1215             : 
    1216             :   nsUpdateProcessor();
    1217             : 
    1218             : private:
    1219             :   ~nsUpdateProcessor();
    1220             : 
    1221             : protected:
    1222             :   /* additional members */
    1223             : };
    1224             : 
    1225             : /* Implementation file */
    1226             : NS_IMPL_ISUPPORTS(nsUpdateProcessor, nsIUpdateProcessor)
    1227             : 
    1228             : nsUpdateProcessor::nsUpdateProcessor()
    1229             : {
    1230             :   /* member initializers and constructor code */
    1231             : }
    1232             : 
    1233             : nsUpdateProcessor::~nsUpdateProcessor()
    1234             : {
    1235             :   /* destructor code */
    1236             : }
    1237             : 
    1238             : /* void processUpdate (in nsIUpdate update); */
    1239             : NS_IMETHODIMP nsUpdateProcessor::ProcessUpdate(nsIUpdate *update)
    1240             : {
    1241             :     return NS_ERROR_NOT_IMPLEMENTED;
    1242             : }
    1243             : 
    1244             : /* End of implementation class template. */
    1245             : #endif
    1246             : 
    1247             : 
    1248             : /* starting interface:    nsIUpdateManager */
    1249             : #define NS_IUPDATEMANAGER_IID_STR "0f1098e9-a447-4af9-b030-6f8f35c85f89"
    1250             : 
    1251             : #define NS_IUPDATEMANAGER_IID \
    1252             :   {0x0f1098e9, 0xa447, 0x4af9, \
    1253             :     { 0xb0, 0x30, 0x6f, 0x8f, 0x35, 0xc8, 0x5f, 0x89 }}
    1254             : 
    1255             : class NS_NO_VTABLE nsIUpdateManager : public nsISupports {
    1256             :  public:
    1257             : 
    1258             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUPDATEMANAGER_IID)
    1259             : 
    1260             :   /* nsIUpdate getUpdateAt (in long index); */
    1261             :   NS_IMETHOD GetUpdateAt(int32_t index, nsIUpdate * *_retval) = 0;
    1262             : 
    1263             :   /* readonly attribute long updateCount; */
    1264             :   NS_IMETHOD GetUpdateCount(int32_t *aUpdateCount) = 0;
    1265             : 
    1266             :   /* attribute nsIUpdate activeUpdate; */
    1267             :   NS_IMETHOD GetActiveUpdate(nsIUpdate * *aActiveUpdate) = 0;
    1268             :   NS_IMETHOD SetActiveUpdate(nsIUpdate *aActiveUpdate) = 0;
    1269             : 
    1270             :   /* void saveUpdates (); */
    1271             :   NS_IMETHOD SaveUpdates(void) = 0;
    1272             : 
    1273             :   /* void refreshUpdateStatus (); */
    1274             :   NS_IMETHOD RefreshUpdateStatus(void) = 0;
    1275             : 
    1276             :   /* void elevationOptedIn (); */
    1277             :   NS_IMETHOD ElevationOptedIn(void) = 0;
    1278             : 
    1279             :   /* void cleanupActiveUpdate (); */
    1280             :   NS_IMETHOD CleanupActiveUpdate(void) = 0;
    1281             : 
    1282             : };
    1283             : 
    1284             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIUpdateManager, NS_IUPDATEMANAGER_IID)
    1285             : 
    1286             : /* Use this macro when declaring classes that implement this interface. */
    1287             : #define NS_DECL_NSIUPDATEMANAGER \
    1288             :   NS_IMETHOD GetUpdateAt(int32_t index, nsIUpdate * *_retval) override; \
    1289             :   NS_IMETHOD GetUpdateCount(int32_t *aUpdateCount) override; \
    1290             :   NS_IMETHOD GetActiveUpdate(nsIUpdate * *aActiveUpdate) override; \
    1291             :   NS_IMETHOD SetActiveUpdate(nsIUpdate *aActiveUpdate) override; \
    1292             :   NS_IMETHOD SaveUpdates(void) override; \
    1293             :   NS_IMETHOD RefreshUpdateStatus(void) override; \
    1294             :   NS_IMETHOD ElevationOptedIn(void) override; \
    1295             :   NS_IMETHOD CleanupActiveUpdate(void) override; 
    1296             : 
    1297             : /* Use this macro when declaring the members of this interface when the
    1298             :    class doesn't implement the interface. This is useful for forwarding. */
    1299             : #define NS_DECL_NON_VIRTUAL_NSIUPDATEMANAGER \
    1300             :   nsresult GetUpdateAt(int32_t index, nsIUpdate * *_retval); \
    1301             :   nsresult GetUpdateCount(int32_t *aUpdateCount); \
    1302             :   nsresult GetActiveUpdate(nsIUpdate * *aActiveUpdate); \
    1303             :   nsresult SetActiveUpdate(nsIUpdate *aActiveUpdate); \
    1304             :   nsresult SaveUpdates(void); \
    1305             :   nsresult RefreshUpdateStatus(void); \
    1306             :   nsresult ElevationOptedIn(void); \
    1307             :   nsresult CleanupActiveUpdate(void); 
    1308             : 
    1309             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
    1310             : #define NS_FORWARD_NSIUPDATEMANAGER(_to) \
    1311             :   NS_IMETHOD GetUpdateAt(int32_t index, nsIUpdate * *_retval) override { return _to GetUpdateAt(index, _retval); } \
    1312             :   NS_IMETHOD GetUpdateCount(int32_t *aUpdateCount) override { return _to GetUpdateCount(aUpdateCount); } \
    1313             :   NS_IMETHOD GetActiveUpdate(nsIUpdate * *aActiveUpdate) override { return _to GetActiveUpdate(aActiveUpdate); } \
    1314             :   NS_IMETHOD SetActiveUpdate(nsIUpdate *aActiveUpdate) override { return _to SetActiveUpdate(aActiveUpdate); } \
    1315             :   NS_IMETHOD SaveUpdates(void) override { return _to SaveUpdates(); } \
    1316             :   NS_IMETHOD RefreshUpdateStatus(void) override { return _to RefreshUpdateStatus(); } \
    1317             :   NS_IMETHOD ElevationOptedIn(void) override { return _to ElevationOptedIn(); } \
    1318             :   NS_IMETHOD CleanupActiveUpdate(void) override { return _to CleanupActiveUpdate(); } 
    1319             : 
    1320             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
    1321             : #define NS_FORWARD_SAFE_NSIUPDATEMANAGER(_to) \
    1322             :   NS_IMETHOD GetUpdateAt(int32_t index, nsIUpdate * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUpdateAt(index, _retval); } \
    1323             :   NS_IMETHOD GetUpdateCount(int32_t *aUpdateCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUpdateCount(aUpdateCount); } \
    1324             :   NS_IMETHOD GetActiveUpdate(nsIUpdate * *aActiveUpdate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActiveUpdate(aActiveUpdate); } \
    1325             :   NS_IMETHOD SetActiveUpdate(nsIUpdate *aActiveUpdate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetActiveUpdate(aActiveUpdate); } \
    1326             :   NS_IMETHOD SaveUpdates(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SaveUpdates(); } \
    1327             :   NS_IMETHOD RefreshUpdateStatus(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RefreshUpdateStatus(); } \
    1328             :   NS_IMETHOD ElevationOptedIn(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ElevationOptedIn(); } \
    1329             :   NS_IMETHOD CleanupActiveUpdate(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CleanupActiveUpdate(); } 
    1330             : 
    1331             : #if 0
    1332             : /* Use the code below as a template for the implementation class for this interface. */
    1333             : 
    1334             : /* Header file */
    1335             : class nsUpdateManager : public nsIUpdateManager
    1336             : {
    1337             : public:
    1338             :   NS_DECL_ISUPPORTS
    1339             :   NS_DECL_NSIUPDATEMANAGER
    1340             : 
    1341             :   nsUpdateManager();
    1342             : 
    1343             : private:
    1344             :   ~nsUpdateManager();
    1345             : 
    1346             : protected:
    1347             :   /* additional members */
    1348             : };
    1349             : 
    1350             : /* Implementation file */
    1351             : NS_IMPL_ISUPPORTS(nsUpdateManager, nsIUpdateManager)
    1352             : 
    1353             : nsUpdateManager::nsUpdateManager()
    1354             : {
    1355             :   /* member initializers and constructor code */
    1356             : }
    1357             : 
    1358             : nsUpdateManager::~nsUpdateManager()
    1359             : {
    1360             :   /* destructor code */
    1361             : }
    1362             : 
    1363             : /* nsIUpdate getUpdateAt (in long index); */
    1364             : NS_IMETHODIMP nsUpdateManager::GetUpdateAt(int32_t index, nsIUpdate * *_retval)
    1365             : {
    1366             :     return NS_ERROR_NOT_IMPLEMENTED;
    1367             : }
    1368             : 
    1369             : /* readonly attribute long updateCount; */
    1370             : NS_IMETHODIMP nsUpdateManager::GetUpdateCount(int32_t *aUpdateCount)
    1371             : {
    1372             :     return NS_ERROR_NOT_IMPLEMENTED;
    1373             : }
    1374             : 
    1375             : /* attribute nsIUpdate activeUpdate; */
    1376             : NS_IMETHODIMP nsUpdateManager::GetActiveUpdate(nsIUpdate * *aActiveUpdate)
    1377             : {
    1378             :     return NS_ERROR_NOT_IMPLEMENTED;
    1379             : }
    1380             : NS_IMETHODIMP nsUpdateManager::SetActiveUpdate(nsIUpdate *aActiveUpdate)
    1381             : {
    1382             :     return NS_ERROR_NOT_IMPLEMENTED;
    1383             : }
    1384             : 
    1385             : /* void saveUpdates (); */
    1386             : NS_IMETHODIMP nsUpdateManager::SaveUpdates()
    1387             : {
    1388             :     return NS_ERROR_NOT_IMPLEMENTED;
    1389             : }
    1390             : 
    1391             : /* void refreshUpdateStatus (); */
    1392             : NS_IMETHODIMP nsUpdateManager::RefreshUpdateStatus()
    1393             : {
    1394             :     return NS_ERROR_NOT_IMPLEMENTED;
    1395             : }
    1396             : 
    1397             : /* void elevationOptedIn (); */
    1398             : NS_IMETHODIMP nsUpdateManager::ElevationOptedIn()
    1399             : {
    1400             :     return NS_ERROR_NOT_IMPLEMENTED;
    1401             : }
    1402             : 
    1403             : /* void cleanupActiveUpdate (); */
    1404             : NS_IMETHODIMP nsUpdateManager::CleanupActiveUpdate()
    1405             : {
    1406             :     return NS_ERROR_NOT_IMPLEMENTED;
    1407             : }
    1408             : 
    1409             : /* End of implementation class template. */
    1410             : #endif
    1411             : 
    1412             : 
    1413             : /* starting interface:    nsIUpdatePrompt */
    1414             : #define NS_IUPDATEPROMPT_IID_STR "cee3bd60-c564-42ff-a2bf-d442cb15f75c"
    1415             : 
    1416             : #define NS_IUPDATEPROMPT_IID \
    1417             :   {0xcee3bd60, 0xc564, 0x42ff, \
    1418             :     { 0xa2, 0xbf, 0xd4, 0x42, 0xcb, 0x15, 0xf7, 0x5c }}
    1419             : 
    1420             : class NS_NO_VTABLE nsIUpdatePrompt : public nsISupports {
    1421             :  public:
    1422             : 
    1423             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUPDATEPROMPT_IID)
    1424             : 
    1425             :   /* void checkForUpdates (); */
    1426             :   NS_IMETHOD CheckForUpdates(void) = 0;
    1427             : 
    1428             :   /* void showUpdateAvailable (in nsIUpdate update); */
    1429             :   NS_IMETHOD ShowUpdateAvailable(nsIUpdate *update) = 0;
    1430             : 
    1431             :   /* void showUpdateDownloaded (in nsIUpdate update, [optional] in boolean background); */
    1432             :   NS_IMETHOD ShowUpdateDownloaded(nsIUpdate *update, bool background) = 0;
    1433             : 
    1434             :   /* void showUpdateError (in nsIUpdate update); */
    1435             :   NS_IMETHOD ShowUpdateError(nsIUpdate *update) = 0;
    1436             : 
    1437             :   /* void showUpdateHistory (in nsIDOMWindow parent); */
    1438             :   NS_IMETHOD ShowUpdateHistory(nsIDOMWindow *parent) = 0;
    1439             : 
    1440             :   /* void showUpdateElevationRequired (); */
    1441             :   NS_IMETHOD ShowUpdateElevationRequired(void) = 0;
    1442             : 
    1443             : };
    1444             : 
    1445             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIUpdatePrompt, NS_IUPDATEPROMPT_IID)
    1446             : 
    1447             : /* Use this macro when declaring classes that implement this interface. */
    1448             : #define NS_DECL_NSIUPDATEPROMPT \
    1449             :   NS_IMETHOD CheckForUpdates(void) override; \
    1450             :   NS_IMETHOD ShowUpdateAvailable(nsIUpdate *update) override; \
    1451             :   NS_IMETHOD ShowUpdateDownloaded(nsIUpdate *update, bool background) override; \
    1452             :   NS_IMETHOD ShowUpdateError(nsIUpdate *update) override; \
    1453             :   NS_IMETHOD ShowUpdateHistory(nsIDOMWindow *parent) override; \
    1454             :   NS_IMETHOD ShowUpdateElevationRequired(void) override; 
    1455             : 
    1456             : /* Use this macro when declaring the members of this interface when the
    1457             :    class doesn't implement the interface. This is useful for forwarding. */
    1458             : #define NS_DECL_NON_VIRTUAL_NSIUPDATEPROMPT \
    1459             :   nsresult CheckForUpdates(void); \
    1460             :   nsresult ShowUpdateAvailable(nsIUpdate *update); \
    1461             :   nsresult ShowUpdateDownloaded(nsIUpdate *update, bool background); \
    1462             :   nsresult ShowUpdateError(nsIUpdate *update); \
    1463             :   nsresult ShowUpdateHistory(nsIDOMWindow *parent); \
    1464             :   nsresult ShowUpdateElevationRequired(void); 
    1465             : 
    1466             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
    1467             : #define NS_FORWARD_NSIUPDATEPROMPT(_to) \
    1468             :   NS_IMETHOD CheckForUpdates(void) override { return _to CheckForUpdates(); } \
    1469             :   NS_IMETHOD ShowUpdateAvailable(nsIUpdate *update) override { return _to ShowUpdateAvailable(update); } \
    1470             :   NS_IMETHOD ShowUpdateDownloaded(nsIUpdate *update, bool background) override { return _to ShowUpdateDownloaded(update, background); } \
    1471             :   NS_IMETHOD ShowUpdateError(nsIUpdate *update) override { return _to ShowUpdateError(update); } \
    1472             :   NS_IMETHOD ShowUpdateHistory(nsIDOMWindow *parent) override { return _to ShowUpdateHistory(parent); } \
    1473             :   NS_IMETHOD ShowUpdateElevationRequired(void) override { return _to ShowUpdateElevationRequired(); } 
    1474             : 
    1475             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
    1476             : #define NS_FORWARD_SAFE_NSIUPDATEPROMPT(_to) \
    1477             :   NS_IMETHOD CheckForUpdates(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckForUpdates(); } \
    1478             :   NS_IMETHOD ShowUpdateAvailable(nsIUpdate *update) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowUpdateAvailable(update); } \
    1479             :   NS_IMETHOD ShowUpdateDownloaded(nsIUpdate *update, bool background) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowUpdateDownloaded(update, background); } \
    1480             :   NS_IMETHOD ShowUpdateError(nsIUpdate *update) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowUpdateError(update); } \
    1481             :   NS_IMETHOD ShowUpdateHistory(nsIDOMWindow *parent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowUpdateHistory(parent); } \
    1482             :   NS_IMETHOD ShowUpdateElevationRequired(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowUpdateElevationRequired(); } 
    1483             : 
    1484             : #if 0
    1485             : /* Use the code below as a template for the implementation class for this interface. */
    1486             : 
    1487             : /* Header file */
    1488             : class nsUpdatePrompt : public nsIUpdatePrompt
    1489             : {
    1490             : public:
    1491             :   NS_DECL_ISUPPORTS
    1492             :   NS_DECL_NSIUPDATEPROMPT
    1493             : 
    1494             :   nsUpdatePrompt();
    1495             : 
    1496             : private:
    1497             :   ~nsUpdatePrompt();
    1498             : 
    1499             : protected:
    1500             :   /* additional members */
    1501             : };
    1502             : 
    1503             : /* Implementation file */
    1504             : NS_IMPL_ISUPPORTS(nsUpdatePrompt, nsIUpdatePrompt)
    1505             : 
    1506             : nsUpdatePrompt::nsUpdatePrompt()
    1507             : {
    1508             :   /* member initializers and constructor code */
    1509             : }
    1510             : 
    1511             : nsUpdatePrompt::~nsUpdatePrompt()
    1512             : {
    1513             :   /* destructor code */
    1514             : }
    1515             : 
    1516             : /* void checkForUpdates (); */
    1517             : NS_IMETHODIMP nsUpdatePrompt::CheckForUpdates()
    1518             : {
    1519             :     return NS_ERROR_NOT_IMPLEMENTED;
    1520             : }
    1521             : 
    1522             : /* void showUpdateAvailable (in nsIUpdate update); */
    1523             : NS_IMETHODIMP nsUpdatePrompt::ShowUpdateAvailable(nsIUpdate *update)
    1524             : {
    1525             :     return NS_ERROR_NOT_IMPLEMENTED;
    1526             : }
    1527             : 
    1528             : /* void showUpdateDownloaded (in nsIUpdate update, [optional] in boolean background); */
    1529             : NS_IMETHODIMP nsUpdatePrompt::ShowUpdateDownloaded(nsIUpdate *update, bool background)
    1530             : {
    1531             :     return NS_ERROR_NOT_IMPLEMENTED;
    1532             : }
    1533             : 
    1534             : /* void showUpdateError (in nsIUpdate update); */
    1535             : NS_IMETHODIMP nsUpdatePrompt::ShowUpdateError(nsIUpdate *update)
    1536             : {
    1537             :     return NS_ERROR_NOT_IMPLEMENTED;
    1538             : }
    1539             : 
    1540             : /* void showUpdateHistory (in nsIDOMWindow parent); */
    1541             : NS_IMETHODIMP nsUpdatePrompt::ShowUpdateHistory(nsIDOMWindow *parent)
    1542             : {
    1543             :     return NS_ERROR_NOT_IMPLEMENTED;
    1544             : }
    1545             : 
    1546             : /* void showUpdateElevationRequired (); */
    1547             : NS_IMETHODIMP nsUpdatePrompt::ShowUpdateElevationRequired()
    1548             : {
    1549             :     return NS_ERROR_NOT_IMPLEMENTED;
    1550             : }
    1551             : 
    1552             : /* End of implementation class template. */
    1553             : #endif
    1554             : 
    1555             : 
    1556             : #endif /* __gen_nsIUpdateService_h__ */

Generated by: LCOV version 1.13