Since onStateChange is defined in nsIWebProgressListener, you don't
have to re-define it in your interface definition. Your progress
listener will simply inherit the capabilities of your inherited
interfaces. Just define what is different in your interface. You're
even allowed to have an empty interface list if you want. For
example, see nsIDOMDocumentFragment.idl
On Dec 5, 2005, at 4:35 AM, zen wrote:
Hi Neil,
Thanks for the response. However, it couldn't compile when I
include the onStateChange(), etc into the IDL. It says
`onStateChange' conflicts with nsIWebProgressListener.idl
Below is my code:
#include "nsIWebProgressListener.idl"
.
.
interface nsITTB : nsIWebProgressListener
{
void onStateChange(in nsIWebProgress aWebProgress,
in nsIRequest aRequest,
in unsigned long aStateFlags,
in nsresult aStatus);
};
zen
Neil Stansbury wrote:
Replace nsISupports with nsIWebProgressListener
Thus:
interface myInterface : nsIWebProgressListener {
attribute string someval;
}
N
zen wrote:
hi all,
how can i inherit the nsIWebProgressListener in my IDL?
thanks
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom