Main Page | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

TnefDecoder Class Reference

List of all members.

Detailed Description

TnefDecoder is a utility class that can decode TNEF containers and extract any file attachments they contain.


Public Member Functions

 TnefDecoder (mimepp::String str)
 Constructor that takes an initial string.
 ~TnefDecoder ()
 Destructor.
int parse ()
 Parses the string representation.
unsigned numAttachments () const
 Gets the number of attachments.
TnefAttachmentattachmentAt (unsigned index) const
 Gets the attachment at the specified position.


Constructor & Destructor Documentation

TnefDecoder mimepp::String  str  ) 
 

Constructor that takes an initial string.

Parameters:
str a string that contains the TNEF file

~TnefDecoder  ) 
 

Destructor.


Member Function Documentation

TnefAttachment & attachmentAt unsigned  index  )  const
 

Gets the attachment at the specified position.

Parameters:
index the position of the attachment to get (0 <= index < numAttachments)
Returns:
the attachment

unsigned numAttachments  )  const
 

Gets the number of attachments.

Returns:
the number of attachments

int parse  ) 
 

Parses the encoded TNEF file.

Returns:
0 if the parsing succeeded; -1 if the parsing failed

Copyright © 2001-2007 Hunny Software, Inc. All rights reserved.