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

#ifndef __gen_flockIPoller_h__
#define __gen_flockIPoller_h__


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

#ifndef __gen_nsIStringEnumerator_h__
#include "nsIStringEnumerator.h"
#endif

#ifndef __gen_flockIError_h__
#include "flockIError.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:    flockIPollerService */
#define FLOCKIPOLLERSERVICE_IID_STR "d7686637-ac81-447a-bbb6-7a584024ea94"

#define FLOCKIPOLLERSERVICE_IID \
  {0xd7686637, 0xac81, 0x447a, \
    { 0xbb, 0xb6, 0x7a, 0x58, 0x40, 0x24, 0xea, 0x94 }}

/**
 * This service connects to the favorites rdf backend, and at regular intervals
 * checks for streams that need to be refreshed.
 *
 * At initialization, a timer is set to check in the background so no method call is
 * required. Just make sure to keep this service in memory to ensure the polling.
 *
 * @see flockIPollingService
 */
class NS_NO_VTABLE NS_SCRIPTABLE flockIPollerService : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(FLOCKIPOLLERSERVICE_IID)

  /** Ask to the poller to refresh the given stream immediately */
  /* void forceRefresh (in AString aUrn); */
  NS_SCRIPTABLE NS_IMETHOD ForceRefresh(const nsAString & aUrn) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(flockIPollerService, FLOCKIPOLLERSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIPOLLERSERVICE \
  NS_SCRIPTABLE NS_IMETHOD ForceRefresh(const nsAString & aUrn); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKIPOLLERSERVICE(_to) \
  NS_SCRIPTABLE NS_IMETHOD ForceRefresh(const nsAString & aUrn) { return _to ForceRefresh(aUrn); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKIPOLLERSERVICE(_to) \
  NS_SCRIPTABLE NS_IMETHOD ForceRefresh(const nsAString & aUrn) { return !_to ? NS_ERROR_NULL_POINTER : _to->ForceRefresh(aUrn); } 

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

/* Header file */
class _MYCLASS_ : public flockIPollerService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKIPOLLERSERVICE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* void forceRefresh (in AString aUrn); */
NS_IMETHODIMP _MYCLASS_::ForceRefresh(const nsAString & aUrn)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockIPoller_h__ */
