Bug #5781 --> CreateImapConnection now takes the url to be loaded into the connection.

a=chofmann
This commit is contained in:
mscott%netscape.com 1999-04-30 18:41:26 +00:00
Родитель bb4ae85d59
Коммит f6045a01fa
1 изменённых файлов: 3 добавлений и 10 удалений

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

@ -47,6 +47,7 @@ class nsIImapProtocol;
class nsIImapMessageSink; class nsIImapMessageSink;
class nsIUrlListener; class nsIUrlListener;
class nsIURL; class nsIURL;
class nsIImapUrl;
struct PLEventQueue; struct PLEventQueue;
class nsIMsgFolder; class nsIMsgFolder;
@ -54,18 +55,10 @@ class nsIImapService : public nsISupports
{ {
public: public:
static const nsIID& GetIID() { static nsIID iid = NS_IIMAPSERVICE_IID; return iid; } static const nsIID& GetIID() { static nsIID iid = NS_IIMAPSERVICE_IID; return iid; }
///////////////////////////////////////////////////////////////////////////////////
// mscott -> I enventually envision that urls will come into the imap service and
// connections will NOT go back out. The service will take the url and find or create
// a connection to run the url in. However, in the early stages until we have
// a real connection pool, we want to pass the protocol instance back to the imap
// test harness so we can poke and prod it....
//////////////////////////////////////////////////////////////////////////////////
NS_IMETHOD CreateImapConnection (PLEventQueue *aEventQueue, NS_IMETHOD CreateImapConnection (PLEventQueue *aEventQueue, nsIImapUrl * aImapUrl,
nsIImapProtocol ** aImapConnection) = 0; nsIImapProtocol ** aImapConnection) = 0;
// As always, you can pass in null for the url listener and the url if you don't require either..... // As always, you can pass in null for the url listener and the url if you don't require either.....
// aClientEventQueue is the event queue of the event sinks. We post events into this queue. // aClientEventQueue is the event queue of the event sinks. We post events into this queue.
// mscott -- eventually this function will take in the account (identity/incoming server) associated with // mscott -- eventually this function will take in the account (identity/incoming server) associated with