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

#ifndef __gen_flockIOpmlService_h__
#define __gen_flockIOpmlService_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 nsIFile; /* forward declaration */

class nsIURL; /* forward declaration */

class flockIError; /* forward declaration */

class flockIFeedFolder; /* forward declaration */

class flockIFeed; /* forward declaration */


/* starting interface:    flockIOpmlSubscribeListener */
#define FLOCKIOPMLSUBSCRIBELISTENER_IID_STR "87a66924-e0bd-4df4-816d-375a83d12a47"

#define FLOCKIOPMLSUBSCRIBELISTENER_IID \
  {0x87a66924, 0xe0bd, 0x4df4, \
    { 0x81, 0x6d, 0x37, 0x5a, 0x83, 0xd1, 0x2a, 0x47 }}

class NS_NO_VTABLE NS_SCRIPTABLE flockIOpmlSubscribeListener : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(FLOCKIOPMLSUBSCRIBELISTENER_IID)

  /* boolean onSubscribe (in nsIURL aURL, in nsISupports aCtxt, in unsigned long long aProgress, in unsigned long long aProgressMax); */
  NS_SCRIPTABLE NS_IMETHOD OnSubscribe(nsIURL *aURL, nsISupports *aCtxt, PRUint64 aProgress, PRUint64 aProgressMax, PRBool *_retval) = 0;

  /* void onFinish (in nsISupports aCtxt); */
  NS_SCRIPTABLE NS_IMETHOD OnFinish(nsISupports *aCtxt) = 0;

  /* void onLoadError (in nsISupports aCtxt, in flockIError aError); */
  NS_SCRIPTABLE NS_IMETHOD OnLoadError(nsISupports *aCtxt, flockIError *aError) = 0;

  /* void onError (in AUTF8String aURL, in nsISupports aCtxt, in flockIError aError, in unsigned long long aProgress, in unsigned long long aProgressMax); */
  NS_SCRIPTABLE NS_IMETHOD OnError(const nsACString & aURL, nsISupports *aCtxt, flockIError *aError, PRUint64 aProgress, PRUint64 aProgressMax) = 0;

  /* void onGetFeed (in flockIFeed aFeed, in nsISupports aCtxt); */
  NS_SCRIPTABLE NS_IMETHOD OnGetFeed(flockIFeed *aFeed, nsISupports *aCtxt) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(flockIOpmlSubscribeListener, FLOCKIOPMLSUBSCRIBELISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIOPMLSUBSCRIBELISTENER \
  NS_SCRIPTABLE NS_IMETHOD OnSubscribe(nsIURL *aURL, nsISupports *aCtxt, PRUint64 aProgress, PRUint64 aProgressMax, PRBool *_retval); \
  NS_SCRIPTABLE NS_IMETHOD OnFinish(nsISupports *aCtxt); \
  NS_SCRIPTABLE NS_IMETHOD OnLoadError(nsISupports *aCtxt, flockIError *aError); \
  NS_SCRIPTABLE NS_IMETHOD OnError(const nsACString & aURL, nsISupports *aCtxt, flockIError *aError, PRUint64 aProgress, PRUint64 aProgressMax); \
  NS_SCRIPTABLE NS_IMETHOD OnGetFeed(flockIFeed *aFeed, nsISupports *aCtxt); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKIOPMLSUBSCRIBELISTENER(_to) \
  NS_SCRIPTABLE NS_IMETHOD OnSubscribe(nsIURL *aURL, nsISupports *aCtxt, PRUint64 aProgress, PRUint64 aProgressMax, PRBool *_retval) { return _to OnSubscribe(aURL, aCtxt, aProgress, aProgressMax, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD OnFinish(nsISupports *aCtxt) { return _to OnFinish(aCtxt); } \
  NS_SCRIPTABLE NS_IMETHOD OnLoadError(nsISupports *aCtxt, flockIError *aError) { return _to OnLoadError(aCtxt, aError); } \
  NS_SCRIPTABLE NS_IMETHOD OnError(const nsACString & aURL, nsISupports *aCtxt, flockIError *aError, PRUint64 aProgress, PRUint64 aProgressMax) { return _to OnError(aURL, aCtxt, aError, aProgress, aProgressMax); } \
  NS_SCRIPTABLE NS_IMETHOD OnGetFeed(flockIFeed *aFeed, nsISupports *aCtxt) { return _to OnGetFeed(aFeed, aCtxt); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKIOPMLSUBSCRIBELISTENER(_to) \
  NS_SCRIPTABLE NS_IMETHOD OnSubscribe(nsIURL *aURL, nsISupports *aCtxt, PRUint64 aProgress, PRUint64 aProgressMax, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSubscribe(aURL, aCtxt, aProgress, aProgressMax, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD OnFinish(nsISupports *aCtxt) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnFinish(aCtxt); } \
  NS_SCRIPTABLE NS_IMETHOD OnLoadError(nsISupports *aCtxt, flockIError *aError) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnLoadError(aCtxt, aError); } \
  NS_SCRIPTABLE NS_IMETHOD OnError(const nsACString & aURL, nsISupports *aCtxt, flockIError *aError, PRUint64 aProgress, PRUint64 aProgressMax) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnError(aURL, aCtxt, aError, aProgress, aProgressMax); } \
  NS_SCRIPTABLE NS_IMETHOD OnGetFeed(flockIFeed *aFeed, nsISupports *aCtxt) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnGetFeed(aFeed, aCtxt); } 

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

/* Header file */
class _MYCLASS_ : public flockIOpmlSubscribeListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKIOPMLSUBSCRIBELISTENER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* boolean onSubscribe (in nsIURL aURL, in nsISupports aCtxt, in unsigned long long aProgress, in unsigned long long aProgressMax); */
NS_IMETHODIMP _MYCLASS_::OnSubscribe(nsIURL *aURL, nsISupports *aCtxt, PRUint64 aProgress, PRUint64 aProgressMax, PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onFinish (in nsISupports aCtxt); */
NS_IMETHODIMP _MYCLASS_::OnFinish(nsISupports *aCtxt)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onLoadError (in nsISupports aCtxt, in flockIError aError); */
NS_IMETHODIMP _MYCLASS_::OnLoadError(nsISupports *aCtxt, flockIError *aError)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onError (in AUTF8String aURL, in nsISupports aCtxt, in flockIError aError, in unsigned long long aProgress, in unsigned long long aProgressMax); */
NS_IMETHODIMP _MYCLASS_::OnError(const nsACString & aURL, nsISupports *aCtxt, flockIError *aError, PRUint64 aProgress, PRUint64 aProgressMax)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onGetFeed (in flockIFeed aFeed, in nsISupports aCtxt); */
NS_IMETHODIMP _MYCLASS_::OnGetFeed(flockIFeed *aFeed, nsISupports *aCtxt)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    flockIOpmlService */
#define FLOCKIOPMLSERVICE_IID_STR "13bef0df-89ba-4608-bfc1-c80a0a8b64a5"

#define FLOCKIOPMLSERVICE_IID \
  {0x13bef0df, 0x89ba, 0x4608, \
    { 0xbf, 0xc1, 0xc8, 0x0a, 0x0a, 0x8b, 0x64, 0xa5 }}

class NS_NO_VTABLE NS_SCRIPTABLE flockIOpmlService : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(FLOCKIOPMLSERVICE_IID)

  /* void subscribe (in nsIURL url, in flockIFeedFolder folder, in boolean flatRoot, in flockIOpmlSubscribeListener listener, in nsISupports ctxt); */
  NS_SCRIPTABLE NS_IMETHOD Subscribe(nsIURL *url, flockIFeedFolder *folder, PRBool flatRoot, flockIOpmlSubscribeListener *listener, nsISupports *ctxt) = 0;

  /* void export (in flockIFeedFolder folder, in AString title, in nsIFile file); */
  NS_SCRIPTABLE NS_IMETHOD Export(flockIFeedFolder *folder, const nsAString & title, nsIFile *file) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(flockIOpmlService, FLOCKIOPMLSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIOPMLSERVICE \
  NS_SCRIPTABLE NS_IMETHOD Subscribe(nsIURL *url, flockIFeedFolder *folder, PRBool flatRoot, flockIOpmlSubscribeListener *listener, nsISupports *ctxt); \
  NS_SCRIPTABLE NS_IMETHOD Export(flockIFeedFolder *folder, const nsAString & title, nsIFile *file); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKIOPMLSERVICE(_to) \
  NS_SCRIPTABLE NS_IMETHOD Subscribe(nsIURL *url, flockIFeedFolder *folder, PRBool flatRoot, flockIOpmlSubscribeListener *listener, nsISupports *ctxt) { return _to Subscribe(url, folder, flatRoot, listener, ctxt); } \
  NS_SCRIPTABLE NS_IMETHOD Export(flockIFeedFolder *folder, const nsAString & title, nsIFile *file) { return _to Export(folder, title, file); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKIOPMLSERVICE(_to) \
  NS_SCRIPTABLE NS_IMETHOD Subscribe(nsIURL *url, flockIFeedFolder *folder, PRBool flatRoot, flockIOpmlSubscribeListener *listener, nsISupports *ctxt) { return !_to ? NS_ERROR_NULL_POINTER : _to->Subscribe(url, folder, flatRoot, listener, ctxt); } \
  NS_SCRIPTABLE NS_IMETHOD Export(flockIFeedFolder *folder, const nsAString & title, nsIFile *file) { return !_to ? NS_ERROR_NULL_POINTER : _to->Export(folder, title, file); } 

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

/* Header file */
class _MYCLASS_ : public flockIOpmlService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKIOPMLSERVICE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* void subscribe (in nsIURL url, in flockIFeedFolder folder, in boolean flatRoot, in flockIOpmlSubscribeListener listener, in nsISupports ctxt); */
NS_IMETHODIMP _MYCLASS_::Subscribe(nsIURL *url, flockIFeedFolder *folder, PRBool flatRoot, flockIOpmlSubscribeListener *listener, nsISupports *ctxt)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void export (in flockIFeedFolder folder, in AString title, in nsIFile file); */
NS_IMETHODIMP _MYCLASS_::Export(flockIFeedFolder *folder, const nsAString & title, nsIFile *file)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockIOpmlService_h__ */
