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

#ifndef __gen_flockIFeedFolder_h__
#define __gen_flockIFeedFolder_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_flockIFeedItem_h__
#include "flockIFeedItem.h"
#endif

#ifndef __gen_flockIFeedFolderItem_h__
#include "flockIFeedFolderItem.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:    flockIFeedFolder */
#define FLOCKIFEEDFOLDER_IID_STR "d3437a00-1799-47fd-92ab-43b6a2e517ba"

#define FLOCKIFEEDFOLDER_IID \
  {0xd3437a00, 0x1799, 0x47fd, \
    { 0x92, 0xab, 0x43, 0xb6, 0xa2, 0xe5, 0x17, 0xba }}

class NS_NO_VTABLE flockIFeedFolder : public flockIFeedFolderItem {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(FLOCKIFEEDFOLDER_IID)

  /* PRUint64 getItemCount (); */
  NS_IMETHOD GetItemCount(PRUint64 *_retval) = 0;

  /* nsISimpleEnumerator getItems (); */
  NS_IMETHOD GetItems(nsISimpleEnumerator **_retval) = 0;

  /* flockIFeed subscribeURL (in AString url, in AString title); */
  NS_IMETHOD SubscribeURL(const nsAString & url, const nsAString & title, flockIFeed **_retval) = 0;

  /* void subscribeFeed (in flockIFeed feed); */
  NS_IMETHOD SubscribeFeed(flockIFeed *feed) = 0;

  /* void unsubscribeFeed (in flockIFeed feed); */
  NS_IMETHOD UnsubscribeFeed(flockIFeed *feed) = 0;

  /* void subscribeFeedWithPosition (in flockIFeed feed, in flockIFeedFolderItem target, in long orientation); */
  NS_IMETHOD SubscribeFeedWithPosition(flockIFeed *feed, flockIFeedFolderItem *target, PRInt32 orientation) = 0;

  enum { ORIENT_ABOVE = -1 };

  enum { ORIENT_INSIDE = 0 };

  enum { ORIENT_BELOW = 1 };

  /* flockIFeedFolder addFolder (in AString title); */
  NS_IMETHOD AddFolder(const nsAString & title, flockIFeedFolder **_retval) = 0;

  /* void removeFolder (in flockIFeedFolder folder); */
  NS_IMETHOD RemoveFolder(flockIFeedFolder *folder) = 0;

  /* flockIFeedFolder getChildFolder (in AString title); */
  NS_IMETHOD GetChildFolder(const nsAString & title, flockIFeedFolder **_retval) = 0;

  /* nsISimpleEnumerator getChildren (); */
  NS_IMETHOD GetChildren(nsISimpleEnumerator **_retval) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIFEEDFOLDER \
  NS_IMETHOD GetItemCount(PRUint64 *_retval); \
  NS_IMETHOD GetItems(nsISimpleEnumerator **_retval); \
  NS_IMETHOD SubscribeURL(const nsAString & url, const nsAString & title, flockIFeed **_retval); \
  NS_IMETHOD SubscribeFeed(flockIFeed *feed); \
  NS_IMETHOD UnsubscribeFeed(flockIFeed *feed); \
  NS_IMETHOD SubscribeFeedWithPosition(flockIFeed *feed, flockIFeedFolderItem *target, PRInt32 orientation); \
  NS_IMETHOD AddFolder(const nsAString & title, flockIFeedFolder **_retval); \
  NS_IMETHOD RemoveFolder(flockIFeedFolder *folder); \
  NS_IMETHOD GetChildFolder(const nsAString & title, flockIFeedFolder **_retval); \
  NS_IMETHOD GetChildren(nsISimpleEnumerator **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKIFEEDFOLDER(_to) \
  NS_IMETHOD GetItemCount(PRUint64 *_retval) { return _to GetItemCount(_retval); } \
  NS_IMETHOD GetItems(nsISimpleEnumerator **_retval) { return _to GetItems(_retval); } \
  NS_IMETHOD SubscribeURL(const nsAString & url, const nsAString & title, flockIFeed **_retval) { return _to SubscribeURL(url, title, _retval); } \
  NS_IMETHOD SubscribeFeed(flockIFeed *feed) { return _to SubscribeFeed(feed); } \
  NS_IMETHOD UnsubscribeFeed(flockIFeed *feed) { return _to UnsubscribeFeed(feed); } \
  NS_IMETHOD SubscribeFeedWithPosition(flockIFeed *feed, flockIFeedFolderItem *target, PRInt32 orientation) { return _to SubscribeFeedWithPosition(feed, target, orientation); } \
  NS_IMETHOD AddFolder(const nsAString & title, flockIFeedFolder **_retval) { return _to AddFolder(title, _retval); } \
  NS_IMETHOD RemoveFolder(flockIFeedFolder *folder) { return _to RemoveFolder(folder); } \
  NS_IMETHOD GetChildFolder(const nsAString & title, flockIFeedFolder **_retval) { return _to GetChildFolder(title, _retval); } \
  NS_IMETHOD GetChildren(nsISimpleEnumerator **_retval) { return _to GetChildren(_retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKIFEEDFOLDER(_to) \
  NS_IMETHOD GetItemCount(PRUint64 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItemCount(_retval); } \
  NS_IMETHOD GetItems(nsISimpleEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItems(_retval); } \
  NS_IMETHOD SubscribeURL(const nsAString & url, const nsAString & title, flockIFeed **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SubscribeURL(url, title, _retval); } \
  NS_IMETHOD SubscribeFeed(flockIFeed *feed) { return !_to ? NS_ERROR_NULL_POINTER : _to->SubscribeFeed(feed); } \
  NS_IMETHOD UnsubscribeFeed(flockIFeed *feed) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnsubscribeFeed(feed); } \
  NS_IMETHOD SubscribeFeedWithPosition(flockIFeed *feed, flockIFeedFolderItem *target, PRInt32 orientation) { return !_to ? NS_ERROR_NULL_POINTER : _to->SubscribeFeedWithPosition(feed, target, orientation); } \
  NS_IMETHOD AddFolder(const nsAString & title, flockIFeedFolder **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddFolder(title, _retval); } \
  NS_IMETHOD RemoveFolder(flockIFeedFolder *folder) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveFolder(folder); } \
  NS_IMETHOD GetChildFolder(const nsAString & title, flockIFeedFolder **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildFolder(title, _retval); } \
  NS_IMETHOD GetChildren(nsISimpleEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildren(_retval); } 

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

/* Header file */
class _MYCLASS_ : public flockIFeedFolder
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKIFEEDFOLDER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* PRUint64 getItemCount (); */
NS_IMETHODIMP _MYCLASS_::GetItemCount(PRUint64 *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsISimpleEnumerator getItems (); */
NS_IMETHODIMP _MYCLASS_::GetItems(nsISimpleEnumerator **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* flockIFeed subscribeURL (in AString url, in AString title); */
NS_IMETHODIMP _MYCLASS_::SubscribeURL(const nsAString & url, const nsAString & title, flockIFeed **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void subscribeFeed (in flockIFeed feed); */
NS_IMETHODIMP _MYCLASS_::SubscribeFeed(flockIFeed *feed)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void unsubscribeFeed (in flockIFeed feed); */
NS_IMETHODIMP _MYCLASS_::UnsubscribeFeed(flockIFeed *feed)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void subscribeFeedWithPosition (in flockIFeed feed, in flockIFeedFolderItem target, in long orientation); */
NS_IMETHODIMP _MYCLASS_::SubscribeFeedWithPosition(flockIFeed *feed, flockIFeedFolderItem *target, PRInt32 orientation)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* flockIFeedFolder addFolder (in AString title); */
NS_IMETHODIMP _MYCLASS_::AddFolder(const nsAString & title, flockIFeedFolder **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeFolder (in flockIFeedFolder folder); */
NS_IMETHODIMP _MYCLASS_::RemoveFolder(flockIFeedFolder *folder)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* flockIFeedFolder getChildFolder (in AString title); */
NS_IMETHODIMP _MYCLASS_::GetChildFolder(const nsAString & title, flockIFeedFolder **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsISimpleEnumerator getChildren (); */
NS_IMETHODIMP _MYCLASS_::GetChildren(nsISimpleEnumerator **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockIFeedFolder_h__ */
