DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mailnews/base/public/nsIMsgShutdown.idl
 */

#ifndef __gen_nsIMsgShutdown_h__
#define __gen_nsIMsgShutdown_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIUrlListener; /* forward declaration */

class nsIMsgWindow; /* forward declaration */

class nsIWebProgressListener; /* forward declaration */


/* starting interface:    nsIMsgShutdownTask */
#define NS_IMSGSHUTDOWNTASK_IID_STR "d1b43428-b631-4629-b691-ab0e01a2db4b"

#define NS_IMSGSHUTDOWNTASK_IID \
  {0xd1b43428, 0xb631, 0x4629, \
    { 0xb6, 0x91, 0xab, 0x0e, 0x01, 0xa2, 0xdb, 0x4b }}

class NS_NO_VTABLE nsIMsgShutdownTask : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGSHUTDOWNTASK_IID)

  /* readonly attribute boolean needsToRunTask; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNeedsToRunTask(bool *aNeedsToRunTask) = 0;

  /* boolean doShutdownTask (in nsIUrlListener inUrlListener, in nsIMsgWindow inMsgWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DoShutdownTask(nsIUrlListener *inUrlListener, nsIMsgWindow *inMsgWindow, bool *_retval) = 0;

  /* AString getCurrentTaskName (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCurrentTaskName(nsAString& _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgShutdownTask, NS_IMSGSHUTDOWNTASK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGSHUTDOWNTASK \
  NS_IMETHOD GetNeedsToRunTask(bool *aNeedsToRunTask) override; \
  NS_IMETHOD DoShutdownTask(nsIUrlListener *inUrlListener, nsIMsgWindow *inMsgWindow, bool *_retval) override; \
  NS_IMETHOD GetCurrentTaskName(nsAString& _retval) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIMSGSHUTDOWNTASK \
  nsresult GetNeedsToRunTask(bool *aNeedsToRunTask); \
  nsresult DoShutdownTask(nsIUrlListener *inUrlListener, nsIMsgWindow *inMsgWindow, bool *_retval); \
  nsresult GetCurrentTaskName(nsAString& _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGSHUTDOWNTASK(_to) \
  NS_IMETHOD GetNeedsToRunTask(bool *aNeedsToRunTask) override { return _to GetNeedsToRunTask(aNeedsToRunTask); } \
  NS_IMETHOD DoShutdownTask(nsIUrlListener *inUrlListener, nsIMsgWindow *inMsgWindow, bool *_retval) override { return _to DoShutdownTask(inUrlListener, inMsgWindow, _retval); } \
  NS_IMETHOD GetCurrentTaskName(nsAString& _retval) override { return _to GetCurrentTaskName(_retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGSHUTDOWNTASK(_to) \
  NS_IMETHOD GetNeedsToRunTask(bool *aNeedsToRunTask) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNeedsToRunTask(aNeedsToRunTask); } \
  NS_IMETHOD DoShutdownTask(nsIUrlListener *inUrlListener, nsIMsgWindow *inMsgWindow, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DoShutdownTask(inUrlListener, inMsgWindow, _retval); } \
  NS_IMETHOD GetCurrentTaskName(nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentTaskName(_retval); } 


/* starting interface:    nsIMsgShutdownService */
#define NS_IMSGSHUTDOWNSERVICE_IID_STR "483c8abb-ecf9-48a3-a394-2c604b603bd5"

#define NS_IMSGSHUTDOWNSERVICE_IID \
  {0x483c8abb, 0xecf9, 0x48a3, \
    { 0xa3, 0x94, 0x2c, 0x60, 0x4b, 0x60, 0x3b, 0xd5 }}

class NS_NO_VTABLE nsIMsgShutdownService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGSHUTDOWNSERVICE_IID)

  /* long getNumTasks (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNumTasks(int32_t *_retval) = 0;

  /* void startShutdownTasks (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD StartShutdownTasks(void) = 0;

  /* void cancelShutdownTasks (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CancelShutdownTasks(void) = 0;

  /* void setShutdownListener (in nsIWebProgressListener inListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetShutdownListener(nsIWebProgressListener *inListener) = 0;

  /* void setStatusText (in AString inStatusString); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetStatusText(const nsAString& inStatusString) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgShutdownService, NS_IMSGSHUTDOWNSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGSHUTDOWNSERVICE \
  NS_IMETHOD GetNumTasks(int32_t *_retval) override; \
  NS_IMETHOD StartShutdownTasks(void) override; \
  NS_IMETHOD CancelShutdownTasks(void) override; \
  NS_IMETHOD SetShutdownListener(nsIWebProgressListener *inListener) override; \
  NS_IMETHOD SetStatusText(const nsAString& inStatusString) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIMSGSHUTDOWNSERVICE \
  nsresult GetNumTasks(int32_t *_retval); \
  nsresult StartShutdownTasks(void); \
  nsresult CancelShutdownTasks(void); \
  nsresult SetShutdownListener(nsIWebProgressListener *inListener); \
  nsresult SetStatusText(const nsAString& inStatusString); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGSHUTDOWNSERVICE(_to) \
  NS_IMETHOD GetNumTasks(int32_t *_retval) override { return _to GetNumTasks(_retval); } \
  NS_IMETHOD StartShutdownTasks(void) override { return _to StartShutdownTasks(); } \
  NS_IMETHOD CancelShutdownTasks(void) override { return _to CancelShutdownTasks(); } \
  NS_IMETHOD SetShutdownListener(nsIWebProgressListener *inListener) override { return _to SetShutdownListener(inListener); } \
  NS_IMETHOD SetStatusText(const nsAString& inStatusString) override { return _to SetStatusText(inStatusString); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGSHUTDOWNSERVICE(_to) \
  NS_IMETHOD GetNumTasks(int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumTasks(_retval); } \
  NS_IMETHOD StartShutdownTasks(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartShutdownTasks(); } \
  NS_IMETHOD CancelShutdownTasks(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CancelShutdownTasks(); } \
  NS_IMETHOD SetShutdownListener(nsIWebProgressListener *inListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShutdownListener(inListener); } \
  NS_IMETHOD SetStatusText(const nsAString& inStatusString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStatusText(inStatusString); } 


#endif /* __gen_nsIMsgShutdown_h__ */