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

#ifndef __gen_flockIFeedContextObserver_h__
#define __gen_flockIFeedContextObserver_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 flockIFeedContext; /* forward declaration */

class flockIFeed; /* forward declaration */


/* starting interface:    flockIFeedContextObserver */
#define FLOCKIFEEDCONTEXTOBSERVER_IID_STR "24352cf3-a589-4b73-7209-28debaccd2e3"

#define FLOCKIFEEDCONTEXTOBSERVER_IID \
  {0x24352cf3, 0xa589, 0x4b73, \
    { 0x72, 0x09, 0x28, 0xde, 0xba, 0xcc, 0xd2, 0xe3 }}

class NS_NO_VTABLE NS_SCRIPTABLE flockIFeedContextObserver : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(FLOCKIFEEDCONTEXTOBSERVER_IID)

  /* void onSubscribe (in flockIFeedContext aContext, in flockIFeed aFeed); */
  NS_SCRIPTABLE NS_IMETHOD OnSubscribe(flockIFeedContext *aContext, flockIFeed *aFeed) = 0;

  /* void onUnsubscribe (in flockIFeedContext aContext, in flockIFeed aFeed); */
  NS_SCRIPTABLE NS_IMETHOD OnUnsubscribe(flockIFeedContext *aContext, flockIFeed *aFeed) = 0;

  /* void onUnreadCountChange (in flockIFeedContext aContext, in flockIFeed aFeed, in ACString aSourceId); */
  NS_SCRIPTABLE NS_IMETHOD OnUnreadCountChange(flockIFeedContext *aContext, flockIFeed *aFeed, const nsACString & aSourceId) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(flockIFeedContextObserver, FLOCKIFEEDCONTEXTOBSERVER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIFEEDCONTEXTOBSERVER \
  NS_SCRIPTABLE NS_IMETHOD OnSubscribe(flockIFeedContext *aContext, flockIFeed *aFeed); \
  NS_SCRIPTABLE NS_IMETHOD OnUnsubscribe(flockIFeedContext *aContext, flockIFeed *aFeed); \
  NS_SCRIPTABLE NS_IMETHOD OnUnreadCountChange(flockIFeedContext *aContext, flockIFeed *aFeed, const nsACString & aSourceId); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKIFEEDCONTEXTOBSERVER(_to) \
  NS_SCRIPTABLE NS_IMETHOD OnSubscribe(flockIFeedContext *aContext, flockIFeed *aFeed) { return _to OnSubscribe(aContext, aFeed); } \
  NS_SCRIPTABLE NS_IMETHOD OnUnsubscribe(flockIFeedContext *aContext, flockIFeed *aFeed) { return _to OnUnsubscribe(aContext, aFeed); } \
  NS_SCRIPTABLE NS_IMETHOD OnUnreadCountChange(flockIFeedContext *aContext, flockIFeed *aFeed, const nsACString & aSourceId) { return _to OnUnreadCountChange(aContext, aFeed, aSourceId); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKIFEEDCONTEXTOBSERVER(_to) \
  NS_SCRIPTABLE NS_IMETHOD OnSubscribe(flockIFeedContext *aContext, flockIFeed *aFeed) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSubscribe(aContext, aFeed); } \
  NS_SCRIPTABLE NS_IMETHOD OnUnsubscribe(flockIFeedContext *aContext, flockIFeed *aFeed) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnUnsubscribe(aContext, aFeed); } \
  NS_SCRIPTABLE NS_IMETHOD OnUnreadCountChange(flockIFeedContext *aContext, flockIFeed *aFeed, const nsACString & aSourceId) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnUnreadCountChange(aContext, aFeed, aSourceId); } 

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

/* Header file */
class _MYCLASS_ : public flockIFeedContextObserver
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKIFEEDCONTEXTOBSERVER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* void onSubscribe (in flockIFeedContext aContext, in flockIFeed aFeed); */
NS_IMETHODIMP _MYCLASS_::OnSubscribe(flockIFeedContext *aContext, flockIFeed *aFeed)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onUnsubscribe (in flockIFeedContext aContext, in flockIFeed aFeed); */
NS_IMETHODIMP _MYCLASS_::OnUnsubscribe(flockIFeedContext *aContext, flockIFeed *aFeed)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onUnreadCountChange (in flockIFeedContext aContext, in flockIFeed aFeed, in ACString aSourceId); */
NS_IMETHODIMP _MYCLASS_::OnUnreadCountChange(flockIFeedContext *aContext, flockIFeed *aFeed, const nsACString & aSourceId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockIFeedContextObserver_h__ */
