Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsImportTranslator Class Reference

#include <nsImportTranslator.h>

Inheritance diagram for nsImportTranslator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~nsImportTranslator ()
virtual PRBool Supports8bitEncoding (void)
virtual PRUint32 GetMaxBufferSize (PRUint32 inLen)
virtual void ConvertBuffer (const PRUint8 *pIn, PRUint32 inLen, PRUint8 *pOut)
virtual PRBool ConvertToFile (const PRUint8 *pIn, PRUint32 inLen, ImportOutFile *pOutFile, PRUint32 *pProcessed=nsnull)
virtual PRBool FinishConvertToFile (ImportOutFile *)
virtual void GetCharset (nsCString &charSet)
virtual void GetLanguage (nsCString &lang)
virtual void GetEncoding (nsCString &encoding)

Detailed Description

Definition at line 54 of file nsImportTranslator.h.


Constructor & Destructor Documentation

virtual nsImportTranslator::~nsImportTranslator ( ) [inline, virtual]

Definition at line 56 of file nsImportTranslator.h.

{}

Member Function Documentation

virtual void nsImportTranslator::ConvertBuffer ( const PRUint8 pIn,
PRUint32  inLen,
PRUint8 pOut 
) [inline, virtual]

Reimplemented in CMHTranslator.

Definition at line 59 of file nsImportTranslator.h.

{ memcpy( pOut, pIn, inLen); pOut[inLen] = 0;}

Here is the call graph for this function:

Here is the caller graph for this function:

PRBool nsImportTranslator::ConvertToFile ( const PRUint8 pIn,
PRUint32  inLen,
ImportOutFile pOutFile,
PRUint32 pProcessed = nsnull 
) [virtual]

Reimplemented in C2047Translator, and CMHTranslator.

Definition at line 44 of file nsImportTranslator.cpp.

{ 
       if (pProcessed)
              *pProcessed = inLen;
       return( pOutFile->WriteData( pIn, inLen));
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 61 of file nsImportTranslator.h.

{ return( PR_TRUE);}

Here is the caller graph for this function:

virtual void nsImportTranslator::GetCharset ( nsCString charSet) [inline, virtual]

Definition at line 63 of file nsImportTranslator.h.

{ charSet = "us-ascii";}

Here is the caller graph for this function:

virtual void nsImportTranslator::GetEncoding ( nsCString encoding) [inline, virtual]

Definition at line 65 of file nsImportTranslator.h.

{ encoding.Truncate();}

Here is the caller graph for this function:

virtual void nsImportTranslator::GetLanguage ( nsCString lang) [inline, virtual]

Definition at line 64 of file nsImportTranslator.h.

{ lang = "en";}

Here is the caller graph for this function:

virtual PRUint32 nsImportTranslator::GetMaxBufferSize ( PRUint32  inLen) [inline, virtual]

Reimplemented in CMHTranslator.

Definition at line 58 of file nsImportTranslator.h.

{ return( inLen + 1);}

Here is the caller graph for this function:

virtual PRBool nsImportTranslator::Supports8bitEncoding ( void  ) [inline, virtual]

Definition at line 57 of file nsImportTranslator.h.

{ return( PR_FALSE);}

Here is the caller graph for this function:


The documentation for this class was generated from the following files: