IBR-DTNSuite
0.12
|
#include <EMailImapService.h>
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 EMailImapService & | getInstance () |
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 () |
Definition at line 35 of file EMailImapService.h.
|
virtual |
The cancellation method of the thread
Implements ibrcommon::Thread.
Definition at line 205 of file EMailImapService.cpp.
References ibrcommon::Mutex::leave().
void dtn::net::EMailImapService::fetchMails | ( | ) |
Queries the IMAP server for new mails
Definition at line 218 of file EMailImapService.cpp.
References ibrcommon::Mutex::leave().
|
static |
Returns the instance of the IMAP service
Definition at line 38 of file EMailImapService.cpp.
Referenced by dtn::net::EMailSmtpService::run().
|
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.
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
The | task to be stored |
Definition at line 212 of file EMailImapService.cpp.
Referenced by dtn::net::EMailSmtpService::run().