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

kioslave/imap4

mailaddress.h
00001 #ifndef _MAILADDRESS_H
00002 #define _MAILADDRESS_H
00003 /**********************************************************************
00004  *
00005  *   mailaddress.h - mail address handler
00006  *   Copyright (C) 2000 Sven Carstens <s.carstens@gmx.de>
00007  *
00008  *   This program is free software; you can redistribute it and/or modify
00009  *   it under the terms of the GNU General Public License as published by
00010  *   the Free Software Foundation; either version 2 of the License, or
00011  *   (at your option) any later version.
00012  *
00013  *   This program is distributed in the hope that it will be useful,
00014  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  *   GNU General Public License for more details.
00017  *
00018  *   You should have received a copy of the GNU General Public License
00019  *   along with this program; if not, write to the Free Software
00020  *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00021  *
00022  *   Send comments and bug fixes to s.carstens@gmx.de
00023  *
00024  *********************************************************************/
00025 
00026 #include <QList>
00027 #include <QString>
00028 
00029 class mailAddress
00030 {
00031 public:
00032   mailAddress ();
00033   ~mailAddress ();
00034   mailAddress (char *aCStr);
00035     mailAddress (const mailAddress &);
00036     mailAddress & operator = (const mailAddress &);
00037 
00038   void setUser (const QByteArray & aUser)
00039   {
00040     user = aUser;
00041   }
00042   const QByteArray & getUser () const
00043   {
00044     return user;
00045   }
00046   void setHost (const QByteArray & aHost)
00047   {
00048     host = aHost;
00049   }
00050   const QByteArray & getHost () const
00051   {
00052     return host;
00053   }
00054 
00055   void setFullName (const QString & aFull);
00056   const QString getFullName () const;
00057 
00058   void setComment (const QString & aComment);
00059   void setCommentRaw (const QByteArray &);
00060   const QString getComment () const;
00061   const QByteArray & getCommentRaw () const;
00062 
00063   int parseAddress (const char *);
00064   const QByteArray getStr () const;
00065   bool isEmpty () const;
00066 
00067   static QString emailAddrAsAnchor (const mailAddress &, bool);
00068   static QString emailAddrAsAnchor (const QList < mailAddress *> &, bool);
00069 
00070   void clear();
00071 
00072 private:
00073   QByteArray user;
00074   QByteArray host;
00075   QByteArray rawFullName;
00076   QByteArray rawComment;
00077 };
00078 
00079 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 14 2012 04:40:33 by doxygen 1.7.5 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-4.8.3 API Reference

Skip menu "kdepimlibs-4.8.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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