LCOV - code coverage report
Current view: directory - objdir/dist/include - nsISHistory.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 0 0.0 %
Date: 2012-06-02 Functions: 1 0 0.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/docshell/shistory/public/nsISHistory.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsISHistory_h__
       6                 : #define __gen_nsISHistory_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                 : class nsIHistoryEntry; /* forward declaration */
      18                 : 
      19                 : class nsISHistoryListener; /* forward declaration */
      20                 : 
      21                 : class nsISimpleEnumerator; /* forward declaration */
      22                 : 
      23                 : #define NS_SHISTORY_CID \
      24                 : {0x7294fe9c, 0x14d8, 0x11d5, {0x98, 0x82, 0x00, 0xC0, 0x4f, 0xa0, 0x2f, 0x40}}
      25                 : #define NS_SHISTORY_CONTRACTID "@mozilla.org/browser/shistory;1"
      26                 : 
      27                 : /* starting interface:    nsISHistory */
      28                 : #define NS_ISHISTORY_IID_STR "ef2c9bcb-96b8-4095-933a-cb1c506f2c58"
      29                 : 
      30                 : #define NS_ISHISTORY_IID \
      31                 :   {0xef2c9bcb, 0x96b8, 0x4095, \
      32                 :     { 0x93, 0x3a, 0xcb, 0x1c, 0x50, 0x6f, 0x2c, 0x58 }}
      33                 : 
      34               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsISHistory : public nsISupports {
      35                 :  public: 
      36                 : 
      37                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISHISTORY_IID)
      38                 : 
      39                 :   /* readonly attribute long count; */
      40                 :   NS_SCRIPTABLE NS_IMETHOD GetCount(PRInt32 *aCount) = 0;
      41                 : 
      42                 :   /* readonly attribute long index; */
      43                 :   NS_SCRIPTABLE NS_IMETHOD GetIndex(PRInt32 *aIndex) = 0;
      44                 : 
      45                 :   /* readonly attribute long requestedIndex; */
      46                 :   NS_SCRIPTABLE NS_IMETHOD GetRequestedIndex(PRInt32 *aRequestedIndex) = 0;
      47                 : 
      48                 :   /* attribute long maxLength; */
      49                 :   NS_SCRIPTABLE NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength) = 0;
      50                 :   NS_SCRIPTABLE NS_IMETHOD SetMaxLength(PRInt32 aMaxLength) = 0;
      51                 : 
      52                 :   /* nsIHistoryEntry getEntryAtIndex (in long index, in boolean modifyIndex); */
      53                 :   NS_SCRIPTABLE NS_IMETHOD GetEntryAtIndex(PRInt32 index, bool modifyIndex, nsIHistoryEntry * *_retval NS_OUTPARAM) = 0;
      54                 : 
      55                 :   /* void PurgeHistory (in long numEntries); */
      56                 :   NS_SCRIPTABLE NS_IMETHOD PurgeHistory(PRInt32 numEntries) = 0;
      57                 : 
      58                 :   /* void addSHistoryListener (in nsISHistoryListener aListener); */
      59                 :   NS_SCRIPTABLE NS_IMETHOD AddSHistoryListener(nsISHistoryListener *aListener) = 0;
      60                 : 
      61                 :   /* void removeSHistoryListener (in nsISHistoryListener aListener); */
      62                 :   NS_SCRIPTABLE NS_IMETHOD RemoveSHistoryListener(nsISHistoryListener *aListener) = 0;
      63                 : 
      64                 :   /* readonly attribute nsISimpleEnumerator SHistoryEnumerator; */
      65                 :   NS_SCRIPTABLE NS_IMETHOD GetSHistoryEnumerator(nsISimpleEnumerator * *aSHistoryEnumerator) = 0;
      66                 : 
      67                 :   /* void reloadCurrentEntry (); */
      68                 :   NS_SCRIPTABLE NS_IMETHOD ReloadCurrentEntry(void) = 0;
      69                 : 
      70                 : };
      71                 : 
      72                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISHistory, NS_ISHISTORY_IID)
      73                 : 
      74                 : /* Use this macro when declaring classes that implement this interface. */
      75                 : #define NS_DECL_NSISHISTORY \
      76                 :   NS_SCRIPTABLE NS_IMETHOD GetCount(PRInt32 *aCount); \
      77                 :   NS_SCRIPTABLE NS_IMETHOD GetIndex(PRInt32 *aIndex); \
      78                 :   NS_SCRIPTABLE NS_IMETHOD GetRequestedIndex(PRInt32 *aRequestedIndex); \
      79                 :   NS_SCRIPTABLE NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength); \
      80                 :   NS_SCRIPTABLE NS_IMETHOD SetMaxLength(PRInt32 aMaxLength); \
      81                 :   NS_SCRIPTABLE NS_IMETHOD GetEntryAtIndex(PRInt32 index, bool modifyIndex, nsIHistoryEntry * *_retval NS_OUTPARAM); \
      82                 :   NS_SCRIPTABLE NS_IMETHOD PurgeHistory(PRInt32 numEntries); \
      83                 :   NS_SCRIPTABLE NS_IMETHOD AddSHistoryListener(nsISHistoryListener *aListener); \
      84                 :   NS_SCRIPTABLE NS_IMETHOD RemoveSHistoryListener(nsISHistoryListener *aListener); \
      85                 :   NS_SCRIPTABLE NS_IMETHOD GetSHistoryEnumerator(nsISimpleEnumerator * *aSHistoryEnumerator); \
      86                 :   NS_SCRIPTABLE NS_IMETHOD ReloadCurrentEntry(void); 
      87                 : 
      88                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      89                 : #define NS_FORWARD_NSISHISTORY(_to) \
      90                 :   NS_SCRIPTABLE NS_IMETHOD GetCount(PRInt32 *aCount) { return _to GetCount(aCount); } \
      91                 :   NS_SCRIPTABLE NS_IMETHOD GetIndex(PRInt32 *aIndex) { return _to GetIndex(aIndex); } \
      92                 :   NS_SCRIPTABLE NS_IMETHOD GetRequestedIndex(PRInt32 *aRequestedIndex) { return _to GetRequestedIndex(aRequestedIndex); } \
      93                 :   NS_SCRIPTABLE NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength) { return _to GetMaxLength(aMaxLength); } \
      94                 :   NS_SCRIPTABLE NS_IMETHOD SetMaxLength(PRInt32 aMaxLength) { return _to SetMaxLength(aMaxLength); } \
      95                 :   NS_SCRIPTABLE NS_IMETHOD GetEntryAtIndex(PRInt32 index, bool modifyIndex, nsIHistoryEntry * *_retval NS_OUTPARAM) { return _to GetEntryAtIndex(index, modifyIndex, _retval); } \
      96                 :   NS_SCRIPTABLE NS_IMETHOD PurgeHistory(PRInt32 numEntries) { return _to PurgeHistory(numEntries); } \
      97                 :   NS_SCRIPTABLE NS_IMETHOD AddSHistoryListener(nsISHistoryListener *aListener) { return _to AddSHistoryListener(aListener); } \
      98                 :   NS_SCRIPTABLE NS_IMETHOD RemoveSHistoryListener(nsISHistoryListener *aListener) { return _to RemoveSHistoryListener(aListener); } \
      99                 :   NS_SCRIPTABLE NS_IMETHOD GetSHistoryEnumerator(nsISimpleEnumerator * *aSHistoryEnumerator) { return _to GetSHistoryEnumerator(aSHistoryEnumerator); } \
     100                 :   NS_SCRIPTABLE NS_IMETHOD ReloadCurrentEntry(void) { return _to ReloadCurrentEntry(); } 
     101                 : 
     102                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     103                 : #define NS_FORWARD_SAFE_NSISHISTORY(_to) \
     104                 :   NS_SCRIPTABLE NS_IMETHOD GetCount(PRInt32 *aCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCount(aCount); } \
     105                 :   NS_SCRIPTABLE NS_IMETHOD GetIndex(PRInt32 *aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndex(aIndex); } \
     106                 :   NS_SCRIPTABLE NS_IMETHOD GetRequestedIndex(PRInt32 *aRequestedIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestedIndex(aRequestedIndex); } \
     107                 :   NS_SCRIPTABLE NS_IMETHOD GetMaxLength(PRInt32 *aMaxLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxLength(aMaxLength); } \
     108                 :   NS_SCRIPTABLE NS_IMETHOD SetMaxLength(PRInt32 aMaxLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxLength(aMaxLength); } \
     109                 :   NS_SCRIPTABLE NS_IMETHOD GetEntryAtIndex(PRInt32 index, bool modifyIndex, nsIHistoryEntry * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEntryAtIndex(index, modifyIndex, _retval); } \
     110                 :   NS_SCRIPTABLE NS_IMETHOD PurgeHistory(PRInt32 numEntries) { return !_to ? NS_ERROR_NULL_POINTER : _to->PurgeHistory(numEntries); } \
     111                 :   NS_SCRIPTABLE NS_IMETHOD AddSHistoryListener(nsISHistoryListener *aListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddSHistoryListener(aListener); } \
     112                 :   NS_SCRIPTABLE NS_IMETHOD RemoveSHistoryListener(nsISHistoryListener *aListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveSHistoryListener(aListener); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD GetSHistoryEnumerator(nsISimpleEnumerator * *aSHistoryEnumerator) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSHistoryEnumerator(aSHistoryEnumerator); } \
     114                 :   NS_SCRIPTABLE NS_IMETHOD ReloadCurrentEntry(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReloadCurrentEntry(); } 
     115                 : 
     116                 : #if 0
     117                 : /* Use the code below as a template for the implementation class for this interface. */
     118                 : 
     119                 : /* Header file */
     120                 : class nsSHistory : public nsISHistory
     121                 : {
     122                 : public:
     123                 :   NS_DECL_ISUPPORTS
     124                 :   NS_DECL_NSISHISTORY
     125                 : 
     126                 :   nsSHistory();
     127                 : 
     128                 : private:
     129                 :   ~nsSHistory();
     130                 : 
     131                 : protected:
     132                 :   /* additional members */
     133                 : };
     134                 : 
     135                 : /* Implementation file */
     136                 : NS_IMPL_ISUPPORTS1(nsSHistory, nsISHistory)
     137                 : 
     138                 : nsSHistory::nsSHistory()
     139                 : {
     140                 :   /* member initializers and constructor code */
     141                 : }
     142                 : 
     143                 : nsSHistory::~nsSHistory()
     144                 : {
     145                 :   /* destructor code */
     146                 : }
     147                 : 
     148                 : /* readonly attribute long count; */
     149                 : NS_IMETHODIMP nsSHistory::GetCount(PRInt32 *aCount)
     150                 : {
     151                 :     return NS_ERROR_NOT_IMPLEMENTED;
     152                 : }
     153                 : 
     154                 : /* readonly attribute long index; */
     155                 : NS_IMETHODIMP nsSHistory::GetIndex(PRInt32 *aIndex)
     156                 : {
     157                 :     return NS_ERROR_NOT_IMPLEMENTED;
     158                 : }
     159                 : 
     160                 : /* readonly attribute long requestedIndex; */
     161                 : NS_IMETHODIMP nsSHistory::GetRequestedIndex(PRInt32 *aRequestedIndex)
     162                 : {
     163                 :     return NS_ERROR_NOT_IMPLEMENTED;
     164                 : }
     165                 : 
     166                 : /* attribute long maxLength; */
     167                 : NS_IMETHODIMP nsSHistory::GetMaxLength(PRInt32 *aMaxLength)
     168                 : {
     169                 :     return NS_ERROR_NOT_IMPLEMENTED;
     170                 : }
     171                 : NS_IMETHODIMP nsSHistory::SetMaxLength(PRInt32 aMaxLength)
     172                 : {
     173                 :     return NS_ERROR_NOT_IMPLEMENTED;
     174                 : }
     175                 : 
     176                 : /* nsIHistoryEntry getEntryAtIndex (in long index, in boolean modifyIndex); */
     177                 : NS_IMETHODIMP nsSHistory::GetEntryAtIndex(PRInt32 index, bool modifyIndex, nsIHistoryEntry * *_retval NS_OUTPARAM)
     178                 : {
     179                 :     return NS_ERROR_NOT_IMPLEMENTED;
     180                 : }
     181                 : 
     182                 : /* void PurgeHistory (in long numEntries); */
     183                 : NS_IMETHODIMP nsSHistory::PurgeHistory(PRInt32 numEntries)
     184                 : {
     185                 :     return NS_ERROR_NOT_IMPLEMENTED;
     186                 : }
     187                 : 
     188                 : /* void addSHistoryListener (in nsISHistoryListener aListener); */
     189                 : NS_IMETHODIMP nsSHistory::AddSHistoryListener(nsISHistoryListener *aListener)
     190                 : {
     191                 :     return NS_ERROR_NOT_IMPLEMENTED;
     192                 : }
     193                 : 
     194                 : /* void removeSHistoryListener (in nsISHistoryListener aListener); */
     195                 : NS_IMETHODIMP nsSHistory::RemoveSHistoryListener(nsISHistoryListener *aListener)
     196                 : {
     197                 :     return NS_ERROR_NOT_IMPLEMENTED;
     198                 : }
     199                 : 
     200                 : /* readonly attribute nsISimpleEnumerator SHistoryEnumerator; */
     201                 : NS_IMETHODIMP nsSHistory::GetSHistoryEnumerator(nsISimpleEnumerator * *aSHistoryEnumerator)
     202                 : {
     203                 :     return NS_ERROR_NOT_IMPLEMENTED;
     204                 : }
     205                 : 
     206                 : /* void reloadCurrentEntry (); */
     207                 : NS_IMETHODIMP nsSHistory::ReloadCurrentEntry()
     208                 : {
     209                 :     return NS_ERROR_NOT_IMPLEMENTED;
     210                 : }
     211                 : 
     212                 : /* End of implementation class template. */
     213                 : #endif
     214                 : 
     215                 : 
     216                 : #endif /* __gen_nsISHistory_h__ */

Generated by: LCOV version 1.7