emailservices/nmclientapi/inc/nmapimessage_p.h
changeset 75 47d84de1c893
child 74 6c59112cfd31
equal deleted inserted replaced
72:64e38f08e49c 75:47d84de1c893
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *       Api's email message private implementation.
       
    16 */
       
    17 
       
    18 #ifndef NMAPIMESSAGE_P_H_
       
    19 #define NMAPIMESSAGE_P_H_
       
    20 
       
    21 namespace EmailClientApi
       
    22 {
       
    23 
       
    24 class NmApiMessagePrivate : public QSharedData
       
    25 {
       
    26 
       
    27 public:
       
    28     NmApiMessagePrivate();
       
    29     virtual ~NmApiMessagePrivate();
       
    30 
       
    31     NmApiTextContent plainTextContent();
       
    32     NmApiTextContent htmlContent();
       
    33     bool isComplete();
       
    34     QList<NmApiAttachment> attachments();
       
    35     void addAttachment(NmApiAttachment &attachment);
       
    36     NmApiMessageEnvelope& envelope();
       
    37     void setPlainTextContent(NmApiTextContent &textContent);
       
    38     void setHtmlContent(NmApiTextContent &textContent);
       
    39     void setComplete(bool complete);
       
    40     void setAttachments(QList<NmApiAttachment> &attachments);
       
    41     void setEnvelope(NmApiMessageEnvelope &envelope);
       
    42     
       
    43 private:
       
    44     NmApiTextContent mPlainTextContent;
       
    45     NmApiTextContent mHtmlContent;
       
    46     bool mComplete;
       
    47     QList<NmApiAttachment> mAttachments;
       
    48     NmApiMessageEnvelope mEnvelope;
       
    49 };
       
    50 }
       
    51 
       
    52 #endif /* NMAPIMESSAGE_P_H_ */