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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAppStartup.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIAppStartup_h__
       6             : #define __gen_nsIAppStartup_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 nsIToolkitProfile; /* forward declaration */
      20             : 
      21             : 
      22             : /* starting interface:    nsIAppStartup */
      23             : #define NS_IAPPSTARTUP_IID_STR "6621f6d5-6c04-4a0e-9e74-447db221484e"
      24             : 
      25             : #define NS_IAPPSTARTUP_IID \
      26             :   {0x6621f6d5, 0x6c04, 0x4a0e, \
      27             :     { 0x9e, 0x74, 0x44, 0x7d, 0xb2, 0x21, 0x48, 0x4e }}
      28             : 
      29           1 : class NS_NO_VTABLE nsIAppStartup : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAPPSTARTUP_IID)
      33             : 
      34             :   /* void createHiddenWindow (); */
      35             :   NS_IMETHOD CreateHiddenWindow(void) = 0;
      36             : 
      37             :   /* void destroyHiddenWindow (); */
      38             :   NS_IMETHOD DestroyHiddenWindow(void) = 0;
      39             : 
      40             :   /* void run (); */
      41             :   NS_IMETHOD Run(void) = 0;
      42             : 
      43             :   /* void enterLastWindowClosingSurvivalArea (); */
      44             :   NS_IMETHOD EnterLastWindowClosingSurvivalArea(void) = 0;
      45             : 
      46             :   /* void exitLastWindowClosingSurvivalArea (); */
      47             :   NS_IMETHOD ExitLastWindowClosingSurvivalArea(void) = 0;
      48             : 
      49             :   /* readonly attribute boolean automaticSafeModeNecessary; */
      50             :   NS_IMETHOD GetAutomaticSafeModeNecessary(bool *aAutomaticSafeModeNecessary) = 0;
      51             : 
      52             :   /* void restartInSafeMode (in uint32_t aQuitMode); */
      53             :   NS_IMETHOD RestartInSafeMode(uint32_t aQuitMode) = 0;
      54             : 
      55             :   /* void createInstanceWithProfile (in nsIToolkitProfile aProfile); */
      56             :   NS_IMETHOD CreateInstanceWithProfile(nsIToolkitProfile *aProfile) = 0;
      57             : 
      58             :   /* bool trackStartupCrashBegin (); */
      59             :   NS_IMETHOD TrackStartupCrashBegin(bool *_retval) = 0;
      60             : 
      61             :   /* void trackStartupCrashEnd (); */
      62             :   NS_IMETHOD TrackStartupCrashEnd(void) = 0;
      63             : 
      64             :   enum {
      65             :     eConsiderQuit = 1U,
      66             :     eAttemptQuit = 2U,
      67             :     eForceQuit = 3U,
      68             :     eRestart = 16U,
      69             :     eRestarti386 = 32U,
      70             :     eRestartx86_64 = 64U,
      71             :     eRestartNotSameProfile = 256U
      72             :   };
      73             : 
      74             :   /* void quit (in uint32_t aMode); */
      75             :   NS_IMETHOD Quit(uint32_t aMode) = 0;
      76             : 
      77             :   /* readonly attribute boolean shuttingDown; */
      78             :   NS_IMETHOD GetShuttingDown(bool *aShuttingDown) = 0;
      79             : 
      80             :   /* readonly attribute boolean startingUp; */
      81             :   NS_IMETHOD GetStartingUp(bool *aStartingUp) = 0;
      82             : 
      83             :   /* [noscript] void doneStartingUp (); */
      84             :   NS_IMETHOD DoneStartingUp(void) = 0;
      85             : 
      86             :   /* readonly attribute boolean restarting; */
      87             :   NS_IMETHOD GetRestarting(bool *aRestarting) = 0;
      88             : 
      89             :   /* readonly attribute boolean wasRestarted; */
      90             :   NS_IMETHOD GetWasRestarted(bool *aWasRestarted) = 0;
      91             : 
      92             :   /* [implicit_jscontext] jsval getStartupInfo (); */
      93             :   NS_IMETHOD GetStartupInfo(JSContext* cx, JS::MutableHandleValue _retval) = 0;
      94             : 
      95             :   /* attribute boolean interrupted; */
      96             :   NS_IMETHOD GetInterrupted(bool *aInterrupted) = 0;
      97             :   NS_IMETHOD SetInterrupted(bool aInterrupted) = 0;
      98             : 
      99             : };
     100             : 
     101             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIAppStartup, NS_IAPPSTARTUP_IID)
     102             : 
     103             : /* Use this macro when declaring classes that implement this interface. */
     104             : #define NS_DECL_NSIAPPSTARTUP \
     105             :   NS_IMETHOD CreateHiddenWindow(void) override; \
     106             :   NS_IMETHOD DestroyHiddenWindow(void) override; \
     107             :   NS_IMETHOD Run(void) override; \
     108             :   NS_IMETHOD EnterLastWindowClosingSurvivalArea(void) override; \
     109             :   NS_IMETHOD ExitLastWindowClosingSurvivalArea(void) override; \
     110             :   NS_IMETHOD GetAutomaticSafeModeNecessary(bool *aAutomaticSafeModeNecessary) override; \
     111             :   NS_IMETHOD RestartInSafeMode(uint32_t aQuitMode) override; \
     112             :   NS_IMETHOD CreateInstanceWithProfile(nsIToolkitProfile *aProfile) override; \
     113             :   NS_IMETHOD TrackStartupCrashBegin(bool *_retval) override; \
     114             :   NS_IMETHOD TrackStartupCrashEnd(void) override; \
     115             :   NS_IMETHOD Quit(uint32_t aMode) override; \
     116             :   NS_IMETHOD GetShuttingDown(bool *aShuttingDown) override; \
     117             :   NS_IMETHOD GetStartingUp(bool *aStartingUp) override; \
     118             :   NS_IMETHOD DoneStartingUp(void) override; \
     119             :   NS_IMETHOD GetRestarting(bool *aRestarting) override; \
     120             :   NS_IMETHOD GetWasRestarted(bool *aWasRestarted) override; \
     121             :   NS_IMETHOD GetStartupInfo(JSContext* cx, JS::MutableHandleValue _retval) override; \
     122             :   NS_IMETHOD GetInterrupted(bool *aInterrupted) override; \
     123             :   NS_IMETHOD SetInterrupted(bool aInterrupted) override; 
     124             : 
     125             : /* Use this macro when declaring the members of this interface when the
     126             :    class doesn't implement the interface. This is useful for forwarding. */
     127             : #define NS_DECL_NON_VIRTUAL_NSIAPPSTARTUP \
     128             :   nsresult CreateHiddenWindow(void); \
     129             :   nsresult DestroyHiddenWindow(void); \
     130             :   nsresult Run(void); \
     131             :   nsresult EnterLastWindowClosingSurvivalArea(void); \
     132             :   nsresult ExitLastWindowClosingSurvivalArea(void); \
     133             :   nsresult GetAutomaticSafeModeNecessary(bool *aAutomaticSafeModeNecessary); \
     134             :   nsresult RestartInSafeMode(uint32_t aQuitMode); \
     135             :   nsresult CreateInstanceWithProfile(nsIToolkitProfile *aProfile); \
     136             :   nsresult TrackStartupCrashBegin(bool *_retval); \
     137             :   nsresult TrackStartupCrashEnd(void); \
     138             :   nsresult Quit(uint32_t aMode); \
     139             :   nsresult GetShuttingDown(bool *aShuttingDown); \
     140             :   nsresult GetStartingUp(bool *aStartingUp); \
     141             :   nsresult DoneStartingUp(void); \
     142             :   nsresult GetRestarting(bool *aRestarting); \
     143             :   nsresult GetWasRestarted(bool *aWasRestarted); \
     144             :   nsresult GetStartupInfo(JSContext* cx, JS::MutableHandleValue _retval); \
     145             :   nsresult GetInterrupted(bool *aInterrupted); \
     146             :   nsresult SetInterrupted(bool aInterrupted); 
     147             : 
     148             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     149             : #define NS_FORWARD_NSIAPPSTARTUP(_to) \
     150             :   NS_IMETHOD CreateHiddenWindow(void) override { return _to CreateHiddenWindow(); } \
     151             :   NS_IMETHOD DestroyHiddenWindow(void) override { return _to DestroyHiddenWindow(); } \
     152             :   NS_IMETHOD Run(void) override { return _to Run(); } \
     153             :   NS_IMETHOD EnterLastWindowClosingSurvivalArea(void) override { return _to EnterLastWindowClosingSurvivalArea(); } \
     154             :   NS_IMETHOD ExitLastWindowClosingSurvivalArea(void) override { return _to ExitLastWindowClosingSurvivalArea(); } \
     155             :   NS_IMETHOD GetAutomaticSafeModeNecessary(bool *aAutomaticSafeModeNecessary) override { return _to GetAutomaticSafeModeNecessary(aAutomaticSafeModeNecessary); } \
     156             :   NS_IMETHOD RestartInSafeMode(uint32_t aQuitMode) override { return _to RestartInSafeMode(aQuitMode); } \
     157             :   NS_IMETHOD CreateInstanceWithProfile(nsIToolkitProfile *aProfile) override { return _to CreateInstanceWithProfile(aProfile); } \
     158             :   NS_IMETHOD TrackStartupCrashBegin(bool *_retval) override { return _to TrackStartupCrashBegin(_retval); } \
     159             :   NS_IMETHOD TrackStartupCrashEnd(void) override { return _to TrackStartupCrashEnd(); } \
     160             :   NS_IMETHOD Quit(uint32_t aMode) override { return _to Quit(aMode); } \
     161             :   NS_IMETHOD GetShuttingDown(bool *aShuttingDown) override { return _to GetShuttingDown(aShuttingDown); } \
     162             :   NS_IMETHOD GetStartingUp(bool *aStartingUp) override { return _to GetStartingUp(aStartingUp); } \
     163             :   NS_IMETHOD DoneStartingUp(void) override { return _to DoneStartingUp(); } \
     164             :   NS_IMETHOD GetRestarting(bool *aRestarting) override { return _to GetRestarting(aRestarting); } \
     165             :   NS_IMETHOD GetWasRestarted(bool *aWasRestarted) override { return _to GetWasRestarted(aWasRestarted); } \
     166             :   NS_IMETHOD GetStartupInfo(JSContext* cx, JS::MutableHandleValue _retval) override { return _to GetStartupInfo(cx, _retval); } \
     167             :   NS_IMETHOD GetInterrupted(bool *aInterrupted) override { return _to GetInterrupted(aInterrupted); } \
     168             :   NS_IMETHOD SetInterrupted(bool aInterrupted) override { return _to SetInterrupted(aInterrupted); } 
     169             : 
     170             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     171             : #define NS_FORWARD_SAFE_NSIAPPSTARTUP(_to) \
     172             :   NS_IMETHOD CreateHiddenWindow(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateHiddenWindow(); } \
     173             :   NS_IMETHOD DestroyHiddenWindow(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DestroyHiddenWindow(); } \
     174             :   NS_IMETHOD Run(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Run(); } \
     175             :   NS_IMETHOD EnterLastWindowClosingSurvivalArea(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnterLastWindowClosingSurvivalArea(); } \
     176             :   NS_IMETHOD ExitLastWindowClosingSurvivalArea(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExitLastWindowClosingSurvivalArea(); } \
     177             :   NS_IMETHOD GetAutomaticSafeModeNecessary(bool *aAutomaticSafeModeNecessary) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAutomaticSafeModeNecessary(aAutomaticSafeModeNecessary); } \
     178             :   NS_IMETHOD RestartInSafeMode(uint32_t aQuitMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RestartInSafeMode(aQuitMode); } \
     179             :   NS_IMETHOD CreateInstanceWithProfile(nsIToolkitProfile *aProfile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateInstanceWithProfile(aProfile); } \
     180             :   NS_IMETHOD TrackStartupCrashBegin(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TrackStartupCrashBegin(_retval); } \
     181             :   NS_IMETHOD TrackStartupCrashEnd(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TrackStartupCrashEnd(); } \
     182             :   NS_IMETHOD Quit(uint32_t aMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Quit(aMode); } \
     183             :   NS_IMETHOD GetShuttingDown(bool *aShuttingDown) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShuttingDown(aShuttingDown); } \
     184             :   NS_IMETHOD GetStartingUp(bool *aStartingUp) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartingUp(aStartingUp); } \
     185             :   NS_IMETHOD DoneStartingUp(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DoneStartingUp(); } \
     186             :   NS_IMETHOD GetRestarting(bool *aRestarting) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRestarting(aRestarting); } \
     187             :   NS_IMETHOD GetWasRestarted(bool *aWasRestarted) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWasRestarted(aWasRestarted); } \
     188             :   NS_IMETHOD GetStartupInfo(JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartupInfo(cx, _retval); } \
     189             :   NS_IMETHOD GetInterrupted(bool *aInterrupted) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInterrupted(aInterrupted); } \
     190             :   NS_IMETHOD SetInterrupted(bool aInterrupted) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInterrupted(aInterrupted); } 
     191             : 
     192             : #if 0
     193             : /* Use the code below as a template for the implementation class for this interface. */
     194             : 
     195             : /* Header file */
     196             : class nsAppStartup : public nsIAppStartup
     197             : {
     198             : public:
     199             :   NS_DECL_ISUPPORTS
     200             :   NS_DECL_NSIAPPSTARTUP
     201             : 
     202             :   nsAppStartup();
     203             : 
     204             : private:
     205             :   ~nsAppStartup();
     206             : 
     207             : protected:
     208             :   /* additional members */
     209             : };
     210             : 
     211             : /* Implementation file */
     212             : NS_IMPL_ISUPPORTS(nsAppStartup, nsIAppStartup)
     213             : 
     214             : nsAppStartup::nsAppStartup()
     215             : {
     216             :   /* member initializers and constructor code */
     217             : }
     218             : 
     219             : nsAppStartup::~nsAppStartup()
     220             : {
     221             :   /* destructor code */
     222             : }
     223             : 
     224             : /* void createHiddenWindow (); */
     225             : NS_IMETHODIMP nsAppStartup::CreateHiddenWindow()
     226             : {
     227             :     return NS_ERROR_NOT_IMPLEMENTED;
     228             : }
     229             : 
     230             : /* void destroyHiddenWindow (); */
     231             : NS_IMETHODIMP nsAppStartup::DestroyHiddenWindow()
     232             : {
     233             :     return NS_ERROR_NOT_IMPLEMENTED;
     234             : }
     235             : 
     236             : /* void run (); */
     237             : NS_IMETHODIMP nsAppStartup::Run()
     238             : {
     239             :     return NS_ERROR_NOT_IMPLEMENTED;
     240             : }
     241             : 
     242             : /* void enterLastWindowClosingSurvivalArea (); */
     243             : NS_IMETHODIMP nsAppStartup::EnterLastWindowClosingSurvivalArea()
     244             : {
     245             :     return NS_ERROR_NOT_IMPLEMENTED;
     246             : }
     247             : 
     248             : /* void exitLastWindowClosingSurvivalArea (); */
     249             : NS_IMETHODIMP nsAppStartup::ExitLastWindowClosingSurvivalArea()
     250             : {
     251             :     return NS_ERROR_NOT_IMPLEMENTED;
     252             : }
     253             : 
     254             : /* readonly attribute boolean automaticSafeModeNecessary; */
     255             : NS_IMETHODIMP nsAppStartup::GetAutomaticSafeModeNecessary(bool *aAutomaticSafeModeNecessary)
     256             : {
     257             :     return NS_ERROR_NOT_IMPLEMENTED;
     258             : }
     259             : 
     260             : /* void restartInSafeMode (in uint32_t aQuitMode); */
     261             : NS_IMETHODIMP nsAppStartup::RestartInSafeMode(uint32_t aQuitMode)
     262             : {
     263             :     return NS_ERROR_NOT_IMPLEMENTED;
     264             : }
     265             : 
     266             : /* void createInstanceWithProfile (in nsIToolkitProfile aProfile); */
     267             : NS_IMETHODIMP nsAppStartup::CreateInstanceWithProfile(nsIToolkitProfile *aProfile)
     268             : {
     269             :     return NS_ERROR_NOT_IMPLEMENTED;
     270             : }
     271             : 
     272             : /* bool trackStartupCrashBegin (); */
     273             : NS_IMETHODIMP nsAppStartup::TrackStartupCrashBegin(bool *_retval)
     274             : {
     275             :     return NS_ERROR_NOT_IMPLEMENTED;
     276             : }
     277             : 
     278             : /* void trackStartupCrashEnd (); */
     279             : NS_IMETHODIMP nsAppStartup::TrackStartupCrashEnd()
     280             : {
     281             :     return NS_ERROR_NOT_IMPLEMENTED;
     282             : }
     283             : 
     284             : /* void quit (in uint32_t aMode); */
     285             : NS_IMETHODIMP nsAppStartup::Quit(uint32_t aMode)
     286             : {
     287             :     return NS_ERROR_NOT_IMPLEMENTED;
     288             : }
     289             : 
     290             : /* readonly attribute boolean shuttingDown; */
     291             : NS_IMETHODIMP nsAppStartup::GetShuttingDown(bool *aShuttingDown)
     292             : {
     293             :     return NS_ERROR_NOT_IMPLEMENTED;
     294             : }
     295             : 
     296             : /* readonly attribute boolean startingUp; */
     297             : NS_IMETHODIMP nsAppStartup::GetStartingUp(bool *aStartingUp)
     298             : {
     299             :     return NS_ERROR_NOT_IMPLEMENTED;
     300             : }
     301             : 
     302             : /* [noscript] void doneStartingUp (); */
     303             : NS_IMETHODIMP nsAppStartup::DoneStartingUp()
     304             : {
     305             :     return NS_ERROR_NOT_IMPLEMENTED;
     306             : }
     307             : 
     308             : /* readonly attribute boolean restarting; */
     309             : NS_IMETHODIMP nsAppStartup::GetRestarting(bool *aRestarting)
     310             : {
     311             :     return NS_ERROR_NOT_IMPLEMENTED;
     312             : }
     313             : 
     314             : /* readonly attribute boolean wasRestarted; */
     315             : NS_IMETHODIMP nsAppStartup::GetWasRestarted(bool *aWasRestarted)
     316             : {
     317             :     return NS_ERROR_NOT_IMPLEMENTED;
     318             : }
     319             : 
     320             : /* [implicit_jscontext] jsval getStartupInfo (); */
     321             : NS_IMETHODIMP nsAppStartup::GetStartupInfo(JSContext* cx, JS::MutableHandleValue _retval)
     322             : {
     323             :     return NS_ERROR_NOT_IMPLEMENTED;
     324             : }
     325             : 
     326             : /* attribute boolean interrupted; */
     327             : NS_IMETHODIMP nsAppStartup::GetInterrupted(bool *aInterrupted)
     328             : {
     329             :     return NS_ERROR_NOT_IMPLEMENTED;
     330             : }
     331             : NS_IMETHODIMP nsAppStartup::SetInterrupted(bool aInterrupted)
     332             : {
     333             :     return NS_ERROR_NOT_IMPLEMENTED;
     334             : }
     335             : 
     336             : /* End of implementation class template. */
     337             : #endif
     338             : 
     339             : 
     340             : #endif /* __gen_nsIAppStartup_h__ */

Generated by: LCOV version 1.13