first created. Imap log interface. Right now the only method in the interface

is one to handle log information from the imap protocol....
This commit is contained in:
mscott%netscape.com 1999-03-23 00:25:43 +00:00
parent a8c2fd2ce8
commit 3b730a0335

View File

@ -0,0 +1,55 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 nsIImapLog_h___
#define nsIImapLog_h___
/////////////////////////////////////////////////////////////////////////////
// An Imap Log is used to record imap log information. If a url has a log
// sink set on it, then the imap protocol will call through this interface
// with the data returned from the server.
//
// Why not just use PR_Log? We'll still use PR_Log, but we wanted to use this
// sink as a simple interface to test our event notification design for imap.
//////////////////////////////////////////////////////////////////////////////
#include "nscore.h"
#include "nsISupports.h"
/* B08502B0-E0B1-11d2-806D-006008128C4E */
#define NS_IIMAPLOG_IID \
{ 0xb08502b0, 0xe0b1, 0x11d2, \
{ 0x80, 0x6d, 0x0, 0x60, 0x8, 0x12, 0x8c, 0x4e } }
class nsIImapLog : public nsISupports
{
public:
static const nsIID& GetIID()
{
static nsIID iid = NS_IIMAPLOG_IID;
return iid;
}
NS_IMETHOD HandleImapLogData (const char * aLogData) = 0;
};
#endif /* nsIImapLog_h___ */