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

#ifndef __gen_flockIFeedContext_h__
#define __gen_flockIFeedContext_h__


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

#ifndef __gen_nsISimpleEnumerator_h__
#include "nsISimpleEnumerator.h"
#endif

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

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

#ifndef __gen_flockIFeedContextObserver_h__
#include "flockIFeedContextObserver.h"
#endif

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


/* starting interface:    flockIFeedContext */
#define FLOCKIFEEDCONTEXT_IID_STR "4a6b65bb-0873-41a3-b87d-6be22234926c"

#define FLOCKIFEEDCONTEXT_IID \
  {0x4a6b65bb, 0x0873, 0x41a3, \
    { 0xb8, 0x7d, 0x6b, 0xe2, 0x22, 0x34, 0x92, 0x6c }}

class NS_NO_VTABLE flockIFeedContext : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(FLOCKIFEEDCONTEXT_IID)

  /* AString getName (); */
  NS_IMETHOD GetName(nsAString & _retval) = 0;

  /* flockIFeedFolder getRoot (); */
  NS_IMETHOD GetRoot(flockIFeedFolder **_retval) = 0;

  /* flockIFeed getSubscription (in nsIURL url); */
  NS_IMETHOD GetSubscription(nsIURL *url, flockIFeed **_retval) = 0;

  /* nsISimpleEnumerator getSubscriptions (); */
  NS_IMETHOD GetSubscriptions(nsISimpleEnumerator **_retval) = 0;

  /* boolean existsSubscription (in nsIURL url); */
  NS_IMETHOD ExistsSubscription(nsIURL *url, PRBool *_retval) = 0;

  /* void refresh (); */
  NS_IMETHOD Refresh(void) = 0;

  /* PRInt64 getRefreshInterval (); */
  NS_IMETHOD GetRefreshInterval(PRInt64 *_retval) = 0;

  /* void setRefreshInterval (in PRInt64 minutes); */
  NS_IMETHOD SetRefreshInterval(PRInt64 minutes) = 0;

  /* PRInt64 getFeedItemCap (); */
  NS_IMETHOD GetFeedItemCap(PRInt64 *_retval) = 0;

  /* void setFeedItemCap (in PRInt64 maxItems); */
  NS_IMETHOD SetFeedItemCap(PRInt64 maxItems) = 0;

  /* void addObserver (in flockIFeedContextObserver observer); */
  NS_IMETHOD AddObserver(flockIFeedContextObserver *observer) = 0;

  /* void removeObserver (in flockIFeedContextObserver observer); */
  NS_IMETHOD RemoveObserver(flockIFeedContextObserver *observer) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIFEEDCONTEXT \
  NS_IMETHOD GetName(nsAString & _retval); \
  NS_IMETHOD GetRoot(flockIFeedFolder **_retval); \
  NS_IMETHOD GetSubscription(nsIURL *url, flockIFeed **_retval); \
  NS_IMETHOD GetSubscriptions(nsISimpleEnumerator **_retval); \
  NS_IMETHOD ExistsSubscription(nsIURL *url, PRBool *_retval); \
  NS_IMETHOD Refresh(void); \
  NS_IMETHOD GetRefreshInterval(PRInt64 *_retval); \
  NS_IMETHOD SetRefreshInterval(PRInt64 minutes); \
  NS_IMETHOD GetFeedItemCap(PRInt64 *_retval); \
  NS_IMETHOD SetFeedItemCap(PRInt64 maxItems); \
  NS_IMETHOD AddObserver(flockIFeedContextObserver *observer); \
  NS_IMETHOD RemoveObserver(flockIFeedContextObserver *observer); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKIFEEDCONTEXT(_to) \
  NS_IMETHOD GetName(nsAString & _retval) { return _to GetName(_retval); } \
  NS_IMETHOD GetRoot(flockIFeedFolder **_retval) { return _to GetRoot(_retval); } \
  NS_IMETHOD GetSubscription(nsIURL *url, flockIFeed **_retval) { return _to GetSubscription(url, _retval); } \
  NS_IMETHOD GetSubscriptions(nsISimpleEnumerator **_retval) { return _to GetSubscriptions(_retval); } \
  NS_IMETHOD ExistsSubscription(nsIURL *url, PRBool *_retval) { return _to ExistsSubscription(url, _retval); } \
  NS_IMETHOD Refresh(void) { return _to Refresh(); } \
  NS_IMETHOD GetRefreshInterval(PRInt64 *_retval) { return _to GetRefreshInterval(_retval); } \
  NS_IMETHOD SetRefreshInterval(PRInt64 minutes) { return _to SetRefreshInterval(minutes); } \
  NS_IMETHOD GetFeedItemCap(PRInt64 *_retval) { return _to GetFeedItemCap(_retval); } \
  NS_IMETHOD SetFeedItemCap(PRInt64 maxItems) { return _to SetFeedItemCap(maxItems); } \
  NS_IMETHOD AddObserver(flockIFeedContextObserver *observer) { return _to AddObserver(observer); } \
  NS_IMETHOD RemoveObserver(flockIFeedContextObserver *observer) { return _to RemoveObserver(observer); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKIFEEDCONTEXT(_to) \
  NS_IMETHOD GetName(nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(_retval); } \
  NS_IMETHOD GetRoot(flockIFeedFolder **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRoot(_retval); } \
  NS_IMETHOD GetSubscription(nsIURL *url, flockIFeed **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubscription(url, _retval); } \
  NS_IMETHOD GetSubscriptions(nsISimpleEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubscriptions(_retval); } \
  NS_IMETHOD ExistsSubscription(nsIURL *url, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ExistsSubscription(url, _retval); } \
  NS_IMETHOD Refresh(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Refresh(); } \
  NS_IMETHOD GetRefreshInterval(PRInt64 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRefreshInterval(_retval); } \
  NS_IMETHOD SetRefreshInterval(PRInt64 minutes) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRefreshInterval(minutes); } \
  NS_IMETHOD GetFeedItemCap(PRInt64 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFeedItemCap(_retval); } \
  NS_IMETHOD SetFeedItemCap(PRInt64 maxItems) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFeedItemCap(maxItems); } \
  NS_IMETHOD AddObserver(flockIFeedContextObserver *observer) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(observer); } \
  NS_IMETHOD RemoveObserver(flockIFeedContextObserver *observer) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(observer); } 

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

/* Header file */
class _MYCLASS_ : public flockIFeedContext
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKIFEEDCONTEXT

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* AString getName (); */
NS_IMETHODIMP _MYCLASS_::GetName(nsAString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* flockIFeedFolder getRoot (); */
NS_IMETHODIMP _MYCLASS_::GetRoot(flockIFeedFolder **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* flockIFeed getSubscription (in nsIURL url); */
NS_IMETHODIMP _MYCLASS_::GetSubscription(nsIURL *url, flockIFeed **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsISimpleEnumerator getSubscriptions (); */
NS_IMETHODIMP _MYCLASS_::GetSubscriptions(nsISimpleEnumerator **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean existsSubscription (in nsIURL url); */
NS_IMETHODIMP _MYCLASS_::ExistsSubscription(nsIURL *url, PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void refresh (); */
NS_IMETHODIMP _MYCLASS_::Refresh()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* PRInt64 getRefreshInterval (); */
NS_IMETHODIMP _MYCLASS_::GetRefreshInterval(PRInt64 *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setRefreshInterval (in PRInt64 minutes); */
NS_IMETHODIMP _MYCLASS_::SetRefreshInterval(PRInt64 minutes)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* PRInt64 getFeedItemCap (); */
NS_IMETHODIMP _MYCLASS_::GetFeedItemCap(PRInt64 *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setFeedItemCap (in PRInt64 maxItems); */
NS_IMETHODIMP _MYCLASS_::SetFeedItemCap(PRInt64 maxItems)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void addObserver (in flockIFeedContextObserver observer); */
NS_IMETHODIMP _MYCLASS_::AddObserver(flockIFeedContextObserver *observer)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeObserver (in flockIFeedContextObserver observer); */
NS_IMETHODIMP _MYCLASS_::RemoveObserver(flockIFeedContextObserver *observer)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockIFeedContext_h__ */
