/*
 * 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

#ifndef __gen_nsIFile_h__
#include "nsIFile.h"
#endif

#ifndef __gen_nsIURL_h__
#include "nsIURL.h"
#endif

#ifndef __gen_flockIError_h__
#include "flockIError.h"
#endif

#ifndef __gen_flockIFeedFolder_h__
#include "flockIFeedFolder.h"
#endif

#ifndef __gen_flockIFeed_h__
#include "flockIFeed.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:    flockIOpmlSubscribeListener */
#define FLOCKIOPMLSUBSCRIBELISTENER_IID_STR "1dd9dda6-da44-4f30-aec3-ab3285809ef8"

#define FLOCKIOPMLSUBSCRIBELISTENER_IID \
  {0x1dd9dda6, 0xda44, 0x4f30, \
    { 0xae, 0xc3, 0xab, 0x32, 0x85, 0x80, 0x9e, 0xf8 }}

class NS_NO_VTABLE flockIOpmlSubscribeListener : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(FLOCKIOPMLSUBSCRIBELISTENER_IID)

  /* void onSubscribe (in flockIFeed feed, in nsISupports ctxt, in unsigned long long progress, in unsigned long long progressMax); */
  NS_IMETHOD OnSubscribe(flockIFeed *feed, nsISupports *ctxt, PRUint64 progress, PRUint64 progressMax) = 0;

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

  /* void onLoadError (in nsISupports ctxt, in flockIError error); */
  NS_IMETHOD OnLoadError(nsISupports *ctxt, flockIError *error) = 0;

  /* void onError (in AUTF8String url, in nsISupports ctxt, in flockIError error, in unsigned long long progress, in unsigned long long progressMax); */
  NS_IMETHOD OnError(const nsACString & url, nsISupports *ctxt, flockIError *error, PRUint64 progress, PRUint64 progressMax) = 0;

  /* void onGetFeed (in flockIFeed feed, in nsISupports ctxt); */
  NS_IMETHOD OnGetFeed(flockIFeed *feed, nsISupports *ctxt) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIOPMLSUBSCRIBELISTENER \
  NS_IMETHOD OnSubscribe(flockIFeed *feed, nsISupports *ctxt, PRUint64 progress, PRUint64 progressMax); \
  NS_IMETHOD OnFinish(nsISupports *ctxt); \
  NS_IMETHOD OnLoadError(nsISupports *ctxt, flockIError *error); \
  NS_IMETHOD OnError(const nsACString & url, nsISupports *ctxt, flockIError *error, PRUint64 progress, PRUint64 progressMax); \
  NS_IMETHOD OnGetFeed(flockIFeed *feed, nsISupports *ctxt); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKIOPMLSUBSCRIBELISTENER(_to) \
  NS_IMETHOD OnSubscribe(flockIFeed *feed, nsISupports *ctxt, PRUint64 progress, PRUint64 progressMax) { return _to OnSubscribe(feed, ctxt, progress, progressMax); } \
  NS_IMETHOD OnFinish(nsISupports *ctxt) { return _to OnFinish(ctxt); } \
  NS_IMETHOD OnLoadError(nsISupports *ctxt, flockIError *error) { return _to OnLoadError(ctxt, error); } \
  NS_IMETHOD OnError(const nsACString & url, nsISupports *ctxt, flockIError *error, PRUint64 progress, PRUint64 progressMax) { return _to OnError(url, ctxt, error, progress, progressMax); } \
  NS_IMETHOD OnGetFeed(flockIFeed *feed, nsISupports *ctxt) { return _to OnGetFeed(feed, ctxt); } 

/* 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_IMETHOD OnSubscribe(flockIFeed *feed, nsISupports *ctxt, PRUint64 progress, PRUint64 progressMax) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSubscribe(feed, ctxt, progress, progressMax); } \
  NS_IMETHOD OnFinish(nsISupports *ctxt) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnFinish(ctxt); } \
  NS_IMETHOD OnLoadError(nsISupports *ctxt, flockIError *error) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnLoadError(ctxt, error); } \
  NS_IMETHOD OnError(const nsACString & url, nsISupports *ctxt, flockIError *error, PRUint64 progress, PRUint64 progressMax) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnError(url, ctxt, error, progress, progressMax); } \
  NS_IMETHOD OnGetFeed(flockIFeed *feed, nsISupports *ctxt) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnGetFeed(feed, ctxt); } 

#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 */
}

/* void onSubscribe (in flockIFeed feed, in nsISupports ctxt, in unsigned long long progress, in unsigned long long progressMax); */
NS_IMETHODIMP _MYCLASS_::OnSubscribe(flockIFeed *feed, nsISupports *ctxt, PRUint64 progress, PRUint64 progressMax)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

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

/* void onError (in AUTF8String url, in nsISupports ctxt, in flockIError error, in unsigned long long progress, in unsigned long long progressMax); */
NS_IMETHODIMP _MYCLASS_::OnError(const nsACString & url, nsISupports *ctxt, flockIError *error, PRUint64 progress, PRUint64 progressMax)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onGetFeed (in flockIFeed feed, in nsISupports ctxt); */
NS_IMETHODIMP _MYCLASS_::OnGetFeed(flockIFeed *feed, nsISupports *ctxt)
{
    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 flockIOpmlService : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(FLOCKIOPMLSERVICE_IID)

  /* void subscribe (in nsIURL url, in flockIFeedFolder folder, in boolean flatRoot, in flockIOpmlSubscribeListener listener, in nsISupports ctxt); */
  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_IMETHOD Export(flockIFeedFolder *folder, const nsAString & title, nsIFile *file) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIOPMLSERVICE \
  NS_IMETHOD Subscribe(nsIURL *url, flockIFeedFolder *folder, PRBool flatRoot, flockIOpmlSubscribeListener *listener, nsISupports *ctxt); \
  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_IMETHOD Subscribe(nsIURL *url, flockIFeedFolder *folder, PRBool flatRoot, flockIOpmlSubscribeListener *listener, nsISupports *ctxt) { return _to Subscribe(url, folder, flatRoot, listener, ctxt); } \
  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_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_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__ */
