This commit is contained in:
warren%netscape.com 1999-04-02 09:26:42 +00:00
Родитель aaef99cff0
Коммит b6bb25db4b
3 изменённых файлов: 0 добавлений и 209 удалений

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

@ -1,74 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsITransportService_h___
#define nsITransportService_h___
#include "nsISupports.h"
#include "plevent.h"
class nsITransport;
class nsIStreamListener;
// XXX regenerate:
#define NS_ITRANSPORTSERVICE_IID \
{ /* 677d9a90-93ee-11d2-816a-006008119d7a */ \
0x677d9a90, \
0x93ee, \
0x11d2, \
{0x81, 0x6a, 0x00, 0x60, 0xd8, 0x11, 0x9d, 0x7a} \
}
// XXX regenerate:
#define NS_TRANSPORTSERVICE_CID \
{ /* 677d9a90-93ee-11d2-816a-006008119d7a */ \
0x677d9a90, \
0x93ee, \
0x11d2, \
{0x87, 0x6a, 0x00, 0x60, 0xd8, 0x11, 0x9d, 0x7a} \
}
class nsITransportService : public nsISupports
{
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ITRANSPORTSERVICE_IID);
NS_IMETHOD GetFileTransport(PLEventQueue* appEventQueue,
nsIStreamListener* listener,
const char* path,
nsITransport* *result) = 0;
NS_IMETHOD GetSocketTransport(PLEventQueue* appEventQueue,
nsIStreamListener* listener,
const char* host, PRInt32 port,
nsITransport* *result) = 0;
NS_IMETHOD GetJarTransport(PLEventQueue* appEventQueue,
nsIStreamListener* listener,
const char* jarFilePath,
const char* jarEntryPath,
nsITransport* *result) = 0;
/**
* @return NS_OK if there are active transports
* @return NS_COMFALSE if there are not.
*/
NS_IMETHOD HasActiveTransports() = 0;
};
#endif /* nsIITransportService_h___ */

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

@ -1,80 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsTransportService.h"
#include "nsFileTransport.h"
NS_IMPL_ISUPPORTS(nsTransportService, nsITransportService::GetIID());
////////////////////////////////////////////////////////////////////////////////
// nsTransportService methods:
nsTransportService::nsTransportService()
{
NS_INIT_REFCNT();
}
nsTransportService::~nsTransportService()
{
}
nsresult
nsTransportService::Init()
{
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////
// nsITransportService methods:
NS_IMETHODIMP
nsTransportService::GetFileTransport(PLEventQueue* appEventQueue,
nsIStreamListener* listener,
const char* path,
nsITransport* *result)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsTransportService::GetSocketTransport(PLEventQueue* appEventQueue,
nsIStreamListener* listener,
const char* host, PRInt32 port,
nsITransport* *result)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsTransportService::GetJarTransport(PLEventQueue* appEventQueue,
nsIStreamListener* listener,
const char* jarFilePath,
const char* jarEntryPath,
nsITransport* *result)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsTransportService::HasActiveTransports()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
////////////////////////////////////////////////////////////////////////////////

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

@ -1,55 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef nsTransportService_h___
#define nsTransportService_h___
#include "nsITransportService.h"
class nsTransportService : public nsITransportService
{
public:
NS_DECL_ISUPPORTS
// nsITransportService methods:
NS_IMETHOD GetFileTransport(PLEventQueue* appEventQueue,
nsIStreamListener* listener,
const char* path,
nsITransport* *result);
NS_IMETHOD GetSocketTransport(PLEventQueue* appEventQueue,
nsIStreamListener* listener,
const char* host, PRInt32 port,
nsITransport* *result);
NS_IMETHOD GetJarTransport(PLEventQueue* appEventQueue,
nsIStreamListener* listener,
const char* jarFilePath,
const char* jarEntryPath,
nsITransport* *result);
NS_IMETHOD HasActiveTransports();
// nsTransportService methods:
nsTransportService();
virtual ~nsTransportService();
nsresult Init();
protected:
};
#endif /* nsTransportService_h___ */