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 143 144 145 146 147 148
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mailnews/base/public/nsIFolderListener.idl
 */

#ifndef __gen_nsIFolderListener_h__
#define __gen_nsIFolderListener_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 nsIMsgFolder; /* forward declaration */

class nsIMsgDBHdr; /* forward declaration */

typedef uint32_t  folderListenerNotifyFlagValue;


/* starting interface:    nsIFolderListener */
#define NS_IFOLDERLISTENER_IID_STR "f60ee1a2-6d81-422c-958f-d408b1b2daa7"

#define NS_IFOLDERLISTENER_IID \
  {0xf60ee1a2, 0x6d81, 0x422c, \
    { 0x95, 0x8f, 0xd4, 0x08, 0xb1, 0xb2, 0xda, 0xa7 }}

class NS_NO_VTABLE nsIFolderListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFOLDERLISTENER_IID)

  enum {
    added = 1U
  };

  /* void OnItemAdded (in nsIMsgFolder aParentItem, in nsISupports aItem); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnItemAdded(nsIMsgFolder *aParentItem, nsISupports *aItem) = 0;

  enum {
    removed = 2U
  };

  /* void OnItemRemoved (in nsIMsgFolder aParentItem, in nsISupports aItem); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnItemRemoved(nsIMsgFolder *aParentItem, nsISupports *aItem) = 0;

  enum {
    propertyChanged = 4U
  };

  /* void OnItemPropertyChanged (in nsIMsgFolder aItem, in ACString aProperty, in string aOldValue, in string aNewValue); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnItemPropertyChanged(nsIMsgFolder *aItem, const nsACString& aProperty, const char * aOldValue, const char * aNewValue) = 0;

  enum {
    intPropertyChanged = 8U
  };

  /* void OnItemIntPropertyChanged (in nsIMsgFolder aItem, in ACString aProperty, in long long aOldValue, in long long aNewValue); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnItemIntPropertyChanged(nsIMsgFolder *aItem, const nsACString& aProperty, int64_t aOldValue, int64_t aNewValue) = 0;

  enum {
    boolPropertyChanged = 16U
  };

  /* void OnItemBoolPropertyChanged (in nsIMsgFolder aItem, in ACString aProperty, in boolean aOldValue, in boolean aNewValue); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnItemBoolPropertyChanged(nsIMsgFolder *aItem, const nsACString& aProperty, bool aOldValue, bool aNewValue) = 0;

  enum {
    unicharPropertyChanged = 32U
  };

  /* void OnItemUnicharPropertyChanged (in nsIMsgFolder aItem, in ACString aProperty, in wstring aOldValue, in wstring aNewValue); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnItemUnicharPropertyChanged(nsIMsgFolder *aItem, const nsACString& aProperty, const char16_t * aOldValue, const char16_t * aNewValue) = 0;

  enum {
    propertyFlagChanged = 64U
  };

  /* void OnItemPropertyFlagChanged (in nsIMsgDBHdr aItem, in ACString aProperty, in unsigned long aOldFlag, in unsigned long aNewFlag); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnItemPropertyFlagChanged(nsIMsgDBHdr *aItem, const nsACString& aProperty, uint32_t aOldFlag, uint32_t aNewFlag) = 0;

  enum {
    event = 128U
  };

  /* void OnItemEvent (in nsIMsgFolder aItem, in ACString aEvent); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnItemEvent(nsIMsgFolder *aItem, const nsACString& aEvent) = 0;

  enum {
    all = 4294967295U
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIFolderListener, NS_IFOLDERLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIFOLDERLISTENER \
  NS_IMETHOD OnItemAdded(nsIMsgFolder *aParentItem, nsISupports *aItem) override; \
  NS_IMETHOD OnItemRemoved(nsIMsgFolder *aParentItem, nsISupports *aItem) override; \
  NS_IMETHOD OnItemPropertyChanged(nsIMsgFolder *aItem, const nsACString& aProperty, const char * aOldValue, const char * aNewValue) override; \
  NS_IMETHOD OnItemIntPropertyChanged(nsIMsgFolder *aItem, const nsACString& aProperty, int64_t aOldValue, int64_t aNewValue) override; \
  NS_IMETHOD OnItemBoolPropertyChanged(nsIMsgFolder *aItem, const nsACString& aProperty, bool aOldValue, bool aNewValue) override; \
  NS_IMETHOD OnItemUnicharPropertyChanged(nsIMsgFolder *aItem, const nsACString& aProperty, const char16_t * aOldValue, const char16_t * aNewValue) override; \
  NS_IMETHOD OnItemPropertyFlagChanged(nsIMsgDBHdr *aItem, const nsACString& aProperty, uint32_t aOldFlag, uint32_t aNewFlag) override; \
  NS_IMETHOD OnItemEvent(nsIMsgFolder *aItem, const nsACString& aEvent) 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_NSIFOLDERLISTENER \
  nsresult OnItemAdded(nsIMsgFolder *aParentItem, nsISupports *aItem); \
  nsresult OnItemRemoved(nsIMsgFolder *aParentItem, nsISupports *aItem); \
  nsresult OnItemPropertyChanged(nsIMsgFolder *aItem, const nsACString& aProperty, const char * aOldValue, const char * aNewValue); \
  nsresult OnItemIntPropertyChanged(nsIMsgFolder *aItem, const nsACString& aProperty, int64_t aOldValue, int64_t aNewValue); \
  nsresult OnItemBoolPropertyChanged(nsIMsgFolder *aItem, const nsACString& aProperty, bool aOldValue, bool aNewValue); \
  nsresult OnItemUnicharPropertyChanged(nsIMsgFolder *aItem, const nsACString& aProperty, const char16_t * aOldValue, const char16_t * aNewValue); \
  nsresult OnItemPropertyFlagChanged(nsIMsgDBHdr *aItem, const nsACString& aProperty, uint32_t aOldFlag, uint32_t aNewFlag); \
  nsresult OnItemEvent(nsIMsgFolder *aItem, const nsACString& aEvent); \

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIFOLDERLISTENER(_to) \
  NS_IMETHOD OnItemAdded(nsIMsgFolder *aParentItem, nsISupports *aItem) override { return _to OnItemAdded(aParentItem, aItem); } \
  NS_IMETHOD OnItemRemoved(nsIMsgFolder *aParentItem, nsISupports *aItem) override { return _to OnItemRemoved(aParentItem, aItem); } \
  NS_IMETHOD OnItemPropertyChanged(nsIMsgFolder *aItem, const nsACString& aProperty, const char * aOldValue, const char * aNewValue) override { return _to OnItemPropertyChanged(aItem, aProperty, aOldValue, aNewValue); } \
  NS_IMETHOD OnItemIntPropertyChanged(nsIMsgFolder *aItem, const nsACString& aProperty, int64_t aOldValue, int64_t aNewValue) override { return _to OnItemIntPropertyChanged(aItem, aProperty, aOldValue, aNewValue); } \
  NS_IMETHOD OnItemBoolPropertyChanged(nsIMsgFolder *aItem, const nsACString& aProperty, bool aOldValue, bool aNewValue) override { return _to OnItemBoolPropertyChanged(aItem, aProperty, aOldValue, aNewValue); } \
  NS_IMETHOD OnItemUnicharPropertyChanged(nsIMsgFolder *aItem, const nsACString& aProperty, const char16_t * aOldValue, const char16_t * aNewValue) override { return _to OnItemUnicharPropertyChanged(aItem, aProperty, aOldValue, aNewValue); } \
  NS_IMETHOD OnItemPropertyFlagChanged(nsIMsgDBHdr *aItem, const nsACString& aProperty, uint32_t aOldFlag, uint32_t aNewFlag) override { return _to OnItemPropertyFlagChanged(aItem, aProperty, aOldFlag, aNewFlag); } \
  NS_IMETHOD OnItemEvent(nsIMsgFolder *aItem, const nsACString& aEvent) override { return _to OnItemEvent(aItem, aEvent); } \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIFOLDERLISTENER(_to) \
  NS_IMETHOD OnItemAdded(nsIMsgFolder *aParentItem, nsISupports *aItem) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnItemAdded(aParentItem, aItem); } \
  NS_IMETHOD OnItemRemoved(nsIMsgFolder *aParentItem, nsISupports *aItem) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnItemRemoved(aParentItem, aItem); } \
  NS_IMETHOD OnItemPropertyChanged(nsIMsgFolder *aItem, const nsACString& aProperty, const char * aOldValue, const char * aNewValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnItemPropertyChanged(aItem, aProperty, aOldValue, aNewValue); } \
  NS_IMETHOD OnItemIntPropertyChanged(nsIMsgFolder *aItem, const nsACString& aProperty, int64_t aOldValue, int64_t aNewValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnItemIntPropertyChanged(aItem, aProperty, aOldValue, aNewValue); } \
  NS_IMETHOD OnItemBoolPropertyChanged(nsIMsgFolder *aItem, const nsACString& aProperty, bool aOldValue, bool aNewValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnItemBoolPropertyChanged(aItem, aProperty, aOldValue, aNewValue); } \
  NS_IMETHOD OnItemUnicharPropertyChanged(nsIMsgFolder *aItem, const nsACString& aProperty, const char16_t * aOldValue, const char16_t * aNewValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnItemUnicharPropertyChanged(aItem, aProperty, aOldValue, aNewValue); } \
  NS_IMETHOD OnItemPropertyFlagChanged(nsIMsgDBHdr *aItem, const nsACString& aProperty, uint32_t aOldFlag, uint32_t aNewFlag) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnItemPropertyFlagChanged(aItem, aProperty, aOldFlag, aNewFlag); } \
  NS_IMETHOD OnItemEvent(nsIMsgFolder *aItem, const nsACString& aEvent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnItemEvent(aItem, aEvent); } \


#endif /* __gen_nsIFolderListener_h__ */