~ubuntu-branches/ubuntu/warty/kdebase/warty

« back to all changes in this revision

Viewing changes to kioslave/imap4/mimehdrline.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-09-16 04:51:45 UTC
  • Revision ID: james.westby@ubuntu.com-20040916045145-9vr63kith3k1cpza
Tags: upstream-3.2.2
ImportĀ upstreamĀ versionĀ 3.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 <qcstring.h>
 
23
#include <qasciidict.h>
 
24
 
 
25
/**
 
26
  *@author Sven Carstens
 
27
  */
 
28
 
 
29
class mimeHdrLine
 
30
{
 
31
public:
 
32
  mimeHdrLine ();
 
33
  mimeHdrLine (mimeHdrLine *);
 
34
  mimeHdrLine (const QCString &, const QCString &);
 
35
   ~mimeHdrLine ();
 
36
  /** parse a Line into the class
 
37
and report characters slurped */
 
38
  int setStr (const char *);
 
39
  int appendStr (const char *);
 
40
  /** return the value */
 
41
  const QCString getValue ();
 
42
  /** return the label */
 
43
  const QCString getLabel ();
 
44
  static QCString truncateLine (QCString, unsigned int truncate = 80);
 
45
  static int parseSeparator (char, const char *);
 
46
  static int parseQuoted (char, char, const char *);
 
47
  /** skip all white space characters */
 
48
  static int skipWS (const char *);
 
49
  /** slurp one word respecting backticks */
 
50
  static int parseHalfWord (const char *);
 
51
  static int parseWord (const char *);
 
52
  static int parseAlphaNum (const char *);
 
53
 
 
54
protected:                     // Protected attributes
 
55
  /** contains the Value 
 
56
 */
 
57
    QCString mimeValue;
 
58
  /** contains the Label of the line
 
59
 */
 
60
  QCString mimeLabel;
 
61
protected:                     // Protected methods
 
62
  /** parses a continuated line */
 
63
  int parseFullLine (const char *);
 
64
  int parseHalfLine (const char *);
 
65
};
 
66
 
 
67
#endif