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

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

class nsIURI; /* forward declaration */

class flockIFeed; /* forward declaration */

class flockIFeedFolder; /* forward declaration */

class flockIFeedContextObserver; /* forward declaration */


/* starting interface:    flockIFeedContext */
#define FLOCKIFEEDCONTEXT_IID_STR "6522637e-8e3b-4d98-8d8c-fd29272e9110"

#define FLOCKIFEEDCONTEXT_IID \
  {0x6522637e, 0x8e3b, 0x4d98, \
    { 0x8d, 0x8c, 0xfd, 0x29, 0x27, 0x2e, 0x91, 0x10 }}

class NS_NO_VTABLE NS_SCRIPTABLE flockIFeedContext : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(FLOCKIFEEDCONTEXT_IID)

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

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

  /* flockIFeed getSubscription (in nsIURI aFeedURI); */
  NS_SCRIPTABLE NS_IMETHOD GetSubscription(nsIURI *aFeedURI, flockIFeed **_retval) = 0;

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

  /* boolean existsSubscription (in nsIURI aFeedURI); */
  NS_SCRIPTABLE NS_IMETHOD ExistsSubscription(nsIURI *aFeedURI, PRBool *_retval) = 0;

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

  /* PRInt32 getRefreshInterval (); */
  NS_SCRIPTABLE NS_IMETHOD GetRefreshInterval(PRInt32 *_retval) = 0;

  /* void setRefreshInterval (in PRInt32 aMinutes); */
  NS_SCRIPTABLE NS_IMETHOD SetRefreshInterval(PRInt32 aMinutes) = 0;

  /* PRInt32 getFeedItemCap (); */
  NS_SCRIPTABLE NS_IMETHOD GetFeedItemCap(PRInt32 *_retval) = 0;

  /* void setFeedItemCap (in PRInt32 aMaxItems); */
  NS_SCRIPTABLE NS_IMETHOD SetFeedItemCap(PRInt32 aMaxItems) = 0;

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

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

};

  NS_DEFINE_STATIC_IID_ACCESSOR(flockIFeedContext, FLOCKIFEEDCONTEXT_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIFEEDCONTEXT \
  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & _retval); \
  NS_SCRIPTABLE NS_IMETHOD GetRoot(flockIFeedFolder **_retval); \
  NS_SCRIPTABLE NS_IMETHOD GetSubscription(nsIURI *aFeedURI, flockIFeed **_retval); \
  NS_SCRIPTABLE NS_IMETHOD GetSubscriptions(nsISimpleEnumerator **_retval); \
  NS_SCRIPTABLE NS_IMETHOD ExistsSubscription(nsIURI *aFeedURI, PRBool *_retval); \
  NS_SCRIPTABLE NS_IMETHOD Refresh(void); \
  NS_SCRIPTABLE NS_IMETHOD GetRefreshInterval(PRInt32 *_retval); \
  NS_SCRIPTABLE NS_IMETHOD SetRefreshInterval(PRInt32 aMinutes); \
  NS_SCRIPTABLE NS_IMETHOD GetFeedItemCap(PRInt32 *_retval); \
  NS_SCRIPTABLE NS_IMETHOD SetFeedItemCap(PRInt32 aMaxItems); \
  NS_SCRIPTABLE NS_IMETHOD AddObserver(flockIFeedContextObserver *aObserver); \
  NS_SCRIPTABLE NS_IMETHOD RemoveObserver(flockIFeedContextObserver *aObserver); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKIFEEDCONTEXT(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & _retval) { return _to GetName(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetRoot(flockIFeedFolder **_retval) { return _to GetRoot(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetSubscription(nsIURI *aFeedURI, flockIFeed **_retval) { return _to GetSubscription(aFeedURI, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetSubscriptions(nsISimpleEnumerator **_retval) { return _to GetSubscriptions(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD ExistsSubscription(nsIURI *aFeedURI, PRBool *_retval) { return _to ExistsSubscription(aFeedURI, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Refresh(void) { return _to Refresh(); } \
  NS_SCRIPTABLE NS_IMETHOD GetRefreshInterval(PRInt32 *_retval) { return _to GetRefreshInterval(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetRefreshInterval(PRInt32 aMinutes) { return _to SetRefreshInterval(aMinutes); } \
  NS_SCRIPTABLE NS_IMETHOD GetFeedItemCap(PRInt32 *_retval) { return _to GetFeedItemCap(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetFeedItemCap(PRInt32 aMaxItems) { return _to SetFeedItemCap(aMaxItems); } \
  NS_SCRIPTABLE NS_IMETHOD AddObserver(flockIFeedContextObserver *aObserver) { return _to AddObserver(aObserver); } \
  NS_SCRIPTABLE NS_IMETHOD RemoveObserver(flockIFeedContextObserver *aObserver) { return _to RemoveObserver(aObserver); } 

/* 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_SCRIPTABLE NS_IMETHOD GetName(nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetRoot(flockIFeedFolder **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRoot(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetSubscription(nsIURI *aFeedURI, flockIFeed **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubscription(aFeedURI, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetSubscriptions(nsISimpleEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubscriptions(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD ExistsSubscription(nsIURI *aFeedURI, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ExistsSubscription(aFeedURI, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Refresh(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Refresh(); } \
  NS_SCRIPTABLE NS_IMETHOD GetRefreshInterval(PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRefreshInterval(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetRefreshInterval(PRInt32 aMinutes) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRefreshInterval(aMinutes); } \
  NS_SCRIPTABLE NS_IMETHOD GetFeedItemCap(PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFeedItemCap(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetFeedItemCap(PRInt32 aMaxItems) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFeedItemCap(aMaxItems); } \
  NS_SCRIPTABLE NS_IMETHOD AddObserver(flockIFeedContextObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(aObserver); } \
  NS_SCRIPTABLE NS_IMETHOD RemoveObserver(flockIFeedContextObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(aObserver); } 

#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 nsIURI aFeedURI); */
NS_IMETHODIMP _MYCLASS_::GetSubscription(nsIURI *aFeedURI, flockIFeed **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

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

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

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

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

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

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

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

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

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


#endif /* __gen_flockIFeedContext_h__ */
