summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/ProgrammersDoc/ReceivingMails.diabin3474 -> 3472 bytes
-rw-r--r--noncore/net/mail/libmailwrapper/mailtypes.cpp11
-rw-r--r--noncore/net/mail/libmailwrapper/mailtypes.h6
-rw-r--r--noncore/net/mail/mailtypes.cpp11
-rw-r--r--noncore/net/mail/mailtypes.h6
5 files changed, 16 insertions, 18 deletions
diff --git a/noncore/net/mail/ProgrammersDoc/ReceivingMails.dia b/noncore/net/mail/ProgrammersDoc/ReceivingMails.dia
index a4a5fb6..4e63dc6 100644
--- a/noncore/net/mail/ProgrammersDoc/ReceivingMails.dia
+++ b/noncore/net/mail/ProgrammersDoc/ReceivingMails.dia
Binary files differ
diff --git a/noncore/net/mail/libmailwrapper/mailtypes.cpp b/noncore/net/mail/libmailwrapper/mailtypes.cpp
index f56bb63..9c312e9 100644
--- a/noncore/net/mail/libmailwrapper/mailtypes.cpp
+++ b/noncore/net/mail/libmailwrapper/mailtypes.cpp
@@ -167,5 +167,5 @@ RecBody::RecBody()
: m_BodyText(),m_PartsList(),m_description()
{
- m_PartsList.setAutoDelete(true);
+ m_PartsList.clear();
}
@@ -184,11 +184,11 @@ const QString& RecBody::Bodytext()const
}
-void RecBody::setParts(const QList<RecPart>&parts)
+void RecBody::setParts(const QValueList<RecPart>&parts)
{
+ m_PartsList.clear();
m_PartsList = parts;
- m_PartsList.setAutoDelete(true);
}
-const QList<RecPart>& RecBody::Parts()const
+const QValueList<RecPart>& RecBody::Parts()const
{
return m_PartsList;
@@ -197,6 +197,5 @@ const QList<RecPart>& RecBody::Parts()const
void RecBody::addPart(const RecPart& part)
{
- RecPart*p = new RecPart(part);
- m_PartsList.append(p);
+ m_PartsList.append(part);
}
diff --git a/noncore/net/mail/libmailwrapper/mailtypes.h b/noncore/net/mail/libmailwrapper/mailtypes.h
index 60db527..f308bc7 100644
--- a/noncore/net/mail/libmailwrapper/mailtypes.h
+++ b/noncore/net/mail/libmailwrapper/mailtypes.h
@@ -109,5 +109,5 @@ class RecBody
protected:
QString m_BodyText;
- QList<RecPart> m_PartsList;
+ QValueList<RecPart> m_PartsList;
RecPart m_description;
@@ -121,6 +121,6 @@ public:
const RecPart& Description()const;
- void setParts(const QList<RecPart>&parts);
- const QList<RecPart>& Parts()const;
+ void setParts(const QValueList<RecPart>&parts);
+ const QValueList<RecPart>& Parts()const;
void addPart(const RecPart&part);
};
diff --git a/noncore/net/mail/mailtypes.cpp b/noncore/net/mail/mailtypes.cpp
index f56bb63..9c312e9 100644
--- a/noncore/net/mail/mailtypes.cpp
+++ b/noncore/net/mail/mailtypes.cpp
@@ -167,5 +167,5 @@ RecBody::RecBody()
: m_BodyText(),m_PartsList(),m_description()
{
- m_PartsList.setAutoDelete(true);
+ m_PartsList.clear();
}
@@ -184,11 +184,11 @@ const QString& RecBody::Bodytext()const
}
-void RecBody::setParts(const QList<RecPart>&parts)
+void RecBody::setParts(const QValueList<RecPart>&parts)
{
+ m_PartsList.clear();
m_PartsList = parts;
- m_PartsList.setAutoDelete(true);
}
-const QList<RecPart>& RecBody::Parts()const
+const QValueList<RecPart>& RecBody::Parts()const
{
return m_PartsList;
@@ -197,6 +197,5 @@ const QList<RecPart>& RecBody::Parts()const
void RecBody::addPart(const RecPart& part)
{
- RecPart*p = new RecPart(part);
- m_PartsList.append(p);
+ m_PartsList.append(part);
}
diff --git a/noncore/net/mail/mailtypes.h b/noncore/net/mail/mailtypes.h
index 60db527..f308bc7 100644
--- a/noncore/net/mail/mailtypes.h
+++ b/noncore/net/mail/mailtypes.h
@@ -109,5 +109,5 @@ class RecBody
protected:
QString m_BodyText;
- QList<RecPart> m_PartsList;
+ QValueList<RecPart> m_PartsList;
RecPart m_description;
@@ -121,6 +121,6 @@ public:
const RecPart& Description()const;
- void setParts(const QList<RecPart>&parts);
- const QList<RecPart>& Parts()const;
+ void setParts(const QValueList<RecPart>&parts);
+ const QValueList<RecPart>& Parts()const;
void addPart(const RecPart&part);
};