kioslave/imap4
mimehdrline.h
00001 /*************************************************************************** 00002 mimehdrline.h - description 00003 ------------------- 00004 begin : Wed Oct 11 2000 00005 copyright : (C) 2000 by Sven Carstens 00006 email : s.carstens@gmx.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef MIMEHDRLINE_H 00019 #define MIMEHDRLINE_H 00020 00021 00022 #include <QByteArray> 00023 00028 class mimeHdrLine 00029 { 00030 public: 00031 mimeHdrLine (); 00032 mimeHdrLine (mimeHdrLine *); 00033 mimeHdrLine (const QByteArray &, const QByteArray &); 00034 ~mimeHdrLine (); 00037 int setStr (const char *); 00038 int appendStr (const char *); 00040 const QByteArray& getValue (); 00042 const QByteArray& getLabel (); 00043 static QByteArray truncateLine (QByteArray, unsigned int truncate = 80); 00044 static int parseSeparator (char, const char *); 00045 static int parseQuoted (char, char, const char *); 00047 static int skipWS (const char *); 00049 static int parseHalfWord (const char *); 00050 static int parseWord (const char *); 00051 static int parseAlphaNum (const char *); 00052 00053 protected: // Protected attributes 00056 QByteArray mimeValue; 00059 QByteArray mimeLabel; 00060 protected: // Protected methods 00062 int parseFullLine (const char *); 00063 int parseHalfLine (const char *); 00064 }; 00065 00066 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Aug 27 2012 22:08:21 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Aug 27 2012 22:08:21 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.