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

#ifndef __gen_flockIFavoritesService_h__
#define __gen_flockIFavoritesService_h__


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

#ifndef __gen_nsIRDFDataSource_h__
#include "nsIRDFDataSource.h"
#endif

#ifndef __gen_nsIBookmarksService_h__
#include "nsIBookmarksService.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIFile; /* forward declaration */


/* starting interface:    flockIFavoritesService */
#define FLOCKIFAVORITESSERVICE_IID_STR "2ef98743-1714-4de1-88f2-7771c63dcde8"

#define FLOCKIFAVORITESSERVICE_IID \
  {0x2ef98743, 0x1714, 0x4de1, \
    { 0x88, 0xf2, 0x77, 0x71, 0xc6, 0x3d, 0xcd, 0xe8 }}

/**
 * flockIFavoritesService is the interface that the flock favorites service
 * exposes to allow the rest of the browser and extensions to interact
 * with favorites data.
 */
class NS_NO_VTABLE flockIFavoritesService : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(FLOCKIFAVORITESSERVICE_IID)

  /* void setupDefaultFavorites (); */
  NS_IMETHOD SetupDefaultFavorites(void) = 0;

  /* void init (in nsIRDFDataSource aDataSource); */
  NS_IMETHOD Init(nsIRDFDataSource *aDataSource) = 0;

  /* nsIRDFResource createBookmarkWithTags (in wstring aName, in wstring aURL, in wstring aShortcutURL, in wstring aDescription, in wstring aDocCharSet, in wstring aPostData, in wstring aTags); */
  NS_IMETHOD CreateBookmarkWithTags(const PRUnichar *aName, const PRUnichar *aURL, const PRUnichar *aShortcutURL, const PRUnichar *aDescription, const PRUnichar *aDocCharSet, const PRUnichar *aPostData, const PRUnichar *aTags, nsIRDFResource **_retval) = 0;

  /* nsIRDFResource addBookmarkToFolder (in wstring aFolderName, in wstring aName, in wstring aURL, in wstring aShortcutURL, in wstring aDescription, in wstring aDocCharSet, in wstring aPostData, in wstring aTags); */
  NS_IMETHOD AddBookmarkToFolder(const PRUnichar *aFolderName, const PRUnichar *aName, const PRUnichar *aURL, const PRUnichar *aShortcutURL, const PRUnichar *aDescription, const PRUnichar *aDocCharSet, const PRUnichar *aPostData, const PRUnichar *aTags, nsIRDFResource **_retval) = 0;

  /* void writeBookmarks (in nsIFile aBookmarksFile); */
  NS_IMETHOD WriteBookmarks(nsIFile *aBookmarksFile) = 0;

  /* void importBookmarks (in nsIFile aBookmarksFile); */
  NS_IMETHOD ImportBookmarks(nsIFile *aBookmarksFile) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIFAVORITESSERVICE \
  NS_IMETHOD SetupDefaultFavorites(void); \
  NS_IMETHOD Init(nsIRDFDataSource *aDataSource); \
  NS_IMETHOD CreateBookmarkWithTags(const PRUnichar *aName, const PRUnichar *aURL, const PRUnichar *aShortcutURL, const PRUnichar *aDescription, const PRUnichar *aDocCharSet, const PRUnichar *aPostData, const PRUnichar *aTags, nsIRDFResource **_retval); \
  NS_IMETHOD AddBookmarkToFolder(const PRUnichar *aFolderName, const PRUnichar *aName, const PRUnichar *aURL, const PRUnichar *aShortcutURL, const PRUnichar *aDescription, const PRUnichar *aDocCharSet, const PRUnichar *aPostData, const PRUnichar *aTags, nsIRDFResource **_retval); \
  NS_IMETHOD WriteBookmarks(nsIFile *aBookmarksFile); \
  NS_IMETHOD ImportBookmarks(nsIFile *aBookmarksFile); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKIFAVORITESSERVICE(_to) \
  NS_IMETHOD SetupDefaultFavorites(void) { return _to SetupDefaultFavorites(); } \
  NS_IMETHOD Init(nsIRDFDataSource *aDataSource) { return _to Init(aDataSource); } \
  NS_IMETHOD CreateBookmarkWithTags(const PRUnichar *aName, const PRUnichar *aURL, const PRUnichar *aShortcutURL, const PRUnichar *aDescription, const PRUnichar *aDocCharSet, const PRUnichar *aPostData, const PRUnichar *aTags, nsIRDFResource **_retval) { return _to CreateBookmarkWithTags(aName, aURL, aShortcutURL, aDescription, aDocCharSet, aPostData, aTags, _retval); } \
  NS_IMETHOD AddBookmarkToFolder(const PRUnichar *aFolderName, const PRUnichar *aName, const PRUnichar *aURL, const PRUnichar *aShortcutURL, const PRUnichar *aDescription, const PRUnichar *aDocCharSet, const PRUnichar *aPostData, const PRUnichar *aTags, nsIRDFResource **_retval) { return _to AddBookmarkToFolder(aFolderName, aName, aURL, aShortcutURL, aDescription, aDocCharSet, aPostData, aTags, _retval); } \
  NS_IMETHOD WriteBookmarks(nsIFile *aBookmarksFile) { return _to WriteBookmarks(aBookmarksFile); } \
  NS_IMETHOD ImportBookmarks(nsIFile *aBookmarksFile) { return _to ImportBookmarks(aBookmarksFile); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKIFAVORITESSERVICE(_to) \
  NS_IMETHOD SetupDefaultFavorites(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetupDefaultFavorites(); } \
  NS_IMETHOD Init(nsIRDFDataSource *aDataSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aDataSource); } \
  NS_IMETHOD CreateBookmarkWithTags(const PRUnichar *aName, const PRUnichar *aURL, const PRUnichar *aShortcutURL, const PRUnichar *aDescription, const PRUnichar *aDocCharSet, const PRUnichar *aPostData, const PRUnichar *aTags, nsIRDFResource **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateBookmarkWithTags(aName, aURL, aShortcutURL, aDescription, aDocCharSet, aPostData, aTags, _retval); } \
  NS_IMETHOD AddBookmarkToFolder(const PRUnichar *aFolderName, const PRUnichar *aName, const PRUnichar *aURL, const PRUnichar *aShortcutURL, const PRUnichar *aDescription, const PRUnichar *aDocCharSet, const PRUnichar *aPostData, const PRUnichar *aTags, nsIRDFResource **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddBookmarkToFolder(aFolderName, aName, aURL, aShortcutURL, aDescription, aDocCharSet, aPostData, aTags, _retval); } \
  NS_IMETHOD WriteBookmarks(nsIFile *aBookmarksFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteBookmarks(aBookmarksFile); } \
  NS_IMETHOD ImportBookmarks(nsIFile *aBookmarksFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->ImportBookmarks(aBookmarksFile); } 

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

/* Header file */
class _MYCLASS_ : public flockIFavoritesService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKIFAVORITESSERVICE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* void setupDefaultFavorites (); */
NS_IMETHODIMP _MYCLASS_::SetupDefaultFavorites()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void init (in nsIRDFDataSource aDataSource); */
NS_IMETHODIMP _MYCLASS_::Init(nsIRDFDataSource *aDataSource)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIRDFResource createBookmarkWithTags (in wstring aName, in wstring aURL, in wstring aShortcutURL, in wstring aDescription, in wstring aDocCharSet, in wstring aPostData, in wstring aTags); */
NS_IMETHODIMP _MYCLASS_::CreateBookmarkWithTags(const PRUnichar *aName, const PRUnichar *aURL, const PRUnichar *aShortcutURL, const PRUnichar *aDescription, const PRUnichar *aDocCharSet, const PRUnichar *aPostData, const PRUnichar *aTags, nsIRDFResource **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIRDFResource addBookmarkToFolder (in wstring aFolderName, in wstring aName, in wstring aURL, in wstring aShortcutURL, in wstring aDescription, in wstring aDocCharSet, in wstring aPostData, in wstring aTags); */
NS_IMETHODIMP _MYCLASS_::AddBookmarkToFolder(const PRUnichar *aFolderName, const PRUnichar *aName, const PRUnichar *aURL, const PRUnichar *aShortcutURL, const PRUnichar *aDescription, const PRUnichar *aDocCharSet, const PRUnichar *aPostData, const PRUnichar *aTags, nsIRDFResource **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void writeBookmarks (in nsIFile aBookmarksFile); */
NS_IMETHODIMP _MYCLASS_::WriteBookmarks(nsIFile *aBookmarksFile)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void importBookmarks (in nsIFile aBookmarksFile); */
NS_IMETHODIMP _MYCLASS_::ImportBookmarks(nsIFile *aBookmarksFile)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockIFavoritesService_h__ */
