/usr/include/thunderbird/nsINntpService.h is in thunderbird-dev 1:38.6.0+build1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/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
/* 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 nsICacheSession; /* 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); */
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); */
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); */
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); */
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); */
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); */
NS_IMETHOD FetchMessage(nsIMsgFolder *newsFolder, nsMsgKey key, nsIMsgWindow *aMsgWindow, nsISupports *aConsumer, nsIUrlListener *aUrlListener, nsIURI * *_retval) = 0;
/* void downloadNewsgroupsForOffline (in nsIMsgWindow aMsgWindow, in nsIUrlListener aListener); */
NS_IMETHOD DownloadNewsgroupsForOffline(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener) = 0;
/* void decomposeNewsURI (in string uri, out nsIMsgFolder folder, out nsMsgKey key); */
NS_IMETHOD DecomposeNewsURI(const char * uri, nsIMsgFolder * *folder, nsMsgKey *key) = 0;
/* readonly attribute nsICacheSession cacheSession; */
NS_IMETHOD GetCacheSession(nsICacheSession * *aCacheSession) = 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 GetCacheSession(nsICacheSession * *aCacheSession) override;
/* 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 GetCacheSession(nsICacheSession * *aCacheSession) override { return _to GetCacheSession(aCacheSession); }
/* 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 GetCacheSession(nsICacheSession * *aCacheSession) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCacheSession(aCacheSession); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsNntpService : public nsINntpService
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSINNTPSERVICE
nsNntpService();
private:
~nsNntpService();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsNntpService, nsINntpService)
nsNntpService::nsNntpService()
{
/* member initializers and constructor code */
}
nsNntpService::~nsNntpService()
{
/* destructor code */
}
/* void generateNewsHeaderValsForPosting (in ACString newsgroupsList, out string newsgroupsHeaderVal, out string newshostHeaderVal); */
NS_IMETHODIMP nsNntpService::GenerateNewsHeaderValsForPosting(const nsACString & newsgroupsList, char * *newsgroupsHeaderVal, char * *newshostHeaderVal)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIURI postMessage (in nsIFile aFileToPost, in string newsgroupNames, in string aAccountKey, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
NS_IMETHODIMP nsNntpService::PostMessage(nsIFile *aFileToPost, const char * newsgroupNames, const char * aAccountKey, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIURI getNewNews (in nsINntpIncomingServer nntpServer, in string uri, in boolean getOld, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
NS_IMETHODIMP nsNntpService::GetNewNews(nsINntpIncomingServer *nntpServer, const char * uri, bool getOld, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIURI cancelMessage (in string cancelURL, in string messageURI, in nsISupports aConsumer, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
NS_IMETHODIMP nsNntpService::CancelMessage(const char * cancelURL, const char * messageURI, nsISupports *aConsumer, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getListOfGroupsOnServer (in nsINntpIncomingServer nntpServer, in nsIMsgWindow aMsgWindow, in boolean getOnlyNew); */
NS_IMETHODIMP nsNntpService::GetListOfGroupsOnServer(nsINntpIncomingServer *nntpServer, nsIMsgWindow *aMsgWindow, bool getOnlyNew)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIURI fetchMessage (in nsIMsgFolder newsFolder, in nsMsgKey key, in nsIMsgWindow aMsgWindow, in nsISupports aConsumer, in nsIUrlListener aUrlListener); */
NS_IMETHODIMP nsNntpService::FetchMessage(nsIMsgFolder *newsFolder, nsMsgKey key, nsIMsgWindow *aMsgWindow, nsISupports *aConsumer, nsIUrlListener *aUrlListener, nsIURI * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void downloadNewsgroupsForOffline (in nsIMsgWindow aMsgWindow, in nsIUrlListener aListener); */
NS_IMETHODIMP nsNntpService::DownloadNewsgroupsForOffline(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void decomposeNewsURI (in string uri, out nsIMsgFolder folder, out nsMsgKey key); */
NS_IMETHODIMP nsNntpService::DecomposeNewsURI(const char * uri, nsIMsgFolder * *folder, nsMsgKey *key)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsICacheSession cacheSession; */
NS_IMETHODIMP nsNntpService::GetCacheSession(nsICacheSession * *aCacheSession)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsINntpService_h__ */
|