email_plat/nmail_client_api/inc/nmapiattachment.h
author hgs
Thu, 30 Sep 2010 11:43:07 +0300
changeset 74 6c59112cfd31
permissions -rw-r--r--
201039

/*
 * 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 attachment public header.
 */

#ifndef NMAPIATTACHMENT_H_
#define NMAPIATTACHMENT_H_

#include <QString>
#include <QSharedDataPointer>
#include <xqsharablefile.h>
#include <nmapimessagecontent.h>
#include <nmapidef.h>

namespace EmailClientApi
{
class NmApiAttachmentPrivate;

class NMAPI_EXPORT NmApiAttachment : public NmApiMessageContent
{
public:
    NmApiAttachment();
    NmApiAttachment(const NmApiAttachment &attachment);
    virtual ~NmApiAttachment();

    NmApiAttachment& operator=(const NmApiAttachment &attachment);    

    QString fileName();
    XQSharableFile file();

    void setFileName(const QString &fileName);

private:
    
    QSharedDataPointer<NmApiAttachmentPrivate> d;
};
}

#endif /* NMAPIATTACHMENT_H_ */