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

nsIFolderListener

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 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIFolderListener.idl
 */

#ifndef __gen_nsIFolderListener_h__
#define __gen_nsIFolderListener_h__


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

#ifndef __gen_nsIAtom_h__
#include "nsIAtom.h"
#endif

/* 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); */
  NS_IMETHOD OnItemAdded(nsIMsgFolder *aParentItem, nsISupports *aItem) = 0;

  enum {
    removed = 2U
  };

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

  enum {
    propertyChanged = 4U
  };

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

  enum {
    intPropertyChanged = 8U
  };

  /* void OnItemIntPropertyChanged (in nsIMsgFolder aItem, in nsIAtom aProperty, in long long aOldValue, in long long aNewValue); */
  NS_IMETHOD OnItemIntPropertyChanged(nsIMsgFolder *aItem, nsIAtom *aProperty, int64_t aOldValue, int64_t aNewValue) = 0;

  enum {
    boolPropertyChanged = 16U
  };

  /* void OnItemBoolPropertyChanged (in nsIMsgFolder aItem, in nsIAtom aProperty, in boolean aOldValue, in boolean aNewValue); */
  NS_IMETHOD OnItemBoolPropertyChanged(nsIMsgFolder *aItem, nsIAtom *aProperty, bool aOldValue, bool aNewValue) = 0;

  enum {
    unicharPropertyChanged = 32U
  };

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

  enum {
    propertyFlagChanged = 64U
  };

  /* void OnItemPropertyFlagChanged (in nsIMsgDBHdr aItem, in nsIAtom aProperty, in unsigned long aOldFlag, in unsigned long aNewFlag); */
  NS_IMETHOD OnItemPropertyFlagChanged(nsIMsgDBHdr *aItem, nsIAtom *aProperty, uint32_t aOldFlag, uint32_t aNewFlag) = 0;

  enum {
    event = 128U
  };

  /* void OnItemEvent (in nsIMsgFolder aItem, in nsIAtom aEvent); */
  NS_IMETHOD OnItemEvent(nsIMsgFolder *aItem, nsIAtom *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, nsIAtom *aProperty, const char * aOldValue, const char * aNewValue) override; \
  NS_IMETHOD OnItemIntPropertyChanged(nsIMsgFolder *aItem, nsIAtom *aProperty, int64_t aOldValue, int64_t aNewValue) override; \
  NS_IMETHOD OnItemBoolPropertyChanged(nsIMsgFolder *aItem, nsIAtom *aProperty, bool aOldValue, bool aNewValue) override; \
  NS_IMETHOD OnItemUnicharPropertyChanged(nsIMsgFolder *aItem, nsIAtom *aProperty, const char16_t * aOldValue, const char16_t * aNewValue) override; \
  NS_IMETHOD OnItemPropertyFlagChanged(nsIMsgDBHdr *aItem, nsIAtom *aProperty, uint32_t aOldFlag, uint32_t aNewFlag) override; \
  NS_IMETHOD OnItemEvent(nsIMsgFolder *aItem, nsIAtom *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, nsIAtom *aProperty, const char * aOldValue, const char * aNewValue); \
  nsresult OnItemIntPropertyChanged(nsIMsgFolder *aItem, nsIAtom *aProperty, int64_t aOldValue, int64_t aNewValue); \
  nsresult OnItemBoolPropertyChanged(nsIMsgFolder *aItem, nsIAtom *aProperty, bool aOldValue, bool aNewValue); \
  nsresult OnItemUnicharPropertyChanged(nsIMsgFolder *aItem, nsIAtom *aProperty, const char16_t * aOldValue, const char16_t * aNewValue); \
  nsresult OnItemPropertyFlagChanged(nsIMsgDBHdr *aItem, nsIAtom *aProperty, uint32_t aOldFlag, uint32_t aNewFlag); \
  nsresult OnItemEvent(nsIMsgFolder *aItem, nsIAtom *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, nsIAtom *aProperty, const char * aOldValue, const char * aNewValue) override { return _to OnItemPropertyChanged(aItem, aProperty, aOldValue, aNewValue); } \
  NS_IMETHOD OnItemIntPropertyChanged(nsIMsgFolder *aItem, nsIAtom *aProperty, int64_t aOldValue, int64_t aNewValue) override { return _to OnItemIntPropertyChanged(aItem, aProperty, aOldValue, aNewValue); } \
  NS_IMETHOD OnItemBoolPropertyChanged(nsIMsgFolder *aItem, nsIAtom *aProperty, bool aOldValue, bool aNewValue) override { return _to OnItemBoolPropertyChanged(aItem, aProperty, aOldValue, aNewValue); } \
  NS_IMETHOD OnItemUnicharPropertyChanged(nsIMsgFolder *aItem, nsIAtom *aProperty, const char16_t * aOldValue, const char16_t * aNewValue) override { return _to OnItemUnicharPropertyChanged(aItem, aProperty, aOldValue, aNewValue); } \
  NS_IMETHOD OnItemPropertyFlagChanged(nsIMsgDBHdr *aItem, nsIAtom *aProperty, uint32_t aOldFlag, uint32_t aNewFlag) override { return _to OnItemPropertyFlagChanged(aItem, aProperty, aOldFlag, aNewFlag); } \
  NS_IMETHOD OnItemEvent(nsIMsgFolder *aItem, nsIAtom *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, nsIAtom *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, nsIAtom *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, nsIAtom *aProperty, bool aOldValue, bool aNewValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnItemBoolPropertyChanged(aItem, aProperty, aOldValue, aNewValue); } \
  NS_IMETHOD OnItemUnicharPropertyChanged(nsIMsgFolder *aItem, nsIAtom *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, nsIAtom *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, nsIAtom *aEvent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnItemEvent(aItem, aEvent); } \

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

/* Header file */
class nsFolderListener : public nsIFolderListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIFOLDERLISTENER

  nsFolderListener();

private:
  ~nsFolderListener();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsFolderListener, nsIFolderListener)

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

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

/* void OnItemAdded (in nsIMsgFolder aParentItem, in nsISupports aItem); */
NS_IMETHODIMP nsFolderListener::OnItemAdded(nsIMsgFolder *aParentItem, nsISupports *aItem)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void OnItemRemoved (in nsIMsgFolder aParentItem, in nsISupports aItem); */
NS_IMETHODIMP nsFolderListener::OnItemRemoved(nsIMsgFolder *aParentItem, nsISupports *aItem)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void OnItemPropertyChanged (in nsIMsgFolder aItem, in nsIAtom aProperty, in string aOldValue, in string aNewValue); */
NS_IMETHODIMP nsFolderListener::OnItemPropertyChanged(nsIMsgFolder *aItem, nsIAtom *aProperty, const char * aOldValue, const char * aNewValue)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void OnItemIntPropertyChanged (in nsIMsgFolder aItem, in nsIAtom aProperty, in long long aOldValue, in long long aNewValue); */
NS_IMETHODIMP nsFolderListener::OnItemIntPropertyChanged(nsIMsgFolder *aItem, nsIAtom *aProperty, int64_t aOldValue, int64_t aNewValue)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void OnItemBoolPropertyChanged (in nsIMsgFolder aItem, in nsIAtom aProperty, in boolean aOldValue, in boolean aNewValue); */
NS_IMETHODIMP nsFolderListener::OnItemBoolPropertyChanged(nsIMsgFolder *aItem, nsIAtom *aProperty, bool aOldValue, bool aNewValue)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void OnItemUnicharPropertyChanged (in nsIMsgFolder aItem, in nsIAtom aProperty, in wstring aOldValue, in wstring aNewValue); */
NS_IMETHODIMP nsFolderListener::OnItemUnicharPropertyChanged(nsIMsgFolder *aItem, nsIAtom *aProperty, const char16_t * aOldValue, const char16_t * aNewValue)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void OnItemPropertyFlagChanged (in nsIMsgDBHdr aItem, in nsIAtom aProperty, in unsigned long aOldFlag, in unsigned long aNewFlag); */
NS_IMETHODIMP nsFolderListener::OnItemPropertyFlagChanged(nsIMsgDBHdr *aItem, nsIAtom *aProperty, uint32_t aOldFlag, uint32_t aNewFlag)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void OnItemEvent (in nsIMsgFolder aItem, in nsIAtom aEvent); */
NS_IMETHODIMP nsFolderListener::OnItemEvent(nsIMsgFolder *aItem, nsIAtom *aEvent)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIFolderListener_h__ */