emailservices/nmclientapi/src/nmapimessagebody.cpp
changeset 18 578830873419
child 23 2dc6caa42ec3
equal deleted inserted replaced
4:e7aa27f58ae1 18:578830873419
       
     1 /*
       
     2  * Copyright (c) 2009 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  *
       
    16  */
       
    17 
       
    18 #include "nmapimessagebody.h"
       
    19 
       
    20 namespace EmailClientApi
       
    21 {
       
    22 NmMessageBodyPrivate::NmMessageBodyPrivate()
       
    23 {
       
    24 
       
    25 }
       
    26 
       
    27 NmMessageBodyPrivate::~NmMessageBodyPrivate()
       
    28 {
       
    29 
       
    30 }
       
    31 
       
    32 /*
       
    33  * constructor for nmmessagebody
       
    34  */
       
    35 NmMessageBody::NmMessageBody()
       
    36 {
       
    37     d = new NmMessageBodyPrivate();
       
    38 }
       
    39 
       
    40 NmMessageBody::~NmMessageBody()
       
    41 {
       
    42 
       
    43 }
       
    44 /*!
       
    45  * getter for total size of message body in bytes
       
    46  */
       
    47 quint64 NmMessageBody::totalSize() const
       
    48 {
       
    49     return d->totalSize;
       
    50 }
       
    51 
       
    52 /*!
       
    53  * getter for bytes available in local mailbox store
       
    54  */
       
    55 quint64 NmMessageBody::fetchedSize() const
       
    56 {
       
    57     return d->fetchedSize;
       
    58 }
       
    59 
       
    60 /*!
       
    61  * getter for fetched content
       
    62  */
       
    63 QString NmMessageBody::content() const
       
    64 {
       
    65     return d->content;
       
    66 }
       
    67 
       
    68 /*
       
    69  * setter for total size of message body in bytes
       
    70  */
       
    71 void NmMessageBody::setTotalSize(quint64 size)
       
    72 {
       
    73     d->totalSize = size;
       
    74 }
       
    75 
       
    76 /*
       
    77  * setter for bytes available on local mailbox store
       
    78  */
       
    79 void NmMessageBody::setFetchedSize(quint64 size)
       
    80 {
       
    81     d->fetchedSize = size;
       
    82 }
       
    83 
       
    84 /*
       
    85  * setter for content
       
    86  */
       
    87 void NmMessageBody::setContent(const QString& content)
       
    88 {
       
    89     d->content = content;
       
    90 }
       
    91 }
       
    92