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

#ifndef __gen_nsIPop3URL_h__
#define __gen_nsIPop3URL_h__


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

#ifndef __gen_nsIPop3Sink_h__
#include "nsIPop3Sink.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    nsIPop3URL */
#define NS_IPOP3URL_IID_STR "5fb87ae7-a3a0-440a-8b49-6bca42fb7ff2"

#define NS_IPOP3URL_IID \
  {0x5fb87ae7, 0xa3a0, 0x440a, \
    { 0x8b, 0x49, 0x6b, 0xca, 0x42, 0xfb, 0x7f, 0xf2 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIPop3URL : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPOP3URL_IID)

  /* attribute nsIPop3Sink pop3Sink; */
  NS_SCRIPTABLE NS_IMETHOD GetPop3Sink(nsIPop3Sink * *aPop3Sink) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetPop3Sink(nsIPop3Sink *aPop3Sink) = 0;

  /* attribute string messageUri; */
  NS_SCRIPTABLE NS_IMETHOD GetMessageUri(char * *aMessageUri) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetMessageUri(const char * aMessageUri) = 0;

  enum { DEFAULT_POP3_PORT = 110 };

  enum { DEFAULT_POP3S_PORT = 995 };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIPop3URL, NS_IPOP3URL_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPOP3URL \
  NS_SCRIPTABLE NS_IMETHOD GetPop3Sink(nsIPop3Sink * *aPop3Sink); \
  NS_SCRIPTABLE NS_IMETHOD SetPop3Sink(nsIPop3Sink *aPop3Sink); \
  NS_SCRIPTABLE NS_IMETHOD GetMessageUri(char * *aMessageUri); \
  NS_SCRIPTABLE NS_IMETHOD SetMessageUri(const char * aMessageUri); \

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPOP3URL(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetPop3Sink(nsIPop3Sink * *aPop3Sink) { return _to GetPop3Sink(aPop3Sink); } \
  NS_SCRIPTABLE NS_IMETHOD SetPop3Sink(nsIPop3Sink *aPop3Sink) { return _to SetPop3Sink(aPop3Sink); } \
  NS_SCRIPTABLE NS_IMETHOD GetMessageUri(char * *aMessageUri) { return _to GetMessageUri(aMessageUri); } \
  NS_SCRIPTABLE NS_IMETHOD SetMessageUri(const char * aMessageUri) { return _to SetMessageUri(aMessageUri); } \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPOP3URL(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetPop3Sink(nsIPop3Sink * *aPop3Sink) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPop3Sink(aPop3Sink); } \
  NS_SCRIPTABLE NS_IMETHOD SetPop3Sink(nsIPop3Sink *aPop3Sink) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPop3Sink(aPop3Sink); } \
  NS_SCRIPTABLE NS_IMETHOD GetMessageUri(char * *aMessageUri) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageUri(aMessageUri); } \
  NS_SCRIPTABLE NS_IMETHOD SetMessageUri(const char * aMessageUri) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMessageUri(aMessageUri); } \

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

/* Header file */
class nsPop3URL : public nsIPop3URL
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPOP3URL

  nsPop3URL();

private:
  ~nsPop3URL();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsPop3URL, nsIPop3URL)

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

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

/* attribute nsIPop3Sink pop3Sink; */
NS_IMETHODIMP nsPop3URL::GetPop3Sink(nsIPop3Sink * *aPop3Sink)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsPop3URL::SetPop3Sink(nsIPop3Sink *aPop3Sink)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute string messageUri; */
NS_IMETHODIMP nsPop3URL::GetMessageUri(char * *aMessageUri)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsPop3URL::SetMessageUri(const char * aMessageUri)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIPop3URL_h__ */
