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

#ifndef __gen_nsIMsgFolderListener_h__
#define __gen_nsIMsgFolderListener_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 nsIMsgDBHdr; /* forward declaration */

class nsIMsgFolder; /* forward declaration */

class nsIArray; /* forward declaration */


/* starting interface:    nsIMsgFolderListener */
#define NS_IMSGFOLDERLISTENER_IID_STR "2f87be72-0565-4e64-a824-0eb9c258f884"

#define NS_IMSGFOLDERLISTENER_IID \
  {0x2f87be72, 0x0565, 0x4e64, \
    { 0xa8, 0x24, 0x0e, 0xb9, 0xc2, 0x58, 0xf8, 0x84 }}

class NS_NO_VTABLE nsIMsgFolderListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGFOLDERLISTENER_IID)

  /* void msgAdded (in nsIMsgDBHdr aMsg); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MsgAdded(nsIMsgDBHdr *aMsg) = 0;

  /* void msgsClassified (in nsIArray aMsgs, in boolean aJunkProcessed, in boolean aTraitProcessed); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MsgsClassified(nsIArray *aMsgs, bool aJunkProcessed, bool aTraitProcessed) = 0;

  /* void msgsDeleted (in nsIArray aMsgs); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MsgsDeleted(nsIArray *aMsgs) = 0;

  /* void msgsMoveCopyCompleted (in boolean aMove, in nsIArray aSrcMsgs, in nsIMsgFolder aDestFolder, in nsIArray aDestMsgs); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MsgsMoveCopyCompleted(bool aMove, nsIArray *aSrcMsgs, nsIMsgFolder *aDestFolder, nsIArray *aDestMsgs) = 0;

  /* void msgKeyChanged (in nsMsgKey aOldKey, in nsIMsgDBHdr aNewHdr); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MsgKeyChanged(nsMsgKey aOldKey, nsIMsgDBHdr *aNewHdr) = 0;

  /* void folderAdded (in nsIMsgFolder aFolder); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FolderAdded(nsIMsgFolder *aFolder) = 0;

  /* void folderDeleted (in nsIMsgFolder aFolder); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FolderDeleted(nsIMsgFolder *aFolder) = 0;

  /* void folderMoveCopyCompleted (in boolean aMove, in nsIMsgFolder aSrcFolder, in nsIMsgFolder aDestFolder); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FolderMoveCopyCompleted(bool aMove, nsIMsgFolder *aSrcFolder, nsIMsgFolder *aDestFolder) = 0;

  /* void folderRenamed (in nsIMsgFolder aOrigFolder, in nsIMsgFolder aNewFolder); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FolderRenamed(nsIMsgFolder *aOrigFolder, nsIMsgFolder *aNewFolder) = 0;

  /* void itemEvent (in nsISupports aItem, in ACString aEvent, in nsISupports aData, in AUTF8String aString); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ItemEvent(nsISupports *aItem, const nsACString& aEvent, nsISupports *aData, const nsACString& aString) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgFolderListener, NS_IMSGFOLDERLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGFOLDERLISTENER \
  NS_IMETHOD MsgAdded(nsIMsgDBHdr *aMsg) override; \
  NS_IMETHOD MsgsClassified(nsIArray *aMsgs, bool aJunkProcessed, bool aTraitProcessed) override; \
  NS_IMETHOD MsgsDeleted(nsIArray *aMsgs) override; \
  NS_IMETHOD MsgsMoveCopyCompleted(bool aMove, nsIArray *aSrcMsgs, nsIMsgFolder *aDestFolder, nsIArray *aDestMsgs) override; \
  NS_IMETHOD MsgKeyChanged(nsMsgKey aOldKey, nsIMsgDBHdr *aNewHdr) override; \
  NS_IMETHOD FolderAdded(nsIMsgFolder *aFolder) override; \
  NS_IMETHOD FolderDeleted(nsIMsgFolder *aFolder) override; \
  NS_IMETHOD FolderMoveCopyCompleted(bool aMove, nsIMsgFolder *aSrcFolder, nsIMsgFolder *aDestFolder) override; \
  NS_IMETHOD FolderRenamed(nsIMsgFolder *aOrigFolder, nsIMsgFolder *aNewFolder) override; \
  NS_IMETHOD ItemEvent(nsISupports *aItem, const nsACString& aEvent, nsISupports *aData, const nsACString& aString) 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_NSIMSGFOLDERLISTENER \
  nsresult MsgAdded(nsIMsgDBHdr *aMsg); \
  nsresult MsgsClassified(nsIArray *aMsgs, bool aJunkProcessed, bool aTraitProcessed); \
  nsresult MsgsDeleted(nsIArray *aMsgs); \
  nsresult MsgsMoveCopyCompleted(bool aMove, nsIArray *aSrcMsgs, nsIMsgFolder *aDestFolder, nsIArray *aDestMsgs); \
  nsresult MsgKeyChanged(nsMsgKey aOldKey, nsIMsgDBHdr *aNewHdr); \
  nsresult FolderAdded(nsIMsgFolder *aFolder); \
  nsresult FolderDeleted(nsIMsgFolder *aFolder); \
  nsresult FolderMoveCopyCompleted(bool aMove, nsIMsgFolder *aSrcFolder, nsIMsgFolder *aDestFolder); \
  nsresult FolderRenamed(nsIMsgFolder *aOrigFolder, nsIMsgFolder *aNewFolder); \
  nsresult ItemEvent(nsISupports *aItem, const nsACString& aEvent, nsISupports *aData, const nsACString& aString); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGFOLDERLISTENER(_to) \
  NS_IMETHOD MsgAdded(nsIMsgDBHdr *aMsg) override { return _to MsgAdded(aMsg); } \
  NS_IMETHOD MsgsClassified(nsIArray *aMsgs, bool aJunkProcessed, bool aTraitProcessed) override { return _to MsgsClassified(aMsgs, aJunkProcessed, aTraitProcessed); } \
  NS_IMETHOD MsgsDeleted(nsIArray *aMsgs) override { return _to MsgsDeleted(aMsgs); } \
  NS_IMETHOD MsgsMoveCopyCompleted(bool aMove, nsIArray *aSrcMsgs, nsIMsgFolder *aDestFolder, nsIArray *aDestMsgs) override { return _to MsgsMoveCopyCompleted(aMove, aSrcMsgs, aDestFolder, aDestMsgs); } \
  NS_IMETHOD MsgKeyChanged(nsMsgKey aOldKey, nsIMsgDBHdr *aNewHdr) override { return _to MsgKeyChanged(aOldKey, aNewHdr); } \
  NS_IMETHOD FolderAdded(nsIMsgFolder *aFolder) override { return _to FolderAdded(aFolder); } \
  NS_IMETHOD FolderDeleted(nsIMsgFolder *aFolder) override { return _to FolderDeleted(aFolder); } \
  NS_IMETHOD FolderMoveCopyCompleted(bool aMove, nsIMsgFolder *aSrcFolder, nsIMsgFolder *aDestFolder) override { return _to FolderMoveCopyCompleted(aMove, aSrcFolder, aDestFolder); } \
  NS_IMETHOD FolderRenamed(nsIMsgFolder *aOrigFolder, nsIMsgFolder *aNewFolder) override { return _to FolderRenamed(aOrigFolder, aNewFolder); } \
  NS_IMETHOD ItemEvent(nsISupports *aItem, const nsACString& aEvent, nsISupports *aData, const nsACString& aString) override { return _to ItemEvent(aItem, aEvent, aData, aString); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGFOLDERLISTENER(_to) \
  NS_IMETHOD MsgAdded(nsIMsgDBHdr *aMsg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MsgAdded(aMsg); } \
  NS_IMETHOD MsgsClassified(nsIArray *aMsgs, bool aJunkProcessed, bool aTraitProcessed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MsgsClassified(aMsgs, aJunkProcessed, aTraitProcessed); } \
  NS_IMETHOD MsgsDeleted(nsIArray *aMsgs) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MsgsDeleted(aMsgs); } \
  NS_IMETHOD MsgsMoveCopyCompleted(bool aMove, nsIArray *aSrcMsgs, nsIMsgFolder *aDestFolder, nsIArray *aDestMsgs) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MsgsMoveCopyCompleted(aMove, aSrcMsgs, aDestFolder, aDestMsgs); } \
  NS_IMETHOD MsgKeyChanged(nsMsgKey aOldKey, nsIMsgDBHdr *aNewHdr) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MsgKeyChanged(aOldKey, aNewHdr); } \
  NS_IMETHOD FolderAdded(nsIMsgFolder *aFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FolderAdded(aFolder); } \
  NS_IMETHOD FolderDeleted(nsIMsgFolder *aFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FolderDeleted(aFolder); } \
  NS_IMETHOD FolderMoveCopyCompleted(bool aMove, nsIMsgFolder *aSrcFolder, nsIMsgFolder *aDestFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FolderMoveCopyCompleted(aMove, aSrcFolder, aDestFolder); } \
  NS_IMETHOD FolderRenamed(nsIMsgFolder *aOrigFolder, nsIMsgFolder *aNewFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FolderRenamed(aOrigFolder, aNewFolder); } \
  NS_IMETHOD ItemEvent(nsISupports *aItem, const nsACString& aEvent, nsISupports *aData, const nsACString& aString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ItemEvent(aItem, aEvent, aData, aString); } 


#endif /* __gen_nsIMsgFolderListener_h__ */