LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIAppStartup.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2012-06-02 Functions: 1 1 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/toolkit/components/startup/public/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 "jspubtd.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 nsICmdLineService; /* forward declaration */
      20                 : 
      21                 : 
      22                 : /* starting interface:    nsIAppStartup */
      23                 : #define NS_IAPPSTARTUP_IID_STR "50c4194b-61c6-4292-963f-6e1a8e11c9d3"
      24                 : 
      25                 : #define NS_IAPPSTARTUP_IID \
      26                 :   {0x50c4194b, 0x61c6, 0x4292, \
      27                 :     { 0x96, 0x3f, 0x6e, 0x1a, 0x8e, 0x11, 0xc9, 0xd3 }}
      28                 : 
      29              16 : class NS_NO_VTABLE NS_SCRIPTABLE nsIAppStartup : public nsISupports {
      30                 :  public: 
      31                 : 
      32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAPPSTARTUP_IID)
      33                 : 
      34                 :   /* void createHiddenWindow (); */
      35                 :   NS_SCRIPTABLE NS_IMETHOD CreateHiddenWindow(void) = 0;
      36                 : 
      37                 :   /* void destroyHiddenWindow (); */
      38                 :   NS_SCRIPTABLE NS_IMETHOD DestroyHiddenWindow(void) = 0;
      39                 : 
      40                 :   /* void run (); */
      41                 :   NS_SCRIPTABLE NS_IMETHOD Run(void) = 0;
      42                 : 
      43                 :   /* void enterLastWindowClosingSurvivalArea (); */
      44                 :   NS_SCRIPTABLE NS_IMETHOD EnterLastWindowClosingSurvivalArea(void) = 0;
      45                 : 
      46                 :   /* void exitLastWindowClosingSurvivalArea (); */
      47                 :   NS_SCRIPTABLE NS_IMETHOD ExitLastWindowClosingSurvivalArea(void) = 0;
      48                 : 
      49                 :   /* readonly attribute boolean automaticSafeModeNecessary; */
      50                 :   NS_SCRIPTABLE NS_IMETHOD GetAutomaticSafeModeNecessary(bool *aAutomaticSafeModeNecessary) = 0;
      51                 : 
      52                 :   /* void restartInSafeMode (in PRUint32 aQuitMode); */
      53                 :   NS_SCRIPTABLE NS_IMETHOD RestartInSafeMode(PRUint32 aQuitMode) = 0;
      54                 : 
      55                 :   /* bool trackStartupCrashBegin (); */
      56                 :   NS_SCRIPTABLE NS_IMETHOD TrackStartupCrashBegin(bool *_retval NS_OUTPARAM) = 0;
      57                 : 
      58                 :   /* void trackStartupCrashEnd (); */
      59                 :   NS_SCRIPTABLE NS_IMETHOD TrackStartupCrashEnd(void) = 0;
      60                 : 
      61                 :   enum {
      62                 :     eConsiderQuit = 1U,
      63                 :     eAttemptQuit = 2U,
      64                 :     eForceQuit = 3U,
      65                 :     eRestart = 16U,
      66                 :     eRestarti386 = 32U,
      67                 :     eRestartx86_64 = 64U
      68                 :   };
      69                 : 
      70                 :   /* void quit (in PRUint32 aMode); */
      71                 :   NS_SCRIPTABLE NS_IMETHOD Quit(PRUint32 aMode) = 0;
      72                 : 
      73                 :   /* readonly attribute boolean shuttingDown; */
      74                 :   NS_SCRIPTABLE NS_IMETHOD GetShuttingDown(bool *aShuttingDown) = 0;
      75                 : 
      76                 :   /* [implicit_jscontext] jsval getStartupInfo (); */
      77                 :   NS_SCRIPTABLE NS_IMETHOD GetStartupInfo(JSContext* cx, JS::Value *_retval NS_OUTPARAM) = 0;
      78                 : 
      79                 :   /* attribute boolean interrupted; */
      80                 :   NS_SCRIPTABLE NS_IMETHOD GetInterrupted(bool *aInterrupted) = 0;
      81                 :   NS_SCRIPTABLE NS_IMETHOD SetInterrupted(bool aInterrupted) = 0;
      82                 : 
      83                 : };
      84                 : 
      85                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIAppStartup, NS_IAPPSTARTUP_IID)
      86                 : 
      87                 : /* Use this macro when declaring classes that implement this interface. */
      88                 : #define NS_DECL_NSIAPPSTARTUP \
      89                 :   NS_SCRIPTABLE NS_IMETHOD CreateHiddenWindow(void); \
      90                 :   NS_SCRIPTABLE NS_IMETHOD DestroyHiddenWindow(void); \
      91                 :   NS_SCRIPTABLE NS_IMETHOD Run(void); \
      92                 :   NS_SCRIPTABLE NS_IMETHOD EnterLastWindowClosingSurvivalArea(void); \
      93                 :   NS_SCRIPTABLE NS_IMETHOD ExitLastWindowClosingSurvivalArea(void); \
      94                 :   NS_SCRIPTABLE NS_IMETHOD GetAutomaticSafeModeNecessary(bool *aAutomaticSafeModeNecessary); \
      95                 :   NS_SCRIPTABLE NS_IMETHOD RestartInSafeMode(PRUint32 aQuitMode); \
      96                 :   NS_SCRIPTABLE NS_IMETHOD TrackStartupCrashBegin(bool *_retval NS_OUTPARAM); \
      97                 :   NS_SCRIPTABLE NS_IMETHOD TrackStartupCrashEnd(void); \
      98                 :   NS_SCRIPTABLE NS_IMETHOD Quit(PRUint32 aMode); \
      99                 :   NS_SCRIPTABLE NS_IMETHOD GetShuttingDown(bool *aShuttingDown); \
     100                 :   NS_SCRIPTABLE NS_IMETHOD GetStartupInfo(JSContext* cx, JS::Value *_retval NS_OUTPARAM); \
     101                 :   NS_SCRIPTABLE NS_IMETHOD GetInterrupted(bool *aInterrupted); \
     102                 :   NS_SCRIPTABLE NS_IMETHOD SetInterrupted(bool aInterrupted); 
     103                 : 
     104                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     105                 : #define NS_FORWARD_NSIAPPSTARTUP(_to) \
     106                 :   NS_SCRIPTABLE NS_IMETHOD CreateHiddenWindow(void) { return _to CreateHiddenWindow(); } \
     107                 :   NS_SCRIPTABLE NS_IMETHOD DestroyHiddenWindow(void) { return _to DestroyHiddenWindow(); } \
     108                 :   NS_SCRIPTABLE NS_IMETHOD Run(void) { return _to Run(); } \
     109                 :   NS_SCRIPTABLE NS_IMETHOD EnterLastWindowClosingSurvivalArea(void) { return _to EnterLastWindowClosingSurvivalArea(); } \
     110                 :   NS_SCRIPTABLE NS_IMETHOD ExitLastWindowClosingSurvivalArea(void) { return _to ExitLastWindowClosingSurvivalArea(); } \
     111                 :   NS_SCRIPTABLE NS_IMETHOD GetAutomaticSafeModeNecessary(bool *aAutomaticSafeModeNecessary) { return _to GetAutomaticSafeModeNecessary(aAutomaticSafeModeNecessary); } \
     112                 :   NS_SCRIPTABLE NS_IMETHOD RestartInSafeMode(PRUint32 aQuitMode) { return _to RestartInSafeMode(aQuitMode); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD TrackStartupCrashBegin(bool *_retval NS_OUTPARAM) { return _to TrackStartupCrashBegin(_retval); } \
     114                 :   NS_SCRIPTABLE NS_IMETHOD TrackStartupCrashEnd(void) { return _to TrackStartupCrashEnd(); } \
     115                 :   NS_SCRIPTABLE NS_IMETHOD Quit(PRUint32 aMode) { return _to Quit(aMode); } \
     116                 :   NS_SCRIPTABLE NS_IMETHOD GetShuttingDown(bool *aShuttingDown) { return _to GetShuttingDown(aShuttingDown); } \
     117                 :   NS_SCRIPTABLE NS_IMETHOD GetStartupInfo(JSContext* cx, JS::Value *_retval NS_OUTPARAM) { return _to GetStartupInfo(cx, _retval); } \
     118                 :   NS_SCRIPTABLE NS_IMETHOD GetInterrupted(bool *aInterrupted) { return _to GetInterrupted(aInterrupted); } \
     119                 :   NS_SCRIPTABLE NS_IMETHOD SetInterrupted(bool aInterrupted) { return _to SetInterrupted(aInterrupted); } 
     120                 : 
     121                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     122                 : #define NS_FORWARD_SAFE_NSIAPPSTARTUP(_to) \
     123                 :   NS_SCRIPTABLE NS_IMETHOD CreateHiddenWindow(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateHiddenWindow(); } \
     124                 :   NS_SCRIPTABLE NS_IMETHOD DestroyHiddenWindow(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->DestroyHiddenWindow(); } \
     125                 :   NS_SCRIPTABLE NS_IMETHOD Run(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Run(); } \
     126                 :   NS_SCRIPTABLE NS_IMETHOD EnterLastWindowClosingSurvivalArea(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnterLastWindowClosingSurvivalArea(); } \
     127                 :   NS_SCRIPTABLE NS_IMETHOD ExitLastWindowClosingSurvivalArea(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ExitLastWindowClosingSurvivalArea(); } \
     128                 :   NS_SCRIPTABLE NS_IMETHOD GetAutomaticSafeModeNecessary(bool *aAutomaticSafeModeNecessary) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAutomaticSafeModeNecessary(aAutomaticSafeModeNecessary); } \
     129                 :   NS_SCRIPTABLE NS_IMETHOD RestartInSafeMode(PRUint32 aQuitMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->RestartInSafeMode(aQuitMode); } \
     130                 :   NS_SCRIPTABLE NS_IMETHOD TrackStartupCrashBegin(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->TrackStartupCrashBegin(_retval); } \
     131                 :   NS_SCRIPTABLE NS_IMETHOD TrackStartupCrashEnd(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->TrackStartupCrashEnd(); } \
     132                 :   NS_SCRIPTABLE NS_IMETHOD Quit(PRUint32 aMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->Quit(aMode); } \
     133                 :   NS_SCRIPTABLE NS_IMETHOD GetShuttingDown(bool *aShuttingDown) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShuttingDown(aShuttingDown); } \
     134                 :   NS_SCRIPTABLE NS_IMETHOD GetStartupInfo(JSContext* cx, JS::Value *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartupInfo(cx, _retval); } \
     135                 :   NS_SCRIPTABLE NS_IMETHOD GetInterrupted(bool *aInterrupted) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInterrupted(aInterrupted); } \
     136                 :   NS_SCRIPTABLE NS_IMETHOD SetInterrupted(bool aInterrupted) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInterrupted(aInterrupted); } 
     137                 : 
     138                 : #if 0
     139                 : /* Use the code below as a template for the implementation class for this interface. */
     140                 : 
     141                 : /* Header file */
     142                 : class nsAppStartup : public nsIAppStartup
     143                 : {
     144                 : public:
     145                 :   NS_DECL_ISUPPORTS
     146                 :   NS_DECL_NSIAPPSTARTUP
     147                 : 
     148                 :   nsAppStartup();
     149                 : 
     150                 : private:
     151                 :   ~nsAppStartup();
     152                 : 
     153                 : protected:
     154                 :   /* additional members */
     155                 : };
     156                 : 
     157                 : /* Implementation file */
     158                 : NS_IMPL_ISUPPORTS1(nsAppStartup, nsIAppStartup)
     159                 : 
     160                 : nsAppStartup::nsAppStartup()
     161                 : {
     162                 :   /* member initializers and constructor code */
     163                 : }
     164                 : 
     165                 : nsAppStartup::~nsAppStartup()
     166                 : {
     167                 :   /* destructor code */
     168                 : }
     169                 : 
     170                 : /* void createHiddenWindow (); */
     171                 : NS_IMETHODIMP nsAppStartup::CreateHiddenWindow()
     172                 : {
     173                 :     return NS_ERROR_NOT_IMPLEMENTED;
     174                 : }
     175                 : 
     176                 : /* void destroyHiddenWindow (); */
     177                 : NS_IMETHODIMP nsAppStartup::DestroyHiddenWindow()
     178                 : {
     179                 :     return NS_ERROR_NOT_IMPLEMENTED;
     180                 : }
     181                 : 
     182                 : /* void run (); */
     183                 : NS_IMETHODIMP nsAppStartup::Run()
     184                 : {
     185                 :     return NS_ERROR_NOT_IMPLEMENTED;
     186                 : }
     187                 : 
     188                 : /* void enterLastWindowClosingSurvivalArea (); */
     189                 : NS_IMETHODIMP nsAppStartup::EnterLastWindowClosingSurvivalArea()
     190                 : {
     191                 :     return NS_ERROR_NOT_IMPLEMENTED;
     192                 : }
     193                 : 
     194                 : /* void exitLastWindowClosingSurvivalArea (); */
     195                 : NS_IMETHODIMP nsAppStartup::ExitLastWindowClosingSurvivalArea()
     196                 : {
     197                 :     return NS_ERROR_NOT_IMPLEMENTED;
     198                 : }
     199                 : 
     200                 : /* readonly attribute boolean automaticSafeModeNecessary; */
     201                 : NS_IMETHODIMP nsAppStartup::GetAutomaticSafeModeNecessary(bool *aAutomaticSafeModeNecessary)
     202                 : {
     203                 :     return NS_ERROR_NOT_IMPLEMENTED;
     204                 : }
     205                 : 
     206                 : /* void restartInSafeMode (in PRUint32 aQuitMode); */
     207                 : NS_IMETHODIMP nsAppStartup::RestartInSafeMode(PRUint32 aQuitMode)
     208                 : {
     209                 :     return NS_ERROR_NOT_IMPLEMENTED;
     210                 : }
     211                 : 
     212                 : /* bool trackStartupCrashBegin (); */
     213                 : NS_IMETHODIMP nsAppStartup::TrackStartupCrashBegin(bool *_retval NS_OUTPARAM)
     214                 : {
     215                 :     return NS_ERROR_NOT_IMPLEMENTED;
     216                 : }
     217                 : 
     218                 : /* void trackStartupCrashEnd (); */
     219                 : NS_IMETHODIMP nsAppStartup::TrackStartupCrashEnd()
     220                 : {
     221                 :     return NS_ERROR_NOT_IMPLEMENTED;
     222                 : }
     223                 : 
     224                 : /* void quit (in PRUint32 aMode); */
     225                 : NS_IMETHODIMP nsAppStartup::Quit(PRUint32 aMode)
     226                 : {
     227                 :     return NS_ERROR_NOT_IMPLEMENTED;
     228                 : }
     229                 : 
     230                 : /* readonly attribute boolean shuttingDown; */
     231                 : NS_IMETHODIMP nsAppStartup::GetShuttingDown(bool *aShuttingDown)
     232                 : {
     233                 :     return NS_ERROR_NOT_IMPLEMENTED;
     234                 : }
     235                 : 
     236                 : /* [implicit_jscontext] jsval getStartupInfo (); */
     237                 : NS_IMETHODIMP nsAppStartup::GetStartupInfo(JSContext* cx, JS::Value *_retval NS_OUTPARAM)
     238                 : {
     239                 :     return NS_ERROR_NOT_IMPLEMENTED;
     240                 : }
     241                 : 
     242                 : /* attribute boolean interrupted; */
     243                 : NS_IMETHODIMP nsAppStartup::GetInterrupted(bool *aInterrupted)
     244                 : {
     245                 :     return NS_ERROR_NOT_IMPLEMENTED;
     246                 : }
     247                 : NS_IMETHODIMP nsAppStartup::SetInterrupted(bool aInterrupted)
     248                 : {
     249                 :     return NS_ERROR_NOT_IMPLEMENTED;
     250                 : }
     251                 : 
     252                 : /* End of implementation class template. */
     253                 : #endif
     254                 : 
     255                 : /**
     256                 :  * This success code may be returned by nsIAppStartup::Run to indicate that the
     257                 :  * application should be restarted.  This condition corresponds to the case in
     258                 :  * which nsIAppStartup::Quit was called with the eRestart flag.
     259                 :  */
     260                 : #define NS_SUCCESS_RESTART_APP \
     261                 :     NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_GENERAL, 1)
     262                 : 
     263                 : #endif /* __gen_nsIAppStartup_h__ */

Generated by: LCOV version 1.7