/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsINntpService.idl
 */

#ifndef __gen_nsINntpService_h__
#define __gen_nsINntpService_h__

#include "nsISupports.h"
#include "nsIUrlListener.h"
#include "nsINntpIncomingServer.h"

class nsIURI; /* forward declaration */

class nsIStreamListener; /* forward declaration */

class nsISupportsArray; /* forward declaration */

class nsIFileSpec; /* forward declaration */

class nsIMsgWindow; /* forward declaration */


/* starting interface:    nsINntpService */
#define NS_INNTPSERVICE_IID_STR "4c9f90e0-e19b-11d2-806e-006008128c4e"

#define NS_INNTPSERVICE_IID \
  {0x4c9f90e0, 0xe19b, 0x11d2, \
    { 0x80, 0x6e, 0x00, 0x60, 0x08, 0x12, 0x8c, 0x4e }}

class NS_NO_VTABLE nsINntpService : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_INNTPSERVICE_IID)

  /* string convertNewsgroupsString (in string newsgroupsStr); */
  NS_IMETHOD ConvertNewsgroupsString(const char *newsgroupsStr, char **_retval) = 0;

  /* nsIURI postMessage (in nsIFileSpec fileToPost, in string newsgroupNames, in string newshostName, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
  NS_IMETHOD PostMessage(nsIFileSpec *fileToPost, const char *newsgroupNames, const char *newshostName, 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, PRBool getOld, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) = 0;

  /* nsIURI cancelMessages (in string hostname, in string newsgroupname, in nsISupportsArray messages, in nsISupports aConsumer, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
  NS_IMETHOD CancelMessages(const char *hostname, const char *newsgroupname, nsISupportsArray *messages, nsISupports *aConsumer, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) = 0;

  /* void buildSubscribeDatasource (in nsINntpIncomingServer nntpServer, in nsIMsgWindow aMsgWindow); */
  NS_IMETHOD BuildSubscribeDatasource(nsINntpIncomingServer *nntpServer, nsIMsgWindow *aMsgWindow) = 0;

  /* void updateCounts (in nsINntpIncomingServer nntpServer, in nsIMsgWindow aMsgWindow); */
  NS_IMETHOD UpdateCounts(nsINntpIncomingServer *nntpServer, nsIMsgWindow *aMsgWindow) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSINNTPSERVICE \
  NS_IMETHOD ConvertNewsgroupsString(const char *newsgroupsStr, char **_retval); \
  NS_IMETHOD PostMessage(nsIFileSpec *fileToPost, const char *newsgroupNames, const char *newshostName, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval); \
  NS_IMETHOD GetNewNews(nsINntpIncomingServer *nntpServer, const char *uri, PRBool getOld, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval); \
  NS_IMETHOD CancelMessages(const char *hostname, const char *newsgroupname, nsISupportsArray *messages, nsISupports *aConsumer, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval); \
  NS_IMETHOD BuildSubscribeDatasource(nsINntpIncomingServer *nntpServer, nsIMsgWindow *aMsgWindow); \
  NS_IMETHOD UpdateCounts(nsINntpIncomingServer *nntpServer, nsIMsgWindow *aMsgWindow); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSINNTPSERVICE(_to) \
  NS_IMETHOD ConvertNewsgroupsString(const char *newsgroupsStr, char **_retval) { return _to ## ConvertNewsgroupsString(newsgroupsStr, _retval); } \
  NS_IMETHOD PostMessage(nsIFileSpec *fileToPost, const char *newsgroupNames, const char *newshostName, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) { return _to ## PostMessage(fileToPost, newsgroupNames, newshostName, aUrlListener, aMsgWindow, _retval); } \
  NS_IMETHOD GetNewNews(nsINntpIncomingServer *nntpServer, const char *uri, PRBool getOld, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) { return _to ## GetNewNews(nntpServer, uri, getOld, aUrlListener, aMsgWindow, _retval); } \
  NS_IMETHOD CancelMessages(const char *hostname, const char *newsgroupname, nsISupportsArray *messages, nsISupports *aConsumer, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval) { return _to ## CancelMessages(hostname, newsgroupname, messages, aConsumer, aUrlListener, aMsgWindow, _retval); } \
  NS_IMETHOD BuildSubscribeDatasource(nsINntpIncomingServer *nntpServer, nsIMsgWindow *aMsgWindow) { return _to ## BuildSubscribeDatasource(nntpServer, aMsgWindow); } \
  NS_IMETHOD UpdateCounts(nsINntpIncomingServer *nntpServer, nsIMsgWindow *aMsgWindow) { return _to ## UpdateCounts(nntpServer, aMsgWindow); } 

#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();
  virtual ~nsNntpService();
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsNntpService, nsINntpService)

nsNntpService::nsNntpService()
{
  NS_INIT_ISUPPORTS();
  /* member initializers and constructor code */
}

nsNntpService::~nsNntpService()
{
  /* destructor code */
}

/* string convertNewsgroupsString (in string newsgroupsStr); */
NS_IMETHODIMP nsNntpService::ConvertNewsgroupsString(const char *newsgroupsStr, char **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIURI postMessage (in nsIFileSpec fileToPost, in string newsgroupNames, in string newshostName, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
NS_IMETHODIMP nsNntpService::PostMessage(nsIFileSpec *fileToPost, const char *newsgroupNames, const char *newshostName, 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, PRBool getOld, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIURI cancelMessages (in string hostname, in string newsgroupname, in nsISupportsArray messages, in nsISupports aConsumer, in nsIUrlListener aUrlListener, in nsIMsgWindow aMsgWindow); */
NS_IMETHODIMP nsNntpService::CancelMessages(const char *hostname, const char *newsgroupname, nsISupportsArray *messages, nsISupports *aConsumer, nsIUrlListener *aUrlListener, nsIMsgWindow *aMsgWindow, nsIURI **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void buildSubscribeDatasource (in nsINntpIncomingServer nntpServer, in nsIMsgWindow aMsgWindow); */
NS_IMETHODIMP nsNntpService::BuildSubscribeDatasource(nsINntpIncomingServer *nntpServer, nsIMsgWindow *aMsgWindow)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void updateCounts (in nsINntpIncomingServer nntpServer, in nsIMsgWindow aMsgWindow); */
NS_IMETHODIMP nsNntpService::UpdateCounts(nsINntpIncomingServer *nntpServer, nsIMsgWindow *aMsgWindow)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsINntpService_h__ */
