nsFtpConnectionThread now implements (not yet properly) nsICancelable.

This commit is contained in:
valeski%netscape.com 1999-05-18 21:01:49 +00:00
Родитель 1e4cda8972
Коммит d705ca1ac9
2 изменённых файлов: 28 добавлений и 1 удалений

Просмотреть файл

@ -77,6 +77,28 @@ nsFtpConnectionThread::~nsFtpConnectionThread() {
}
////////////////////////////////////////////////////////////////////////////////
// nsICancelable methods:
NS_IMETHODIMP
nsFtpConnectionThread::Cancel(void) {
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFtpConnectionThread::Suspend(void) {
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFtpConnectionThread::Resume(void) {
return NS_ERROR_NOT_IMPLEMENTED;
}
////////////////////////////////////////////////////////////////////////////////
// nsIRunnable method:
// main event loop
NS_IMETHODIMP
nsFtpConnectionThread::Run() {

Просмотреть файл

@ -106,7 +106,7 @@ typedef enum _FTP_ACTION {
DEL
} FTP_ACTION;
class nsFtpConnectionThread : public nsIRunnable {
class nsFtpConnectionThread : public nsIRunnable, nsICancelable {
public:
NS_DECL_ISUPPORTS
@ -116,6 +116,11 @@ public:
// nsIRunnable method
NS_IMETHOD Run();
// nsICancelable methods:
NS_IMETHOD Cancel(void);
NS_IMETHOD Suspend(void);
NS_IMETHOD Resume(void);
nsresult Init(nsIThread* aThread,
nsIUrl* aUrl);