messagingfw/deprecate/send_ui_datautils_api/inc/CSendUiAttachment.inl
branchRCL_3
changeset 23 d51193d814ea
parent 22 d2c4c66342f3
child 24 002ade1da91c
equal deleted inserted replaced
22:d2c4c66342f3 23:d51193d814ea
     1 /*
       
     2 * Copyright (c) 2007 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:  CSendUiAttachment.inl*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 // -----------------------------------------------------------------------------
       
    20 // Path
       
    21 // -----------------------------------------------------------------------------
       
    22 //
       
    23 inline const TDesC16* CSendUiAttachment::Path()
       
    24     {
       
    25     return iPath;
       
    26     }
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // Handle
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 inline const RFile* CSendUiAttachment::Handle()
       
    33     {
       
    34     return iHandle;
       
    35     }
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // SetMimeType
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 inline void CSendUiAttachment::SetMimeType( TDataType aMimeType )
       
    42     {
       
    43     iMimeType = aMimeType;
       
    44     }
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // MimeType
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 inline const TPtrC8 CSendUiAttachment::MimeType()
       
    51     {
       
    52     return iMimeType.Des8();
       
    53     }
       
    54 
       
    55 // -----------------------------------------------------------------------------
       
    56 // Size
       
    57 // -----------------------------------------------------------------------------
       
    58 //
       
    59 inline TInt CSendUiAttachment::Size()
       
    60     {
       
    61     return iSize;
       
    62     }
       
    63 
       
    64 // -----------------------------------------------------------------------------
       
    65 // Flag
       
    66 // -----------------------------------------------------------------------------
       
    67 //
       
    68 inline TBool CSendUiAttachment::Flag( TInt aFlag )
       
    69     {
       
    70     return iFlags && aFlag;
       
    71     }
       
    72 
       
    73 // -----------------------------------------------------------------------------
       
    74 // SetFlags
       
    75 // -----------------------------------------------------------------------------
       
    76 //
       
    77 inline void CSendUiAttachment::SetFlags( TInt aFlag )
       
    78     {
       
    79     iFlags |= aFlag;
       
    80     }
       
    81