/*
 * 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_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 nsISimpleEnumerator; /* forward declaration */

class flockIFeed; /* forward declaration */

class flockIFeedItem; /* forward declaration */


/* starting interface:    flockIFeedFolder */
#define FLOCKIFEEDFOLDER_IID_STR "98ca920a-eb20-49c9-8e4d-8c56c8ec2141"

#define FLOCKIFEEDFOLDER_IID \
  {0x98ca920a, 0xeb20, 0x49c9, \
    { 0x8e, 0x4d, 0x8c, 0x56, 0xc8, 0xec, 0x21, 0x41 }}

class NS_NO_VTABLE NS_SCRIPTABLE flockIFeedFolder : public flockIFeedFolderItem {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(FLOCKIFEEDFOLDER_IID)

  /* flockIFeed subscribeURL (in AString aURL, in AString aTitle); */
  NS_SCRIPTABLE NS_IMETHOD SubscribeURL(const nsAString & aURL, const nsAString & aTitle, flockIFeed **_retval) = 0;

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

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

  /* void subscribeFeedWithPosition (in flockIFeed aFeed, in flockIFeedFolderItem aTarget, in long aOrientation); */
  NS_SCRIPTABLE NS_IMETHOD SubscribeFeedWithPosition(flockIFeed *aFeed, flockIFeedFolderItem *aTarget, PRInt32 aOrientation) = 0;

  enum { ORIENT_ABOVE = -1 };

  enum { ORIENT_INSIDE = 0 };

  enum { ORIENT_BELOW = 1 };

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

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

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

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

};

  NS_DEFINE_STATIC_IID_ACCESSOR(flockIFeedFolder, FLOCKIFEEDFOLDER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIFEEDFOLDER \
  NS_SCRIPTABLE NS_IMETHOD SubscribeURL(const nsAString & aURL, const nsAString & aTitle, flockIFeed **_retval); \
  NS_SCRIPTABLE NS_IMETHOD SubscribeFeed(flockIFeed *aFeed); \
  NS_SCRIPTABLE NS_IMETHOD UnsubscribeFeed(flockIFeed *aFeed); \
  NS_SCRIPTABLE NS_IMETHOD SubscribeFeedWithPosition(flockIFeed *aFeed, flockIFeedFolderItem *aTarget, PRInt32 aOrientation); \
  NS_SCRIPTABLE NS_IMETHOD AddFolder(const nsAString & aTitle, flockIFeedFolder **_retval); \
  NS_SCRIPTABLE NS_IMETHOD RemoveFolder(flockIFeedFolder *aFolder); \
  NS_SCRIPTABLE NS_IMETHOD GetChildFolder(const nsAString & aTitle, flockIFeedFolder **_retval); \
  NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD SubscribeURL(const nsAString & aURL, const nsAString & aTitle, flockIFeed **_retval) { return _to SubscribeURL(aURL, aTitle, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SubscribeFeed(flockIFeed *aFeed) { return _to SubscribeFeed(aFeed); } \
  NS_SCRIPTABLE NS_IMETHOD UnsubscribeFeed(flockIFeed *aFeed) { return _to UnsubscribeFeed(aFeed); } \
  NS_SCRIPTABLE NS_IMETHOD SubscribeFeedWithPosition(flockIFeed *aFeed, flockIFeedFolderItem *aTarget, PRInt32 aOrientation) { return _to SubscribeFeedWithPosition(aFeed, aTarget, aOrientation); } \
  NS_SCRIPTABLE NS_IMETHOD AddFolder(const nsAString & aTitle, flockIFeedFolder **_retval) { return _to AddFolder(aTitle, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD RemoveFolder(flockIFeedFolder *aFolder) { return _to RemoveFolder(aFolder); } \
  NS_SCRIPTABLE NS_IMETHOD GetChildFolder(const nsAString & aTitle, flockIFeedFolder **_retval) { return _to GetChildFolder(aTitle, _retval); } \
  NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD SubscribeURL(const nsAString & aURL, const nsAString & aTitle, flockIFeed **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SubscribeURL(aURL, aTitle, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SubscribeFeed(flockIFeed *aFeed) { return !_to ? NS_ERROR_NULL_POINTER : _to->SubscribeFeed(aFeed); } \
  NS_SCRIPTABLE NS_IMETHOD UnsubscribeFeed(flockIFeed *aFeed) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnsubscribeFeed(aFeed); } \
  NS_SCRIPTABLE NS_IMETHOD SubscribeFeedWithPosition(flockIFeed *aFeed, flockIFeedFolderItem *aTarget, PRInt32 aOrientation) { return !_to ? NS_ERROR_NULL_POINTER : _to->SubscribeFeedWithPosition(aFeed, aTarget, aOrientation); } \
  NS_SCRIPTABLE NS_IMETHOD AddFolder(const nsAString & aTitle, flockIFeedFolder **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddFolder(aTitle, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD RemoveFolder(flockIFeedFolder *aFolder) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveFolder(aFolder); } \
  NS_SCRIPTABLE NS_IMETHOD GetChildFolder(const nsAString & aTitle, flockIFeedFolder **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildFolder(aTitle, _retval); } \
  NS_SCRIPTABLE 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 */
}

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

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

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

/* void subscribeFeedWithPosition (in flockIFeed aFeed, in flockIFeedFolderItem aTarget, in long aOrientation); */
NS_IMETHODIMP _MYCLASS_::SubscribeFeedWithPosition(flockIFeed *aFeed, flockIFeedFolderItem *aTarget, PRInt32 aOrientation)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

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

/* flockIFeedFolder getChildFolder (in AString aTitle); */
NS_IMETHODIMP _MYCLASS_::GetChildFolder(const nsAString & aTitle, 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__ */
