• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

kioslave/imap4

  • sources
  • kde-4.14
  • kdepimlibs
  • kioslave
  • imap4
mailaddress.h
1 #ifndef _MAILADDRESS_H
2 #define _MAILADDRESS_H
3 /**********************************************************************
4  *
5  * mailaddress.h - mail address handler
6  * Copyright (C) 2000 Sven Carstens <s.carstens@gmx.de>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  *
22  * Send comments and bug fixes to s.carstens@gmx.de
23  *
24  *********************************************************************/
25 
26 #include <QList>
27 #include <QString>
28 
29 class mailAddress
30 {
31 public:
32  mailAddress ();
33  ~mailAddress ();
34  mailAddress (char *aCStr);
35  mailAddress (const mailAddress &);
36  mailAddress & operator = (const mailAddress &);
37 
38  void setUser (const QByteArray & aUser)
39  {
40  user = aUser;
41  }
42  const QByteArray & getUser () const
43  {
44  return user;
45  }
46  void setHost (const QByteArray & aHost)
47  {
48  host = aHost;
49  }
50  const QByteArray & getHost () const
51  {
52  return host;
53  }
54 
55  void setFullName (const QString & aFull);
56  const QString getFullName () const;
57 
58  void setComment (const QString & aComment);
59  void setCommentRaw (const QByteArray &);
60  const QString getComment () const;
61  const QByteArray & getCommentRaw () const;
62 
63  int parseAddress (const char *);
64  const QByteArray getStr () const;
65  bool isEmpty () const;
66 
67  static QString emailAddrAsAnchor (const mailAddress &, bool);
68  static QString emailAddrAsAnchor (const QList < mailAddress *> &, bool);
69 
70  void clear();
71 
72 private:
73  QByteArray user;
74  QByteArray host;
75  QByteArray rawFullName;
76  QByteArray rawComment;
77 };
78 
79 #endif
QByteArray
QString
QList< mailAddress * >
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kioslave/imap4

Skip menu "kioslave/imap4"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal