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

#ifndef __gen_nsISidebar_h__
#define __gen_nsISidebar_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:    nsISidebar */
#define NS_ISIDEBAR_IID_STR "97bfa970-8222-4c3f-bbe8-42141e4c7982"

#define NS_ISIDEBAR_IID \
  {0x97bfa970, 0x8222, 0x4c3f, \
    { 0xbb, 0xe8, 0x42, 0x14, 0x1e, 0x4c, 0x79, 0x82 }}

class NS_NO_VTABLE nsISidebar : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISIDEBAR_IID)

  /* void addPanel (in DOMString aTitle, in DOMString aContentURL, in DOMString aCustomizeURL); */
  NS_IMETHOD AddPanel(const nsAString & aTitle, const nsAString & aContentURL, const nsAString & aCustomizeURL) = 0;

  /* void addPersistentPanel (in DOMString aTitle, in DOMString aContentURL, in DOMString aCustomizeURL); */
  NS_IMETHOD AddPersistentPanel(const nsAString & aTitle, const nsAString & aContentURL, const nsAString & aCustomizeURL) = 0;

  /* void addSearchEngine (in DOMString engineURL, in DOMString iconURL, in DOMString suggestedTitle, in DOMString suggestedCategory); */
  NS_IMETHOD AddSearchEngine(const nsAString & engineURL, const nsAString & iconURL, const nsAString & suggestedTitle, const nsAString & suggestedCategory) = 0;

  /* void AddSearchProvider (in DOMString aDescriptionURL); */
  NS_IMETHOD AddSearchProvider(const nsAString & aDescriptionURL) = 0;

  /* unsigned long IsSearchProviderInstalled (in DOMString aSearchURL); */
  NS_IMETHOD IsSearchProviderInstalled(const nsAString & aSearchURL, uint32_t *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsISidebar, NS_ISIDEBAR_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISIDEBAR \
  NS_IMETHOD AddPanel(const nsAString & aTitle, const nsAString & aContentURL, const nsAString & aCustomizeURL) MOZ_OVERRIDE; \
  NS_IMETHOD AddPersistentPanel(const nsAString & aTitle, const nsAString & aContentURL, const nsAString & aCustomizeURL) MOZ_OVERRIDE; \
  NS_IMETHOD AddSearchEngine(const nsAString & engineURL, const nsAString & iconURL, const nsAString & suggestedTitle, const nsAString & suggestedCategory) MOZ_OVERRIDE; \
  NS_IMETHOD AddSearchProvider(const nsAString & aDescriptionURL) MOZ_OVERRIDE; \
  NS_IMETHOD IsSearchProviderInstalled(const nsAString & aSearchURL, uint32_t *_retval) MOZ_OVERRIDE; 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISIDEBAR(_to) \
  NS_IMETHOD AddPanel(const nsAString & aTitle, const nsAString & aContentURL, const nsAString & aCustomizeURL) MOZ_OVERRIDE { return _to AddPanel(aTitle, aContentURL, aCustomizeURL); } \
  NS_IMETHOD AddPersistentPanel(const nsAString & aTitle, const nsAString & aContentURL, const nsAString & aCustomizeURL) MOZ_OVERRIDE { return _to AddPersistentPanel(aTitle, aContentURL, aCustomizeURL); } \
  NS_IMETHOD AddSearchEngine(const nsAString & engineURL, const nsAString & iconURL, const nsAString & suggestedTitle, const nsAString & suggestedCategory) MOZ_OVERRIDE { return _to AddSearchEngine(engineURL, iconURL, suggestedTitle, suggestedCategory); } \
  NS_IMETHOD AddSearchProvider(const nsAString & aDescriptionURL) MOZ_OVERRIDE { return _to AddSearchProvider(aDescriptionURL); } \
  NS_IMETHOD IsSearchProviderInstalled(const nsAString & aSearchURL, uint32_t *_retval) MOZ_OVERRIDE { return _to IsSearchProviderInstalled(aSearchURL, _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_NSISIDEBAR(_to) \
  NS_IMETHOD AddPanel(const nsAString & aTitle, const nsAString & aContentURL, const nsAString & aCustomizeURL) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->AddPanel(aTitle, aContentURL, aCustomizeURL); } \
  NS_IMETHOD AddPersistentPanel(const nsAString & aTitle, const nsAString & aContentURL, const nsAString & aCustomizeURL) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->AddPersistentPanel(aTitle, aContentURL, aCustomizeURL); } \
  NS_IMETHOD AddSearchEngine(const nsAString & engineURL, const nsAString & iconURL, const nsAString & suggestedTitle, const nsAString & suggestedCategory) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->AddSearchEngine(engineURL, iconURL, suggestedTitle, suggestedCategory); } \
  NS_IMETHOD AddSearchProvider(const nsAString & aDescriptionURL) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->AddSearchProvider(aDescriptionURL); } \
  NS_IMETHOD IsSearchProviderInstalled(const nsAString & aSearchURL, uint32_t *_retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSearchProviderInstalled(aSearchURL, _retval); } 

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

/* Header file */
class nsSidebar : public nsISidebar
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISIDEBAR

  nsSidebar();

private:
  ~nsSidebar();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsSidebar, nsISidebar)

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

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

/* void addPanel (in DOMString aTitle, in DOMString aContentURL, in DOMString aCustomizeURL); */
NS_IMETHODIMP nsSidebar::AddPanel(const nsAString & aTitle, const nsAString & aContentURL, const nsAString & aCustomizeURL)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void addPersistentPanel (in DOMString aTitle, in DOMString aContentURL, in DOMString aCustomizeURL); */
NS_IMETHODIMP nsSidebar::AddPersistentPanel(const nsAString & aTitle, const nsAString & aContentURL, const nsAString & aCustomizeURL)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void addSearchEngine (in DOMString engineURL, in DOMString iconURL, in DOMString suggestedTitle, in DOMString suggestedCategory); */
NS_IMETHODIMP nsSidebar::AddSearchEngine(const nsAString & engineURL, const nsAString & iconURL, const nsAString & suggestedTitle, const nsAString & suggestedCategory)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void AddSearchProvider (in DOMString aDescriptionURL); */
NS_IMETHODIMP nsSidebar::AddSearchProvider(const nsAString & aDescriptionURL)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* unsigned long IsSearchProviderInstalled (in DOMString aSearchURL); */
NS_IMETHODIMP nsSidebar::IsSearchProviderInstalled(const nsAString & aSearchURL, uint32_t *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsISidebar_h__ */
