From fef9cec046fcf21a4f762c36454b8f253dd3e25e Mon Sep 17 00:00:00 2001 From: alwin Date: Thu, 18 Mar 2004 18:00:18 +0000 Subject: some (hopeful) improvements --- (limited to 'noncore/net/mail/libmailwrapper/mailtypes.h') diff --git a/noncore/net/mail/libmailwrapper/mailtypes.h b/noncore/net/mail/libmailwrapper/mailtypes.h index 941556a..c317880 100644 --- a/noncore/net/mail/libmailwrapper/mailtypes.h +++ b/noncore/net/mail/libmailwrapper/mailtypes.h @@ -84,7 +84,7 @@ protected: typedef Opie::Core::OSmartPointer RecMailP; typedef QMap part_plist_t; -class RecPart +class RecPart:public Opie::Core::ORefCount { protected: QString m_type,m_subtype,m_identifier,m_encoding,m_description; @@ -95,6 +95,7 @@ protected: public: RecPart(); + RecPart(const RecPart&); virtual ~RecPart(); const QString&Type()const; @@ -121,27 +122,32 @@ public: const QValueList& Positionlist()const; }; -class RecBody +typedef Opie::Core::OSmartPointer RecPartP; + +class RecBody:public Opie::Core::ORefCount { protected: QString m_BodyText; - QValueList m_PartsList; - RecPart m_description; + QValueList m_PartsList; + RecPartP m_description; public: RecBody(); + RecBody(const RecBody&old); virtual ~RecBody(); void setBodytext(const QString&); const QString& Bodytext()const; - void setDescription(const RecPart&des); - const RecPart& Description()const; + void setDescription(const RecPartP&des); + const RecPartP& Description()const; - void setParts(const QValueList&parts); - const QValueList& Parts()const; - void addPart(const RecPart&part); + void setParts(const QValueList&parts); + const QValueList& Parts()const; + void addPart(const RecPartP&part); }; +typedef Opie::Core::OSmartPointer RecBodyP; + class encodedString { public: -- cgit v0.9.0.2