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

#ifndef __gen_nsIDBChangeAnnouncer_h__
#define __gen_nsIDBChangeAnnouncer_h__


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

#ifndef __gen_MailNewsTypes2_h__
#include "MailNewsTypes2.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 nsIDBChangeListener; /* forward declaration */

class nsIMsgDBHdr; /* forward declaration */


/* starting interface:    nsIDBChangeAnnouncer */
#define NS_IDBCHANGEANNOUNCER_IID_STR "22baf00b-939d-42c3-ac51-21d99dfa1f05"

#define NS_IDBCHANGEANNOUNCER_IID \
  {0x22baf00b, 0x939d, 0x42c3, \
    { 0xac, 0x51, 0x21, 0xd9, 0x9d, 0xfa, 0x1f, 0x05 }}

class NS_NO_VTABLE nsIDBChangeAnnouncer : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDBCHANGEANNOUNCER_IID)

  /* void AddListener (in nsIDBChangeListener listener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddListener(nsIDBChangeListener *listener) = 0;

  /* void RemoveListener (in nsIDBChangeListener listener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveListener(nsIDBChangeListener *listener) = 0;

  /* void NotifyHdrChangeAll (in nsIMsgDBHdr aHdrChanged, in unsigned long aOldFlags, in unsigned long aNewFlags, in nsIDBChangeListener instigator); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NotifyHdrChangeAll(nsIMsgDBHdr *aHdrChanged, uint32_t aOldFlags, uint32_t aNewFlags, nsIDBChangeListener *instigator) = 0;

  /* void NotifyHdrAddedAll (in nsIMsgDBHdr aHdrAdded, in nsMsgKey parentKey, in long flags, in nsIDBChangeListener instigator); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NotifyHdrAddedAll(nsIMsgDBHdr *aHdrAdded, nsMsgKey parentKey, int32_t flags, nsIDBChangeListener *instigator) = 0;

  /* void NotifyHdrDeletedAll (in nsIMsgDBHdr aHdrDeleted, in nsMsgKey parentKey, in long flags, in nsIDBChangeListener instigator); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NotifyHdrDeletedAll(nsIMsgDBHdr *aHdrDeleted, nsMsgKey parentKey, int32_t flags, nsIDBChangeListener *instigator) = 0;

  /* void NotifyParentChangedAll (in nsMsgKey keyReparented, in nsMsgKey oldParent, in nsMsgKey newParent, in nsIDBChangeListener instigator); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NotifyParentChangedAll(nsMsgKey keyReparented, nsMsgKey oldParent, nsMsgKey newParent, nsIDBChangeListener *instigator) = 0;

  /* void NotifyReadChanged (in nsIDBChangeListener instigator); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NotifyReadChanged(nsIDBChangeListener *instigator) = 0;

  /* void NotifyJunkScoreChanged (in nsIDBChangeListener aInstigator); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NotifyJunkScoreChanged(nsIDBChangeListener *aInstigator) = 0;

  /* void NotifyAnnouncerGoingAway (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NotifyAnnouncerGoingAway(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDBChangeAnnouncer, NS_IDBCHANGEANNOUNCER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDBCHANGEANNOUNCER \
  NS_IMETHOD AddListener(nsIDBChangeListener *listener) override; \
  NS_IMETHOD RemoveListener(nsIDBChangeListener *listener) override; \
  NS_IMETHOD NotifyHdrChangeAll(nsIMsgDBHdr *aHdrChanged, uint32_t aOldFlags, uint32_t aNewFlags, nsIDBChangeListener *instigator) override; \
  NS_IMETHOD NotifyHdrAddedAll(nsIMsgDBHdr *aHdrAdded, nsMsgKey parentKey, int32_t flags, nsIDBChangeListener *instigator) override; \
  NS_IMETHOD NotifyHdrDeletedAll(nsIMsgDBHdr *aHdrDeleted, nsMsgKey parentKey, int32_t flags, nsIDBChangeListener *instigator) override; \
  NS_IMETHOD NotifyParentChangedAll(nsMsgKey keyReparented, nsMsgKey oldParent, nsMsgKey newParent, nsIDBChangeListener *instigator) override; \
  NS_IMETHOD NotifyReadChanged(nsIDBChangeListener *instigator) override; \
  NS_IMETHOD NotifyJunkScoreChanged(nsIDBChangeListener *aInstigator) override; \
  NS_IMETHOD NotifyAnnouncerGoingAway(void) 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_NSIDBCHANGEANNOUNCER \
  nsresult AddListener(nsIDBChangeListener *listener); \
  nsresult RemoveListener(nsIDBChangeListener *listener); \
  nsresult NotifyHdrChangeAll(nsIMsgDBHdr *aHdrChanged, uint32_t aOldFlags, uint32_t aNewFlags, nsIDBChangeListener *instigator); \
  nsresult NotifyHdrAddedAll(nsIMsgDBHdr *aHdrAdded, nsMsgKey parentKey, int32_t flags, nsIDBChangeListener *instigator); \
  nsresult NotifyHdrDeletedAll(nsIMsgDBHdr *aHdrDeleted, nsMsgKey parentKey, int32_t flags, nsIDBChangeListener *instigator); \
  nsresult NotifyParentChangedAll(nsMsgKey keyReparented, nsMsgKey oldParent, nsMsgKey newParent, nsIDBChangeListener *instigator); \
  nsresult NotifyReadChanged(nsIDBChangeListener *instigator); \
  nsresult NotifyJunkScoreChanged(nsIDBChangeListener *aInstigator); \
  nsresult NotifyAnnouncerGoingAway(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDBCHANGEANNOUNCER(_to) \
  NS_IMETHOD AddListener(nsIDBChangeListener *listener) override { return _to AddListener(listener); } \
  NS_IMETHOD RemoveListener(nsIDBChangeListener *listener) override { return _to RemoveListener(listener); } \
  NS_IMETHOD NotifyHdrChangeAll(nsIMsgDBHdr *aHdrChanged, uint32_t aOldFlags, uint32_t aNewFlags, nsIDBChangeListener *instigator) override { return _to NotifyHdrChangeAll(aHdrChanged, aOldFlags, aNewFlags, instigator); } \
  NS_IMETHOD NotifyHdrAddedAll(nsIMsgDBHdr *aHdrAdded, nsMsgKey parentKey, int32_t flags, nsIDBChangeListener *instigator) override { return _to NotifyHdrAddedAll(aHdrAdded, parentKey, flags, instigator); } \
  NS_IMETHOD NotifyHdrDeletedAll(nsIMsgDBHdr *aHdrDeleted, nsMsgKey parentKey, int32_t flags, nsIDBChangeListener *instigator) override { return _to NotifyHdrDeletedAll(aHdrDeleted, parentKey, flags, instigator); } \
  NS_IMETHOD NotifyParentChangedAll(nsMsgKey keyReparented, nsMsgKey oldParent, nsMsgKey newParent, nsIDBChangeListener *instigator) override { return _to NotifyParentChangedAll(keyReparented, oldParent, newParent, instigator); } \
  NS_IMETHOD NotifyReadChanged(nsIDBChangeListener *instigator) override { return _to NotifyReadChanged(instigator); } \
  NS_IMETHOD NotifyJunkScoreChanged(nsIDBChangeListener *aInstigator) override { return _to NotifyJunkScoreChanged(aInstigator); } \
  NS_IMETHOD NotifyAnnouncerGoingAway(void) override { return _to NotifyAnnouncerGoingAway(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDBCHANGEANNOUNCER(_to) \
  NS_IMETHOD AddListener(nsIDBChangeListener *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddListener(listener); } \
  NS_IMETHOD RemoveListener(nsIDBChangeListener *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveListener(listener); } \
  NS_IMETHOD NotifyHdrChangeAll(nsIMsgDBHdr *aHdrChanged, uint32_t aOldFlags, uint32_t aNewFlags, nsIDBChangeListener *instigator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyHdrChangeAll(aHdrChanged, aOldFlags, aNewFlags, instigator); } \
  NS_IMETHOD NotifyHdrAddedAll(nsIMsgDBHdr *aHdrAdded, nsMsgKey parentKey, int32_t flags, nsIDBChangeListener *instigator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyHdrAddedAll(aHdrAdded, parentKey, flags, instigator); } \
  NS_IMETHOD NotifyHdrDeletedAll(nsIMsgDBHdr *aHdrDeleted, nsMsgKey parentKey, int32_t flags, nsIDBChangeListener *instigator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyHdrDeletedAll(aHdrDeleted, parentKey, flags, instigator); } \
  NS_IMETHOD NotifyParentChangedAll(nsMsgKey keyReparented, nsMsgKey oldParent, nsMsgKey newParent, nsIDBChangeListener *instigator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyParentChangedAll(keyReparented, oldParent, newParent, instigator); } \
  NS_IMETHOD NotifyReadChanged(nsIDBChangeListener *instigator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyReadChanged(instigator); } \
  NS_IMETHOD NotifyJunkScoreChanged(nsIDBChangeListener *aInstigator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyJunkScoreChanged(aInstigator); } \
  NS_IMETHOD NotifyAnnouncerGoingAway(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyAnnouncerGoingAway(); } 


#endif /* __gen_nsIDBChangeAnnouncer_h__ */