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

#ifndef __gen_flockIWebmailMailtoHandler_h__
#define __gen_flockIWebmailMailtoHandler_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:    flockIWebmailMailtoHandler */
#define FLOCKIWEBMAILMAILTOHANDLER_IID_STR "78b77708-fd4f-4367-8385-a3b116a1947d"

#define FLOCKIWEBMAILMAILTOHANDLER_IID \
  {0x78b77708, 0xfd4f, 0x4367, \
    { 0x83, 0x85, 0xa3, 0xb1, 0x16, 0xa1, 0x94, 0x7d }}

/**
 * This allows webmail to handle mailto links.
 */
class NS_NO_VTABLE NS_SCRIPTABLE flockIWebmailMailtoHandler : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(FLOCKIWEBMAILMAILTOHANDLER_IID)

  /**
   * Gives the "mailto:" URI spec to the primary webmail account, if there is
   * one, to load into a new tab.
   *
   * @param aMailtoURI (in) A mailto: URI string.
   * @return true if successfully handled.
   */
  /* boolean webmailMailtoURIHandler (in AString aMailtoURI); */
  NS_SCRIPTABLE NS_IMETHOD WebmailMailtoURIHandler(const nsAString & aMailtoURI, PRBool *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(flockIWebmailMailtoHandler, FLOCKIWEBMAILMAILTOHANDLER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIWEBMAILMAILTOHANDLER \
  NS_SCRIPTABLE NS_IMETHOD WebmailMailtoURIHandler(const nsAString & aMailtoURI, PRBool *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKIWEBMAILMAILTOHANDLER(_to) \
  NS_SCRIPTABLE NS_IMETHOD WebmailMailtoURIHandler(const nsAString & aMailtoURI, PRBool *_retval) { return _to WebmailMailtoURIHandler(aMailtoURI, _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_FLOCKIWEBMAILMAILTOHANDLER(_to) \
  NS_SCRIPTABLE NS_IMETHOD WebmailMailtoURIHandler(const nsAString & aMailtoURI, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->WebmailMailtoURIHandler(aMailtoURI, _retval); } 

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

/* Header file */
class _MYCLASS_ : public flockIWebmailMailtoHandler
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKIWEBMAILMAILTOHANDLER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(_MYCLASS_, flockIWebmailMailtoHandler)

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

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

/* boolean webmailMailtoURIHandler (in AString aMailtoURI); */
NS_IMETHODIMP _MYCLASS_::WebmailMailtoURIHandler(const nsAString & aMailtoURI, PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockIWebmailMailtoHandler_h__ */
