Click or drag to resize

CStorage Methods

X#

The CStorage type exposes the following members.

Functions
  NameDescription
Public methodAttachmentAdd
This method is called when an email is received to initialize the saving of a new attachment. The implementation in CStorage generates a unique ID and creates the (empty) file.
Public methodAttachmentClose
This method is called after receiving of an attachment or after reading of an attachment from the storage during sending. The implementation in CStorage closes an open file.
Public methodAttachmentDelete
This method returns the full path of an attachment file addressed through cAttachID.
Public methodAttachmentFullPath
This method returns the full path of an attachment file addressed through cAttachID.
Public methodAttachmentOpen
This method is called during sending of an email, if an attachment have to be sent. It prepares the loading process from the storage. In our case it addresses the attachment file and opens it.
Public methodAttachmentRead
This method is called during sending of an attachment. It reads a data block from the attachment file. In our implementation it reads 1536 bytes. The result string is the encoded value of this data block.
Public methodAttachmentSave
Stores the attachment with the ID cAttachID to the file cToFile. cToFile must be a full path name. This method is called from CEMail:SaveAs().
Public methodAttachmentWrite
This method is called multiple times per attachment during the receive process.
Public methodCreateNewEMail
**Missing documentation **
Public methodLoadEMail
This method returns a CEMail object filled with all data addressed through the cID. You have to implement this method and the meaning of cID. THIS METHOD IS NOT IMPLEMENTED IN CSTORAGE AND NOT CALLED BY THE INTERNET CLASSES
Public methodRawClose
This method is called when an email was received completely.
Public methodRawNew
This method is called at the beginning before any data is received. You have to implement how you want to store and address the raw data here.
Public methodRawWrite
Now this method is called multiple times until the complete email including all attachments is received. You have to implement how you want to store each data block.
Public methodSaveAttachments
This method stores all attachments of an email into the storage.
Public methodSaveEMail
This method stores a CEMail object including all data under the address of the cID. You have to implement this method and the meaning of cID. THIS METHOD IS NOT IMPLEMENTED IN CSTORAGE AND NOT CALLED BY THE INTERNET CLASSES
Top
See Also