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

nsIDBChangeAnnouncer

Macros

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 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/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

/* 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); */
  NS_IMETHOD AddListener(nsIDBChangeListener *listener) = 0;

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

  /* void NotifyHdrChangeAll (in nsIMsgDBHdr aHdrChanged, in unsigned long aOldFlags, in unsigned long aNewFlags, in nsIDBChangeListener instigator); */
  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); */
  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); */
  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); */
  NS_IMETHOD NotifyParentChangedAll(nsMsgKey keyReparented, nsMsgKey oldParent, nsMsgKey newParent, nsIDBChangeListener *instigator) = 0;

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

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

  /* void NotifyAnnouncerGoingAway (); */
  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(); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsDBChangeAnnouncer : public nsIDBChangeAnnouncer
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIDBCHANGEANNOUNCER

  nsDBChangeAnnouncer();

private:
  ~nsDBChangeAnnouncer();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsDBChangeAnnouncer, nsIDBChangeAnnouncer)

nsDBChangeAnnouncer::nsDBChangeAnnouncer()
{
  /* member initializers and constructor code */
}

nsDBChangeAnnouncer::~nsDBChangeAnnouncer()
{
  /* destructor code */
}

/* void AddListener (in nsIDBChangeListener listener); */
NS_IMETHODIMP nsDBChangeAnnouncer::AddListener(nsIDBChangeListener *listener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void RemoveListener (in nsIDBChangeListener listener); */
NS_IMETHODIMP nsDBChangeAnnouncer::RemoveListener(nsIDBChangeListener *listener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void NotifyHdrChangeAll (in nsIMsgDBHdr aHdrChanged, in unsigned long aOldFlags, in unsigned long aNewFlags, in nsIDBChangeListener instigator); */
NS_IMETHODIMP nsDBChangeAnnouncer::NotifyHdrChangeAll(nsIMsgDBHdr *aHdrChanged, uint32_t aOldFlags, uint32_t aNewFlags, nsIDBChangeListener *instigator)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void NotifyHdrAddedAll (in nsIMsgDBHdr aHdrAdded, in nsMsgKey parentKey, in long flags, in nsIDBChangeListener instigator); */
NS_IMETHODIMP nsDBChangeAnnouncer::NotifyHdrAddedAll(nsIMsgDBHdr *aHdrAdded, nsMsgKey parentKey, int32_t flags, nsIDBChangeListener *instigator)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void NotifyHdrDeletedAll (in nsIMsgDBHdr aHdrDeleted, in nsMsgKey parentKey, in long flags, in nsIDBChangeListener instigator); */
NS_IMETHODIMP nsDBChangeAnnouncer::NotifyHdrDeletedAll(nsIMsgDBHdr *aHdrDeleted, nsMsgKey parentKey, int32_t flags, nsIDBChangeListener *instigator)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void NotifyParentChangedAll (in nsMsgKey keyReparented, in nsMsgKey oldParent, in nsMsgKey newParent, in nsIDBChangeListener instigator); */
NS_IMETHODIMP nsDBChangeAnnouncer::NotifyParentChangedAll(nsMsgKey keyReparented, nsMsgKey oldParent, nsMsgKey newParent, nsIDBChangeListener *instigator)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void NotifyReadChanged (in nsIDBChangeListener instigator); */
NS_IMETHODIMP nsDBChangeAnnouncer::NotifyReadChanged(nsIDBChangeListener *instigator)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void NotifyJunkScoreChanged (in nsIDBChangeListener aInstigator); */
NS_IMETHODIMP nsDBChangeAnnouncer::NotifyJunkScoreChanged(nsIDBChangeListener *aInstigator)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void NotifyAnnouncerGoingAway (); */
NS_IMETHODIMP nsDBChangeAnnouncer::NotifyAnnouncerGoingAway()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIDBChangeAnnouncer_h__ */