/*
 * 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 "7fa94b9a-7334-4d96-8cb4-1682064ff8ee"

#define FLOCKISHELFSERVICE_IID \
  {0x7fa94b9a, 0x7334, 0x4d96, \
    { 0x8c, 0xb4, 0x16, 0x82, 0x06, 0x4f, 0xf8, 0xee }}

class NS_NO_VTABLE flockIShelfService : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(FLOCKISHELFSERVICE_IID)

  /* long elementsCount (); */
  NS_IMETHOD ElementsCount(PRInt32 *_retval) = 0;

  /* string insert (in AString aTitle, in AString aContent, in AString aUrl, in AString aType, in long aPosition, in AString aParentId); */
  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_IMETHOD CreateFolder(const nsAString & aName, char **_retval) = 0;

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

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

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

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

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

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

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKISHELFSERVICE \
  NS_IMETHOD ElementsCount(PRInt32 *_retval); \
  NS_IMETHOD Insert(const nsAString & aTitle, const nsAString & aContent, const nsAString & aUrl, const nsAString & aType, PRInt32 aPosition, const nsAString & aParentId, char **_retval); \
  NS_IMETHOD CreateFolder(const nsAString & aName, char **_retval); \
  NS_IMETHOD MoveTo(const nsAString & aId, const nsAString & aFolderId, PRInt32 *_retval); \
  NS_IMETHOD GetPositionOf(const nsAString & aId, PRInt32 *_retval); \
  NS_IMETHOD Remove(const nsAString & aId); \
  NS_IMETHOD ChangeAttribute(const nsAString & anId, const nsAString & aAttribute, const nsAString & aValue); \
  NS_IMETHOD GetTargetOf(const nsAString & anId, const nsAString & aTarget, nsAString & _retval); \
  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_IMETHOD ElementsCount(PRInt32 *_retval) { return _to ElementsCount(_retval); } \
  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_IMETHOD CreateFolder(const nsAString & aName, char **_retval) { return _to CreateFolder(aName, _retval); } \
  NS_IMETHOD MoveTo(const nsAString & aId, const nsAString & aFolderId, PRInt32 *_retval) { return _to MoveTo(aId, aFolderId, _retval); } \
  NS_IMETHOD GetPositionOf(const nsAString & aId, PRInt32 *_retval) { return _to GetPositionOf(aId, _retval); } \
  NS_IMETHOD Remove(const nsAString & aId) { return _to Remove(aId); } \
  NS_IMETHOD ChangeAttribute(const nsAString & anId, const nsAString & aAttribute, const nsAString & aValue) { return _to ChangeAttribute(anId, aAttribute, aValue); } \
  NS_IMETHOD GetTargetOf(const nsAString & anId, const nsAString & aTarget, nsAString & _retval) { return _to GetTargetOf(anId, aTarget, _retval); } \
  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_IMETHOD ElementsCount(PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ElementsCount(_retval); } \
  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_IMETHOD CreateFolder(const nsAString & aName, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateFolder(aName, _retval); } \
  NS_IMETHOD MoveTo(const nsAString & aId, const nsAString & aFolderId, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->MoveTo(aId, aFolderId, _retval); } \
  NS_IMETHOD GetPositionOf(const nsAString & aId, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPositionOf(aId, _retval); } \
  NS_IMETHOD Remove(const nsAString & aId) { return !_to ? NS_ERROR_NULL_POINTER : _to->Remove(aId); } \
  NS_IMETHOD ChangeAttribute(const nsAString & anId, const nsAString & aAttribute, const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->ChangeAttribute(anId, aAttribute, aValue); } \
  NS_IMETHOD GetTargetOf(const nsAString & anId, const nsAString & aTarget, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTargetOf(anId, aTarget, _retval); } \
  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 */
}

/* long elementsCount (); */
NS_IMETHODIMP _MYCLASS_::ElementsCount(PRInt32 *_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__ */
