1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/docshell/base/nsIDownloadHistory.idl
3 : */
4 :
5 : #ifndef __gen_nsIDownloadHistory_h__
6 : #define __gen_nsIDownloadHistory_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 nsIURI; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIDownloadHistory */
21 : #define NS_IDOWNLOADHISTORY_IID_STR "a7a3358c-9af2-41e3-adfe-3bf0b7ac2c38"
22 :
23 : #define NS_IDOWNLOADHISTORY_IID \
24 : {0xa7a3358c, 0x9af2, 0x41e3, \
25 : { 0xad, 0xfe, 0x3b, 0xf0, 0xb7, 0xac, 0x2c, 0x38 }}
26 :
27 124 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDownloadHistory : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOWNLOADHISTORY_IID)
31 :
32 : /* void addDownload (in nsIURI aSource, [optional] in nsIURI aReferrer, [optional] in PRTime aStartTime, [optional] in nsIURI aDestination); */
33 : NS_SCRIPTABLE NS_IMETHOD AddDownload(nsIURI *aSource, nsIURI *aReferrer, PRTime aStartTime, nsIURI *aDestination) = 0;
34 :
35 : };
36 :
37 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDownloadHistory, NS_IDOWNLOADHISTORY_IID)
38 :
39 : /* Use this macro when declaring classes that implement this interface. */
40 : #define NS_DECL_NSIDOWNLOADHISTORY \
41 : NS_SCRIPTABLE NS_IMETHOD AddDownload(nsIURI *aSource, nsIURI *aReferrer, PRTime aStartTime, nsIURI *aDestination);
42 :
43 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
44 : #define NS_FORWARD_NSIDOWNLOADHISTORY(_to) \
45 : NS_SCRIPTABLE NS_IMETHOD AddDownload(nsIURI *aSource, nsIURI *aReferrer, PRTime aStartTime, nsIURI *aDestination) { return _to AddDownload(aSource, aReferrer, aStartTime, aDestination); }
46 :
47 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
48 : #define NS_FORWARD_SAFE_NSIDOWNLOADHISTORY(_to) \
49 : NS_SCRIPTABLE NS_IMETHOD AddDownload(nsIURI *aSource, nsIURI *aReferrer, PRTime aStartTime, nsIURI *aDestination) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddDownload(aSource, aReferrer, aStartTime, aDestination); }
50 :
51 : #if 0
52 : /* Use the code below as a template for the implementation class for this interface. */
53 :
54 : /* Header file */
55 : class nsDownloadHistory : public nsIDownloadHistory
56 : {
57 : public:
58 : NS_DECL_ISUPPORTS
59 : NS_DECL_NSIDOWNLOADHISTORY
60 :
61 : nsDownloadHistory();
62 :
63 : private:
64 : ~nsDownloadHistory();
65 :
66 : protected:
67 : /* additional members */
68 : };
69 :
70 : /* Implementation file */
71 : NS_IMPL_ISUPPORTS1(nsDownloadHistory, nsIDownloadHistory)
72 :
73 : nsDownloadHistory::nsDownloadHistory()
74 : {
75 : /* member initializers and constructor code */
76 : }
77 :
78 : nsDownloadHistory::~nsDownloadHistory()
79 : {
80 : /* destructor code */
81 : }
82 :
83 : /* void addDownload (in nsIURI aSource, [optional] in nsIURI aReferrer, [optional] in PRTime aStartTime, [optional] in nsIURI aDestination); */
84 : NS_IMETHODIMP nsDownloadHistory::AddDownload(nsIURI *aSource, nsIURI *aReferrer, PRTime aStartTime, nsIURI *aDestination)
85 : {
86 : return NS_ERROR_NOT_IMPLEMENTED;
87 : }
88 :
89 : /* End of implementation class template. */
90 : #endif
91 :
92 :
93 : #endif /* __gen_nsIDownloadHistory_h__ */
|