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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/toolkit/components/places/nsIBrowserHistory.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIBrowserHistory_h__
       6                 : #define __gen_nsIBrowserHistory_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : #ifndef __gen_nsIGlobalHistory2_h__
      14                 : #include "nsIGlobalHistory2.h"
      15                 : #endif
      16                 : 
      17                 : /* For IDL files that don't want to include root IDL files. */
      18                 : #ifndef NS_NO_VTABLE
      19                 : #define NS_NO_VTABLE
      20                 : #endif
      21                 : 
      22                 : /* starting interface:    nsIBrowserHistory */
      23                 : #define NS_IBROWSERHISTORY_IID_STR "d092f5a5-33a8-456c-ac89-6ae6f880bd04"
      24                 : 
      25                 : #define NS_IBROWSERHISTORY_IID \
      26                 :   {0xd092f5a5, 0x33a8, 0x456c, \
      27                 :     { 0xac, 0x89, 0x6a, 0xe6, 0xf8, 0x80, 0xbd, 0x04 }}
      28                 : 
      29             263 : class NS_NO_VTABLE NS_SCRIPTABLE nsIBrowserHistory : public nsIGlobalHistory2 {
      30                 :  public: 
      31                 : 
      32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBROWSERHISTORY_IID)
      33                 : 
      34                 :   /* void addPageWithDetails (in nsIURI aURI, in wstring aTitle, in long long aLastVisited); */
      35                 :   NS_SCRIPTABLE NS_IMETHOD AddPageWithDetails(nsIURI *aURI, const PRUnichar * aTitle, PRInt64 aLastVisited) = 0;
      36                 : 
      37                 :   /* readonly attribute PRUint32 count; */
      38                 :   NS_SCRIPTABLE NS_IMETHOD GetCount(PRUint32 *aCount) = 0;
      39                 : 
      40                 :   /* void removePage (in nsIURI aURI); */
      41                 :   NS_SCRIPTABLE NS_IMETHOD RemovePage(nsIURI *aURI) = 0;
      42                 : 
      43                 :   /* void removePages ([array, size_is (aLength)] in nsIURI aURIs, in unsigned long aLength); */
      44                 :   NS_SCRIPTABLE NS_IMETHOD RemovePages(nsIURI **aURIs, PRUint32 aLength) = 0;
      45                 : 
      46                 :   /* void removePagesFromHost (in AUTF8String aHost, in boolean aEntireDomain); */
      47                 :   NS_SCRIPTABLE NS_IMETHOD RemovePagesFromHost(const nsACString & aHost, bool aEntireDomain) = 0;
      48                 : 
      49                 :   /* void removePagesByTimeframe (in long long aBeginTime, in long long aEndTime); */
      50                 :   NS_SCRIPTABLE NS_IMETHOD RemovePagesByTimeframe(PRInt64 aBeginTime, PRInt64 aEndTime) = 0;
      51                 : 
      52                 :   /* void removeVisitsByTimeframe (in long long aBeginTime, in long long aEndTime); */
      53                 :   NS_SCRIPTABLE NS_IMETHOD RemoveVisitsByTimeframe(PRInt64 aBeginTime, PRInt64 aEndTime) = 0;
      54                 : 
      55                 :   /* void removeAllPages (); */
      56                 :   NS_SCRIPTABLE NS_IMETHOD RemoveAllPages(void) = 0;
      57                 : 
      58                 :   /* void hidePage (in nsIURI aURI); */
      59                 :   NS_SCRIPTABLE NS_IMETHOD HidePage(nsIURI *aURI) = 0;
      60                 : 
      61                 :   /* void markPageAsTyped (in nsIURI aURI); */
      62                 :   NS_SCRIPTABLE NS_IMETHOD MarkPageAsTyped(nsIURI *aURI) = 0;
      63                 : 
      64                 :   /* void markPageAsFollowedLink (in nsIURI aURI); */
      65                 :   NS_SCRIPTABLE NS_IMETHOD MarkPageAsFollowedLink(nsIURI *aURI) = 0;
      66                 : 
      67                 : };
      68                 : 
      69                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIBrowserHistory, NS_IBROWSERHISTORY_IID)
      70                 : 
      71                 : /* Use this macro when declaring classes that implement this interface. */
      72                 : #define NS_DECL_NSIBROWSERHISTORY \
      73                 :   NS_SCRIPTABLE NS_IMETHOD AddPageWithDetails(nsIURI *aURI, const PRUnichar * aTitle, PRInt64 aLastVisited); \
      74                 :   NS_SCRIPTABLE NS_IMETHOD GetCount(PRUint32 *aCount); \
      75                 :   NS_SCRIPTABLE NS_IMETHOD RemovePage(nsIURI *aURI); \
      76                 :   NS_SCRIPTABLE NS_IMETHOD RemovePages(nsIURI **aURIs, PRUint32 aLength); \
      77                 :   NS_SCRIPTABLE NS_IMETHOD RemovePagesFromHost(const nsACString & aHost, bool aEntireDomain); \
      78                 :   NS_SCRIPTABLE NS_IMETHOD RemovePagesByTimeframe(PRInt64 aBeginTime, PRInt64 aEndTime); \
      79                 :   NS_SCRIPTABLE NS_IMETHOD RemoveVisitsByTimeframe(PRInt64 aBeginTime, PRInt64 aEndTime); \
      80                 :   NS_SCRIPTABLE NS_IMETHOD RemoveAllPages(void); \
      81                 :   NS_SCRIPTABLE NS_IMETHOD HidePage(nsIURI *aURI); \
      82                 :   NS_SCRIPTABLE NS_IMETHOD MarkPageAsTyped(nsIURI *aURI); \
      83                 :   NS_SCRIPTABLE NS_IMETHOD MarkPageAsFollowedLink(nsIURI *aURI); 
      84                 : 
      85                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      86                 : #define NS_FORWARD_NSIBROWSERHISTORY(_to) \
      87                 :   NS_SCRIPTABLE NS_IMETHOD AddPageWithDetails(nsIURI *aURI, const PRUnichar * aTitle, PRInt64 aLastVisited) { return _to AddPageWithDetails(aURI, aTitle, aLastVisited); } \
      88                 :   NS_SCRIPTABLE NS_IMETHOD GetCount(PRUint32 *aCount) { return _to GetCount(aCount); } \
      89                 :   NS_SCRIPTABLE NS_IMETHOD RemovePage(nsIURI *aURI) { return _to RemovePage(aURI); } \
      90                 :   NS_SCRIPTABLE NS_IMETHOD RemovePages(nsIURI **aURIs, PRUint32 aLength) { return _to RemovePages(aURIs, aLength); } \
      91                 :   NS_SCRIPTABLE NS_IMETHOD RemovePagesFromHost(const nsACString & aHost, bool aEntireDomain) { return _to RemovePagesFromHost(aHost, aEntireDomain); } \
      92                 :   NS_SCRIPTABLE NS_IMETHOD RemovePagesByTimeframe(PRInt64 aBeginTime, PRInt64 aEndTime) { return _to RemovePagesByTimeframe(aBeginTime, aEndTime); } \
      93                 :   NS_SCRIPTABLE NS_IMETHOD RemoveVisitsByTimeframe(PRInt64 aBeginTime, PRInt64 aEndTime) { return _to RemoveVisitsByTimeframe(aBeginTime, aEndTime); } \
      94                 :   NS_SCRIPTABLE NS_IMETHOD RemoveAllPages(void) { return _to RemoveAllPages(); } \
      95                 :   NS_SCRIPTABLE NS_IMETHOD HidePage(nsIURI *aURI) { return _to HidePage(aURI); } \
      96                 :   NS_SCRIPTABLE NS_IMETHOD MarkPageAsTyped(nsIURI *aURI) { return _to MarkPageAsTyped(aURI); } \
      97                 :   NS_SCRIPTABLE NS_IMETHOD MarkPageAsFollowedLink(nsIURI *aURI) { return _to MarkPageAsFollowedLink(aURI); } 
      98                 : 
      99                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     100                 : #define NS_FORWARD_SAFE_NSIBROWSERHISTORY(_to) \
     101                 :   NS_SCRIPTABLE NS_IMETHOD AddPageWithDetails(nsIURI *aURI, const PRUnichar * aTitle, PRInt64 aLastVisited) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddPageWithDetails(aURI, aTitle, aLastVisited); } \
     102                 :   NS_SCRIPTABLE NS_IMETHOD GetCount(PRUint32 *aCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCount(aCount); } \
     103                 :   NS_SCRIPTABLE NS_IMETHOD RemovePage(nsIURI *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemovePage(aURI); } \
     104                 :   NS_SCRIPTABLE NS_IMETHOD RemovePages(nsIURI **aURIs, PRUint32 aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemovePages(aURIs, aLength); } \
     105                 :   NS_SCRIPTABLE NS_IMETHOD RemovePagesFromHost(const nsACString & aHost, bool aEntireDomain) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemovePagesFromHost(aHost, aEntireDomain); } \
     106                 :   NS_SCRIPTABLE NS_IMETHOD RemovePagesByTimeframe(PRInt64 aBeginTime, PRInt64 aEndTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemovePagesByTimeframe(aBeginTime, aEndTime); } \
     107                 :   NS_SCRIPTABLE NS_IMETHOD RemoveVisitsByTimeframe(PRInt64 aBeginTime, PRInt64 aEndTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveVisitsByTimeframe(aBeginTime, aEndTime); } \
     108                 :   NS_SCRIPTABLE NS_IMETHOD RemoveAllPages(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveAllPages(); } \
     109                 :   NS_SCRIPTABLE NS_IMETHOD HidePage(nsIURI *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->HidePage(aURI); } \
     110                 :   NS_SCRIPTABLE NS_IMETHOD MarkPageAsTyped(nsIURI *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkPageAsTyped(aURI); } \
     111                 :   NS_SCRIPTABLE NS_IMETHOD MarkPageAsFollowedLink(nsIURI *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkPageAsFollowedLink(aURI); } 
     112                 : 
     113                 : #if 0
     114                 : /* Use the code below as a template for the implementation class for this interface. */
     115                 : 
     116                 : /* Header file */
     117                 : class nsBrowserHistory : public nsIBrowserHistory
     118                 : {
     119                 : public:
     120                 :   NS_DECL_ISUPPORTS
     121                 :   NS_DECL_NSIBROWSERHISTORY
     122                 : 
     123                 :   nsBrowserHistory();
     124                 : 
     125                 : private:
     126                 :   ~nsBrowserHistory();
     127                 : 
     128                 : protected:
     129                 :   /* additional members */
     130                 : };
     131                 : 
     132                 : /* Implementation file */
     133                 : NS_IMPL_ISUPPORTS1(nsBrowserHistory, nsIBrowserHistory)
     134                 : 
     135                 : nsBrowserHistory::nsBrowserHistory()
     136                 : {
     137                 :   /* member initializers and constructor code */
     138                 : }
     139                 : 
     140                 : nsBrowserHistory::~nsBrowserHistory()
     141                 : {
     142                 :   /* destructor code */
     143                 : }
     144                 : 
     145                 : /* void addPageWithDetails (in nsIURI aURI, in wstring aTitle, in long long aLastVisited); */
     146                 : NS_IMETHODIMP nsBrowserHistory::AddPageWithDetails(nsIURI *aURI, const PRUnichar * aTitle, PRInt64 aLastVisited)
     147                 : {
     148                 :     return NS_ERROR_NOT_IMPLEMENTED;
     149                 : }
     150                 : 
     151                 : /* readonly attribute PRUint32 count; */
     152                 : NS_IMETHODIMP nsBrowserHistory::GetCount(PRUint32 *aCount)
     153                 : {
     154                 :     return NS_ERROR_NOT_IMPLEMENTED;
     155                 : }
     156                 : 
     157                 : /* void removePage (in nsIURI aURI); */
     158                 : NS_IMETHODIMP nsBrowserHistory::RemovePage(nsIURI *aURI)
     159                 : {
     160                 :     return NS_ERROR_NOT_IMPLEMENTED;
     161                 : }
     162                 : 
     163                 : /* void removePages ([array, size_is (aLength)] in nsIURI aURIs, in unsigned long aLength); */
     164                 : NS_IMETHODIMP nsBrowserHistory::RemovePages(nsIURI **aURIs, PRUint32 aLength)
     165                 : {
     166                 :     return NS_ERROR_NOT_IMPLEMENTED;
     167                 : }
     168                 : 
     169                 : /* void removePagesFromHost (in AUTF8String aHost, in boolean aEntireDomain); */
     170                 : NS_IMETHODIMP nsBrowserHistory::RemovePagesFromHost(const nsACString & aHost, bool aEntireDomain)
     171                 : {
     172                 :     return NS_ERROR_NOT_IMPLEMENTED;
     173                 : }
     174                 : 
     175                 : /* void removePagesByTimeframe (in long long aBeginTime, in long long aEndTime); */
     176                 : NS_IMETHODIMP nsBrowserHistory::RemovePagesByTimeframe(PRInt64 aBeginTime, PRInt64 aEndTime)
     177                 : {
     178                 :     return NS_ERROR_NOT_IMPLEMENTED;
     179                 : }
     180                 : 
     181                 : /* void removeVisitsByTimeframe (in long long aBeginTime, in long long aEndTime); */
     182                 : NS_IMETHODIMP nsBrowserHistory::RemoveVisitsByTimeframe(PRInt64 aBeginTime, PRInt64 aEndTime)
     183                 : {
     184                 :     return NS_ERROR_NOT_IMPLEMENTED;
     185                 : }
     186                 : 
     187                 : /* void removeAllPages (); */
     188                 : NS_IMETHODIMP nsBrowserHistory::RemoveAllPages()
     189                 : {
     190                 :     return NS_ERROR_NOT_IMPLEMENTED;
     191                 : }
     192                 : 
     193                 : /* void hidePage (in nsIURI aURI); */
     194                 : NS_IMETHODIMP nsBrowserHistory::HidePage(nsIURI *aURI)
     195                 : {
     196                 :     return NS_ERROR_NOT_IMPLEMENTED;
     197                 : }
     198                 : 
     199                 : /* void markPageAsTyped (in nsIURI aURI); */
     200                 : NS_IMETHODIMP nsBrowserHistory::MarkPageAsTyped(nsIURI *aURI)
     201                 : {
     202                 :     return NS_ERROR_NOT_IMPLEMENTED;
     203                 : }
     204                 : 
     205                 : /* void markPageAsFollowedLink (in nsIURI aURI); */
     206                 : NS_IMETHODIMP nsBrowserHistory::MarkPageAsFollowedLink(nsIURI *aURI)
     207                 : {
     208                 :     return NS_ERROR_NOT_IMPLEMENTED;
     209                 : }
     210                 : 
     211                 : /* End of implementation class template. */
     212                 : #endif
     213                 : 
     214                 : 
     215                 : #endif /* __gen_nsIBrowserHistory_h__ */

Generated by: LCOV version 1.7