• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE Support
  • Sitemap
  • Contact Us
 

strigi/src/streams

Strigi::MailInputStream

Strigi::MailInputStream Class Reference

This is an implementation for handling email streams as archives. More...

#include <mailinputstream.h>

Inheritance diagram for Strigi::MailInputStream:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 MailInputStream (InputStream *input)
 ~MailInputStream ()
const std::string & bcc ()
const std::string & cc ()
const std::string & contentType ()
const std::string & from ()
const std::string & inreplyto ()
const std::string & messageid ()
InputStream * nextEntry ()
const std::string & references ()
const std::string & subject ()
const std::string & to ()

Static Public Member Functions

static bool checkHeader (const char *data, int32_t datasize)
static SubStreamProvider * factory (InputStream *input)

Detailed Description

This is an implementation for handling email streams as archives.

It allows one to read the email body and email attachements as streams.

Definition at line 37 of file mailinputstream.h.


Constructor & Destructor Documentation

MailInputStream::MailInputStream ( InputStream *  input  )  [explicit]

Definition at line 317 of file mailinputstream.cpp.

MailInputStream::~MailInputStream (  ) 

Definition at line 326 of file mailinputstream.cpp.


Member Function Documentation

const std::string& Strigi::MailInputStream::bcc (  )  [inline]

Definition at line 84 of file mailinputstream.h.

const std::string& Strigi::MailInputStream::cc (  )  [inline]

Definition at line 83 of file mailinputstream.h.

bool MailInputStream::checkHeader ( const char *  data,
int32_t  datasize 
) [static]

Validate a mail header.

The header format is checked, but not the presence of required fields. It is recommended to use a datasize of at least 512 bytes.

Definition at line 221 of file mailinputstream.cpp.

const std::string& Strigi::MailInputStream::contentType (  )  [inline]

Definition at line 88 of file mailinputstream.h.

static SubStreamProvider* Strigi::MailInputStream::factory ( InputStream *  input  )  [inline, static]

Definition at line 77 of file mailinputstream.h.

const std::string& Strigi::MailInputStream::from (  )  [inline]

Definition at line 81 of file mailinputstream.h.

const std::string& Strigi::MailInputStream::inreplyto (  )  [inline]

Definition at line 86 of file mailinputstream.h.

const std::string& Strigi::MailInputStream::messageid (  )  [inline]

Definition at line 85 of file mailinputstream.h.

InputStream * MailInputStream::nextEntry (  )  [virtual]

Get the next substream.

This function should return a stream representing the next substream that can be read from the input stream, or 0 if there are no more substreams.

For example, if the input stream were a tar archive, it would return a stream representing the next file or directory in the archive.

It should also load the substream (the same one that was returned) into entrystream, and set entryinfo to an EntryInfo giving information about the substream.

If there may be more substreams, but an error occurred, 0 should be returned, the status should be set to Error and an error message should be set.

Returns:
the next substream, or 0 if there are no more substreams or an error occurred

Implements Strigi::SubStreamProvider.

Definition at line 607 of file mailinputstream.cpp.

const std::string& Strigi::MailInputStream::references (  )  [inline]

Definition at line 87 of file mailinputstream.h.

const std::string& Strigi::MailInputStream::subject (  )  [inline]

Definition at line 80 of file mailinputstream.h.

const std::string& Strigi::MailInputStream::to (  )  [inline]

Definition at line 82 of file mailinputstream.h.


The documentation for this class was generated from the following files:
  • mailinputstream.h
  • mailinputstream.cpp

strigi/src/streams

Skip menu "strigi/src/streams"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

KDE Support

Skip menu "KDE Support"
  • akonadi
  • Decibel
  • grantlee
  • kdewin
  • phonon
  •     Backend
  • polkit-qt
  • qca
  • qimageblitz
  • soprano
  • strigi
  •     searchclient
  •     streamanalyzer
  •     streams
Generated for KDE Support by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal