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

#ifndef __gen_nsIMsgFilterCustomAction_h__
#define __gen_nsIMsgFilterCustomAction_h__


#ifndef __gen_nsMsgFilterCore_h__
#include "nsMsgFilterCore.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 nsIArray; /* forward declaration */

class nsIMsgCopyServiceListener; /* forward declaration */

class nsIMsgWindow; /* forward declaration */


/* starting interface:    nsIMsgFilterCustomAction */
#define NS_IMSGFILTERCUSTOMACTION_IID_STR "4699c41e-3671-436e-b6ae-4fd8106747e4"

#define NS_IMSGFILTERCUSTOMACTION_IID \
  {0x4699c41e, 0x3671, 0x436e, \
    { 0xb6, 0xae, 0x4f, 0xd8, 0x10, 0x67, 0x47, 0xe4 }}

class NS_NO_VTABLE nsIMsgFilterCustomAction : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGFILTERCUSTOMACTION_IID)

  /* readonly attribute ACString id; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetId(nsACString& aId) = 0;

  /* readonly attribute AString name; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetName(nsAString& aName) = 0;

  /* boolean isValidForType (in nsMsgFilterTypeType type, in nsMsgSearchScopeValue scope); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsValidForType(nsMsgFilterTypeType type, nsMsgSearchScopeValue scope, bool *_retval) = 0;

  /* AUTF8String validateActionValue (in AUTF8String actionValue, in nsIMsgFolder actionFolder, in nsMsgFilterTypeType filterType); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ValidateActionValue(const nsACString& actionValue, nsIMsgFolder *actionFolder, nsMsgFilterTypeType filterType, nsACString& _retval) = 0;

  /* attribute boolean allowDuplicates; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAllowDuplicates(bool *aAllowDuplicates) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetAllowDuplicates(bool aAllowDuplicates) = 0;

  /* void apply (in nsIArray msgHdrs, in AUTF8String actionValue, in nsIMsgCopyServiceListener copyListener, in nsMsgFilterTypeType filterType, in nsIMsgWindow msgWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Apply(nsIArray *msgHdrs, const nsACString& actionValue, nsIMsgCopyServiceListener *copyListener, nsMsgFilterTypeType filterType, nsIMsgWindow *msgWindow) = 0;

  /* readonly attribute boolean isAsync; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsAsync(bool *aIsAsync) = 0;

  /* readonly attribute boolean needsBody; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNeedsBody(bool *aNeedsBody) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgFilterCustomAction, NS_IMSGFILTERCUSTOMACTION_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGFILTERCUSTOMACTION \
  NS_IMETHOD GetId(nsACString& aId) override; \
  NS_IMETHOD GetName(nsAString& aName) override; \
  NS_IMETHOD IsValidForType(nsMsgFilterTypeType type, nsMsgSearchScopeValue scope, bool *_retval) override; \
  NS_IMETHOD ValidateActionValue(const nsACString& actionValue, nsIMsgFolder *actionFolder, nsMsgFilterTypeType filterType, nsACString& _retval) override; \
  NS_IMETHOD GetAllowDuplicates(bool *aAllowDuplicates) override; \
  NS_IMETHOD SetAllowDuplicates(bool aAllowDuplicates) override; \
  NS_IMETHOD Apply(nsIArray *msgHdrs, const nsACString& actionValue, nsIMsgCopyServiceListener *copyListener, nsMsgFilterTypeType filterType, nsIMsgWindow *msgWindow) override; \
  NS_IMETHOD GetIsAsync(bool *aIsAsync) override; \
  NS_IMETHOD GetNeedsBody(bool *aNeedsBody) 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_NSIMSGFILTERCUSTOMACTION \
  nsresult GetId(nsACString& aId); \
  nsresult GetName(nsAString& aName); \
  nsresult IsValidForType(nsMsgFilterTypeType type, nsMsgSearchScopeValue scope, bool *_retval); \
  nsresult ValidateActionValue(const nsACString& actionValue, nsIMsgFolder *actionFolder, nsMsgFilterTypeType filterType, nsACString& _retval); \
  nsresult GetAllowDuplicates(bool *aAllowDuplicates); \
  nsresult SetAllowDuplicates(bool aAllowDuplicates); \
  nsresult Apply(nsIArray *msgHdrs, const nsACString& actionValue, nsIMsgCopyServiceListener *copyListener, nsMsgFilterTypeType filterType, nsIMsgWindow *msgWindow); \
  nsresult GetIsAsync(bool *aIsAsync); \
  nsresult GetNeedsBody(bool *aNeedsBody); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGFILTERCUSTOMACTION(_to) \
  NS_IMETHOD GetId(nsACString& aId) override { return _to GetId(aId); } \
  NS_IMETHOD GetName(nsAString& aName) override { return _to GetName(aName); } \
  NS_IMETHOD IsValidForType(nsMsgFilterTypeType type, nsMsgSearchScopeValue scope, bool *_retval) override { return _to IsValidForType(type, scope, _retval); } \
  NS_IMETHOD ValidateActionValue(const nsACString& actionValue, nsIMsgFolder *actionFolder, nsMsgFilterTypeType filterType, nsACString& _retval) override { return _to ValidateActionValue(actionValue, actionFolder, filterType, _retval); } \
  NS_IMETHOD GetAllowDuplicates(bool *aAllowDuplicates) override { return _to GetAllowDuplicates(aAllowDuplicates); } \
  NS_IMETHOD SetAllowDuplicates(bool aAllowDuplicates) override { return _to SetAllowDuplicates(aAllowDuplicates); } \
  NS_IMETHOD Apply(nsIArray *msgHdrs, const nsACString& actionValue, nsIMsgCopyServiceListener *copyListener, nsMsgFilterTypeType filterType, nsIMsgWindow *msgWindow) override { return _to Apply(msgHdrs, actionValue, copyListener, filterType, msgWindow); } \
  NS_IMETHOD GetIsAsync(bool *aIsAsync) override { return _to GetIsAsync(aIsAsync); } \
  NS_IMETHOD GetNeedsBody(bool *aNeedsBody) override { return _to GetNeedsBody(aNeedsBody); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGFILTERCUSTOMACTION(_to) \
  NS_IMETHOD GetId(nsACString& aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
  NS_IMETHOD GetName(nsAString& aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_IMETHOD IsValidForType(nsMsgFilterTypeType type, nsMsgSearchScopeValue scope, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsValidForType(type, scope, _retval); } \
  NS_IMETHOD ValidateActionValue(const nsACString& actionValue, nsIMsgFolder *actionFolder, nsMsgFilterTypeType filterType, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ValidateActionValue(actionValue, actionFolder, filterType, _retval); } \
  NS_IMETHOD GetAllowDuplicates(bool *aAllowDuplicates) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowDuplicates(aAllowDuplicates); } \
  NS_IMETHOD SetAllowDuplicates(bool aAllowDuplicates) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowDuplicates(aAllowDuplicates); } \
  NS_IMETHOD Apply(nsIArray *msgHdrs, const nsACString& actionValue, nsIMsgCopyServiceListener *copyListener, nsMsgFilterTypeType filterType, nsIMsgWindow *msgWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Apply(msgHdrs, actionValue, copyListener, filterType, msgWindow); } \
  NS_IMETHOD GetIsAsync(bool *aIsAsync) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsAsync(aIsAsync); } \
  NS_IMETHOD GetNeedsBody(bool *aNeedsBody) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNeedsBody(aNeedsBody); } 


#endif /* __gen_nsIMsgFilterCustomAction_h__ */