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

#ifndef __gen_flockIFaviconDataService_h__
#define __gen_flockIFaviconDataService_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
class nsIURI; /* forward declaration */


/* starting interface:    flockIFaviconFetchListener */
#define FLOCKIFAVICONFETCHLISTENER_IID_STR "8fc2e753-3ac7-4f49-a631-baa731fe52c7"

#define FLOCKIFAVICONFETCHLISTENER_IID \
  {0x8fc2e753, 0x3ac7, 0x4f49, \
    { 0xa6, 0x31, 0xba, 0xa7, 0x31, 0xfe, 0x52, 0xc7 }}

class NS_NO_VTABLE NS_SCRIPTABLE flockIFaviconFetchListener : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(FLOCKIFAVICONFETCHLISTENER_IID)

  /* void onFaviconFetchSuccess (in nsIURI aFaviconURI, in AString aDataURL, in AString aTopic); */
  NS_SCRIPTABLE NS_IMETHOD OnFaviconFetchSuccess(nsIURI *aFaviconURI, const nsAString & aDataURL, const nsAString & aTopic) = 0;

  /* void onFaviconFetchError (in nsIURI aFaviconURI, in AString aTopic); */
  NS_SCRIPTABLE NS_IMETHOD OnFaviconFetchError(nsIURI *aFaviconURI, const nsAString & aTopic) = 0;

  /* void onFaviconFetchStatusError (in nsIURI aFaviconURI, in unsigned long aResponseStatus, in AString aTopic); */
  NS_SCRIPTABLE NS_IMETHOD OnFaviconFetchStatusError(nsIURI *aFaviconURI, PRUint32 aResponseStatus, const nsAString & aTopic) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(flockIFaviconFetchListener, FLOCKIFAVICONFETCHLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIFAVICONFETCHLISTENER \
  NS_SCRIPTABLE NS_IMETHOD OnFaviconFetchSuccess(nsIURI *aFaviconURI, const nsAString & aDataURL, const nsAString & aTopic); \
  NS_SCRIPTABLE NS_IMETHOD OnFaviconFetchError(nsIURI *aFaviconURI, const nsAString & aTopic); \
  NS_SCRIPTABLE NS_IMETHOD OnFaviconFetchStatusError(nsIURI *aFaviconURI, PRUint32 aResponseStatus, const nsAString & aTopic); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKIFAVICONFETCHLISTENER(_to) \
  NS_SCRIPTABLE NS_IMETHOD OnFaviconFetchSuccess(nsIURI *aFaviconURI, const nsAString & aDataURL, const nsAString & aTopic) { return _to OnFaviconFetchSuccess(aFaviconURI, aDataURL, aTopic); } \
  NS_SCRIPTABLE NS_IMETHOD OnFaviconFetchError(nsIURI *aFaviconURI, const nsAString & aTopic) { return _to OnFaviconFetchError(aFaviconURI, aTopic); } \
  NS_SCRIPTABLE NS_IMETHOD OnFaviconFetchStatusError(nsIURI *aFaviconURI, PRUint32 aResponseStatus, const nsAString & aTopic) { return _to OnFaviconFetchStatusError(aFaviconURI, aResponseStatus, aTopic); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKIFAVICONFETCHLISTENER(_to) \
  NS_SCRIPTABLE NS_IMETHOD OnFaviconFetchSuccess(nsIURI *aFaviconURI, const nsAString & aDataURL, const nsAString & aTopic) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnFaviconFetchSuccess(aFaviconURI, aDataURL, aTopic); } \
  NS_SCRIPTABLE NS_IMETHOD OnFaviconFetchError(nsIURI *aFaviconURI, const nsAString & aTopic) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnFaviconFetchError(aFaviconURI, aTopic); } \
  NS_SCRIPTABLE NS_IMETHOD OnFaviconFetchStatusError(nsIURI *aFaviconURI, PRUint32 aResponseStatus, const nsAString & aTopic) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnFaviconFetchStatusError(aFaviconURI, aResponseStatus, aTopic); } 

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

/* Header file */
class _MYCLASS_ : public flockIFaviconFetchListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKIFAVICONFETCHLISTENER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* void onFaviconFetchSuccess (in nsIURI aFaviconURI, in AString aDataURL, in AString aTopic); */
NS_IMETHODIMP _MYCLASS_::OnFaviconFetchSuccess(nsIURI *aFaviconURI, const nsAString & aDataURL, const nsAString & aTopic)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onFaviconFetchError (in nsIURI aFaviconURI, in AString aTopic); */
NS_IMETHODIMP _MYCLASS_::OnFaviconFetchError(nsIURI *aFaviconURI, const nsAString & aTopic)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onFaviconFetchStatusError (in nsIURI aFaviconURI, in unsigned long aResponseStatus, in AString aTopic); */
NS_IMETHODIMP _MYCLASS_::OnFaviconFetchStatusError(nsIURI *aFaviconURI, PRUint32 aResponseStatus, const nsAString & aTopic)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    flockIFaviconDataService */
#define FLOCKIFAVICONDATASERVICE_IID_STR "79ec2cc8-d649-478f-aaa6-448117e8e995"

#define FLOCKIFAVICONDATASERVICE_IID \
  {0x79ec2cc8, 0xd649, 0x478f, \
    { 0xaa, 0xa6, 0x44, 0x81, 0x17, 0xe8, 0xe9, 0x95 }}

class NS_NO_VTABLE NS_SCRIPTABLE flockIFaviconDataService : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(FLOCKIFAVICONDATASERVICE_IID)

  /* void setFaviconDataFromDataURL (in nsIURI aFaviconURI, in AString aDataURL, in PRTime aExpiration); */
  NS_SCRIPTABLE NS_IMETHOD SetFaviconDataFromDataURL(nsIURI *aFaviconURI, const nsAString & aDataURL, PRTime aExpiration) = 0;

  /* AString getFaviconDataAsDataURL (in nsIURI aFaviconURI); */
  NS_SCRIPTABLE NS_IMETHOD GetFaviconDataAsDataURL(nsIURI *aFaviconURI, nsAString & _retval) = 0;

  /* void fetchFaviconData (in nsIURI aFaviconURI, in flockIFaviconFetchListener aFetchListener, in AString aTopic); */
  NS_SCRIPTABLE NS_IMETHOD FetchFaviconData(nsIURI *aFaviconURI, flockIFaviconFetchListener *aFetchListener, const nsAString & aTopic) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(flockIFaviconDataService, FLOCKIFAVICONDATASERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIFAVICONDATASERVICE \
  NS_SCRIPTABLE NS_IMETHOD SetFaviconDataFromDataURL(nsIURI *aFaviconURI, const nsAString & aDataURL, PRTime aExpiration); \
  NS_SCRIPTABLE NS_IMETHOD GetFaviconDataAsDataURL(nsIURI *aFaviconURI, nsAString & _retval); \
  NS_SCRIPTABLE NS_IMETHOD FetchFaviconData(nsIURI *aFaviconURI, flockIFaviconFetchListener *aFetchListener, const nsAString & aTopic); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKIFAVICONDATASERVICE(_to) \
  NS_SCRIPTABLE NS_IMETHOD SetFaviconDataFromDataURL(nsIURI *aFaviconURI, const nsAString & aDataURL, PRTime aExpiration) { return _to SetFaviconDataFromDataURL(aFaviconURI, aDataURL, aExpiration); } \
  NS_SCRIPTABLE NS_IMETHOD GetFaviconDataAsDataURL(nsIURI *aFaviconURI, nsAString & _retval) { return _to GetFaviconDataAsDataURL(aFaviconURI, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD FetchFaviconData(nsIURI *aFaviconURI, flockIFaviconFetchListener *aFetchListener, const nsAString & aTopic) { return _to FetchFaviconData(aFaviconURI, aFetchListener, aTopic); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKIFAVICONDATASERVICE(_to) \
  NS_SCRIPTABLE NS_IMETHOD SetFaviconDataFromDataURL(nsIURI *aFaviconURI, const nsAString & aDataURL, PRTime aExpiration) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFaviconDataFromDataURL(aFaviconURI, aDataURL, aExpiration); } \
  NS_SCRIPTABLE NS_IMETHOD GetFaviconDataAsDataURL(nsIURI *aFaviconURI, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFaviconDataAsDataURL(aFaviconURI, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD FetchFaviconData(nsIURI *aFaviconURI, flockIFaviconFetchListener *aFetchListener, const nsAString & aTopic) { return !_to ? NS_ERROR_NULL_POINTER : _to->FetchFaviconData(aFaviconURI, aFetchListener, aTopic); } 

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

/* Header file */
class _MYCLASS_ : public flockIFaviconDataService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKIFAVICONDATASERVICE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* void setFaviconDataFromDataURL (in nsIURI aFaviconURI, in AString aDataURL, in PRTime aExpiration); */
NS_IMETHODIMP _MYCLASS_::SetFaviconDataFromDataURL(nsIURI *aFaviconURI, const nsAString & aDataURL, PRTime aExpiration)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AString getFaviconDataAsDataURL (in nsIURI aFaviconURI); */
NS_IMETHODIMP _MYCLASS_::GetFaviconDataAsDataURL(nsIURI *aFaviconURI, nsAString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void fetchFaviconData (in nsIURI aFaviconURI, in flockIFaviconFetchListener aFetchListener, in AString aTopic); */
NS_IMETHODIMP _MYCLASS_::FetchFaviconData(nsIURI *aFaviconURI, flockIFaviconFetchListener *aFetchListener, const nsAString & aTopic)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

// 8cd730e6-4986-423b-9332-ca8c13d48180
#define FLOCK_FAVICONDATASERVICE_CID \
{ 0x8cd730e6, 0x4986, 0x423b, { 0x93, 0x32, 0xca, 0x8c, 0x13, 0xd4, 0x81, 0x80 } }
#define FLOCK_FAVICONDATASERVICE_CLASSNAME "Flock Favicon Data Service"
#define FLOCK_FAVICONDATASERVICE_CONTRACTID "@flock.com/favicon-data-service;1"

#endif /* __gen_flockIFaviconDataService_h__ */
