From 9c45d9ad13fdf439d44d7443ae75da15ea0223ed Mon Sep 17 00:00:00 2001 From: Sam Varshavchik Date: Mon, 19 Aug 2013 16:39:41 -0400 Subject: Initial checkin Imported from subversion report, converted to git. Updated all paths in scripts and makefiles, reflecting the new directory hierarchy. --- libmail/smapidle.H | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 libmail/smapidle.H (limited to 'libmail/smapidle.H') diff --git a/libmail/smapidle.H b/libmail/smapidle.H new file mode 100644 index 0000000..6f9bc75 --- /dev/null +++ b/libmail/smapidle.H @@ -0,0 +1,52 @@ +/* +** Copyright 2003, Double Precision Inc. +** +** See COPYING for distribution information. +*/ + +#ifndef libmail_smapidle_H +#define libmail_smapidle_H + +#include "libmail_config.h" + +#include "mail.H" +#include "smap.H" + +#include + +LIBMAIL_START + +class smapIdleHandler : public smapHandler { + + bool idleOnOff; + + bool idling; + bool shouldTerminate; + bool terminating; + + bool waiting; + struct timeval waitingUntil; + + void terminateIdle(imap &); + + const char *getName(); + void timedOut(const char *errmsg); + + + bool getTimeout(imap &, int &ioTimeout); + +public: + smapIdleHandler(bool idleOnOffArg, mail::callback *callbackArg); + + ~smapIdleHandler(); + + void installed(imap &); + + virtual bool ok(std::string); + + void anotherHandlerInstalled(imap &imapAccount); +}; + + +LIBMAIL_END +#endif -- cgit v1.2.3