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

#ifndef __gen_mozINewMailNotificationService_h__
#define __gen_mozINewMailNotificationService_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 mozINewMailListener; /* forward declaration */

typedef int32_t  newMailListenerFlag;


/* starting interface:    mozINewMailNotificationService */
#define MOZINEWMAILNOTIFICATIONSERVICE_IID_STR "7fef9018-c9f1-4cbd-b57c-d6555cf3a668"

#define MOZINEWMAILNOTIFICATIONSERVICE_IID \
  {0x7fef9018, 0xc9f1, 0x4cbd, \
    { 0xb5, 0x7c, 0xd6, 0x55, 0x5c, 0xf3, 0xa6, 0x68 }}

class NS_NO_VTABLE mozINewMailNotificationService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(MOZINEWMAILNOTIFICATIONSERVICE_IID)

  enum {
    count = 1,
    messages = 2
  };

  /* void addListener (in mozINewMailListener aListener, in newMailListenerFlag flags); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddListener(mozINewMailListener *aListener, newMailListenerFlag flags) = 0;

  /* void removeListener (in mozINewMailListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveListener(mozINewMailListener *aListener) = 0;

  /* readonly attribute long messageCount; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMessageCount(int32_t *aMessageCount) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(mozINewMailNotificationService, MOZINEWMAILNOTIFICATIONSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_MOZINEWMAILNOTIFICATIONSERVICE \
  NS_IMETHOD AddListener(mozINewMailListener *aListener, newMailListenerFlag flags) override; \
  NS_IMETHOD RemoveListener(mozINewMailListener *aListener) override; \
  NS_IMETHOD GetMessageCount(int32_t *aMessageCount) 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_MOZINEWMAILNOTIFICATIONSERVICE \
  nsresult AddListener(mozINewMailListener *aListener, newMailListenerFlag flags); \
  nsresult RemoveListener(mozINewMailListener *aListener); \
  nsresult GetMessageCount(int32_t *aMessageCount); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_MOZINEWMAILNOTIFICATIONSERVICE(_to) \
  NS_IMETHOD AddListener(mozINewMailListener *aListener, newMailListenerFlag flags) override { return _to AddListener(aListener, flags); } \
  NS_IMETHOD RemoveListener(mozINewMailListener *aListener) override { return _to RemoveListener(aListener); } \
  NS_IMETHOD GetMessageCount(int32_t *aMessageCount) override { return _to GetMessageCount(aMessageCount); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_MOZINEWMAILNOTIFICATIONSERVICE(_to) \
  NS_IMETHOD AddListener(mozINewMailListener *aListener, newMailListenerFlag flags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddListener(aListener, flags); } \
  NS_IMETHOD RemoveListener(mozINewMailListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveListener(aListener); } \
  NS_IMETHOD GetMessageCount(int32_t *aMessageCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageCount(aMessageCount); } 


#endif /* __gen_mozINewMailNotificationService_h__ */