Back to index

enigmail  1.4.3
Defines | Functions | Variables
nsPipeFilterListener.cpp File Reference
#include "enigmail.h"
#include "nsStringGlue.h"
#include "prlog.h"
#include "nsCOMPtr.h"
#include "nsIInputStream.h"
#include "nsIThread.h"
#include "nsIHttpChannel.h"
#include "nsNetUtil.h"
#include "nsMimeTypes.h"
#include "nsPipeFilterListener.h"

Go to the source code of this file.

Defines

#define FORCE_PR_LOG   /* Allow logging even in release build */
#define ERROR_LOG(args)   PR_LOG(gPipeFilterListenerLog,PR_LOG_ERROR,args)
#define WARNING_LOG(args)   PR_LOG(gPipeFilterListenerLog,PR_LOG_WARNING,args)
#define DEBUG_LOG(args)   PR_LOG(gPipeFilterListenerLog,PR_LOG_DEBUG,args)
#define NS_PIPE_CONSOLE_BUFFER_SIZE   (1024)
#define MK_MIME_ERROR_WRITING_FILE   -1

Functions

 NS_IMPL_THREADSAFE_ISUPPORTS4 (nsPipeFilterListener, nsIPipeFilterListener, nsIRequestObserver, nsIStreamListener, nsIInputStream) nsPipeFilterListener

Variables

static const PRUint32 kCharMax = NS_PIPE_CONSOLE_BUFFER_SIZE

Define Documentation

#define DEBUG_LOG (   args)    PR_LOG(gPipeFilterListenerLog,PR_LOG_DEBUG,args)

Definition at line 62 of file nsPipeFilterListener.cpp.

#define ERROR_LOG (   args)    PR_LOG(gPipeFilterListenerLog,PR_LOG_ERROR,args)

Definition at line 60 of file nsPipeFilterListener.cpp.

#define FORCE_PR_LOG   /* Allow logging even in release build */

Definition at line 39 of file nsPipeFilterListener.cpp.

Definition at line 68 of file nsPipeFilterListener.cpp.

Definition at line 64 of file nsPipeFilterListener.cpp.

#define WARNING_LOG (   args)    PR_LOG(gPipeFilterListenerLog,PR_LOG_WARNING,args)

Definition at line 61 of file nsPipeFilterListener.cpp.


Function Documentation

NS_IMPL_THREADSAFE_ISUPPORTS4 ( nsPipeFilterListener  ,
nsIPipeFilterListener  ,
nsIRequestObserver  ,
nsIStreamListener  ,
nsIInputStream   
)

Definition at line 75 of file nsPipeFilterListener.cpp.

  : mInitialized(PR_FALSE),
    mRequestStarted(PR_FALSE),
    mRequestEnded(PR_FALSE),
    mTailRequestStarted(PR_FALSE),

    mStartDelimiter(""),
    mEndDelimiter(""),

    mStartLine(""),
    mEndLine(""),

    mKeepDelimiters(PR_FALSE),
    mMimeMultipart(PR_FALSE),

    mAutoMimeBoundary(PR_FALSE),
    mFirstMatch(PR_TRUE),
    mLastMatch(PR_FALSE),
    mSavePartMatch(PR_FALSE),

    mOldPartMatch(""),
    mPartMatch(""),
    mLinebreak(0),

    mStreamBuf(nsnull),
    mStreamOffset(0),
    mStreamLength(0),

    mListener(nsnull),
    mTailListener(nsnull),
    mContext(nsnull)
{
    NS_INIT_ISUPPORTS();

#ifdef PR_LOGGING
  if (gPipeFilterListenerLog == nsnull) {
    gPipeFilterListenerLog = PR_NewLogModule("nsPipeFilterListener");
  }
#endif

#ifdef FORCE_PR_LOG
  nsresult rv;
  nsCOMPtr<nsIThread> myThread;
  rv = ENIG_GET_THREAD(myThread);
  DEBUG_LOG(("nsPipeFilterListener:: <<<<<<<<< CTOR(%p): myThread=%p\n",
         this, myThread.get()));
#endif
}

Variable Documentation

const PRUint32 kCharMax = NS_PIPE_CONSOLE_BUFFER_SIZE [static]

Definition at line 66 of file nsPipeFilterListener.cpp.