email_plat/nmail_client_api/nmapimessage.h
changeset 75 47d84de1c893
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 class.
       
    16 */
       
    17 
       
    18 #ifndef NMAPIMESSAGE_H_
       
    19 #define NMAPIMESSAGE_H_
       
    20 
       
    21 #include <nmapitextcontent.h>
       
    22 #include <nmapiattachment.h>
       
    23 #include <nmapimessageenvelope.h>
       
    24 #include <nmapidef.h>
       
    25 #include <QMetaType>
       
    26 
       
    27 namespace EmailClientApi
       
    28 {
       
    29 class NmApiMessagePrivate;
       
    30 class NmApiMessageEnvelope;
       
    31 
       
    32 class NMAPI_EXPORT NmApiMessage
       
    33 {
       
    34 public:
       
    35     NmApiMessage();
       
    36     virtual ~NmApiMessage();
       
    37 
       
    38     NmApiTextContent plainTextContent();
       
    39     NmApiTextContent htmlContent();
       
    40     bool isComplete();
       
    41     QList<NmApiAttachment> attachments();
       
    42     void addAttachment(NmApiAttachment &attachment);
       
    43     NmApiMessageEnvelope& envelope();
       
    44     void setPlainTextContent(NmApiTextContent &textContent);
       
    45     void setHtmlContent(NmApiTextContent &textContent);
       
    46     void setComplete(bool complete);
       
    47     void setAttachments(QList<NmApiAttachment> &attachments);
       
    48     void setEnvelope(NmApiMessageEnvelope &envelope);
       
    49     
       
    50 private:
       
    51     
       
    52     NmApiMessagePrivate *d;
       
    53 };
       
    54 } // namespace EmailClientApi
       
    55 
       
    56 Q_DECLARE_METATYPE(EmailClientApi::NmApiMessage)
       
    57 
       
    58 #endif /* NMAPIMESSAGE_H_ */