kioslaves

mimehdrline.h

Go to the documentation of this file.
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 <qcstring.h>
00023 #include <qasciidict.h>
00024 
00029 class mimeHdrLine
00030 {
00031 public:
00032   mimeHdrLine ();
00033   mimeHdrLine (mimeHdrLine *);
00034   mimeHdrLine (const QCString &, const QCString &);
00035    ~mimeHdrLine ();
00038   int setStr (const char *);
00039   int appendStr (const char *);
00041   const QCString& getValue ();
00043   const QCString& getLabel ();
00044   static QCString truncateLine (QCString, unsigned int truncate = 80);
00045   static int parseSeparator (char, const char *);
00046   static int parseQuoted (char, char, const char *);
00048   static int skipWS (const char *);
00050   static int parseHalfWord (const char *);
00051   static int parseWord (const char *);
00052   static int parseAlphaNum (const char *);
00053 
00054 protected:                     // Protected attributes
00057     QCString mimeValue;
00060   QCString mimeLabel;
00061 protected:                     // Protected methods
00063   int parseFullLine (const char *);
00064   int parseHalfLine (const char *);
00065 };
00066 
00067 #endif