Back to index

enigmail  1.4.3
Defines | Functions | Variables
nsEnigMimeVerify.cpp File Reference
#include "enigmail.h"
#include "nspr.h"
#include "nsCOMPtr.h"
#include "nsStringAPI.h"
#include "nsNetUtil.h"
#include "nsNetCID.h"
#include "nsIPrompt.h"
#include "nsIMsgWindow.h"
#include "nsIDOMWindow.h"
#include "nsIMimeMiscStatus.h"
#include "nsIEnigMimeHeaderSink.h"
#include "nsIThread.h"
#include "nsEnigMimeVerify.h"
#include "nsIPipeTransport.h"
#include "nsIIPCBuffer.h"
#include "nsIEnigmail.h"
#include "nsIUnicharOutputStream.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(gEnigMimeVerifyLog,PR_LOG_ERROR,args)
#define WARNING_LOG(args)   PR_LOG(gEnigMimeVerifyLog,PR_LOG_WARNING,args)
#define DEBUG_LOG(args)   PR_LOG(gEnigMimeVerifyLog,PR_LOG_DEBUG,args)
#define MAX_BUFFER_BYTES   32000
#define MAX_HEADER_BYTES   16000

Functions

 NS_IMPL_THREADSAFE_ISUPPORTS3 (nsEnigMimeVerify, nsIEnigMimeVerify, nsIRequestObserver, nsIStreamListener) nsEnigMimeVerify

Variables

static const PRUint32 kCharMax = 1024

Define Documentation

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

Definition at line 65 of file nsEnigMimeVerify.cpp.

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

Definition at line 63 of file nsEnigMimeVerify.cpp.

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

Definition at line 38 of file nsEnigMimeVerify.cpp.

#define MAX_BUFFER_BYTES   32000

Definition at line 67 of file nsEnigMimeVerify.cpp.

#define MAX_HEADER_BYTES   16000

Definition at line 68 of file nsEnigMimeVerify.cpp.

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

Definition at line 64 of file nsEnigMimeVerify.cpp.


Function Documentation

NS_IMPL_THREADSAFE_ISUPPORTS3 ( nsEnigMimeVerify  ,
nsIEnigMimeVerify  ,
nsIRequestObserver  ,
nsIStreamListener   
)

Definition at line 75 of file nsEnigMimeVerify.cpp.

  : mInitialized(PR_FALSE),
    mPgpMime(PR_FALSE),
    mRequestStopped(PR_FALSE),
    mLastLinebreak(PR_TRUE),

    mStartCount(0),

    mContentBoundary(""),
    mLinebreak(""),

    mURISpec(""),
    mMsgWindow(nsnull),

    mOutBuffer(nsnull),
    mPipeTrans(nsnull),

    mArmorListener(nsnull),
    mSecondPartListener(nsnull),
    mFirstPartListener(nsnull),
    mOuterMimeListener(nsnull),
    mInnerMimeListener(nsnull)
{
  nsresult rv;

  NS_INIT_ISUPPORTS();

#ifdef PR_LOGGING
  if (gEnigMimeVerifyLog == nsnull) {
    gEnigMimeVerifyLog = PR_NewLogModule("nsEnigMimeVerify");
  }
#endif

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

Variable Documentation

const PRUint32 kCharMax = 1024 [static]

Definition at line 70 of file nsEnigMimeVerify.cpp.