summaryrefslogtreecommitdiffstats
path: root/kioslaves/imap4/mimehdrline.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (patch)
tree67208f7c145782a7e90b123b982ca78d88cc2c87 /kioslaves/imap4/mimehdrline.h
downloadtdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.tar.gz
tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kioslaves/imap4/mimehdrline.h')
-rw-r--r--kioslaves/imap4/mimehdrline.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/kioslaves/imap4/mimehdrline.h b/kioslaves/imap4/mimehdrline.h
new file mode 100644
index 000000000..ae8fdd57c
--- /dev/null
+++ b/kioslaves/imap4/mimehdrline.h
@@ -0,0 +1,67 @@
+/***************************************************************************
+ mimehdrline.h - description
+ -------------------
+ begin : Wed Oct 11 2000
+ copyright : (C) 2000 by Sven Carstens
+ email : s.carstens@gmx.de
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef MIMEHDRLINE_H
+#define MIMEHDRLINE_H
+
+
+#include <qcstring.h>
+#include <qasciidict.h>
+
+/**
+ *@author Sven Carstens
+ */
+
+class mimeHdrLine
+{
+public:
+ mimeHdrLine ();
+ mimeHdrLine (mimeHdrLine *);
+ mimeHdrLine (const QCString &, const QCString &);
+ ~mimeHdrLine ();
+ /** parse a Line into the class
+and report characters slurped */
+ int setStr (const char *);
+ int appendStr (const char *);
+ /** return the value */
+ const QCString& getValue ();
+ /** return the label */
+ const QCString& getLabel ();
+ static QCString truncateLine (QCString, unsigned int truncate = 80);
+ static int parseSeparator (char, const char *);
+ static int parseQuoted (char, char, const char *);
+ /** skip all white space characters */
+ static int skipWS (const char *);
+ /** slurp one word respecting backticks */
+ static int parseHalfWord (const char *);
+ static int parseWord (const char *);
+ static int parseAlphaNum (const char *);
+
+protected: // Protected attributes
+ /** contains the Value
+ */
+ QCString mimeValue;
+ /** contains the Label of the line
+ */
+ QCString mimeLabel;
+protected: // Protected methods
+ /** parses a continuated line */
+ int parseFullLine (const char *);
+ int parseHalfLine (const char *);
+};
+
+#endif