Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Enumerations | Functions
nsMsgAppleDouble.h File Reference
#include "msgCore.h"
#include "nsFileSpec.h"
#include "nsFileStream.h"
#include "nsMsgComposeStringBundle.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _appledouble_encode_object
struct  _appledouble_decode_object

Defines

#define NOERR   0
#define errDone   1
#define errEOB   2
#define errEOP   3
#define errFileOpen   NS_MSG_UNABLE_TO_OPEN_TMP_FILE
#define errFileWrite   -202 /*Error writing temporary file.*/
#define errUsrCancel   -2 /*MK_INTERRUPTED */
#define errDecoding   -1

Typedefs

typedef struct
_appledouble_encode_object 
appledouble_encode_object
typedef struct
_appledouble_decode_object 
appledouble_decode_object

Enumerations

enum  {
  kInit, kDoingHeaderPortion, kDoneHeaderPortion, kDoingDataPortion,
  kDoneDataPortion
}
enum  { kEncodeNone, kEncodeQP, kEncodeBase64, kEncodeUU }
enum  { kGeneralMine, kAppleDouble, kAppleSingle }
enum  { kInline, kDontCare }
enum  { kHeaderPortion, kDataPortion }
enum  {
  kBeginParseHeader = 3, kParsingHeader, kBeginSeekBoundary, kSeekingBoundary,
  kBeginHeaderPortion, kProcessingHeaderPortion, kBeginDataPortion, kProcessingDataPortion,
  kFinishing
}
enum  { kWaitingForBegin = (int) 0, kBegin, kMainBody, kEnd }

Functions

PR_BEGIN_EXTERN_C int ap_encode_init (appledouble_encode_object *p_ap_encode_obj, const char *fname, char *separator)
int ap_encode_next (appledouble_encode_object *p_ap_encode_obj, char *to_buff, PRInt32 buff_size, PRInt32 *real_size)
int ap_encode_end (appledouble_encode_object *p_ap_encode_obj, PRBool is_aborting)
int ap_decode_init (appledouble_decode_object *p_ap_decode_obj, PRBool is_apple_single, PRBool write_as_bin_hex, void *closure)
int ap_decode_next (appledouble_decode_object *p_ap_decode_obj, char *in_buff, PRInt32 buff_size)
int ap_decode_end (appledouble_decode_object *p_ap_decode_obj, PRBool is_aborting)

Class Documentation

struct _appledouble_encode_object

Definition at line 85 of file nsMsgAppleDouble.h.

Collaboration diagram for _appledouble_encode_object:
Class Members
char b_overflow
char * boundary
int c1
int c2
int ct
PRInt32 dirId
PRInt16 fileId
char fname
char * outbuff
int pos_outbuff
int s_outbuff
int s_overflow
int state
int state64
int status
int text_file_type
PRInt16 vRefNum
struct _appledouble_decode_object

Definition at line 162 of file nsMsgAppleDouble.h.

Collaboration diagram for _appledouble_decode_object:
Class Members
char b_leftover
char * boundary0
int c
PRInt32 data_size
int deposition
int dksize
int encode
int encoding
nsIOFileStream * fileSpec
char fname
char * inbuff
int is_apple_single
int is_binary
int left
int messagetype
int pos_inbuff
int rksize
int s_inbuff
int s_leftover
int state
int state64
int status
nsFileSpec * tmpFileSpec
nsIOFileStream * tmpFileStream
int uu_bytes_written
int uu_line_bytes
int uu_starts_line
int uu_state
int which_part
int write_as_binhex

Define Documentation

#define errDecoding   -1

Definition at line 71 of file nsMsgAppleDouble.h.

#define errDone   1

Definition at line 60 of file nsMsgAppleDouble.h.

#define errEOB   2

Definition at line 62 of file nsMsgAppleDouble.h.

#define errEOP   3

Definition at line 64 of file nsMsgAppleDouble.h.

Definition at line 68 of file nsMsgAppleDouble.h.

#define errFileWrite   -202 /*Error writing temporary file.*/

Definition at line 69 of file nsMsgAppleDouble.h.

Definition at line 70 of file nsMsgAppleDouble.h.

#define NOERR   0

Definition at line 59 of file nsMsgAppleDouble.h.


Typedef Documentation


Enumeration Type Documentation

anonymous enum
Enumerator:
kInit 
kDoingHeaderPortion 
kDoneHeaderPortion 
kDoingDataPortion 
kDoneDataPortion 

Definition at line 76 of file nsMsgAppleDouble.h.

anonymous enum
Enumerator:
kEncodeNone 
kEncodeQP 
kEncodeBase64 
kEncodeUU 

Definition at line 112 of file nsMsgAppleDouble.h.

anonymous enum
Enumerator:
kGeneralMine 
kAppleDouble 
kAppleSingle 

Definition at line 120 of file nsMsgAppleDouble.h.

anonymous enum
Enumerator:
kInline 
kDontCare 

Definition at line 127 of file nsMsgAppleDouble.h.

anonymous enum
Enumerator:
kHeaderPortion 
kDataPortion 

Definition at line 133 of file nsMsgAppleDouble.h.

anonymous enum
Enumerator:
kBeginParseHeader 
kParsingHeader 
kBeginSeekBoundary 
kSeekingBoundary 
kBeginHeaderPortion 
kProcessingHeaderPortion 
kBeginDataPortion 
kProcessingDataPortion 
kFinishing 

Definition at line 140 of file nsMsgAppleDouble.h.

anonymous enum
Enumerator:
kWaitingForBegin 
kBegin 
kMainBody 
kEnd 

Definition at line 154 of file nsMsgAppleDouble.h.


Function Documentation

int ap_decode_end ( appledouble_decode_object p_ap_decode_obj,
PRBool  is_aborting 
)
int ap_decode_init ( appledouble_decode_object p_ap_decode_obj,
PRBool  is_apple_single,
PRBool  write_as_bin_hex,
void closure 
)
int ap_decode_next ( appledouble_decode_object p_ap_decode_obj,
char *  in_buff,
PRInt32  buff_size 
)
int ap_encode_end ( appledouble_encode_object p_ap_encode_obj,
PRBool  is_aborting 
)

Here is the caller graph for this function:

PR_BEGIN_EXTERN_C int ap_encode_init ( appledouble_encode_object p_ap_encode_obj,
const char *  fname,
char *  separator 
)

Here is the caller graph for this function:

int ap_encode_next ( appledouble_encode_object p_ap_encode_obj,
char *  to_buff,
PRInt32  buff_size,
PRInt32 real_size 
)

Here is the caller graph for this function: