summaryrefslogtreecommitdiffstats
path: root/libmail/smapidle.H
diff options
context:
space:
mode:
authorSam Varshavchik2013-08-19 16:39:41 -0400
committerSam Varshavchik2013-08-25 14:43:51 -0400
commit9c45d9ad13fdf439d44d7443ae75da15ea0223ed (patch)
tree7a81a04cb51efb078ee350859a64be2ebc6b8813 /libmail/smapidle.H
parenta9520698b770168d1f33d6301463bb70a19655ec (diff)
downloadcourier-libs-9c45d9ad13fdf439d44d7443ae75da15ea0223ed.tar.bz2
Initial checkin
Imported from subversion report, converted to git. Updated all paths in scripts and makefiles, reflecting the new directory hierarchy.
Diffstat (limited to 'libmail/smapidle.H')
-rw-r--r--libmail/smapidle.H52
1 files changed, 52 insertions, 0 deletions
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 <time.h>
+
+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