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

#ifndef __gen_nsINntpService_h__
#define __gen_nsINntpService_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#ifndef __gen_nsIUrlListener_h__
#include "nsIUrlListener.h"
#endif

#ifndef __gen_nsINntpIncomingServer_h__
#include "nsINntpIncomingServer.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 nsIURI; /* forward declaration */

class nsIFile; /* forward declaration */

class nsIMsgWindow; /* forward declaration */

class nsIMsgFolder; /* forward declaration */

class nsICacheStorage; /* forward declaration */


/* starting interface:    nsINntpService */
#define NS_INNTPSERVICE_IID_STR "dc5cadb0-966c-4ef1-a4c8-cc1e48d1ac61"

#define NS_INNTPSERVICE_IID \
  {0xdc5cadb0, 0x966c, 0x4ef1, \
    { 0xa4, 0xc8, 0xcc, 0x1e, 0x48, 0xd1, 0xac, 0x61 }}

class NS_NO_VTABLE nsINntpService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_INNTPSERVICE_IID)

  /* void generateNewsHeaderValsForPosting (in ACString newsgroupsList, out string newsgroupsHeaderVal, out string newshostHeaderVal); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GenerateNewsHeaderValsForPosting(const nsACString& newsgroupsList, char * *newsgroupsHeaderVal, char * *newshostHeaderVal) = 0;

  /* nsIURI postMessage (in nsIFile aFileToPost, in string newsgroupNames, in string aAccountKey, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PostMessage(nsIFile *aFileToPost, const char * newsgroupNames, const char * aAccountKey, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) = 0;

  /* nsIURI getNewNews (in nsINntpIncomingServer nntpServer, in string uri, in boolean getOld, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNewNews(nsINntpIncomingServer *nntpServer, const char * uri, bool getOld, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) = 0;

  /* nsIURI cancelMessage (in string cancelURL, in string messageURI, in nsISupports aConsumer, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CancelMessage(const char * cancelURL, const char * messageURI, nsISupports *aConsumer, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) = 0;

  /* void getListOfGroupsOnServer (in nsINntpIncomingServer nntpServer, in nsIMsgWindow aMsgWindow, in boolean getOnlyNew); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetListOfGroupsOnServer(nsINntpIncomingServer *nntpServer, nsIMsgWindow *aMsgWindow, bool getOnlyNew) = 0;

  /* nsIURI fetchMessage (in nsIMsgFolder newsFolder, in nsMsgKey key, in nsIMsgWindow aMsgWindow, in nsISupports aConsumer, in nsIUrlListener aUrlListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FetchMessage(nsIMsgFolder *newsFolder, nsMsgKey key, nsIMsgWindow *aMsgWindow, nsISupports *aConsumer, nsIUrlListener *aUrlListener, nsIURI **_retval) = 0;

  /* void downloadNewsgroupsForOffline (in nsIMsgWindow aMsgWindow, in nsIUrlListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DownloadNewsgroupsForOffline(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener) = 0;

  /* void decomposeNewsURI (in string uri, out nsIMsgFolder folder, out nsMsgKey key); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DecomposeNewsURI(const char * uri, nsIMsgFolder **folder, nsMsgKey *key) = 0;

  /* readonly attribute nsICacheStorage cacheStorage; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCacheStorage(nsICacheStorage **aCacheStorage) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsINntpService, NS_INNTPSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSINNTPSERVICE \
  NS_IMETHOD GenerateNewsHeaderValsForPosting(const nsACString& newsgroupsList, char * *newsgroupsHeaderVal, char * *newshostHeaderVal) override; \
  NS_IMETHOD PostMessage(nsIFile *aFileToPost, const char * newsgroupNames, const char * aAccountKey, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) override; \
  NS_IMETHOD GetNewNews(nsINntpIncomingServer *nntpServer, const char * uri, bool getOld, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) override; \
  NS_IMETHOD CancelMessage(const char * cancelURL, const char * messageURI, nsISupports *aConsumer, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) override; \
  NS_IMETHOD GetListOfGroupsOnServer(nsINntpIncomingServer *nntpServer, nsIMsgWindow *aMsgWindow, bool getOnlyNew) override; \
  NS_IMETHOD FetchMessage(nsIMsgFolder *newsFolder, nsMsgKey key, nsIMsgWindow *aMsgWindow, nsISupports *aConsumer, nsIUrlListener *aUrlListener, nsIURI **_retval) override; \
  NS_IMETHOD DownloadNewsgroupsForOffline(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener) override; \
  NS_IMETHOD DecomposeNewsURI(const char * uri, nsIMsgFolder **folder, nsMsgKey *key) override; \
  NS_IMETHOD GetCacheStorage(nsICacheStorage **aCacheStorage) 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_NSINNTPSERVICE \
  nsresult GenerateNewsHeaderValsForPosting(const nsACString& newsgroupsList, char * *newsgroupsHeaderVal, char * *newshostHeaderVal); \
  nsresult PostMessage(nsIFile *aFileToPost, const char * newsgroupNames, const char * aAccountKey, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval); \
  nsresult GetNewNews(nsINntpIncomingServer *nntpServer, const char * uri, bool getOld, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval); \
  nsresult CancelMessage(const char * cancelURL, const char * messageURI, nsISupports *aConsumer, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval); \
  nsresult GetListOfGroupsOnServer(nsINntpIncomingServer *nntpServer, nsIMsgWindow *aMsgWindow, bool getOnlyNew); \
  nsresult FetchMessage(nsIMsgFolder *newsFolder, nsMsgKey key, nsIMsgWindow *aMsgWindow, nsISupports *aConsumer, nsIUrlListener *aUrlListener, nsIURI **_retval); \
  nsresult DownloadNewsgroupsForOffline(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener); \
  nsresult DecomposeNewsURI(const char * uri, nsIMsgFolder **folder, nsMsgKey *key); \
  nsresult GetCacheStorage(nsICacheStorage **aCacheStorage); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSINNTPSERVICE(_to) \
  NS_IMETHOD GenerateNewsHeaderValsForPosting(const nsACString& newsgroupsList, char * *newsgroupsHeaderVal, char * *newshostHeaderVal) override { return _to GenerateNewsHeaderValsForPosting(newsgroupsList, newsgroupsHeaderVal, newshostHeaderVal); } \
  NS_IMETHOD PostMessage(nsIFile *aFileToPost, const char * newsgroupNames, const char * aAccountKey, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) override { return _to PostMessage(aFileToPost, newsgroupNames, aAccountKey, aUrlListener, aMsgWindow, _retval); } \
  NS_IMETHOD GetNewNews(nsINntpIncomingServer *nntpServer, const char * uri, bool getOld, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) override { return _to GetNewNews(nntpServer, uri, getOld, aUrlListener, aMsgWindow, _retval); } \
  NS_IMETHOD CancelMessage(const char * cancelURL, const char * messageURI, nsISupports *aConsumer, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) override { return _to CancelMessage(cancelURL, messageURI, aConsumer, aUrlListener, aMsgWindow, _retval); } \
  NS_IMETHOD GetListOfGroupsOnServer(nsINntpIncomingServer *nntpServer, nsIMsgWindow *aMsgWindow, bool getOnlyNew) override { return _to GetListOfGroupsOnServer(nntpServer, aMsgWindow, getOnlyNew); } \
  NS_IMETHOD FetchMessage(nsIMsgFolder *newsFolder, nsMsgKey key, nsIMsgWindow *aMsgWindow, nsISupports *aConsumer, nsIUrlListener *aUrlListener, nsIURI **_retval) override { return _to FetchMessage(newsFolder, key, aMsgWindow, aConsumer, aUrlListener, _retval); } \
  NS_IMETHOD DownloadNewsgroupsForOffline(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener) override { return _to DownloadNewsgroupsForOffline(aMsgWindow, aListener); } \
  NS_IMETHOD DecomposeNewsURI(const char * uri, nsIMsgFolder **folder, nsMsgKey *key) override { return _to DecomposeNewsURI(uri, folder, key); } \
  NS_IMETHOD GetCacheStorage(nsICacheStorage **aCacheStorage) override { return _to GetCacheStorage(aCacheStorage); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSINNTPSERVICE(_to) \
  NS_IMETHOD GenerateNewsHeaderValsForPosting(const nsACString& newsgroupsList, char * *newsgroupsHeaderVal, char * *newshostHeaderVal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GenerateNewsHeaderValsForPosting(newsgroupsList, newsgroupsHeaderVal, newshostHeaderVal); } \
  NS_IMETHOD PostMessage(nsIFile *aFileToPost, const char * newsgroupNames, const char * aAccountKey, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PostMessage(aFileToPost, newsgroupNames, aAccountKey, aUrlListener, aMsgWindow, _retval); } \
  NS_IMETHOD GetNewNews(nsINntpIncomingServer *nntpServer, const char * uri, bool getOld, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNewNews(nntpServer, uri, getOld, aUrlListener, aMsgWindow, _retval); } \
  NS_IMETHOD CancelMessage(const char * cancelURL, const char * messageURI, nsISupports *aConsumer, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CancelMessage(cancelURL, messageURI, aConsumer, aUrlListener, aMsgWindow, _retval); } \
  NS_IMETHOD GetListOfGroupsOnServer(nsINntpIncomingServer *nntpServer, nsIMsgWindow *aMsgWindow, bool getOnlyNew) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListOfGroupsOnServer(nntpServer, aMsgWindow, getOnlyNew); } \
  NS_IMETHOD FetchMessage(nsIMsgFolder *newsFolder, nsMsgKey key, nsIMsgWindow *aMsgWindow, nsISupports *aConsumer, nsIUrlListener *aUrlListener, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FetchMessage(newsFolder, key, aMsgWindow, aConsumer, aUrlListener, _retval); } \
  NS_IMETHOD DownloadNewsgroupsForOffline(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DownloadNewsgroupsForOffline(aMsgWindow, aListener); } \
  NS_IMETHOD DecomposeNewsURI(const char * uri, nsIMsgFolder **folder, nsMsgKey *key) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DecomposeNewsURI(uri, folder, key); } \
  NS_IMETHOD GetCacheStorage(nsICacheStorage **aCacheStorage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCacheStorage(aCacheStorage); } 


#endif /* __gen_nsINntpService_h__ */