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

#ifndef __gen_nsINNTPProtocol_h__
#define __gen_nsINNTPProtocol_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 nsIURI; /* forward declaration */

class nsIMsgFolder; /* forward declaration */

class nsIMsgWindow; /* forward declaration */


/* starting interface:    nsINNTPProtocol */
#define NS_INNTPPROTOCOL_IID_STR "30106238-0991-11d4-a565-0060b0fc04b7"

#define NS_INNTPPROTOCOL_IID \
  {0x30106238, 0x0991, 0x11d4, \
    { 0xa5, 0x65, 0x00, 0x60, 0xb0, 0xfc, 0x04, 0xb7 }}

class NS_NO_VTABLE nsINNTPProtocol : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_INNTPPROTOCOL_IID)

  /* attribute boolean isBusy; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsBusy(bool *aIsBusy) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetIsBusy(bool aIsBusy) = 0;

  /* void LoadNewsUrl (in nsIURI aUri, in nsISupports aConsumer); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD LoadNewsUrl(nsIURI *aUri, nsISupports *aConsumer) = 0;

  /* void Initialize (in nsIURI aURL, in nsIMsgWindow aMsgWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Initialize(nsIURI *aURL, nsIMsgWindow *aMsgWindow) = 0;

  /* void GetLastActiveTimeStamp (out PRTime aTimeStamp); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLastActiveTimeStamp(PRTime *aTimeStamp) = 0;

  /* attribute boolean isCachedConnection; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsCachedConnection(bool *aIsCachedConnection) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetIsCachedConnection(bool aIsCachedConnection) = 0;

  /* readonly attribute nsIMsgFolder currentFolder; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCurrentFolder(nsIMsgFolder **aCurrentFolder) = 0;

  /* void CloseConnection (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CloseConnection(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsINNTPProtocol, NS_INNTPPROTOCOL_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSINNTPPROTOCOL \
  NS_IMETHOD GetIsBusy(bool *aIsBusy) override; \
  NS_IMETHOD SetIsBusy(bool aIsBusy) override; \
  NS_IMETHOD LoadNewsUrl(nsIURI *aUri, nsISupports *aConsumer) override; \
  NS_IMETHOD Initialize(nsIURI *aURL, nsIMsgWindow *aMsgWindow) override; \
  NS_IMETHOD GetLastActiveTimeStamp(PRTime *aTimeStamp) override; \
  NS_IMETHOD GetIsCachedConnection(bool *aIsCachedConnection) override; \
  NS_IMETHOD SetIsCachedConnection(bool aIsCachedConnection) override; \
  NS_IMETHOD GetCurrentFolder(nsIMsgFolder **aCurrentFolder) override; \
  NS_IMETHOD CloseConnection(void) 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_NSINNTPPROTOCOL \
  nsresult GetIsBusy(bool *aIsBusy); \
  nsresult SetIsBusy(bool aIsBusy); \
  nsresult LoadNewsUrl(nsIURI *aUri, nsISupports *aConsumer); \
  nsresult Initialize(nsIURI *aURL, nsIMsgWindow *aMsgWindow); \
  nsresult GetLastActiveTimeStamp(PRTime *aTimeStamp); \
  nsresult GetIsCachedConnection(bool *aIsCachedConnection); \
  nsresult SetIsCachedConnection(bool aIsCachedConnection); \
  nsresult GetCurrentFolder(nsIMsgFolder **aCurrentFolder); \
  nsresult CloseConnection(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSINNTPPROTOCOL(_to) \
  NS_IMETHOD GetIsBusy(bool *aIsBusy) override { return _to GetIsBusy(aIsBusy); } \
  NS_IMETHOD SetIsBusy(bool aIsBusy) override { return _to SetIsBusy(aIsBusy); } \
  NS_IMETHOD LoadNewsUrl(nsIURI *aUri, nsISupports *aConsumer) override { return _to LoadNewsUrl(aUri, aConsumer); } \
  NS_IMETHOD Initialize(nsIURI *aURL, nsIMsgWindow *aMsgWindow) override { return _to Initialize(aURL, aMsgWindow); } \
  NS_IMETHOD GetLastActiveTimeStamp(PRTime *aTimeStamp) override { return _to GetLastActiveTimeStamp(aTimeStamp); } \
  NS_IMETHOD GetIsCachedConnection(bool *aIsCachedConnection) override { return _to GetIsCachedConnection(aIsCachedConnection); } \
  NS_IMETHOD SetIsCachedConnection(bool aIsCachedConnection) override { return _to SetIsCachedConnection(aIsCachedConnection); } \
  NS_IMETHOD GetCurrentFolder(nsIMsgFolder **aCurrentFolder) override { return _to GetCurrentFolder(aCurrentFolder); } \
  NS_IMETHOD CloseConnection(void) override { return _to CloseConnection(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSINNTPPROTOCOL(_to) \
  NS_IMETHOD GetIsBusy(bool *aIsBusy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsBusy(aIsBusy); } \
  NS_IMETHOD SetIsBusy(bool aIsBusy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsBusy(aIsBusy); } \
  NS_IMETHOD LoadNewsUrl(nsIURI *aUri, nsISupports *aConsumer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadNewsUrl(aUri, aConsumer); } \
  NS_IMETHOD Initialize(nsIURI *aURL, nsIMsgWindow *aMsgWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Initialize(aURL, aMsgWindow); } \
  NS_IMETHOD GetLastActiveTimeStamp(PRTime *aTimeStamp) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastActiveTimeStamp(aTimeStamp); } \
  NS_IMETHOD GetIsCachedConnection(bool *aIsCachedConnection) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsCachedConnection(aIsCachedConnection); } \
  NS_IMETHOD SetIsCachedConnection(bool aIsCachedConnection) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsCachedConnection(aIsCachedConnection); } \
  NS_IMETHOD GetCurrentFolder(nsIMsgFolder **aCurrentFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentFolder(aCurrentFolder); } \
  NS_IMETHOD CloseConnection(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseConnection(); } 


#endif /* __gen_nsINNTPProtocol_h__ */