email_plat/nmail_client_api/inc/nmapimessagecontent.h
changeset 74 6c59112cfd31
equal deleted inserted replaced
69:4e54af54a4a1 74:6c59112cfd31
       
     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 *       Email message content public header.
       
    16 */
       
    17 
       
    18 #ifndef NMAPIMESSAGECONTENT_H_
       
    19 #define NMAPIMESSAGECONTENT_H_
       
    20 
       
    21 #include <nmapidef.h>
       
    22 #include <QSharedDataPointer>
       
    23 
       
    24 namespace EmailClientApi
       
    25 {
       
    26 class NmApiMessageContentPrivate;
       
    27 
       
    28 class NMAPI_EXPORT NmApiMessageContent
       
    29 {
       
    30 public:
       
    31     NmApiMessageContent();
       
    32     NmApiMessageContent(const NmApiMessageContent &messagecontent);
       
    33     virtual ~NmApiMessageContent();
       
    34 
       
    35     NmApiMessageContent& operator=(const NmApiMessageContent &messagecontent);    
       
    36 
       
    37     QString contentType() const;
       
    38     bool isComplete();
       
    39     quint32 size() const;
       
    40     quint64 id() const;
       
    41     
       
    42     void setContentType(const QString &contentType);
       
    43     void setComplete(bool complete);
       
    44     void setSize(quint32 size);
       
    45     void setId(quint64 id);
       
    46 
       
    47 private:
       
    48     
       
    49     QSharedDataPointer<NmApiMessageContentPrivate> d;
       
    50 };
       
    51 }
       
    52 #endif /*NMAPIMESSAGECONTENT_H_ */