summaryrefslogtreecommitdiff
authoralwin <alwin>2003-12-12 09:11:26 (UTC)
committer alwin <alwin>2003-12-12 09:11:26 (UTC)
commitf6ff7965fe62f42fcb0fb1cdb93585e0c6ed80fe (patch) (side-by-side diff)
treea749f4f32cd7b956b59dc4299431539c6b95657f
parentdb6704ee16bb6983f4fd8d6853a28f59d533f637 (diff)
downloadopie-f6ff7965fe62f42fcb0fb1cdb93585e0c6ed80fe.zip
opie-f6ff7965fe62f42fcb0fb1cdb93585e0c6ed80fe.tar.gz
opie-f6ff7965fe62f42fcb0fb1cdb93585e0c6ed80fe.tar.bz2
body text will initialized with 0 not "" so we can check if
ever a body text is set.
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/mail/libmailwrapper/mailtypes.cpp2
-rw-r--r--noncore/net/mail/mailtypes.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/noncore/net/mail/libmailwrapper/mailtypes.cpp b/noncore/net/mail/libmailwrapper/mailtypes.cpp
index 0e3174d..6a66113 100644
--- a/noncore/net/mail/libmailwrapper/mailtypes.cpp
+++ b/noncore/net/mail/libmailwrapper/mailtypes.cpp
@@ -1,189 +1,189 @@
#include "mailtypes.h"
RecMail::RecMail()
:subject(""),date(""),from(""),mbox(""),msg_id(""),msg_number(0),msg_size(0),msg_flags(7)
{
init();
}
RecMail::RecMail(const RecMail&old)
:subject(""),date(""),from(""),mbox(""),msg_id(""),msg_number(0),msg_flags(7)
{
init();
copy_old(old);
qDebug("Copy constructor RecMail");
}
void RecMail::copy_old(const RecMail&old)
{
subject = old.subject;
date = old.date;
mbox = old.mbox;
msg_id = old.msg_id;
msg_size = old.msg_size;
msg_number = old.msg_number;
from = old.from;
msg_flags = old.msg_flags;
to = old.to;
cc = old.cc;
bcc = old.bcc;
}
void RecMail::init()
{
to.clear();
cc.clear();
bcc.clear();
}
void RecMail::setTo(const QStringList&list)
{
to = list;
}
const QStringList&RecMail::To()const
{
return to;
}
void RecMail::setCC(const QStringList&list)
{
cc = list;
}
const QStringList&RecMail::CC()const
{
return cc;
}
void RecMail::setBcc(const QStringList&list)
{
bcc = list;
}
const QStringList& RecMail::Bcc()const
{
return bcc;
}
RecPart::RecPart()
: m_type(""),m_subtype(""),m_identifier(""),m_encoding(""),m_lines(0)
{
}
RecPart::RecPart(const QString&identifier,const QString&type,const QString&subtype,const QString&encoding,unsigned int lines)
: m_type(type),m_subtype(subtype),m_identifier(identifier),m_encoding(encoding),m_lines(lines)
{
}
RecPart::~RecPart()
{
}
void RecPart::setLines(unsigned int lines)
{
m_lines = lines;
}
const unsigned int RecPart::Lines()const
{
return m_lines;
}
const QString& RecPart::Type()const
{
return m_type;
}
void RecPart::setType(const QString&type)
{
m_type = type;
}
const QString& RecPart::Subtype()const
{
return m_subtype;
}
void RecPart::setSubtype(const QString&subtype)
{
m_subtype = subtype;
}
const QString& RecPart::Identifier()const
{
return m_identifier;
}
void RecPart::setIdentifier(const QString&identifier)
{
m_identifier = identifier;
}
const QString& RecPart::Encoding()const
{
return m_encoding;
}
void RecPart::setEncoding(const QString&encoding)
{
m_encoding = encoding;
}
RecBody::RecBody()
- : m_BodyText(""),m_PartsList()
+ : m_BodyText(),m_PartsList()
{
m_PartsList.setAutoDelete(true);
}
RecBody::~RecBody()
{
}
void RecBody::setBodytext(const QString&bodyText)
{
m_BodyText = bodyText;
}
const QString& RecBody::Bodytext()const
{
return m_BodyText;
}
void RecBody::setParts(const QList<RecPart>&parts)
{
m_PartsList = parts;
m_PartsList.setAutoDelete(true);
}
const QList<RecPart>& RecBody::Parts()const
{
return m_PartsList;
}
void RecBody::addPart(const RecPart& part)
{
RecPart*p = new RecPart(part);
m_PartsList.append(p);
}
void RecBody::setType(const QString&type)
{
m_type = type;
}
const QString& RecBody::Type()const
{
return m_type;
}
void RecBody::setSubtype(const QString&type)
{
m_subtype = type;
}
const QString& RecBody::Subtype()const
{
return m_subtype;
}
diff --git a/noncore/net/mail/mailtypes.cpp b/noncore/net/mail/mailtypes.cpp
index 0e3174d..6a66113 100644
--- a/noncore/net/mail/mailtypes.cpp
+++ b/noncore/net/mail/mailtypes.cpp
@@ -1,189 +1,189 @@
#include "mailtypes.h"
RecMail::RecMail()
:subject(""),date(""),from(""),mbox(""),msg_id(""),msg_number(0),msg_size(0),msg_flags(7)
{
init();
}
RecMail::RecMail(const RecMail&old)
:subject(""),date(""),from(""),mbox(""),msg_id(""),msg_number(0),msg_flags(7)
{
init();
copy_old(old);
qDebug("Copy constructor RecMail");
}
void RecMail::copy_old(const RecMail&old)
{
subject = old.subject;
date = old.date;
mbox = old.mbox;
msg_id = old.msg_id;
msg_size = old.msg_size;
msg_number = old.msg_number;
from = old.from;
msg_flags = old.msg_flags;
to = old.to;
cc = old.cc;
bcc = old.bcc;
}
void RecMail::init()
{
to.clear();
cc.clear();
bcc.clear();
}
void RecMail::setTo(const QStringList&list)
{
to = list;
}
const QStringList&RecMail::To()const
{
return to;
}
void RecMail::setCC(const QStringList&list)
{
cc = list;
}
const QStringList&RecMail::CC()const
{
return cc;
}
void RecMail::setBcc(const QStringList&list)
{
bcc = list;
}
const QStringList& RecMail::Bcc()const
{
return bcc;
}
RecPart::RecPart()
: m_type(""),m_subtype(""),m_identifier(""),m_encoding(""),m_lines(0)
{
}
RecPart::RecPart(const QString&identifier,const QString&type,const QString&subtype,const QString&encoding,unsigned int lines)
: m_type(type),m_subtype(subtype),m_identifier(identifier),m_encoding(encoding),m_lines(lines)
{
}
RecPart::~RecPart()
{
}
void RecPart::setLines(unsigned int lines)
{
m_lines = lines;
}
const unsigned int RecPart::Lines()const
{
return m_lines;
}
const QString& RecPart::Type()const
{
return m_type;
}
void RecPart::setType(const QString&type)
{
m_type = type;
}
const QString& RecPart::Subtype()const
{
return m_subtype;
}
void RecPart::setSubtype(const QString&subtype)
{
m_subtype = subtype;
}
const QString& RecPart::Identifier()const
{
return m_identifier;
}
void RecPart::setIdentifier(const QString&identifier)
{
m_identifier = identifier;
}
const QString& RecPart::Encoding()const
{
return m_encoding;
}
void RecPart::setEncoding(const QString&encoding)
{
m_encoding = encoding;
}
RecBody::RecBody()
- : m_BodyText(""),m_PartsList()
+ : m_BodyText(),m_PartsList()
{
m_PartsList.setAutoDelete(true);
}
RecBody::~RecBody()
{
}
void RecBody::setBodytext(const QString&bodyText)
{
m_BodyText = bodyText;
}
const QString& RecBody::Bodytext()const
{
return m_BodyText;
}
void RecBody::setParts(const QList<RecPart>&parts)
{
m_PartsList = parts;
m_PartsList.setAutoDelete(true);
}
const QList<RecPart>& RecBody::Parts()const
{
return m_PartsList;
}
void RecBody::addPart(const RecPart& part)
{
RecPart*p = new RecPart(part);
m_PartsList.append(p);
}
void RecBody::setType(const QString&type)
{
m_type = type;
}
const QString& RecBody::Type()const
{
return m_type;
}
void RecBody::setSubtype(const QString&type)
{
m_subtype = type;
}
const QString& RecBody::Subtype()const
{
return m_subtype;
}