emailservices/nmclientapi/src/nmapiattachment.cpp
changeset 74 6c59112cfd31
parent 68 83cc6bae1de8
child 76 38bf5461e270
--- a/emailservices/nmclientapi/src/nmapiattachment.cpp	Wed Sep 15 17:47:19 2010 +0300
+++ b/emailservices/nmclientapi/src/nmapiattachment.cpp	Thu Sep 30 11:43:07 2010 +0300
@@ -30,6 +30,15 @@
 }
 
 /*!
+    Class copy constructor.
+*/
+NmApiAttachment::NmApiAttachment(const NmApiAttachment &attachment)
+{
+    NM_FUNCTION;
+    d = attachment.d;
+}
+
+/*!
     Class destructor.
 */
 NmApiAttachment::~NmApiAttachment()
@@ -37,6 +46,16 @@
     NM_FUNCTION;
 }
 
+NmApiAttachment& NmApiAttachment::operator=(const NmApiAttachment &attachment)
+{
+    if (this == &attachment)
+        return *this;
+    
+    d = attachment.d;
+
+    return *this;
+}
+
 /*!
    Getter for filename
  */