kioslaves/imap4

mimehdrline.h
1 /***************************************************************************
2  mimehdrline.h - description
3  -------------------
4  begin : Wed Oct 11 2000
5  copyright : (C) 2000 by Sven Carstens
6  email : s.carstens@gmx.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef MIMEHDRLINE_H
19 #define MIMEHDRLINE_H
20 
21 
22 #include <tqcstring.h>
23 #include <tqasciidict.h>
24 
30 {
31 public:
32  mimeHdrLine ();
34  mimeHdrLine (const TQCString &, const TQCString &);
35  ~mimeHdrLine ();
38  int setStr (const char *);
39  int appendStr (const char *);
41  const TQCString& getValue ();
43  const TQCString& getLabel ();
44  static TQCString truncateLine (TQCString, unsigned int truncate = 80);
45  static int parseSeparator (char, const char *);
46  static int parseQuoted (char, char, const char *);
48  static int skipWS (const char *);
50  static int parseHalfWord (const char *);
51  static int parseWord (const char *);
52  static int parseAlphaNum (const char *);
53 
54 protected: // Protected attributes
57  TQCString mimeValue;
60  TQCString mimeLabel;
61 protected: // Protected methods
63  int parseFullLine (const char *);
64  int parseHalfLine (const char *);
65 };
66 
67 #endif