diff -r 4e54af54a4a1 -r 6c59112cfd31 email_plat/nmail_client_api/inc/nmapimessagemanager.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/email_plat/nmail_client_api/inc/nmapimessagemanager.h Thu Sep 30 11:43:07 2010 +0300 @@ -0,0 +1,70 @@ +/* + * Copyright (c) 2010 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: + * Email message related operations + */ + +#ifndef NMAPIMESSAGEMANAGER_H_ +#define NMAPIMESSAGEMANAGER_H_ + +#include +#include +#include +#include + +#include +#include +#include + +namespace EmailClientApi { + +class NmApiMessageManagerPrivate; + +class NMAPI_EXPORT NmApiMessageManager : public QObject +{ + Q_OBJECT +public: + NmApiMessageManager(QObject *parent,quint64 mailboxId); + + virtual ~NmApiMessageManager(); + +public slots: + QPointer createDraftMessage(const QVariant *initData); + + QPointer createForwardMessage(NmApiMessage *orig,const QVariant *initData); + + QPointer createReplyMessage(const NmApiMessage *orig,const QVariant *initData,bool replyAll); + + QPointer moveMessages(const QList messageIds,quint64 sourceFolderId,quint64 targetFolderId); + + QPointer saveMessage(const NmApiMessage &message); + + QPointer deleteMessages(const QList messageIds); + + QPointer fetchMessage(quint64 messageId); + + QPointer sendMessage(const NmApiMessage &message); + + QPointer createAttachment(NmApiMessage &message,const QVariant &attachmenSpec); + + QPointer removeAttachment(NmApiMessage &message,quint64 attachmentId); + + QPointer fetchAttachment(const NmApiMessage &relatedMessage,quint64 attachmentId); + +private: + NmApiMessageManagerPrivate* d; +}; + +} // namespace EmailClientApi +#endif /*NMAPIMESSAGEMANAGER_H_ */