email_plat/nmail_client_api/inc/nmapiattachment.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 attachment public header.
       
    16  */
       
    17 
       
    18 #ifndef NMAPIATTACHMENT_H_
       
    19 #define NMAPIATTACHMENT_H_
       
    20 
       
    21 #include <QString>
       
    22 #include <QSharedDataPointer>
       
    23 #include <xqsharablefile.h>
       
    24 #include <nmapimessagecontent.h>
       
    25 #include <nmapidef.h>
       
    26 
       
    27 namespace EmailClientApi
       
    28 {
       
    29 class NmApiAttachmentPrivate;
       
    30 
       
    31 class NMAPI_EXPORT NmApiAttachment : public NmApiMessageContent
       
    32 {
       
    33 public:
       
    34     NmApiAttachment();
       
    35     NmApiAttachment(const NmApiAttachment &attachment);
       
    36     virtual ~NmApiAttachment();
       
    37 
       
    38     NmApiAttachment& operator=(const NmApiAttachment &attachment);    
       
    39 
       
    40     QString fileName();
       
    41     XQSharableFile file();
       
    42 
       
    43     void setFileName(const QString &fileName);
       
    44 
       
    45 private:
       
    46     
       
    47     QSharedDataPointer<NmApiAttachmentPrivate> d;
       
    48 };
       
    49 }
       
    50 
       
    51 #endif /* NMAPIATTACHMENT_H_ */