PageRenderTime 64ms CodeModel.GetById 58ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/gecko_api/include/nsIGlobalHistory.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 118 lines | 58 code | 28 blank | 32 comment | 0 complexity | 89b2c1842a4822ab472e3573e8775400 MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/docshell/base/nsIGlobalHistory.idl
  3 */
  4
  5#ifndef __gen_nsIGlobalHistory_h__
  6#define __gen_nsIGlobalHistory_h__
  7
  8
  9#ifndef __gen_nsISupports_h__
 10#include "nsISupports.h"
 11#endif
 12
 13/* For IDL files that don't want to include root IDL files. */
 14#ifndef NS_NO_VTABLE
 15#define NS_NO_VTABLE
 16#endif
 17
 18/* starting interface:    nsIGlobalHistory */
 19#define NS_IGLOBALHISTORY_IID_STR "9491c383-e3c4-11d2-bdbe-0050040a9b44"
 20
 21#define NS_IGLOBALHISTORY_IID \
 22  {0x9491c383, 0xe3c4, 0x11d2, \
 23    { 0xbd, 0xbe, 0x00, 0x50, 0x04, 0x0a, 0x9b, 0x44 }}
 24
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIGlobalHistory : public nsISupports {
 26 public: 
 27
 28  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGLOBALHISTORY_IID)
 29
 30  /**
 31     * addPage
 32     * Add a page to the history
 33     *
 34     * @param aURL the url to the page
 35     */
 36  /* void addPage (in string aURL); */
 37  NS_SCRIPTABLE NS_IMETHOD AddPage(const char *aURL) = 0;
 38
 39  /**
 40     * isVisited
 41     * Checks to see if the given page is in history
 42     *
 43     * @return true if a page has been passed into addPage().
 44     * @param aURL the url to the page
 45     */
 46  /* boolean isVisited (in string aURL); */
 47  NS_SCRIPTABLE NS_IMETHOD IsVisited(const char *aURL, PRBool *_retval) = 0;
 48
 49};
 50
 51  NS_DEFINE_STATIC_IID_ACCESSOR(nsIGlobalHistory, NS_IGLOBALHISTORY_IID)
 52
 53/* Use this macro when declaring classes that implement this interface. */
 54#define NS_DECL_NSIGLOBALHISTORY \
 55  NS_SCRIPTABLE NS_IMETHOD AddPage(const char *aURL); \
 56  NS_SCRIPTABLE NS_IMETHOD IsVisited(const char *aURL, PRBool *_retval); 
 57
 58/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 59#define NS_FORWARD_NSIGLOBALHISTORY(_to) \
 60  NS_SCRIPTABLE NS_IMETHOD AddPage(const char *aURL) { return _to AddPage(aURL); } \
 61  NS_SCRIPTABLE NS_IMETHOD IsVisited(const char *aURL, PRBool *_retval) { return _to IsVisited(aURL, _retval); } 
 62
 63/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 64#define NS_FORWARD_SAFE_NSIGLOBALHISTORY(_to) \
 65  NS_SCRIPTABLE NS_IMETHOD AddPage(const char *aURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddPage(aURL); } \
 66  NS_SCRIPTABLE NS_IMETHOD IsVisited(const char *aURL, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsVisited(aURL, _retval); } 
 67
 68#if 0
 69/* Use the code below as a template for the implementation class for this interface. */
 70
 71/* Header file */
 72class nsGlobalHistory : public nsIGlobalHistory
 73{
 74public:
 75  NS_DECL_ISUPPORTS
 76  NS_DECL_NSIGLOBALHISTORY
 77
 78  nsGlobalHistory();
 79
 80private:
 81  ~nsGlobalHistory();
 82
 83protected:
 84  /* additional members */
 85};
 86
 87/* Implementation file */
 88NS_IMPL_ISUPPORTS1(nsGlobalHistory, nsIGlobalHistory)
 89
 90nsGlobalHistory::nsGlobalHistory()
 91{
 92  /* member initializers and constructor code */
 93}
 94
 95nsGlobalHistory::~nsGlobalHistory()
 96{
 97  /* destructor code */
 98}
 99
100/* void addPage (in string aURL); */
101NS_IMETHODIMP nsGlobalHistory::AddPage(const char *aURL)
102{
103    return NS_ERROR_NOT_IMPLEMENTED;
104}
105
106/* boolean isVisited (in string aURL); */
107NS_IMETHODIMP nsGlobalHistory::IsVisited(const char *aURL, PRBool *_retval)
108{
109    return NS_ERROR_NOT_IMPLEMENTED;
110}
111
112/* End of implementation class template. */
113#endif
114
115#define NS_GLOBALHISTORY_CONTRACTID \
116    "@mozilla.org/browser/global-history;1"
117
118#endif /* __gen_nsIGlobalHistory_h__ */