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

#ifndef __gen_nsINNTPProtocol_h__
#define __gen_nsINNTPProtocol_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.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 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; */
  NS_IMETHOD GetIsBusy(bool *aIsBusy) = 0;
  NS_IMETHOD SetIsBusy(bool aIsBusy) = 0;

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

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

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

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

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

  /* void CloseConnection (); */
  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 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(); } 

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

/* Header file */
class nsNNTPProtocol : public nsINNTPProtocol
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSINNTPPROTOCOL

  nsNNTPProtocol();

private:
  ~nsNNTPProtocol();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsNNTPProtocol, nsINNTPProtocol)

nsNNTPProtocol::nsNNTPProtocol()
{
  /* member initializers and constructor code */
}

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

/* attribute boolean isBusy; */
NS_IMETHODIMP nsNNTPProtocol::GetIsBusy(bool *aIsBusy)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsNNTPProtocol::SetIsBusy(bool aIsBusy)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void LoadNewsUrl (in nsIURI aUri, in nsISupports aConsumer); */
NS_IMETHODIMP nsNNTPProtocol::LoadNewsUrl(nsIURI *aUri, nsISupports *aConsumer)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void Initialize (in nsIURI aURL, in nsIMsgWindow aMsgWindow); */
NS_IMETHODIMP nsNNTPProtocol::Initialize(nsIURI *aURL, nsIMsgWindow *aMsgWindow)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void GetLastActiveTimeStamp (out PRTime aTimeStamp); */
NS_IMETHODIMP nsNNTPProtocol::GetLastActiveTimeStamp(PRTime *aTimeStamp)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean isCachedConnection; */
NS_IMETHODIMP nsNNTPProtocol::GetIsCachedConnection(bool *aIsCachedConnection)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsNNTPProtocol::SetIsCachedConnection(bool aIsCachedConnection)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIMsgFolder currentFolder; */
NS_IMETHODIMP nsNNTPProtocol::GetCurrentFolder(nsIMsgFolder * *aCurrentFolder)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void CloseConnection (); */
NS_IMETHODIMP nsNNTPProtocol::CloseConnection()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsINNTPProtocol_h__ */
