1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/docshell/base/nsIDocShellHistory.idl
3 : */
4 :
5 : #ifndef __gen_nsIDocShellHistory_h__
6 : #define __gen_nsIDocShellHistory_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 nsISHEntry; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIDocShellHistory */
21 : #define NS_IDOCSHELLHISTORY_IID_STR "077af5fd-7450-48db-8f03-16617d441141"
22 :
23 : #define NS_IDOCSHELLHISTORY_IID \
24 : {0x077af5fd, 0x7450, 0x48db, \
25 : { 0x8f, 0x03, 0x16, 0x61, 0x7d, 0x44, 0x11, 0x41 }}
26 :
27 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDocShellHistory : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOCSHELLHISTORY_IID)
31 :
32 : /* nsISHEntry getChildSHEntry (in long aChildOffset); */
33 : NS_SCRIPTABLE NS_IMETHOD GetChildSHEntry(PRInt32 aChildOffset, nsISHEntry * *_retval NS_OUTPARAM) = 0;
34 :
35 : /* void addChildSHEntry (in nsISHEntry aCloneReference, in nsISHEntry aHistoryEntry, in long aChildOffset, in unsigned long aLoadType, in boolean aCloneChilden); */
36 : NS_SCRIPTABLE NS_IMETHOD AddChildSHEntry(nsISHEntry *aCloneReference, nsISHEntry *aHistoryEntry, PRInt32 aChildOffset, PRUint32 aLoadType, bool aCloneChilden) = 0;
37 :
38 : /* attribute boolean useGlobalHistory; */
39 : NS_SCRIPTABLE NS_IMETHOD GetUseGlobalHistory(bool *aUseGlobalHistory) = 0;
40 : NS_SCRIPTABLE NS_IMETHOD SetUseGlobalHistory(bool aUseGlobalHistory) = 0;
41 :
42 : /* void removeFromSessionHistory (); */
43 : NS_SCRIPTABLE NS_IMETHOD RemoveFromSessionHistory(void) = 0;
44 :
45 : /* attribute boolean createdDynamically; */
46 : NS_SCRIPTABLE NS_IMETHOD GetCreatedDynamically(bool *aCreatedDynamically) = 0;
47 : NS_SCRIPTABLE NS_IMETHOD SetCreatedDynamically(bool aCreatedDynamically) = 0;
48 :
49 : /* boolean getCurrentSHEntry (out nsISHEntry aEntry); */
50 : NS_SCRIPTABLE NS_IMETHOD GetCurrentSHEntry(nsISHEntry * *aEntry NS_OUTPARAM, bool *_retval NS_OUTPARAM) = 0;
51 :
52 : };
53 :
54 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDocShellHistory, NS_IDOCSHELLHISTORY_IID)
55 :
56 : /* Use this macro when declaring classes that implement this interface. */
57 : #define NS_DECL_NSIDOCSHELLHISTORY \
58 : NS_SCRIPTABLE NS_IMETHOD GetChildSHEntry(PRInt32 aChildOffset, nsISHEntry * *_retval NS_OUTPARAM); \
59 : NS_SCRIPTABLE NS_IMETHOD AddChildSHEntry(nsISHEntry *aCloneReference, nsISHEntry *aHistoryEntry, PRInt32 aChildOffset, PRUint32 aLoadType, bool aCloneChilden); \
60 : NS_SCRIPTABLE NS_IMETHOD GetUseGlobalHistory(bool *aUseGlobalHistory); \
61 : NS_SCRIPTABLE NS_IMETHOD SetUseGlobalHistory(bool aUseGlobalHistory); \
62 : NS_SCRIPTABLE NS_IMETHOD RemoveFromSessionHistory(void); \
63 : NS_SCRIPTABLE NS_IMETHOD GetCreatedDynamically(bool *aCreatedDynamically); \
64 : NS_SCRIPTABLE NS_IMETHOD SetCreatedDynamically(bool aCreatedDynamically); \
65 : NS_SCRIPTABLE NS_IMETHOD GetCurrentSHEntry(nsISHEntry * *aEntry NS_OUTPARAM, bool *_retval NS_OUTPARAM);
66 :
67 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
68 : #define NS_FORWARD_NSIDOCSHELLHISTORY(_to) \
69 : NS_SCRIPTABLE NS_IMETHOD GetChildSHEntry(PRInt32 aChildOffset, nsISHEntry * *_retval NS_OUTPARAM) { return _to GetChildSHEntry(aChildOffset, _retval); } \
70 : NS_SCRIPTABLE NS_IMETHOD AddChildSHEntry(nsISHEntry *aCloneReference, nsISHEntry *aHistoryEntry, PRInt32 aChildOffset, PRUint32 aLoadType, bool aCloneChilden) { return _to AddChildSHEntry(aCloneReference, aHistoryEntry, aChildOffset, aLoadType, aCloneChilden); } \
71 : NS_SCRIPTABLE NS_IMETHOD GetUseGlobalHistory(bool *aUseGlobalHistory) { return _to GetUseGlobalHistory(aUseGlobalHistory); } \
72 : NS_SCRIPTABLE NS_IMETHOD SetUseGlobalHistory(bool aUseGlobalHistory) { return _to SetUseGlobalHistory(aUseGlobalHistory); } \
73 : NS_SCRIPTABLE NS_IMETHOD RemoveFromSessionHistory(void) { return _to RemoveFromSessionHistory(); } \
74 : NS_SCRIPTABLE NS_IMETHOD GetCreatedDynamically(bool *aCreatedDynamically) { return _to GetCreatedDynamically(aCreatedDynamically); } \
75 : NS_SCRIPTABLE NS_IMETHOD SetCreatedDynamically(bool aCreatedDynamically) { return _to SetCreatedDynamically(aCreatedDynamically); } \
76 : NS_SCRIPTABLE NS_IMETHOD GetCurrentSHEntry(nsISHEntry * *aEntry NS_OUTPARAM, bool *_retval NS_OUTPARAM) { return _to GetCurrentSHEntry(aEntry, _retval); }
77 :
78 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
79 : #define NS_FORWARD_SAFE_NSIDOCSHELLHISTORY(_to) \
80 : NS_SCRIPTABLE NS_IMETHOD GetChildSHEntry(PRInt32 aChildOffset, nsISHEntry * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildSHEntry(aChildOffset, _retval); } \
81 : NS_SCRIPTABLE NS_IMETHOD AddChildSHEntry(nsISHEntry *aCloneReference, nsISHEntry *aHistoryEntry, PRInt32 aChildOffset, PRUint32 aLoadType, bool aCloneChilden) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddChildSHEntry(aCloneReference, aHistoryEntry, aChildOffset, aLoadType, aCloneChilden); } \
82 : NS_SCRIPTABLE NS_IMETHOD GetUseGlobalHistory(bool *aUseGlobalHistory) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUseGlobalHistory(aUseGlobalHistory); } \
83 : NS_SCRIPTABLE NS_IMETHOD SetUseGlobalHistory(bool aUseGlobalHistory) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUseGlobalHistory(aUseGlobalHistory); } \
84 : NS_SCRIPTABLE NS_IMETHOD RemoveFromSessionHistory(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveFromSessionHistory(); } \
85 : NS_SCRIPTABLE NS_IMETHOD GetCreatedDynamically(bool *aCreatedDynamically) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCreatedDynamically(aCreatedDynamically); } \
86 : NS_SCRIPTABLE NS_IMETHOD SetCreatedDynamically(bool aCreatedDynamically) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCreatedDynamically(aCreatedDynamically); } \
87 : NS_SCRIPTABLE NS_IMETHOD GetCurrentSHEntry(nsISHEntry * *aEntry NS_OUTPARAM, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentSHEntry(aEntry, _retval); }
88 :
89 : #if 0
90 : /* Use the code below as a template for the implementation class for this interface. */
91 :
92 : /* Header file */
93 : class nsDocShellHistory : public nsIDocShellHistory
94 : {
95 : public:
96 : NS_DECL_ISUPPORTS
97 : NS_DECL_NSIDOCSHELLHISTORY
98 :
99 : nsDocShellHistory();
100 :
101 : private:
102 : ~nsDocShellHistory();
103 :
104 : protected:
105 : /* additional members */
106 : };
107 :
108 : /* Implementation file */
109 : NS_IMPL_ISUPPORTS1(nsDocShellHistory, nsIDocShellHistory)
110 :
111 : nsDocShellHistory::nsDocShellHistory()
112 : {
113 : /* member initializers and constructor code */
114 : }
115 :
116 : nsDocShellHistory::~nsDocShellHistory()
117 : {
118 : /* destructor code */
119 : }
120 :
121 : /* nsISHEntry getChildSHEntry (in long aChildOffset); */
122 : NS_IMETHODIMP nsDocShellHistory::GetChildSHEntry(PRInt32 aChildOffset, nsISHEntry * *_retval NS_OUTPARAM)
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 :
127 : /* void addChildSHEntry (in nsISHEntry aCloneReference, in nsISHEntry aHistoryEntry, in long aChildOffset, in unsigned long aLoadType, in boolean aCloneChilden); */
128 : NS_IMETHODIMP nsDocShellHistory::AddChildSHEntry(nsISHEntry *aCloneReference, nsISHEntry *aHistoryEntry, PRInt32 aChildOffset, PRUint32 aLoadType, bool aCloneChilden)
129 : {
130 : return NS_ERROR_NOT_IMPLEMENTED;
131 : }
132 :
133 : /* attribute boolean useGlobalHistory; */
134 : NS_IMETHODIMP nsDocShellHistory::GetUseGlobalHistory(bool *aUseGlobalHistory)
135 : {
136 : return NS_ERROR_NOT_IMPLEMENTED;
137 : }
138 : NS_IMETHODIMP nsDocShellHistory::SetUseGlobalHistory(bool aUseGlobalHistory)
139 : {
140 : return NS_ERROR_NOT_IMPLEMENTED;
141 : }
142 :
143 : /* void removeFromSessionHistory (); */
144 : NS_IMETHODIMP nsDocShellHistory::RemoveFromSessionHistory()
145 : {
146 : return NS_ERROR_NOT_IMPLEMENTED;
147 : }
148 :
149 : /* attribute boolean createdDynamically; */
150 : NS_IMETHODIMP nsDocShellHistory::GetCreatedDynamically(bool *aCreatedDynamically)
151 : {
152 : return NS_ERROR_NOT_IMPLEMENTED;
153 : }
154 : NS_IMETHODIMP nsDocShellHistory::SetCreatedDynamically(bool aCreatedDynamically)
155 : {
156 : return NS_ERROR_NOT_IMPLEMENTED;
157 : }
158 :
159 : /* boolean getCurrentSHEntry (out nsISHEntry aEntry); */
160 : NS_IMETHODIMP nsDocShellHistory::GetCurrentSHEntry(nsISHEntry * *aEntry NS_OUTPARAM, bool *_retval NS_OUTPARAM)
161 : {
162 : return NS_ERROR_NOT_IMPLEMENTED;
163 : }
164 :
165 : /* End of implementation class template. */
166 : #endif
167 :
168 :
169 : #endif /* __gen_nsIDocShellHistory_h__ */
|