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

#ifndef __gen_nsIImapProtocolSink_h__
#define __gen_nsIImapProtocolSink_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

/* starting interface:    nsIImapProtocolSink */
#define NS_IIMAPPROTOCOLSINK_IID_STR "72187a30-dad7-4800-b989-adfcbdc9a650"

#define NS_IIMAPPROTOCOLSINK_IID \
  {0x72187a30, 0xdad7, 0x4800, \
    { 0xb9, 0x89, 0xad, 0xfc, 0xbd, 0xc9, 0xa6, 0x50 }}

/**
 * Helper interface that contains operations MUST be proxied
 * over UI thread.
 */
class NS_NO_VTABLE NS_SCRIPTABLE nsIImapProtocolSink : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIMAPPROTOCOLSINK_IID)

  /**
   * Does general cleanup for the imap protocol object.
   */
  /* void closeStreams (); */
  NS_SCRIPTABLE NS_IMETHOD CloseStreams(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIImapProtocolSink, NS_IIMAPPROTOCOLSINK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIIMAPPROTOCOLSINK \
  NS_SCRIPTABLE NS_IMETHOD CloseStreams(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIIMAPPROTOCOLSINK(_to) \
  NS_SCRIPTABLE NS_IMETHOD CloseStreams(void) { return _to CloseStreams(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIIMAPPROTOCOLSINK(_to) \
  NS_SCRIPTABLE NS_IMETHOD CloseStreams(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseStreams(); } 

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

/* Header file */
class nsImapProtocolSink : public nsIImapProtocolSink
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIIMAPPROTOCOLSINK

  nsImapProtocolSink();

private:
  ~nsImapProtocolSink();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsImapProtocolSink, nsIImapProtocolSink)

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

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

/* void closeStreams (); */
NS_IMETHODIMP nsImapProtocolSink::CloseStreams()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIImapProtocolSink_h__ */
