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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/toolkit/components/feeds/nsIFeedListener.idl
 */

#ifndef __gen_nsIFeedListener_h__
#define __gen_nsIFeedListener_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 nsIFeedResult; /* forward declaration */

class nsIFeedEntry; /* forward declaration */


/* starting interface:    nsIFeedResultListener */
#define NS_IFEEDRESULTLISTENER_IID_STR "4d2ebe88-36eb-4e20-bcd1-997b3c1f24ce"

#define NS_IFEEDRESULTLISTENER_IID \
  {0x4d2ebe88, 0x36eb, 0x4e20, \
    { 0xbc, 0xd1, 0x99, 0x7b, 0x3c, 0x1f, 0x24, 0xce }}

class NS_NO_VTABLE nsIFeedResultListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFEEDRESULTLISTENER_IID)

  /* void handleResult (in nsIFeedResult result); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HandleResult(nsIFeedResult *result) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIFeedResultListener, NS_IFEEDRESULTLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIFEEDRESULTLISTENER \
  NS_IMETHOD HandleResult(nsIFeedResult *result) 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_NSIFEEDRESULTLISTENER \
  nsresult HandleResult(nsIFeedResult *result); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIFEEDRESULTLISTENER(_to) \
  NS_IMETHOD HandleResult(nsIFeedResult *result) override { return _to HandleResult(result); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIFEEDRESULTLISTENER(_to) \
  NS_IMETHOD HandleResult(nsIFeedResult *result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleResult(result); } 


/* starting interface:    nsIFeedProgressListener */
#define NS_IFEEDPROGRESSLISTENER_IID_STR "ebfd5de5-713c-40c0-ad7c-f095117fa580"

#define NS_IFEEDPROGRESSLISTENER_IID \
  {0xebfd5de5, 0x713c, 0x40c0, \
    { 0xad, 0x7c, 0xf0, 0x95, 0x11, 0x7f, 0xa5, 0x80 }}

class NS_NO_VTABLE nsIFeedProgressListener : public nsIFeedResultListener {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFEEDPROGRESSLISTENER_IID)

  /* void reportError (in AString errorText, in long lineNumber, in boolean bozo); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ReportError(const nsAString& errorText, int32_t lineNumber, bool bozo) = 0;

  /* void handleStartFeed (in nsIFeedResult result); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HandleStartFeed(nsIFeedResult *result) = 0;

  /* void handleFeedAtFirstEntry (in nsIFeedResult result); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HandleFeedAtFirstEntry(nsIFeedResult *result) = 0;

  /* void handleEntry (in nsIFeedEntry entry, in nsIFeedResult result); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HandleEntry(nsIFeedEntry *entry, nsIFeedResult *result) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIFeedProgressListener, NS_IFEEDPROGRESSLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIFEEDPROGRESSLISTENER \
  NS_IMETHOD ReportError(const nsAString& errorText, int32_t lineNumber, bool bozo) override; \
  NS_IMETHOD HandleStartFeed(nsIFeedResult *result) override; \
  NS_IMETHOD HandleFeedAtFirstEntry(nsIFeedResult *result) override; \
  NS_IMETHOD HandleEntry(nsIFeedEntry *entry, nsIFeedResult *result) 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_NSIFEEDPROGRESSLISTENER \
  nsresult ReportError(const nsAString& errorText, int32_t lineNumber, bool bozo); \
  nsresult HandleStartFeed(nsIFeedResult *result); \
  nsresult HandleFeedAtFirstEntry(nsIFeedResult *result); \
  nsresult HandleEntry(nsIFeedEntry *entry, nsIFeedResult *result); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIFEEDPROGRESSLISTENER(_to) \
  NS_IMETHOD ReportError(const nsAString& errorText, int32_t lineNumber, bool bozo) override { return _to ReportError(errorText, lineNumber, bozo); } \
  NS_IMETHOD HandleStartFeed(nsIFeedResult *result) override { return _to HandleStartFeed(result); } \
  NS_IMETHOD HandleFeedAtFirstEntry(nsIFeedResult *result) override { return _to HandleFeedAtFirstEntry(result); } \
  NS_IMETHOD HandleEntry(nsIFeedEntry *entry, nsIFeedResult *result) override { return _to HandleEntry(entry, result); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIFEEDPROGRESSLISTENER(_to) \
  NS_IMETHOD ReportError(const nsAString& errorText, int32_t lineNumber, bool bozo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReportError(errorText, lineNumber, bozo); } \
  NS_IMETHOD HandleStartFeed(nsIFeedResult *result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleStartFeed(result); } \
  NS_IMETHOD HandleFeedAtFirstEntry(nsIFeedResult *result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleFeedAtFirstEntry(result); } \
  NS_IMETHOD HandleEntry(nsIFeedEntry *entry, nsIFeedResult *result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleEntry(entry, result); } 


#endif /* __gen_nsIFeedListener_h__ */