author | alwin <alwin> | 2003-12-12 09:11:26 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-12 09:11:26 (UTC) |
commit | f6ff7965fe62f42fcb0fb1cdb93585e0c6ed80fe (patch) (unidiff) | |
tree | a749f4f32cd7b956b59dc4299431539c6b95657f | |
parent | db6704ee16bb6983f4fd8d6853a28f59d533f637 (diff) | |
download | opie-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.
-rw-r--r-- | noncore/net/mail/libmailwrapper/mailtypes.cpp | 2 | ||||
-rw-r--r-- | noncore/net/mail/mailtypes.cpp | 2 |
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 | |||
@@ -111,49 +111,49 @@ void RecPart::setSubtype(const QString&subtype) | |||
111 | m_subtype = subtype; | 111 | m_subtype = subtype; |
112 | } | 112 | } |
113 | 113 | ||
114 | const QString& RecPart::Identifier()const | 114 | const QString& RecPart::Identifier()const |
115 | { | 115 | { |
116 | return m_identifier; | 116 | return m_identifier; |
117 | } | 117 | } |
118 | 118 | ||
119 | void RecPart::setIdentifier(const QString&identifier) | 119 | void RecPart::setIdentifier(const QString&identifier) |
120 | { | 120 | { |
121 | m_identifier = identifier; | 121 | m_identifier = identifier; |
122 | } | 122 | } |
123 | 123 | ||
124 | const QString& RecPart::Encoding()const | 124 | const QString& RecPart::Encoding()const |
125 | { | 125 | { |
126 | return m_encoding; | 126 | return m_encoding; |
127 | } | 127 | } |
128 | 128 | ||
129 | void RecPart::setEncoding(const QString&encoding) | 129 | void RecPart::setEncoding(const QString&encoding) |
130 | { | 130 | { |
131 | m_encoding = encoding; | 131 | m_encoding = encoding; |
132 | } | 132 | } |
133 | 133 | ||
134 | RecBody::RecBody() | 134 | RecBody::RecBody() |
135 | : m_BodyText(""),m_PartsList() | 135 | : m_BodyText(),m_PartsList() |
136 | { | 136 | { |
137 | m_PartsList.setAutoDelete(true); | 137 | m_PartsList.setAutoDelete(true); |
138 | } | 138 | } |
139 | 139 | ||
140 | RecBody::~RecBody() | 140 | RecBody::~RecBody() |
141 | { | 141 | { |
142 | } | 142 | } |
143 | 143 | ||
144 | void RecBody::setBodytext(const QString&bodyText) | 144 | void RecBody::setBodytext(const QString&bodyText) |
145 | { | 145 | { |
146 | m_BodyText = bodyText; | 146 | m_BodyText = bodyText; |
147 | } | 147 | } |
148 | 148 | ||
149 | const QString& RecBody::Bodytext()const | 149 | const QString& RecBody::Bodytext()const |
150 | { | 150 | { |
151 | return m_BodyText; | 151 | return m_BodyText; |
152 | } | 152 | } |
153 | 153 | ||
154 | void RecBody::setParts(const QList<RecPart>&parts) | 154 | void RecBody::setParts(const QList<RecPart>&parts) |
155 | { | 155 | { |
156 | m_PartsList = parts; | 156 | m_PartsList = parts; |
157 | m_PartsList.setAutoDelete(true); | 157 | m_PartsList.setAutoDelete(true); |
158 | } | 158 | } |
159 | 159 | ||
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 | |||
@@ -111,49 +111,49 @@ void RecPart::setSubtype(const QString&subtype) | |||
111 | m_subtype = subtype; | 111 | m_subtype = subtype; |
112 | } | 112 | } |
113 | 113 | ||
114 | const QString& RecPart::Identifier()const | 114 | const QString& RecPart::Identifier()const |
115 | { | 115 | { |
116 | return m_identifier; | 116 | return m_identifier; |
117 | } | 117 | } |
118 | 118 | ||
119 | void RecPart::setIdentifier(const QString&identifier) | 119 | void RecPart::setIdentifier(const QString&identifier) |
120 | { | 120 | { |
121 | m_identifier = identifier; | 121 | m_identifier = identifier; |
122 | } | 122 | } |
123 | 123 | ||
124 | const QString& RecPart::Encoding()const | 124 | const QString& RecPart::Encoding()const |
125 | { | 125 | { |
126 | return m_encoding; | 126 | return m_encoding; |
127 | } | 127 | } |
128 | 128 | ||
129 | void RecPart::setEncoding(const QString&encoding) | 129 | void RecPart::setEncoding(const QString&encoding) |
130 | { | 130 | { |
131 | m_encoding = encoding; | 131 | m_encoding = encoding; |
132 | } | 132 | } |
133 | 133 | ||
134 | RecBody::RecBody() | 134 | RecBody::RecBody() |
135 | : m_BodyText(""),m_PartsList() | 135 | : m_BodyText(),m_PartsList() |
136 | { | 136 | { |
137 | m_PartsList.setAutoDelete(true); | 137 | m_PartsList.setAutoDelete(true); |
138 | } | 138 | } |
139 | 139 | ||
140 | RecBody::~RecBody() | 140 | RecBody::~RecBody() |
141 | { | 141 | { |
142 | } | 142 | } |
143 | 143 | ||
144 | void RecBody::setBodytext(const QString&bodyText) | 144 | void RecBody::setBodytext(const QString&bodyText) |
145 | { | 145 | { |
146 | m_BodyText = bodyText; | 146 | m_BodyText = bodyText; |
147 | } | 147 | } |
148 | 148 | ||
149 | const QString& RecBody::Bodytext()const | 149 | const QString& RecBody::Bodytext()const |
150 | { | 150 | { |
151 | return m_BodyText; | 151 | return m_BodyText; |
152 | } | 152 | } |
153 | 153 | ||
154 | void RecBody::setParts(const QList<RecPart>&parts) | 154 | void RecBody::setParts(const QList<RecPart>&parts) |
155 | { | 155 | { |
156 | m_PartsList = parts; | 156 | m_PartsList = parts; |
157 | m_PartsList.setAutoDelete(true); | 157 | m_PartsList.setAutoDelete(true); |
158 | } | 158 | } |
159 | 159 | ||