emailservices/nmclientapi/src/nmapiattachment.cpp
changeset 68 83cc6bae1de8
child 74 6c59112cfd31
equal deleted inserted replaced
67:459da34cdb45 68:83cc6bae1de8
       
     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 implementation.
       
    16  */
       
    17 
       
    18 #include "nmapiheaders.h"
       
    19 
       
    20 namespace EmailClientApi
       
    21 {
       
    22 
       
    23 /*!
       
    24     Class constructor.
       
    25 */
       
    26 NmApiAttachment::NmApiAttachment()
       
    27 {
       
    28     NM_FUNCTION;
       
    29     d = new NmApiAttachmentPrivate();
       
    30 }
       
    31 
       
    32 /*!
       
    33     Class destructor.
       
    34 */
       
    35 NmApiAttachment::~NmApiAttachment()
       
    36 {
       
    37     NM_FUNCTION;
       
    38 }
       
    39 
       
    40 /*!
       
    41    Getter for filename
       
    42  */
       
    43 QString NmApiAttachment::fileName()
       
    44 {
       
    45     NM_FUNCTION;
       
    46     return d->fileName();
       
    47 }
       
    48 
       
    49 /*!
       
    50    Getter for file
       
    51  */
       
    52 XQSharableFile NmApiAttachment::file()
       
    53 {
       
    54     NM_FUNCTION;
       
    55     return d->file();
       
    56 }
       
    57 
       
    58 /*!
       
    59    Setter for filename
       
    60  */
       
    61 void NmApiAttachment::setFileName(const QString &fileName)
       
    62 {
       
    63     NM_FUNCTION;
       
    64     d->setFileName(fileName);
       
    65 }
       
    66 
       
    67 }