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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mailnews/compose/public/nsIMsgSendLaterListener.idl
 */

#ifndef __gen_nsIMsgSendLaterListener_h__
#define __gen_nsIMsgSendLaterListener_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 nsIMsgDBHdr; /* forward declaration */

class nsIMsgIdentity; /* forward declaration */


/* starting interface:    nsIMsgSendLaterListener */
#define NS_IMSGSENDLATERLISTENER_IID_STR "a7bc603b-d0da-4959-a82f-4b99c138b9f4"

#define NS_IMSGSENDLATERLISTENER_IID \
  {0xa7bc603b, 0xd0da, 0x4959, \
    { 0xa8, 0x2f, 0x4b, 0x99, 0xc1, 0x38, 0xb9, 0xf4 }}

class NS_NO_VTABLE nsIMsgSendLaterListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGSENDLATERLISTENER_IID)

  /* void onStartSending (in unsigned long aTotalMessageCount); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnStartSending(uint32_t aTotalMessageCount) = 0;

  /* void onMessageStartSending (in unsigned long aCurrentMessage, in unsigned long aTotalMessageCount, in nsIMsgDBHdr aMessageHeader, in nsIMsgIdentity aIdentity); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnMessageStartSending(uint32_t aCurrentMessage, uint32_t aTotalMessageCount, nsIMsgDBHdr *aMessageHeader, nsIMsgIdentity *aIdentity) = 0;

  /* void onMessageSendProgress (in unsigned long aCurrentMessage, in unsigned long aTotalMessageCount, in unsigned long aMessageSendPercent, in unsigned long aMessageCopyPercent); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnMessageSendProgress(uint32_t aCurrentMessage, uint32_t aTotalMessageCount, uint32_t aMessageSendPercent, uint32_t aMessageCopyPercent) = 0;

  /* void onMessageSendError (in unsigned long aCurrentMessage, in nsIMsgDBHdr aMessageHeader, in nsresult aStatus, in wstring aMsg); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnMessageSendError(uint32_t aCurrentMessage, nsIMsgDBHdr *aMessageHeader, nsresult aStatus, const char16_t * aMsg) = 0;

  /* void onStopSending (in nsresult aStatus, in wstring aMsg, in unsigned long aTotalTried, in unsigned long aSuccessful); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnStopSending(nsresult aStatus, const char16_t * aMsg, uint32_t aTotalTried, uint32_t aSuccessful) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgSendLaterListener, NS_IMSGSENDLATERLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGSENDLATERLISTENER \
  NS_IMETHOD OnStartSending(uint32_t aTotalMessageCount) override; \
  NS_IMETHOD OnMessageStartSending(uint32_t aCurrentMessage, uint32_t aTotalMessageCount, nsIMsgDBHdr *aMessageHeader, nsIMsgIdentity *aIdentity) override; \
  NS_IMETHOD OnMessageSendProgress(uint32_t aCurrentMessage, uint32_t aTotalMessageCount, uint32_t aMessageSendPercent, uint32_t aMessageCopyPercent) override; \
  NS_IMETHOD OnMessageSendError(uint32_t aCurrentMessage, nsIMsgDBHdr *aMessageHeader, nsresult aStatus, const char16_t * aMsg) override; \
  NS_IMETHOD OnStopSending(nsresult aStatus, const char16_t * aMsg, uint32_t aTotalTried, uint32_t aSuccessful) 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_NSIMSGSENDLATERLISTENER \
  nsresult OnStartSending(uint32_t aTotalMessageCount); \
  nsresult OnMessageStartSending(uint32_t aCurrentMessage, uint32_t aTotalMessageCount, nsIMsgDBHdr *aMessageHeader, nsIMsgIdentity *aIdentity); \
  nsresult OnMessageSendProgress(uint32_t aCurrentMessage, uint32_t aTotalMessageCount, uint32_t aMessageSendPercent, uint32_t aMessageCopyPercent); \
  nsresult OnMessageSendError(uint32_t aCurrentMessage, nsIMsgDBHdr *aMessageHeader, nsresult aStatus, const char16_t * aMsg); \
  nsresult OnStopSending(nsresult aStatus, const char16_t * aMsg, uint32_t aTotalTried, uint32_t aSuccessful); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGSENDLATERLISTENER(_to) \
  NS_IMETHOD OnStartSending(uint32_t aTotalMessageCount) override { return _to OnStartSending(aTotalMessageCount); } \
  NS_IMETHOD OnMessageStartSending(uint32_t aCurrentMessage, uint32_t aTotalMessageCount, nsIMsgDBHdr *aMessageHeader, nsIMsgIdentity *aIdentity) override { return _to OnMessageStartSending(aCurrentMessage, aTotalMessageCount, aMessageHeader, aIdentity); } \
  NS_IMETHOD OnMessageSendProgress(uint32_t aCurrentMessage, uint32_t aTotalMessageCount, uint32_t aMessageSendPercent, uint32_t aMessageCopyPercent) override { return _to OnMessageSendProgress(aCurrentMessage, aTotalMessageCount, aMessageSendPercent, aMessageCopyPercent); } \
  NS_IMETHOD OnMessageSendError(uint32_t aCurrentMessage, nsIMsgDBHdr *aMessageHeader, nsresult aStatus, const char16_t * aMsg) override { return _to OnMessageSendError(aCurrentMessage, aMessageHeader, aStatus, aMsg); } \
  NS_IMETHOD OnStopSending(nsresult aStatus, const char16_t * aMsg, uint32_t aTotalTried, uint32_t aSuccessful) override { return _to OnStopSending(aStatus, aMsg, aTotalTried, aSuccessful); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGSENDLATERLISTENER(_to) \
  NS_IMETHOD OnStartSending(uint32_t aTotalMessageCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStartSending(aTotalMessageCount); } \
  NS_IMETHOD OnMessageStartSending(uint32_t aCurrentMessage, uint32_t aTotalMessageCount, nsIMsgDBHdr *aMessageHeader, nsIMsgIdentity *aIdentity) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnMessageStartSending(aCurrentMessage, aTotalMessageCount, aMessageHeader, aIdentity); } \
  NS_IMETHOD OnMessageSendProgress(uint32_t aCurrentMessage, uint32_t aTotalMessageCount, uint32_t aMessageSendPercent, uint32_t aMessageCopyPercent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnMessageSendProgress(aCurrentMessage, aTotalMessageCount, aMessageSendPercent, aMessageCopyPercent); } \
  NS_IMETHOD OnMessageSendError(uint32_t aCurrentMessage, nsIMsgDBHdr *aMessageHeader, nsresult aStatus, const char16_t * aMsg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnMessageSendError(aCurrentMessage, aMessageHeader, aStatus, aMsg); } \
  NS_IMETHOD OnStopSending(nsresult aStatus, const char16_t * aMsg, uint32_t aTotalTried, uint32_t aSuccessful) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStopSending(aStatus, aMsg, aTotalTried, aSuccessful); } 


#endif /* __gen_nsIMsgSendLaterListener_h__ */