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

#ifndef __gen_nsIMsgFolderCompactor_h__
#define __gen_nsIMsgFolderCompactor_h__


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

#ifndef __gen_nsISupportsArray_h__
#include "nsISupportsArray.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIMsgFolder; /* forward declaration */

class nsIMsgDatabase; /* forward declaration */

class nsIFileSpec; /* forward declaration */

class nsIMsgWindow; /* forward declaration */


/* starting interface:    nsIMsgFolderCompactor */
#define NS_IMSGFOLDERCOMPACTOR_IID_STR "2af7d7a2-e5b6-11d4-a5b7-0060b0fc04b7"

#define NS_IMSGFOLDERCOMPACTOR_IID \
  {0x2af7d7a2, 0xe5b6, 0x11d4, \
    { 0xa5, 0xb7, 0x00, 0x60, 0xb0, 0xfc, 0x04, 0xb7 }}

class NS_NO_VTABLE nsIMsgFolderCompactor : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IMSGFOLDERCOMPACTOR_IID)

  /* void Init (in nsIMsgFolder folder, in string baseMsgUri, in nsIMsgDatabase db, in nsIFileSpec pathSpec, in nsIMsgWindow aMsgWindow); */
  NS_IMETHOD Init(nsIMsgFolder *folder, const char *baseMsgUri, nsIMsgDatabase *db, nsIFileSpec *pathSpec, nsIMsgWindow *aMsgWindow) = 0;

  /* void startCompactingAll (in nsISupportsArray aArrayOfFoldersToCompact, in nsIMsgWindow aMsgWindow, in boolean compactOfflineAlso, in nsISupportsArray aOfflineFolderArray); */
  NS_IMETHOD StartCompactingAll(nsISupportsArray *aArrayOfFoldersToCompact, nsIMsgWindow *aMsgWindow, PRBool compactOfflineAlso, nsISupportsArray *aOfflineFolderArray) = 0;

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

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

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGFOLDERCOMPACTOR \
  NS_IMETHOD Init(nsIMsgFolder *folder, const char *baseMsgUri, nsIMsgDatabase *db, nsIFileSpec *pathSpec, nsIMsgWindow *aMsgWindow); \
  NS_IMETHOD StartCompactingAll(nsISupportsArray *aArrayOfFoldersToCompact, nsIMsgWindow *aMsgWindow, PRBool compactOfflineAlso, nsISupportsArray *aOfflineFolderArray); \
  NS_IMETHOD StartCompacting(void); \
  NS_IMETHOD FinishCompact(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGFOLDERCOMPACTOR(_to) \
  NS_IMETHOD Init(nsIMsgFolder *folder, const char *baseMsgUri, nsIMsgDatabase *db, nsIFileSpec *pathSpec, nsIMsgWindow *aMsgWindow) { return _to Init(folder, baseMsgUri, db, pathSpec, aMsgWindow); } \
  NS_IMETHOD StartCompactingAll(nsISupportsArray *aArrayOfFoldersToCompact, nsIMsgWindow *aMsgWindow, PRBool compactOfflineAlso, nsISupportsArray *aOfflineFolderArray) { return _to StartCompactingAll(aArrayOfFoldersToCompact, aMsgWindow, compactOfflineAlso, aOfflineFolderArray); } \
  NS_IMETHOD StartCompacting(void) { return _to StartCompacting(); } \
  NS_IMETHOD FinishCompact(void) { return _to FinishCompact(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGFOLDERCOMPACTOR(_to) \
  NS_IMETHOD Init(nsIMsgFolder *folder, const char *baseMsgUri, nsIMsgDatabase *db, nsIFileSpec *pathSpec, nsIMsgWindow *aMsgWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(folder, baseMsgUri, db, pathSpec, aMsgWindow); } \
  NS_IMETHOD StartCompactingAll(nsISupportsArray *aArrayOfFoldersToCompact, nsIMsgWindow *aMsgWindow, PRBool compactOfflineAlso, nsISupportsArray *aOfflineFolderArray) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartCompactingAll(aArrayOfFoldersToCompact, aMsgWindow, compactOfflineAlso, aOfflineFolderArray); } \
  NS_IMETHOD StartCompacting(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartCompacting(); } \
  NS_IMETHOD FinishCompact(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->FinishCompact(); } 

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

/* Header file */
class nsMsgFolderCompactor : public nsIMsgFolderCompactor
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMSGFOLDERCOMPACTOR

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgFolderCompactor, nsIMsgFolderCompactor)

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

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

/* void Init (in nsIMsgFolder folder, in string baseMsgUri, in nsIMsgDatabase db, in nsIFileSpec pathSpec, in nsIMsgWindow aMsgWindow); */
NS_IMETHODIMP nsMsgFolderCompactor::Init(nsIMsgFolder *folder, const char *baseMsgUri, nsIMsgDatabase *db, nsIFileSpec *pathSpec, nsIMsgWindow *aMsgWindow)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void startCompactingAll (in nsISupportsArray aArrayOfFoldersToCompact, in nsIMsgWindow aMsgWindow, in boolean compactOfflineAlso, in nsISupportsArray aOfflineFolderArray); */
NS_IMETHODIMP nsMsgFolderCompactor::StartCompactingAll(nsISupportsArray *aArrayOfFoldersToCompact, nsIMsgWindow *aMsgWindow, PRBool compactOfflineAlso, nsISupportsArray *aOfflineFolderArray)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void StartCompacting (); */
NS_IMETHODIMP nsMsgFolderCompactor::StartCompacting()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void FinishCompact (); */
NS_IMETHODIMP nsMsgFolderCompactor::FinishCompact()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIMsgFolderCompactor_h__ */
