/*
 * 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 "f8a3ec43-a589-4b73-a8e9-72c4baccd2e3"

#define FLOCKIFEEDCONTEXTOBSERVER_IID \
  {0xf8a3ec43, 0xa589, 0x4b73, \
    { 0xa8, 0xe9, 0x72, 0xc4, 0xba, 0xcc, 0xd2, 0xe3 }}

class NS_NO_VTABLE flockIFeedContextObserver : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(FLOCKIFEEDCONTEXTOBSERVER_IID)

  /* void onSubscribe (in flockIFeedContext ctxt, in flockIFeed feed); */
  NS_IMETHOD OnSubscribe(flockIFeedContext *ctxt, flockIFeed *feed) = 0;

  /* void onUnsubscribe (in flockIFeedContext ctxt, in flockIFeed feed); */
  NS_IMETHOD OnUnsubscribe(flockIFeedContext *ctxt, flockIFeed *feed) = 0;

  /* void onUnreadCountChange (in flockIFeedContext ctxt, in PRInt64 unreadCount); */
  NS_IMETHOD OnUnreadCountChange(flockIFeedContext *ctxt, PRInt64 unreadCount) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIFEEDCONTEXTOBSERVER \
  NS_IMETHOD OnSubscribe(flockIFeedContext *ctxt, flockIFeed *feed); \
  NS_IMETHOD OnUnsubscribe(flockIFeedContext *ctxt, flockIFeed *feed); \
  NS_IMETHOD OnUnreadCountChange(flockIFeedContext *ctxt, PRInt64 unreadCount); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKIFEEDCONTEXTOBSERVER(_to) \
  NS_IMETHOD OnSubscribe(flockIFeedContext *ctxt, flockIFeed *feed) { return _to OnSubscribe(ctxt, feed); } \
  NS_IMETHOD OnUnsubscribe(flockIFeedContext *ctxt, flockIFeed *feed) { return _to OnUnsubscribe(ctxt, feed); } \
  NS_IMETHOD OnUnreadCountChange(flockIFeedContext *ctxt, PRInt64 unreadCount) { return _to OnUnreadCountChange(ctxt, unreadCount); } 

/* 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_IMETHOD OnSubscribe(flockIFeedContext *ctxt, flockIFeed *feed) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSubscribe(ctxt, feed); } \
  NS_IMETHOD OnUnsubscribe(flockIFeedContext *ctxt, flockIFeed *feed) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnUnsubscribe(ctxt, feed); } \
  NS_IMETHOD OnUnreadCountChange(flockIFeedContext *ctxt, PRInt64 unreadCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnUnreadCountChange(ctxt, unreadCount); } 

#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 ctxt, in flockIFeed feed); */
NS_IMETHODIMP _MYCLASS_::OnSubscribe(flockIFeedContext *ctxt, flockIFeed *feed)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

/* void onUnreadCountChange (in flockIFeedContext ctxt, in PRInt64 unreadCount); */
NS_IMETHODIMP _MYCLASS_::OnUnreadCountChange(flockIFeedContext *ctxt, PRInt64 unreadCount)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockIFeedContextObserver_h__ */
