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

#ifndef __gen_flockIShelfService_h__
#define __gen_flockIShelfService_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

/* starting interface:    flockIShelfService */
#define FLOCKISHELFSERVICE_IID_STR "5115ef2d-28a3-488c-8c9c-0b4544907fe3"

#define FLOCKISHELFSERVICE_IID \
  {0x5115ef2d, 0x28a3, 0x488c, \
    { 0x8c, 0x9c, 0x0b, 0x45, 0x44, 0x90, 0x7f, 0xe3 }}

class NS_NO_VTABLE NS_SCRIPTABLE flockIShelfService : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(FLOCKISHELFSERVICE_IID)

  /* boolean isEmpty (); */
  NS_SCRIPTABLE NS_IMETHOD IsEmpty(PRBool *_retval) = 0;

  /* string insert (in AString aTitle, in AString aContent, in AString aUrl, in AString aType, in long aPosition, in AString aParentId); */
  NS_SCRIPTABLE NS_IMETHOD Insert(const nsAString & aTitle, const nsAString & aContent, const nsAString & aUrl, const nsAString & aType, PRInt32 aPosition, const nsAString & aParentId, char **_retval) = 0;

  /* string createFolder (in AString aName); */
  NS_SCRIPTABLE NS_IMETHOD CreateFolder(const nsAString & aName, char **_retval) = 0;

  /* long moveTo (in AString aId, in AString aFolderId); */
  NS_SCRIPTABLE NS_IMETHOD MoveTo(const nsAString & aId, const nsAString & aFolderId, PRInt32 *_retval) = 0;

  /* long getPositionOf (in AString aId); */
  NS_SCRIPTABLE NS_IMETHOD GetPositionOf(const nsAString & aId, PRInt32 *_retval) = 0;

  /* void remove (in AString aId); */
  NS_SCRIPTABLE NS_IMETHOD Remove(const nsAString & aId) = 0;

  /* void changeAttribute (in AString anId, in AString aAttribute, in AString aValue); */
  NS_SCRIPTABLE NS_IMETHOD ChangeAttribute(const nsAString & anId, const nsAString & aAttribute, const nsAString & aValue) = 0;

  /* AString getTargetOf (in AString anId, in AString aTarget); */
  NS_SCRIPTABLE NS_IMETHOD GetTargetOf(const nsAString & anId, const nsAString & aTarget, nsAString & _retval) = 0;

  /* void clear (); */
  NS_SCRIPTABLE NS_IMETHOD Clear(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(flockIShelfService, FLOCKISHELFSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKISHELFSERVICE \
  NS_SCRIPTABLE NS_IMETHOD IsEmpty(PRBool *_retval); \
  NS_SCRIPTABLE NS_IMETHOD Insert(const nsAString & aTitle, const nsAString & aContent, const nsAString & aUrl, const nsAString & aType, PRInt32 aPosition, const nsAString & aParentId, char **_retval); \
  NS_SCRIPTABLE NS_IMETHOD CreateFolder(const nsAString & aName, char **_retval); \
  NS_SCRIPTABLE NS_IMETHOD MoveTo(const nsAString & aId, const nsAString & aFolderId, PRInt32 *_retval); \
  NS_SCRIPTABLE NS_IMETHOD GetPositionOf(const nsAString & aId, PRInt32 *_retval); \
  NS_SCRIPTABLE NS_IMETHOD Remove(const nsAString & aId); \
  NS_SCRIPTABLE NS_IMETHOD ChangeAttribute(const nsAString & anId, const nsAString & aAttribute, const nsAString & aValue); \
  NS_SCRIPTABLE NS_IMETHOD GetTargetOf(const nsAString & anId, const nsAString & aTarget, nsAString & _retval); \
  NS_SCRIPTABLE NS_IMETHOD Clear(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKISHELFSERVICE(_to) \
  NS_SCRIPTABLE NS_IMETHOD IsEmpty(PRBool *_retval) { return _to IsEmpty(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD Insert(const nsAString & aTitle, const nsAString & aContent, const nsAString & aUrl, const nsAString & aType, PRInt32 aPosition, const nsAString & aParentId, char **_retval) { return _to Insert(aTitle, aContent, aUrl, aType, aPosition, aParentId, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD CreateFolder(const nsAString & aName, char **_retval) { return _to CreateFolder(aName, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MoveTo(const nsAString & aId, const nsAString & aFolderId, PRInt32 *_retval) { return _to MoveTo(aId, aFolderId, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetPositionOf(const nsAString & aId, PRInt32 *_retval) { return _to GetPositionOf(aId, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Remove(const nsAString & aId) { return _to Remove(aId); } \
  NS_SCRIPTABLE NS_IMETHOD ChangeAttribute(const nsAString & anId, const nsAString & aAttribute, const nsAString & aValue) { return _to ChangeAttribute(anId, aAttribute, aValue); } \
  NS_SCRIPTABLE NS_IMETHOD GetTargetOf(const nsAString & anId, const nsAString & aTarget, nsAString & _retval) { return _to GetTargetOf(anId, aTarget, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Clear(void) { return _to Clear(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKISHELFSERVICE(_to) \
  NS_SCRIPTABLE NS_IMETHOD IsEmpty(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsEmpty(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD Insert(const nsAString & aTitle, const nsAString & aContent, const nsAString & aUrl, const nsAString & aType, PRInt32 aPosition, const nsAString & aParentId, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Insert(aTitle, aContent, aUrl, aType, aPosition, aParentId, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD CreateFolder(const nsAString & aName, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateFolder(aName, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MoveTo(const nsAString & aId, const nsAString & aFolderId, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->MoveTo(aId, aFolderId, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetPositionOf(const nsAString & aId, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPositionOf(aId, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Remove(const nsAString & aId) { return !_to ? NS_ERROR_NULL_POINTER : _to->Remove(aId); } \
  NS_SCRIPTABLE NS_IMETHOD ChangeAttribute(const nsAString & anId, const nsAString & aAttribute, const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->ChangeAttribute(anId, aAttribute, aValue); } \
  NS_SCRIPTABLE NS_IMETHOD GetTargetOf(const nsAString & anId, const nsAString & aTarget, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTargetOf(anId, aTarget, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Clear(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clear(); } 

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

/* Header file */
class _MYCLASS_ : public flockIShelfService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKISHELFSERVICE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* boolean isEmpty (); */
NS_IMETHODIMP _MYCLASS_::IsEmpty(PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* string insert (in AString aTitle, in AString aContent, in AString aUrl, in AString aType, in long aPosition, in AString aParentId); */
NS_IMETHODIMP _MYCLASS_::Insert(const nsAString & aTitle, const nsAString & aContent, const nsAString & aUrl, const nsAString & aType, PRInt32 aPosition, const nsAString & aParentId, char **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* string createFolder (in AString aName); */
NS_IMETHODIMP _MYCLASS_::CreateFolder(const nsAString & aName, char **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* long moveTo (in AString aId, in AString aFolderId); */
NS_IMETHODIMP _MYCLASS_::MoveTo(const nsAString & aId, const nsAString & aFolderId, PRInt32 *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* long getPositionOf (in AString aId); */
NS_IMETHODIMP _MYCLASS_::GetPositionOf(const nsAString & aId, PRInt32 *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void remove (in AString aId); */
NS_IMETHODIMP _MYCLASS_::Remove(const nsAString & aId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void changeAttribute (in AString anId, in AString aAttribute, in AString aValue); */
NS_IMETHODIMP _MYCLASS_::ChangeAttribute(const nsAString & anId, const nsAString & aAttribute, const nsAString & aValue)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AString getTargetOf (in AString anId, in AString aTarget); */
NS_IMETHODIMP _MYCLASS_::GetTargetOf(const nsAString & anId, const nsAString & aTarget, nsAString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void clear (); */
NS_IMETHODIMP _MYCLASS_::Clear()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockIShelfService_h__ */
