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

#ifndef __gen_nsIGlobalHistory_h__
#define __gen_nsIGlobalHistory_h__

#include "nsISupports.h"

#include "nscore.h" // for PRUnichar

/* starting interface:    nsIGlobalHistory */
#define NS_IGLOBALHISTORY_IID_STR "9491c383-e3c4-11d2-bdbe-0050040a9b44"

#define NS_IGLOBALHISTORY_IID \
  {0x9491c383, 0xe3c4, 0x11d2, \
    { 0xbd, 0xbe, 0x00, 0x50, 0x04, 0x0a, 0x9b, 0x44 }}

class NS_NO_VTABLE nsIGlobalHistory : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IGLOBALHISTORY_IID)

  /* void AddPage (in string aURL, in string aReferrerURL, in long long aDate); */
  NS_IMETHOD AddPage(const char *aURL, const char *aReferrerURL, PRInt64 aDate) = 0;

  /* void SetPageTitle (in string aURL, in wstring aTitle); */
  NS_IMETHOD SetPageTitle(const char *aURL, const PRUnichar *aTitle) = 0;

  /* void RemovePage (in string aURL); */
  NS_IMETHOD RemovePage(const char *aURL) = 0;

  /* long long GetLastVisitDate (in string aURL); */
  NS_IMETHOD GetLastVisitDate(const char *aURL, PRInt64 *_retval) = 0;

  /* string GetURLCompletion (in string aURL); */
  NS_IMETHOD GetURLCompletion(const char *aURL, char **_retval) = 0;

  /* string GetLastPageVisted (); */
  NS_IMETHOD GetLastPageVisted(char **_retval) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIGLOBALHISTORY \
  NS_IMETHOD AddPage(const char *aURL, const char *aReferrerURL, PRInt64 aDate); \
  NS_IMETHOD SetPageTitle(const char *aURL, const PRUnichar *aTitle); \
  NS_IMETHOD RemovePage(const char *aURL); \
  NS_IMETHOD GetLastVisitDate(const char *aURL, PRInt64 *_retval); \
  NS_IMETHOD GetURLCompletion(const char *aURL, char **_retval); \
  NS_IMETHOD GetLastPageVisted(char **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIGLOBALHISTORY(_to) \
  NS_IMETHOD AddPage(const char *aURL, const char *aReferrerURL, PRInt64 aDate) { return _to ## AddPage(aURL, aReferrerURL, aDate); } \
  NS_IMETHOD SetPageTitle(const char *aURL, const PRUnichar *aTitle) { return _to ## SetPageTitle(aURL, aTitle); } \
  NS_IMETHOD RemovePage(const char *aURL) { return _to ## RemovePage(aURL); } \
  NS_IMETHOD GetLastVisitDate(const char *aURL, PRInt64 *_retval) { return _to ## GetLastVisitDate(aURL, _retval); } \
  NS_IMETHOD GetURLCompletion(const char *aURL, char **_retval) { return _to ## GetURLCompletion(aURL, _retval); } \
  NS_IMETHOD GetLastPageVisted(char **_retval) { return _to ## GetLastPageVisted(_retval); } 

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

/* Header file */
class nsGlobalHistory : public nsIGlobalHistory
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIGLOBALHISTORY

  nsGlobalHistory();
  virtual ~nsGlobalHistory();
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsGlobalHistory, nsIGlobalHistory)

nsGlobalHistory::nsGlobalHistory()
{
  NS_INIT_ISUPPORTS();
  /* member initializers and constructor code */
}

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

/* void AddPage (in string aURL, in string aReferrerURL, in long long aDate); */
NS_IMETHODIMP nsGlobalHistory::AddPage(const char *aURL, const char *aReferrerURL, PRInt64 aDate)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void SetPageTitle (in string aURL, in wstring aTitle); */
NS_IMETHODIMP nsGlobalHistory::SetPageTitle(const char *aURL, const PRUnichar *aTitle)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void RemovePage (in string aURL); */
NS_IMETHODIMP nsGlobalHistory::RemovePage(const char *aURL)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* long long GetLastVisitDate (in string aURL); */
NS_IMETHODIMP nsGlobalHistory::GetLastVisitDate(const char *aURL, PRInt64 *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* string GetURLCompletion (in string aURL); */
NS_IMETHODIMP nsGlobalHistory::GetURLCompletion(const char *aURL, char **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* string GetLastPageVisted (); */
NS_IMETHODIMP nsGlobalHistory::GetLastPageVisted(char **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

// {9491C382-E3C4-11D2-BDBE-0050040A9B44}
#define NS_GLOBALHISTORY_CID \
{ 0x9491c382, 0xe3c4, 0x11d2, { 0xbd, 0xbe, 0x0, 0x50, 0x4, 0xa, 0x9b, 0x44} }
#define NS_GLOBALHISTORY_CONTRACTID \
    "@mozilla.org/browser/global-history;1"
#define NS_GLOBALHISTORY_DATASOURCE_CONTRACTID \
    "@mozilla.org/rdf/datasource;1?name=history"

#endif /* __gen_nsIGlobalHistory_h__ */
