summaryrefslogtreecommitdiff
path: root/src/include/imapserver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/imapserver.h')
-rw-r--r--src/include/imapserver.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/include/imapserver.h b/src/include/imapserver.h
new file mode 100644
index 0000000..940234e
--- /dev/null
+++ b/src/include/imapserver.h
@@ -0,0 +1,37 @@
+/** --------------------------------------------------------------------
+ * @file imapserver.h
+ * @brief Declaration of the IMAPServer class.
+ * @author Andreas Aardal Hanssen
+ * @date 2002-2005
+ * ----------------------------------------------------------------- **/
+
+namespace Binc {
+
+ class IMAPServer {
+ public:
+ IMAPServer(int argc, char *argv[]);
+ ~IMAPServer(void);
+
+ int initialize(void);
+ int runStub(void);
+ int run(void);
+
+ enum ServerStatus {
+ OK,
+ RequestError,
+ RequestIgnore, // required for StartTLS, premature answer
+ RequestRejected,
+ ClientDisconnected,
+ Timeout
+ };
+
+ private:
+ void prepareForNextRequest(void);
+
+ int argc;
+ char **argv;
+ bool stubMode;
+
+ ServerStatus serverStatus;
+ };
+}