IBR-DTNSuite  0.12
dtn::net::EMailImapService Class Reference

#include <EMailImapService.h>

Inheritance diagram for dtn::net::EMailImapService:
Inheritance graph
Collaboration diagram for dtn::net::EMailImapService:
Collaboration graph

Public Member Functions

void run () throw ()
 
void __cancellation () throw ()
 
void storeProcessedTask (EMailSmtpService::Task *task)
 
void fetchMails ()
 
- Public Member Functions inherited from ibrcommon::JoinableThread
virtual ~JoinableThread ()=0
 
void join (void) throw (ThreadException)
 
bool isRunning (void)
 
void start (int priority=0) throw (ThreadException)
 
void stop () throw ()
 

Static Public Member Functions

static EMailImapServicegetInstance ()
 

Additional Inherited Members

- Protected Member Functions inherited from ibrcommon::JoinableThread
 JoinableThread (size_t size=DEFAULT_STACKSIZE)
 
- Static Protected Member Functions inherited from ibrcommon::Thread
static size_t getNumberOfProcessors ()
 
static void yield (void)
 
static void sleep (time_t timeout)
 
static void concurrency (int level)
 
static bool equal (pthread_t thread1, pthread_t thread2)
 
static void * __execute__ (void *obj) throw ()
 

Detailed Description

Definition at line 35 of file EMailImapService.h.

Member Function Documentation

void dtn::net::EMailImapService::__cancellation ( )
throw (
)
virtual

The cancellation method of the thread

Implements ibrcommon::Thread.

Definition at line 205 of file EMailImapService.cpp.

References ibrcommon::Mutex::leave().

Here is the call graph for this function:

void dtn::net::EMailImapService::fetchMails ( )

Queries the IMAP server for new mails

Definition at line 218 of file EMailImapService.cpp.

References ibrcommon::Mutex::leave().

Here is the call graph for this function:

EMailImapService & dtn::net::EMailImapService::getInstance ( )
static

Returns the instance of the IMAP service

Definition at line 38 of file EMailImapService.cpp.

Referenced by dtn::net::EMailSmtpService::run().

void dtn::net::EMailImapService::run ( void  )
throw (
)
virtual

The run method of the thread

Implements ibrcommon::Thread.

Definition at line 183 of file EMailImapService.cpp.

References ibrcommon::Mutex::enter(), ibrcommon::LogLevel::error, IBRCOMMON_LOGGER, IBRCOMMON_LOGGER_ENDL, and ibrcommon::LogLevel::info.

Here is the call graph for this function:

void dtn::net::EMailImapService::storeProcessedTask ( EMailSmtpService::Task task)

Stores the given tasks in a list. After each fetch this list will be run through and all tasks will be checked if their returning mail limit is reached. If the limit is reached the task will be deleted

Parameters
Thetask to be stored

Definition at line 212 of file EMailImapService.cpp.

Referenced by dtn::net::EMailSmtpService::run().


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