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

#ifndef __gen_nsINNTPNewsgroupList_h__
#define __gen_nsINNTPNewsgroupList_h__

#include "nsISupports.h"
#include "nsINNTPHost.h"
#include "nsINNTPNewsgroup.h"

class nsINNTPHost; /* forward declaration */

class nsINNTPNewsgroup; /* forward declaration */

class nsINntpUrl; /* forward declaration */

class nsIMsgWindow; /* forward declaration */


/* starting interface:    nsINNTPNewsgroupList */
#define NS_INNTPNEWSGROUPLIST_IID_STR "e628ed19-9452-11d2-b7ea-00805f05ffa5"

#define NS_INNTPNEWSGROUPLIST_IID \
  {0xe628ed19, 0x9452, 0x11d2, \
    { 0xb7, 0xea, 0x00, 0x80, 0x5f, 0x05, 0xff, 0xa5 }}

class NS_NO_VTABLE nsINNTPNewsgroupList : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_INNTPNEWSGROUPLIST_IID)

  /* long GetRangeOfArtsToDownload (in nsIMsgWindow aMsgWindow, in long first_message, in long last_message, in long maxextra, out long real_first_message, out long real_last_message); */
  NS_IMETHOD GetRangeOfArtsToDownload(nsIMsgWindow *aMsgWindow, PRInt32 first_message, PRInt32 last_message, PRInt32 maxextra, PRInt32 *real_first_message, PRInt32 *real_last_message, PRInt32 *_retval) = 0;

  /* void AddToKnownArticles (in long first_message, in long last_message); */
  NS_IMETHOD AddToKnownArticles(PRInt32 first_message, PRInt32 last_message) = 0;

  /* void InitXOVER (in long first_message, in long last_message); */
  NS_IMETHOD InitXOVER(PRInt32 first_message, PRInt32 last_message) = 0;

  /* void ProcessXOVERLINE (in string line, out unsigned long status); */
  NS_IMETHOD ProcessXOVERLINE(const char *line, PRUint32 *status) = 0;

  /* void ProcessNonXOVER (in string line); */
  NS_IMETHOD ProcessNonXOVER(const char *line) = 0;

  /* void ResetXOVER (); */
  NS_IMETHOD ResetXOVER(void) = 0;

  /* void FinishXOVERLINE (in long status, out long newstatus); */
  NS_IMETHOD FinishXOVERLINE(PRInt32 status, PRInt32 *newstatus) = 0;

  /* void ClearXOVERState (); */
  NS_IMETHOD ClearXOVERState(void) = 0;

  /* string GetGroupName (); */
  NS_IMETHOD GetGroupName(char **_retval) = 0;

  /* void Initialize (in nsINNTPHost host, in nsINntpUrl runningURL, in nsINNTPNewsgroup newsgroup, in string username, in string hostname, in string groupname); */
  NS_IMETHOD Initialize(nsINNTPHost *host, nsINntpUrl *runningURL, nsINNTPNewsgroup *newsgroup, const char *username, const char *hostname, const char *groupname) = 0;

  /* attribute boolean getOldMessages; */
  NS_IMETHOD GetGetOldMessages(PRBool *aGetOldMessages) = 0;
  NS_IMETHOD SetGetOldMessages(PRBool aGetOldMessages) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSINNTPNEWSGROUPLIST \
  NS_IMETHOD GetRangeOfArtsToDownload(nsIMsgWindow *aMsgWindow, PRInt32 first_message, PRInt32 last_message, PRInt32 maxextra, PRInt32 *real_first_message, PRInt32 *real_last_message, PRInt32 *_retval); \
  NS_IMETHOD AddToKnownArticles(PRInt32 first_message, PRInt32 last_message); \
  NS_IMETHOD InitXOVER(PRInt32 first_message, PRInt32 last_message); \
  NS_IMETHOD ProcessXOVERLINE(const char *line, PRUint32 *status); \
  NS_IMETHOD ProcessNonXOVER(const char *line); \
  NS_IMETHOD ResetXOVER(void); \
  NS_IMETHOD FinishXOVERLINE(PRInt32 status, PRInt32 *newstatus); \
  NS_IMETHOD ClearXOVERState(void); \
  NS_IMETHOD GetGroupName(char **_retval); \
  NS_IMETHOD Initialize(nsINNTPHost *host, nsINntpUrl *runningURL, nsINNTPNewsgroup *newsgroup, const char *username, const char *hostname, const char *groupname); \
  NS_IMETHOD GetGetOldMessages(PRBool *aGetOldMessages); \
  NS_IMETHOD SetGetOldMessages(PRBool aGetOldMessages); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSINNTPNEWSGROUPLIST(_to) \
  NS_IMETHOD GetRangeOfArtsToDownload(nsIMsgWindow *aMsgWindow, PRInt32 first_message, PRInt32 last_message, PRInt32 maxextra, PRInt32 *real_first_message, PRInt32 *real_last_message, PRInt32 *_retval) { return _to ## GetRangeOfArtsToDownload(aMsgWindow, first_message, last_message, maxextra, real_first_message, real_last_message, _retval); } \
  NS_IMETHOD AddToKnownArticles(PRInt32 first_message, PRInt32 last_message) { return _to ## AddToKnownArticles(first_message, last_message); } \
  NS_IMETHOD InitXOVER(PRInt32 first_message, PRInt32 last_message) { return _to ## InitXOVER(first_message, last_message); } \
  NS_IMETHOD ProcessXOVERLINE(const char *line, PRUint32 *status) { return _to ## ProcessXOVERLINE(line, status); } \
  NS_IMETHOD ProcessNonXOVER(const char *line) { return _to ## ProcessNonXOVER(line); } \
  NS_IMETHOD ResetXOVER(void) { return _to ## ResetXOVER(); } \
  NS_IMETHOD FinishXOVERLINE(PRInt32 status, PRInt32 *newstatus) { return _to ## FinishXOVERLINE(status, newstatus); } \
  NS_IMETHOD ClearXOVERState(void) { return _to ## ClearXOVERState(); } \
  NS_IMETHOD GetGroupName(char **_retval) { return _to ## GetGroupName(_retval); } \
  NS_IMETHOD Initialize(nsINNTPHost *host, nsINntpUrl *runningURL, nsINNTPNewsgroup *newsgroup, const char *username, const char *hostname, const char *groupname) { return _to ## Initialize(host, runningURL, newsgroup, username, hostname, groupname); } \
  NS_IMETHOD GetGetOldMessages(PRBool *aGetOldMessages) { return _to ## GetGetOldMessages(aGetOldMessages); } \
  NS_IMETHOD SetGetOldMessages(PRBool aGetOldMessages) { return _to ## SetGetOldMessages(aGetOldMessages); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsNNTPNewsgroupList : public nsINNTPNewsgroupList
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSINNTPNEWSGROUPLIST

  nsNNTPNewsgroupList();
  virtual ~nsNNTPNewsgroupList();
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsNNTPNewsgroupList, nsINNTPNewsgroupList)

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

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

/* long GetRangeOfArtsToDownload (in nsIMsgWindow aMsgWindow, in long first_message, in long last_message, in long maxextra, out long real_first_message, out long real_last_message); */
NS_IMETHODIMP nsNNTPNewsgroupList::GetRangeOfArtsToDownload(nsIMsgWindow *aMsgWindow, PRInt32 first_message, PRInt32 last_message, PRInt32 maxextra, PRInt32 *real_first_message, PRInt32 *real_last_message, PRInt32 *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void AddToKnownArticles (in long first_message, in long last_message); */
NS_IMETHODIMP nsNNTPNewsgroupList::AddToKnownArticles(PRInt32 first_message, PRInt32 last_message)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void InitXOVER (in long first_message, in long last_message); */
NS_IMETHODIMP nsNNTPNewsgroupList::InitXOVER(PRInt32 first_message, PRInt32 last_message)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void ProcessXOVERLINE (in string line, out unsigned long status); */
NS_IMETHODIMP nsNNTPNewsgroupList::ProcessXOVERLINE(const char *line, PRUint32 *status)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void ProcessNonXOVER (in string line); */
NS_IMETHODIMP nsNNTPNewsgroupList::ProcessNonXOVER(const char *line)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void ResetXOVER (); */
NS_IMETHODIMP nsNNTPNewsgroupList::ResetXOVER()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void FinishXOVERLINE (in long status, out long newstatus); */
NS_IMETHODIMP nsNNTPNewsgroupList::FinishXOVERLINE(PRInt32 status, PRInt32 *newstatus)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void ClearXOVERState (); */
NS_IMETHODIMP nsNNTPNewsgroupList::ClearXOVERState()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* string GetGroupName (); */
NS_IMETHODIMP nsNNTPNewsgroupList::GetGroupName(char **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void Initialize (in nsINNTPHost host, in nsINntpUrl runningURL, in nsINNTPNewsgroup newsgroup, in string username, in string hostname, in string groupname); */
NS_IMETHODIMP nsNNTPNewsgroupList::Initialize(nsINNTPHost *host, nsINntpUrl *runningURL, nsINNTPNewsgroup *newsgroup, const char *username, const char *hostname, const char *groupname)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean getOldMessages; */
NS_IMETHODIMP nsNNTPNewsgroupList::GetGetOldMessages(PRBool *aGetOldMessages)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsNNTPNewsgroupList::SetGetOldMessages(PRBool aGetOldMessages)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsINNTPNewsgroupList_h__ */
