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

#ifndef __gen_nsIMsgMailSession_h__
#define __gen_nsIMsgMailSession_h__


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

#ifndef __gen_nsIFolderListener_h__
#include "nsIFolderListener.h"
#endif

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

class nsIMsgWindow; /* forward declaration */

class nsIMsgUserFeedbackListener; /* forward declaration */

class nsIMsgMailNewsUrl; /* forward declaration */


/* starting interface:    nsIMsgMailSession */
#define NS_IMSGMAILSESSION_IID_STR "577ead34-553e-4cd6-b484-76ff6662082d"

#define NS_IMSGMAILSESSION_IID \
  {0x577ead34, 0x553e, 0x4cd6, \
    { 0xb4, 0x84, 0x76, 0xff, 0x66, 0x62, 0x08, 0x2d }}

class NS_NO_VTABLE nsIMsgMailSession : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGMAILSESSION_IID)

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

  /* void AddFolderListener (in nsIFolderListener aListener, in folderListenerNotifyFlagValue aNotifyFlags); */
  NS_IMETHOD AddFolderListener(nsIFolderListener *aListener, folderListenerNotifyFlagValue aNotifyFlags) = 0;

  /* void RemoveFolderListener (in nsIFolderListener aListener); */
  NS_IMETHOD RemoveFolderListener(nsIFolderListener *aListener) = 0;

  /* void addUserFeedbackListener (in nsIMsgUserFeedbackListener aListener); */
  NS_IMETHOD AddUserFeedbackListener(nsIMsgUserFeedbackListener *aListener) = 0;

  /* void removeUserFeedbackListener (in nsIMsgUserFeedbackListener aListener); */
  NS_IMETHOD RemoveUserFeedbackListener(nsIMsgUserFeedbackListener *aListener) = 0;

  /* void alertUser (in AString aMessage, [optional] in nsIMsgMailNewsUrl aUrl); */
  NS_IMETHOD AlertUser(const nsAString & aMessage, nsIMsgMailNewsUrl *aUrl) = 0;

  /* readonly attribute nsIMsgWindow topmostMsgWindow; */
  NS_IMETHOD GetTopmostMsgWindow(nsIMsgWindow * *aTopmostMsgWindow) = 0;

  /* void AddMsgWindow (in nsIMsgWindow msgWindow); */
  NS_IMETHOD AddMsgWindow(nsIMsgWindow *msgWindow) = 0;

  /* void RemoveMsgWindow (in nsIMsgWindow msgWindow); */
  NS_IMETHOD RemoveMsgWindow(nsIMsgWindow *msgWindow) = 0;

  /* boolean IsFolderOpenInWindow (in nsIMsgFolder folder); */
  NS_IMETHOD IsFolderOpenInWindow(nsIMsgFolder *folder, bool *_retval) = 0;

  /* string ConvertMsgURIToMsgURL (in string aURI, in nsIMsgWindow aMsgWindow); */
  NS_IMETHOD ConvertMsgURIToMsgURL(const char * aURI, nsIMsgWindow *aMsgWindow, char * *_retval) = 0;

  /* nsIFile getDataFilesDir (in string dirName); */
  NS_IMETHOD GetDataFilesDir(const char * dirName, nsIFile * *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgMailSession, NS_IMSGMAILSESSION_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGMAILSESSION \
  NS_IMETHOD Shutdown(void) override; \
  NS_IMETHOD AddFolderListener(nsIFolderListener *aListener, folderListenerNotifyFlagValue aNotifyFlags) override; \
  NS_IMETHOD RemoveFolderListener(nsIFolderListener *aListener) override; \
  NS_IMETHOD AddUserFeedbackListener(nsIMsgUserFeedbackListener *aListener) override; \
  NS_IMETHOD RemoveUserFeedbackListener(nsIMsgUserFeedbackListener *aListener) override; \
  NS_IMETHOD AlertUser(const nsAString & aMessage, nsIMsgMailNewsUrl *aUrl) override; \
  NS_IMETHOD GetTopmostMsgWindow(nsIMsgWindow * *aTopmostMsgWindow) override; \
  NS_IMETHOD AddMsgWindow(nsIMsgWindow *msgWindow) override; \
  NS_IMETHOD RemoveMsgWindow(nsIMsgWindow *msgWindow) override; \
  NS_IMETHOD IsFolderOpenInWindow(nsIMsgFolder *folder, bool *_retval) override; \
  NS_IMETHOD ConvertMsgURIToMsgURL(const char * aURI, nsIMsgWindow *aMsgWindow, char * *_retval) override; \
  NS_IMETHOD GetDataFilesDir(const char * dirName, nsIFile * *_retval) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIMSGMAILSESSION \
  NS_METHOD Shutdown(void); \
  NS_METHOD AddFolderListener(nsIFolderListener *aListener, folderListenerNotifyFlagValue aNotifyFlags); \
  NS_METHOD RemoveFolderListener(nsIFolderListener *aListener); \
  NS_METHOD AddUserFeedbackListener(nsIMsgUserFeedbackListener *aListener); \
  NS_METHOD RemoveUserFeedbackListener(nsIMsgUserFeedbackListener *aListener); \
  NS_METHOD AlertUser(const nsAString & aMessage, nsIMsgMailNewsUrl *aUrl); \
  NS_METHOD GetTopmostMsgWindow(nsIMsgWindow * *aTopmostMsgWindow); \
  NS_METHOD AddMsgWindow(nsIMsgWindow *msgWindow); \
  NS_METHOD RemoveMsgWindow(nsIMsgWindow *msgWindow); \
  NS_METHOD IsFolderOpenInWindow(nsIMsgFolder *folder, bool *_retval); \
  NS_METHOD ConvertMsgURIToMsgURL(const char * aURI, nsIMsgWindow *aMsgWindow, char * *_retval); \
  NS_METHOD GetDataFilesDir(const char * dirName, nsIFile * *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGMAILSESSION(_to) \
  NS_IMETHOD Shutdown(void) override { return _to Shutdown(); } \
  NS_IMETHOD AddFolderListener(nsIFolderListener *aListener, folderListenerNotifyFlagValue aNotifyFlags) override { return _to AddFolderListener(aListener, aNotifyFlags); } \
  NS_IMETHOD RemoveFolderListener(nsIFolderListener *aListener) override { return _to RemoveFolderListener(aListener); } \
  NS_IMETHOD AddUserFeedbackListener(nsIMsgUserFeedbackListener *aListener) override { return _to AddUserFeedbackListener(aListener); } \
  NS_IMETHOD RemoveUserFeedbackListener(nsIMsgUserFeedbackListener *aListener) override { return _to RemoveUserFeedbackListener(aListener); } \
  NS_IMETHOD AlertUser(const nsAString & aMessage, nsIMsgMailNewsUrl *aUrl) override { return _to AlertUser(aMessage, aUrl); } \
  NS_IMETHOD GetTopmostMsgWindow(nsIMsgWindow * *aTopmostMsgWindow) override { return _to GetTopmostMsgWindow(aTopmostMsgWindow); } \
  NS_IMETHOD AddMsgWindow(nsIMsgWindow *msgWindow) override { return _to AddMsgWindow(msgWindow); } \
  NS_IMETHOD RemoveMsgWindow(nsIMsgWindow *msgWindow) override { return _to RemoveMsgWindow(msgWindow); } \
  NS_IMETHOD IsFolderOpenInWindow(nsIMsgFolder *folder, bool *_retval) override { return _to IsFolderOpenInWindow(folder, _retval); } \
  NS_IMETHOD ConvertMsgURIToMsgURL(const char * aURI, nsIMsgWindow *aMsgWindow, char * *_retval) override { return _to ConvertMsgURIToMsgURL(aURI, aMsgWindow, _retval); } \
  NS_IMETHOD GetDataFilesDir(const char * dirName, nsIFile * *_retval) override { return _to GetDataFilesDir(dirName, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGMAILSESSION(_to) \
  NS_IMETHOD Shutdown(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Shutdown(); } \
  NS_IMETHOD AddFolderListener(nsIFolderListener *aListener, folderListenerNotifyFlagValue aNotifyFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddFolderListener(aListener, aNotifyFlags); } \
  NS_IMETHOD RemoveFolderListener(nsIFolderListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveFolderListener(aListener); } \
  NS_IMETHOD AddUserFeedbackListener(nsIMsgUserFeedbackListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddUserFeedbackListener(aListener); } \
  NS_IMETHOD RemoveUserFeedbackListener(nsIMsgUserFeedbackListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveUserFeedbackListener(aListener); } \
  NS_IMETHOD AlertUser(const nsAString & aMessage, nsIMsgMailNewsUrl *aUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AlertUser(aMessage, aUrl); } \
  NS_IMETHOD GetTopmostMsgWindow(nsIMsgWindow * *aTopmostMsgWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTopmostMsgWindow(aTopmostMsgWindow); } \
  NS_IMETHOD AddMsgWindow(nsIMsgWindow *msgWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddMsgWindow(msgWindow); } \
  NS_IMETHOD RemoveMsgWindow(nsIMsgWindow *msgWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveMsgWindow(msgWindow); } \
  NS_IMETHOD IsFolderOpenInWindow(nsIMsgFolder *folder, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsFolderOpenInWindow(folder, _retval); } \
  NS_IMETHOD ConvertMsgURIToMsgURL(const char * aURI, nsIMsgWindow *aMsgWindow, char * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ConvertMsgURIToMsgURL(aURI, aMsgWindow, _retval); } \
  NS_IMETHOD GetDataFilesDir(const char * dirName, nsIFile * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDataFilesDir(dirName, _retval); } 

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

/* Header file */
class nsMsgMailSession : public nsIMsgMailSession
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMSGMAILSESSION

  nsMsgMailSession();

private:
  ~nsMsgMailSession();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsMsgMailSession, nsIMsgMailSession)

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

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

/* void Shutdown (); */
NS_IMETHODIMP nsMsgMailSession::Shutdown()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void AddFolderListener (in nsIFolderListener aListener, in folderListenerNotifyFlagValue aNotifyFlags); */
NS_IMETHODIMP nsMsgMailSession::AddFolderListener(nsIFolderListener *aListener, folderListenerNotifyFlagValue aNotifyFlags)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void RemoveFolderListener (in nsIFolderListener aListener); */
NS_IMETHODIMP nsMsgMailSession::RemoveFolderListener(nsIFolderListener *aListener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void addUserFeedbackListener (in nsIMsgUserFeedbackListener aListener); */
NS_IMETHODIMP nsMsgMailSession::AddUserFeedbackListener(nsIMsgUserFeedbackListener *aListener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeUserFeedbackListener (in nsIMsgUserFeedbackListener aListener); */
NS_IMETHODIMP nsMsgMailSession::RemoveUserFeedbackListener(nsIMsgUserFeedbackListener *aListener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void alertUser (in AString aMessage, [optional] in nsIMsgMailNewsUrl aUrl); */
NS_IMETHODIMP nsMsgMailSession::AlertUser(const nsAString & aMessage, nsIMsgMailNewsUrl *aUrl)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIMsgWindow topmostMsgWindow; */
NS_IMETHODIMP nsMsgMailSession::GetTopmostMsgWindow(nsIMsgWindow * *aTopmostMsgWindow)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void AddMsgWindow (in nsIMsgWindow msgWindow); */
NS_IMETHODIMP nsMsgMailSession::AddMsgWindow(nsIMsgWindow *msgWindow)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void RemoveMsgWindow (in nsIMsgWindow msgWindow); */
NS_IMETHODIMP nsMsgMailSession::RemoveMsgWindow(nsIMsgWindow *msgWindow)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean IsFolderOpenInWindow (in nsIMsgFolder folder); */
NS_IMETHODIMP nsMsgMailSession::IsFolderOpenInWindow(nsIMsgFolder *folder, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* string ConvertMsgURIToMsgURL (in string aURI, in nsIMsgWindow aMsgWindow); */
NS_IMETHODIMP nsMsgMailSession::ConvertMsgURIToMsgURL(const char * aURI, nsIMsgWindow *aMsgWindow, char * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIFile getDataFilesDir (in string dirName); */
NS_IMETHODIMP nsMsgMailSession::GetDataFilesDir(const char * dirName, nsIFile * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIMsgMailSession_h__ */
