/* * DO NOT EDIT. THIS FILE IS GENERATED FROM 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 class nsIDOMWindowInternal; /* forward declaration */ /* starting interface: nsISidebar */ #define NS_ISIDEBAR_IID_STR "577cb745-8caf-11d3-aaef-00805f8a4905" #define NS_ISIDEBAR_IID \ {0x577cb745, 0x8caf, 0x11d3, \ { 0xaa, 0xef, 0x00, 0x80, 0x5f, 0x8a, 0x49, 0x05 }} class NS_NO_VTABLE nsISidebar : public nsISupports { public: NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISIDEBAR_IID) /* void setWindow (in nsIDOMWindowInternal aWindow); */ NS_IMETHOD SetWindow(nsIDOMWindowInternal *aWindow) = 0; /* void addPanel (in wstring aTitle, in string aContentURL, in string aCustomizeURL); */ NS_IMETHOD AddPanel(const PRUnichar *aTitle, const char *aContentURL, const char *aCustomizeURL) = 0; /* void addPersistentPanel (in wstring aTitle, in string aContentURL, in string aCustomizeURL); */ NS_IMETHOD AddPersistentPanel(const PRUnichar *aTitle, const char *aContentURL, const char *aCustomizeURL) = 0; /* void addSearchEngine (in string engineURL, in string iconURL, in wstring suggestedTitle, in wstring suggestedCategory); */ NS_IMETHOD AddSearchEngine(const char *engineURL, const char *iconURL, const PRUnichar *suggestedTitle, const PRUnichar *suggestedCategory) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISIDEBAR \ NS_IMETHOD SetWindow(nsIDOMWindowInternal *aWindow); \ NS_IMETHOD AddPanel(const PRUnichar *aTitle, const char *aContentURL, const char *aCustomizeURL); \ NS_IMETHOD AddPersistentPanel(const PRUnichar *aTitle, const char *aContentURL, const char *aCustomizeURL); \ NS_IMETHOD AddSearchEngine(const char *engineURL, const char *iconURL, const PRUnichar *suggestedTitle, const PRUnichar *suggestedCategory); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISIDEBAR(_to) \ NS_IMETHOD SetWindow(nsIDOMWindowInternal *aWindow) { return _to SetWindow(aWindow); } \ NS_IMETHOD AddPanel(const PRUnichar *aTitle, const char *aContentURL, const char *aCustomizeURL) { return _to AddPanel(aTitle, aContentURL, aCustomizeURL); } \ NS_IMETHOD AddPersistentPanel(const PRUnichar *aTitle, const char *aContentURL, const char *aCustomizeURL) { return _to AddPersistentPanel(aTitle, aContentURL, aCustomizeURL); } \ NS_IMETHOD AddSearchEngine(const char *engineURL, const char *iconURL, const PRUnichar *suggestedTitle, const PRUnichar *suggestedCategory) { return _to AddSearchEngine(engineURL, iconURL, suggestedTitle, suggestedCategory); } /* 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 SetWindow(nsIDOMWindowInternal *aWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWindow(aWindow); } \ NS_IMETHOD AddPanel(const PRUnichar *aTitle, const char *aContentURL, const char *aCustomizeURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddPanel(aTitle, aContentURL, aCustomizeURL); } \ NS_IMETHOD AddPersistentPanel(const PRUnichar *aTitle, const char *aContentURL, const char *aCustomizeURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddPersistentPanel(aTitle, aContentURL, aCustomizeURL); } \ NS_IMETHOD AddSearchEngine(const char *engineURL, const char *iconURL, const PRUnichar *suggestedTitle, const PRUnichar *suggestedCategory) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddSearchEngine(engineURL, iconURL, suggestedTitle, suggestedCategory); } #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(); virtual ~nsSidebar(); /* additional members */ }; /* Implementation file */ NS_IMPL_ISUPPORTS1(nsSidebar, nsISidebar) nsSidebar::nsSidebar() { NS_INIT_ISUPPORTS(); /* member initializers and constructor code */ } nsSidebar::~nsSidebar() { /* destructor code */ } /* void setWindow (in nsIDOMWindowInternal aWindow); */ NS_IMETHODIMP nsSidebar::SetWindow(nsIDOMWindowInternal *aWindow) { return NS_ERROR_NOT_IMPLEMENTED; } /* void addPanel (in wstring aTitle, in string aContentURL, in string aCustomizeURL); */ NS_IMETHODIMP nsSidebar::AddPanel(const PRUnichar *aTitle, const char *aContentURL, const char *aCustomizeURL) { return NS_ERROR_NOT_IMPLEMENTED; } /* void addPersistentPanel (in wstring aTitle, in string aContentURL, in string aCustomizeURL); */ NS_IMETHODIMP nsSidebar::AddPersistentPanel(const PRUnichar *aTitle, const char *aContentURL, const char *aCustomizeURL) { return NS_ERROR_NOT_IMPLEMENTED; } /* void addSearchEngine (in string engineURL, in string iconURL, in wstring suggestedTitle, in wstring suggestedCategory); */ NS_IMETHODIMP nsSidebar::AddSearchEngine(const char *engineURL, const char *iconURL, const PRUnichar *suggestedTitle, const PRUnichar *suggestedCategory) { return NS_ERROR_NOT_IMPLEMENTED; } /* End of implementation class template. */ #endif // {577CB744-8CAF-11d3-AAEF-00805F8A4905} #define NS_SIDEBAR_CID \ { 0x577cb744, 0x8caf, 0x11d3, { 0xaa, 0xef, 0x0, 0x80, 0x5f, 0x8a, 0x49, 0x5 } } #define NS_SIDEBAR_CONTRACTID "@mozilla.org/sidebar;1" #endif /* __gen_nsISidebar_h__ */ .