summaryrefslogtreecommitdiffstats
path: root/kioslaves/imap4/mailheader.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-27 01:05:15 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-27 01:05:15 -0600
commit64df902cf71a8ee258fb85f6be26248f399aa01f (patch)
treedba58f705042c22cea26b678d5b0e4e9a34bf202 /kioslaves/imap4/mailheader.h
parentde53c98cab07e9c4b0f5e25dab82830fb6fc67ec (diff)
downloadtdepim-64df902cf71a8ee258fb85f6be26248f399aa01f.tar.gz
tdepim-64df902cf71a8ee258fb85f6be26248f399aa01f.zip
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'kioslaves/imap4/mailheader.h')
-rw-r--r--kioslaves/imap4/mailheader.h190
1 files changed, 0 insertions, 190 deletions
diff --git a/kioslaves/imap4/mailheader.h b/kioslaves/imap4/mailheader.h
deleted file mode 100644
index 633d61b78..000000000
--- a/kioslaves/imap4/mailheader.h
+++ /dev/null
@@ -1,190 +0,0 @@
-/***************************************************************************
- mailheader.h - description
- -------------------
- begin : Tue Oct 24 2000
- copyright : (C) 2000 by Sven Carstens
- email : s.carstens@gmx.de
- ***************************************************************************/
-
-/***************************************************************************
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- ***************************************************************************/
-
-#ifndef MAILHEADER_H
-#define MAILHEADER_H
-
-#include "mimeheader.h"
-#include "mailaddress.h"
-#include "mimeio.h"
-#include "rfcdecoder.h"
-
-/**
- *@author Sven Carstens
- */
-
-class mailHeader:public mimeHeader
-{
-public:
- mailHeader ();
- ~mailHeader ();
-
- virtual void addHdrLine (mimeHdrLine *);
- virtual void outputHeader (mimeIO &);
-
- void addTo (const mailAddress & _adr)
- {
- toAdr.append (new mailAddress (_adr));
- }
- void addCC (const mailAddress & _adr)
- {
- ccAdr.append (new mailAddress (_adr));
- }
- void addBCC (const mailAddress & _adr)
- {
- bccAdr.append (new mailAddress (_adr));
- }
-
- void setFrom (const mailAddress & _adr)
- {
- fromAdr = _adr;
- }
- void setSender (const mailAddress & _adr)
- {
- senderAdr = _adr;
- }
- void setReturnPath (const mailAddress & _adr)
- {
- returnpathAdr = _adr;
- }
- void setReplyTo (const mailAddress & _adr)
- {
- replytoAdr = _adr;
- }
-
- const TQCString& getMessageId ()
- {
- return messageID;
- }
- void setMessageId (const TQCString & _str)
- {
- messageID = _str;
- }
-
- const TQCString& getInReplyTo ()
- {
- return inReplyTo;
- }
- void setInReplyTo (const TQCString & _str)
- {
- inReplyTo = _str;
- }
-
- const TQCString& getReferences ()
- {
- return references;
- }
- void setReferences (const TQCString & _str)
- {
- references = _str;
- }
-
- /**
- * set a unicode subject
- */
- void setSubject (const TQString & _str)
- {
- _subject = rfcDecoder::encodeRFC2047String(_str).latin1();
- }
- /**
- * set a encoded subject
- */
- void setSubjectEncoded (const TQCString & _str)
- {
- _subject = _str.simplifyWhiteSpace();
- }
-
- /**
- * get the unicode subject
- */
- const TQString getSubject ()
- {
- return rfcDecoder::decodeRFC2047String(_subject);
- }
- /**
- * get the encoded subject
- */
- const TQCString& getSubjectEncoded ()
- {
- return _subject;
- }
-
- /**
- * set the date
- */
- void setDate (const TQCString & _str)
- {
- mDate = _str;
- }
-
- /**
- * get the date
- */
- const TQCString& date ()
- {
- return mDate;
- }
-
- static int parseAddressList (const char *, TQPtrList < mailAddress > *);
- static TQCString getAddressStr (TQPtrList < mailAddress > *);
- TQPtrList < mailAddress > &to ()
- {
- return toAdr;
- }
- TQPtrList < mailAddress > &cc ()
- {
- return ccAdr;
- }
- TQPtrList < mailAddress > &bcc ()
- {
- return bccAdr;
- }
-#ifdef KMAIL_COMPATIBLE
- TQString subject ()
- {
- return getSubject ();
- }
- const mailAddress & from ()
- {
- return fromAdr;
- }
- const mailAddress & replyTo ()
- {
- return replytoAdr;
- }
- void readConfig (void)
- {;
- }
-#endif
-
-private:
- TQPtrList < mailAddress > toAdr;
- TQPtrList < mailAddress > ccAdr;
- TQPtrList < mailAddress > bccAdr;
- mailAddress fromAdr;
- mailAddress senderAdr;
- mailAddress returnpathAdr;
- mailAddress replytoAdr;
- TQCString _subject;
- TQCString mDate;
- int gmt_offset;
- TQCString messageID;
- TQCString inReplyTo;
- TQCString references;
-};
-
-#endif