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

#ifndef __gen_nsIAddrDBListener_h__
#define __gen_nsIAddrDBListener_h__


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

#ifndef __gen_nsIAbCard_h__
#include "nsIAbCard.h"
#endif

#ifndef __gen_nsIAbDirectory_h__
#include "nsIAbDirectory.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 nsIAddrDBAnnouncer; /* forward declaration */


/* starting interface:    nsIAddrDBListener */
#define NS_IADDRDBLISTENER_IID_STR "5d7e5a7a-1ac9-46dc-abfd-758c98be26e9"

#define NS_IADDRDBLISTENER_IID \
  {0x5d7e5a7a, 0x1ac9, 0x46dc, \
    { 0xab, 0xfd, 0x75, 0x8c, 0x98, 0xbe, 0x26, 0xe9 }}

class NS_NO_VTABLE nsIAddrDBListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IADDRDBLISTENER_IID)

  /* void onCardAttribChange (in unsigned long abCode); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnCardAttribChange(uint32_t abCode) = 0;

  /* void onCardEntryChange (in unsigned long aAbCode, in nsIAbCard aCard, in nsIAbDirectory aParent); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnCardEntryChange(uint32_t aAbCode, nsIAbCard *aCard, nsIAbDirectory *aParent) = 0;

  /* void onListEntryChange (in unsigned long abCode, in nsIAbDirectory list); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnListEntryChange(uint32_t abCode, nsIAbDirectory *list) = 0;

  /* void onAnnouncerGoingAway (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnAnnouncerGoingAway(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAddrDBListener, NS_IADDRDBLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIADDRDBLISTENER \
  NS_IMETHOD OnCardAttribChange(uint32_t abCode) override; \
  NS_IMETHOD OnCardEntryChange(uint32_t aAbCode, nsIAbCard *aCard, nsIAbDirectory *aParent) override; \
  NS_IMETHOD OnListEntryChange(uint32_t abCode, nsIAbDirectory *list) override; \
  NS_IMETHOD OnAnnouncerGoingAway(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_NSIADDRDBLISTENER \
  nsresult OnCardAttribChange(uint32_t abCode); \
  nsresult OnCardEntryChange(uint32_t aAbCode, nsIAbCard *aCard, nsIAbDirectory *aParent); \
  nsresult OnListEntryChange(uint32_t abCode, nsIAbDirectory *list); \
  nsresult OnAnnouncerGoingAway(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIADDRDBLISTENER(_to) \
  NS_IMETHOD OnCardAttribChange(uint32_t abCode) override { return _to OnCardAttribChange(abCode); } \
  NS_IMETHOD OnCardEntryChange(uint32_t aAbCode, nsIAbCard *aCard, nsIAbDirectory *aParent) override { return _to OnCardEntryChange(aAbCode, aCard, aParent); } \
  NS_IMETHOD OnListEntryChange(uint32_t abCode, nsIAbDirectory *list) override { return _to OnListEntryChange(abCode, list); } \
  NS_IMETHOD OnAnnouncerGoingAway(void) override { return _to OnAnnouncerGoingAway(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIADDRDBLISTENER(_to) \
  NS_IMETHOD OnCardAttribChange(uint32_t abCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCardAttribChange(abCode); } \
  NS_IMETHOD OnCardEntryChange(uint32_t aAbCode, nsIAbCard *aCard, nsIAbDirectory *aParent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCardEntryChange(aAbCode, aCard, aParent); } \
  NS_IMETHOD OnListEntryChange(uint32_t abCode, nsIAbDirectory *list) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnListEntryChange(abCode, list); } \
  NS_IMETHOD OnAnnouncerGoingAway(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAnnouncerGoingAway(); } 


#endif /* __gen_nsIAddrDBListener_h__ */