Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
TransportEventForwarder Class Reference

This object observes status from a control connection. More...

Inheritance diagram for TransportEventForwarder:
Inheritance graph
Collaboration diagram for TransportEventForwarder:
Collaboration graph

List of all members.

Public Member Functions

 TransportEventForwarder (nsIProgressEventSink *aSink)
void onTransportStatus (in nsITransport aTransport, in nsresult aStatus, in unsigned long long aProgress, in unsigned long long aProgressMax)
 Transport status notification.

Private Attributes

nsCOMPtr< nsIProgressEventSinkmSink

Detailed Description

This object observes status from a control connection.

For control connections, we don't worry about reporting transfer progress.

The OnTransportStatus events are delivered to the main thread.

Definition at line 102 of file nsFtpConnectionThread.cpp.

Constructor & Destructor Documentation

Definition at line 105 of file nsFtpConnectionThread.cpp.

: mSink(aSink) {}

Member Function Documentation

void nsITransportEventSink::onTransportStatus ( in nsITransport  aTransport,
in nsresult  aStatus,
in unsigned long long  aProgress,
in unsigned long long  aProgressMax 
) [inherited]

Transport status notification.

aTransportthe transport sending this status notification.
aStatusthe transport status (resolvable to a string using nsIErrorService). See nsISocketTransport for socket specific status codes and more comments.
aProgressthe amount of data either read or written depending on the value of the status code. this value is relative to aProgressMax.
aProgressMaxthe maximum amount of data that will be read or written. if unknown, 0xFFFFFFFF will be passed.

Member Data Documentation

Definition at line 111 of file nsFtpConnectionThread.cpp.

The documentation for this class was generated from the following file: