mobilemessaging/unieditor/utils/inc/UniObjectsInfo.inl
changeset 79 2981cb3aa489
parent 0 72b543305e3a
equal deleted inserted replaced
25:84d9eb65b26f 79:2981cb3aa489
       
     1 /*
       
     2 * Copyright (c) 6200 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 *           Unified Message Editor object info derived from attachment info.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 // ---------------------------------------------------------
       
    22 // CUniObjectsInfo::Flags
       
    23 // ---------------------------------------------------------
       
    24 //
       
    25 inline TUint32 CUniObjectsInfo::Flags() const
       
    26     {
       
    27     return iFlags;
       
    28     }
       
    29 
       
    30 // ---------------------------------------------------------
       
    31 // CUniObjectsInfo::SetFlags
       
    32 // ---------------------------------------------------------
       
    33 //
       
    34 inline void CUniObjectsInfo::SetFlags ( TUint32 aFlags )
       
    35     {
       
    36     iFlags = aFlags;
       
    37     
       
    38     SetEmptyAttachment( iFlags & EMmsSlide );
       
    39     }
       
    40 
       
    41 // ---------------------------------------------------------
       
    42 // CUniObjectsInfo::Object
       
    43 // ---------------------------------------------------------
       
    44 //
       
    45 inline CUniObject* CUniObjectsInfo::Object() const
       
    46     {
       
    47     return iObject;
       
    48     }
       
    49 
       
    50 // ---------------------------------------------------------
       
    51 // CUniObjectsInfo::Type
       
    52 // ---------------------------------------------------------
       
    53 //
       
    54 inline MsgAttachmentUtils::TMsgAttachmentFetchType CUniObjectsInfo::Type() const
       
    55     {
       
    56     return iType;
       
    57     }
       
    58 
       
    59 // ---------------------------------------------------------
       
    60 // CUniObjectsInfo::SetType
       
    61 // ---------------------------------------------------------
       
    62 //
       
    63 inline void CUniObjectsInfo::SetType(
       
    64     MsgAttachmentUtils::TMsgAttachmentFetchType aType )
       
    65     {
       
    66     iType = aType;
       
    67     }
       
    68 
       
    69 // ---------------------------------------------------------
       
    70 // CUniObjectsInfo::AttachmentObject
       
    71 // ---------------------------------------------------------
       
    72 //
       
    73 inline TBool CUniObjectsInfo::AttachmentObject() const
       
    74     {
       
    75     return iAttachmentObject;
       
    76     }
       
    77 
       
    78 // ---------------------------------------------------------
       
    79 // CUniObjectsInfo::SlideNumber
       
    80 // ---------------------------------------------------------
       
    81 //
       
    82 inline TInt CUniObjectsInfo::SlideNumber() const
       
    83     {
       
    84     return iSlideNumber;
       
    85     }
       
    86 
       
    87 // End of File