Back to index

enigmail  1.4.3
Defines | Functions | Variables
nsEnigMimeWriter.cpp File Reference
#include "enigmail.h"
#include "prlog.h"
#include "nsCOMPtr.h"
#include "nsIThread.h"
#include "nsIInputStream.h"
#include "nsEnigMimeWriter.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(gEnigMimeWriterLog,PR_LOG_ERROR,args)
#define WARNING_LOG(args)   PR_LOG(gEnigMimeWriterLog,PR_LOG_WARNING,args)
#define DEBUG_LOG(args)   PR_LOG(gEnigMimeWriterLog,PR_LOG_DEBUG,args)

Functions

 NS_IMPL_THREADSAFE_ISUPPORTS3 (nsEnigMimeWriter, nsIEnigMimeWriter, nsIRequestObserver, nsIStreamListener) nsEnigMimeWriter

Variables

static const PRUint32 kCharMax = 1024

Define Documentation

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

Definition at line 54 of file nsEnigMimeWriter.cpp.

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

Definition at line 52 of file nsEnigMimeWriter.cpp.

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

Definition at line 38 of file nsEnigMimeWriter.cpp.

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

Definition at line 53 of file nsEnigMimeWriter.cpp.


Function Documentation

NS_IMPL_THREADSAFE_ISUPPORTS3 ( nsEnigMimeWriter  ,
nsIEnigMimeWriter  ,
nsIRequestObserver  ,
nsIStreamListener   
)

Definition at line 63 of file nsEnigMimeWriter.cpp.

  : mStream(nsnull),
    mForceCRLF(PR_FALSE),

    mClosed(PR_FALSE),
    mLastCR(PR_FALSE),

    mByteCount(0)
{
    NS_INIT_ISUPPORTS();

#ifdef PR_LOGGING
  if (gEnigMimeWriterLog == nsnull) {
    gEnigMimeWriterLog = PR_NewLogModule("nsEnigMimeWriter");
  }
#endif

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

Variable Documentation

const PRUint32 kCharMax = 1024 [static]

Definition at line 56 of file nsEnigMimeWriter.cpp.