tdeioslave/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{
31public:
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
54protected: // Protected attributes
57 TQCString mimeValue;
60 TQCString mimeLabel;
61protected: // Protected methods
63 int parseFullLine (const char *);
64 int parseHalfLine (const char *);
65};
66
67#endif
static int parseHalfWord(const char *)
slurp one word respecting backticks
static int parseWord(const char *)
slurp one word
TQCString mimeValue
contains the Value
Definition: mimehdrline.h:57
static int parseSeparator(char, const char *)
parses continuated lines
TQCString mimeLabel
contains the Label of the line
Definition: mimehdrline.h:60
static int skipWS(const char *)
skip all white space characters
const TQCString & getLabel()
return the label
int setStr(const char *)
parse a Line into the class and report characters slurped
Definition: mimehdrline.cpp:94
int parseHalfLine(const char *)
slurp one line without continuation
static int parseAlphaNum(const char *)
slurp one alphanumerical word without continuation
int parseFullLine(const char *)
parses a continuated line
static int parseQuoted(char, char, const char *)
slurp one word
const TQCString & getValue()
return the value