diff -r e7aa27f58ae1 -r 578830873419 email_plat/nmail_client_api/nmapimessagebody.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/email_plat/nmail_client_api/nmapimessagebody.h Fri Apr 16 14:51:52 2010 +0300 @@ -0,0 +1,83 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: + * + */ + +#ifndef NMAPIMESSAGEBODY_H +#define NMAPIMESSAGEBODY_H + +#include +#include +#include "nmenginedef.h" + +namespace EmailClientApi +{ + +class NmMessageBodyPrivate : public QSharedData +{ +public: + NmMessageBodyPrivate(); + virtual ~NmMessageBodyPrivate(); + + quint64 totalSize; + quint64 fetchedSize; + QString content; +}; + +class NMENGINE_EXPORT NmMessageBody +{ +public: + /* + * constructor for nmmessagebody + */ + NmMessageBody(); + + virtual ~NmMessageBody(); + + /*! + * getter for total size of message body in bytes + */ + quint64 totalSize() const; + + /*! + * getter for bytes available in local mailbox store + */ + quint64 fetchedSize() const; + + /*! + * getter for fetched content + */ + QString content() const; + + /* + * setter for total size of message body in bytes + */ + void setTotalSize(quint64 size); + + /* + * setter for bytes available on local mailbox store + */ + void setFetchedSize(quint64 size); + + /* + * setter for content + */ + void setContent(const QString& content); + +private: + QExplicitlySharedDataPointer d; +}; +} +#endif